/*
Theme Name: Tala Niang
Theme URI: https://talaniang.com
Author: Tala Niang
Description: Thème bloc sur mesure pour Tala Niang, photographe à Dakar. Fond sombre, quadrillage visible, une seule police. Tous les textes et toutes les photos se modifient dans l'éditeur de pages.
Version: 2.49.2
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tala-niang
Tags: block-theme, full-site-editing, portfolio, photography, dark
*/

/* ==========================================================
   Tala Niang — système de design
   Registre relevé sur la référence : une sans-serif fine,
   aucun accent, fond noir verdâtre, quadrillage visible,
   angles droits, titres à gauche, peu d'éléments mais grands.

   Ordre des plans (z-index) :
   0 photo de fond du héros · 1 teinte du héros · 2 quadrillage
   3 cellules pleines et photos · 4 mots fantômes · 10 en-tête
   ========================================================== */

:root {
  --fond: #000000;
  --panneau: #0B0B0B;
  --ligne: rgba(232, 230, 221, 0.2);
  --bouton: #222222;
  --texte: #e8e6dd;
  --texte-doux: rgba(232, 230, 221, 0.62);
  --fantome: rgba(232, 230, 221, 0.055);

  --police: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --gout: max(16px, 3.75%);                      /* colonne latérale étroite */
  --cols: var(--gout) repeat(5, minmax(0, 1fr)) var(--gout);
  --entete: 96px;
  --pad: clamp(20px, 2.6vw, 44px);

  --ease: cubic-bezier(.22, .61, .21, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--fond); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; } /* height:auto : sinon l'attribut height des blocs image l'emporte */
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* Gutenberg ajoute des marges entre frères. Coupé à la source dans
   theme.json (blockGap: 0px) et, en filet de sécurité, ici À SPÉCIFICITÉ
   NULLE — jamais « .wp-block-group > * », qui écraserait les marges
   des composants. */
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons),
:where(.wp-block-post-content) > :where(*) { margin-block: 0; }
figure.wp-block-image { margin: 0; }

/* ---------- La grille ---------- */

.wp-site-blocks { position: relative; overflow-x: clip; }

/* Le quadrillage : six traits verticaux aux frontières des colonnes,
   dessinés par un pseudo-élément — aucun bloc vide dans la page. */
.wp-site-blocks::before {
  --c: calc((100% - 2 * var(--gout)) / 5);
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ligne), var(--ligne)), linear-gradient(var(--ligne), var(--ligne)),
    linear-gradient(var(--ligne), var(--ligne)), linear-gradient(var(--ligne), var(--ligne)),
    linear-gradient(var(--ligne), var(--ligne)), linear-gradient(var(--ligne), var(--ligne));
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position:
    calc(var(--gout)) 0,
    calc(var(--gout) + var(--c)) 0,
    calc(var(--gout) + 2 * var(--c)) 0,
    calc(var(--gout) + 3 * var(--c)) 0,
    calc(var(--gout) + 4 * var(--c)) 0,
    calc(var(--gout) + 5 * var(--c)) 0;
}
/* ces traits verticaux n'existent que sur l'accueil : ailleurs, ni la grille de fond,
   ni le trait gauche des cellules pleines (qui la prolonge) */
body:not(.home) .wp-site-blocks::before { display: none; }
body:not(.home) .plein, body:not(.home) .masque-2-3::after, body:not(.home) .masque-5-6::after, body:not(.home) .masque-6::after { border-left: 0; }

.rangee {
  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  grid-template-rows: minmax(0, 1fr);   /* la hauteur de la rangée commande, pas les photos */
  border-bottom: 1px solid var(--ligne);
}

.c { position: relative; min-width: 0; min-height: 0; }

/* Cellule fusionnée : sur la référence, les lignes ne traversent
   pas les cellules qui couvrent plusieurs colonnes. */
.plein { background: var(--fond); z-index: 3; border-left: 1px solid var(--ligne); }

.k1   { grid-column: 1 / 2; }
.k2   { grid-column: 2 / 3; }
.k3   { grid-column: 3 / 4; }
.k4   { grid-column: 4 / 5; }
.k5   { grid-column: 5 / 6; }
.k6   { grid-column: 6 / 7; }
.k2-3 { grid-column: 2 / 4; }
.k2-4 { grid-column: 2 / 5; }
.k3-4 { grid-column: 3 / 5; }
.k3-5 { grid-column: 3 / 6; }
.k3-6 { grid-column: 3 / 7; }
.k4-5 { grid-column: 4 / 6; }
.k4-6 { grid-column: 4 / 7; }
.k5-6 { grid-column: 5 / 7; }
.k2-6 { grid-column: 2 / 7; }

.bas    { display: flex; align-items: flex-end; padding: var(--pad); }
.centre { display: flex; align-items: center; justify-content: center; padding: var(--pad); }
.droite { justify-content: flex-end; }

/* ---------- Photos ---------- */

.ph {
  position: relative;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  background: var(--panneau);
}
.ph.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.ph.wp-block-image:hover img { transform: scale(1.035); }

/* ---------- Typographie ---------- */

.logo {
  font-size: clamp(18px, 1.75vw, 30px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.titre {
  font-size: clamp(44px, 5.2vw, 86px);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  hyphens: none;
}

.fantome {
  position: absolute;
  margin: 0;
  font-weight: 300;
  line-height: .85;
  color: var(--fantome);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
  letter-spacing: -0.01em;
}

.etiquette { font-size: 13px; letter-spacing: .08em; color: var(--texte-doux); margin-bottom: 10px; }
.discret { color: var(--texte-doux); font-size: 14px; }

.lien a {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--ligne);
  padding-bottom: 4px;
  transition: border-color .5s var(--ease);
}
.lien a:hover { border-color: var(--texte); }
.accroche .lien a { display: block; }   /* filet sur toute la largeur de la cellule, comme la maquette */

/* ---------- Boutons ----------
   La classe d'un core/button se pose sur le conteneur div.wp-block-button,
   pas sur le lien : le style vise donc le lien, et le conteneur est neutre. */

.wp-block-button.bouton { display: inline-block; background: none; border: 0; padding: 0; width: min(248px, 100%); }
.wp-block-button.bouton .wp-block-button__link,
.formulaire .wpcf7-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(56px, 4.4vw, 74px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bouton);
  color: var(--texte);
  font-family: var(--police);
  font-size: clamp(20px, 1.75vw, 30px);
  font-weight: 300;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .6s var(--ease);
}
.wp-block-button.bouton .wp-block-button__link:hover,
.formulaire .wpcf7-submit:hover { background: #333333; }
.wp-block-button.bouton-verre .wp-block-button__link { background: rgba(232, 230, 221, .16); backdrop-filter: blur(2px); }
.wp-block-button.bouton-verre .wp-block-button__link:hover { background: rgba(232, 230, 221, .26); }

/* ---------- En-tête ---------- */

.entete {
  height: var(--entete);
  z-index: 10;
  background: var(--fond);
}
.home .entete { background: transparent; }

.entete .logo { display: flex; align-items: center; padding-left: var(--pad); white-space: nowrap; }

.wp-block-navigation.nav {
  display: flex;
  align-items: center;
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container:not(.is-menu-open),
.wp-block-navigation.nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content,
.wp-block-navigation.nav .wp-block-navigation__responsive-close,
.wp-block-navigation.nav .wp-block-navigation__responsive-dialog { width: 100%; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
  display: grid;
  grid-auto-flow: column;     /* autant de colonnes égales que de liens dans le menu */
  grid-auto-columns: 1fr;
  width: 100%;
  gap: 0;
}
.wp-block-navigation.nav .wp-block-navigation-item__content { white-space: nowrap; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item { justify-content: center; }
.wp-block-navigation.nav .wp-block-navigation-item__content { transition: opacity .5s var(--ease); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.wp-block-navigation.nav .wp-block-navigation__container:hover .wp-block-navigation-item__content { opacity: .55; }
.wp-block-navigation.nav .wp-block-navigation__container .wp-block-navigation-item__content:hover,
.wp-block-navigation.nav .current-menu-item > .wp-block-navigation-item__content { opacity: 1; }
.wp-block-navigation.nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--texte); }

/* Panneau mobile : le CSS du bloc est imprimé après cette feuille et
   l'ouvrirait blanc sur blanc. Seul endroit où !important est justifié. */
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--fond) !important;
  color: var(--texte) !important;
  padding: 24px 34px;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.wp-block-navigation.nav .is-menu-open .wp-block-navigation-item {
  font-size: 30px; font-weight: 300; width: 100%;
  padding: 18px 0; border-bottom: 1px solid var(--ligne);
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open,
.wp-block-navigation.nav .wp-block-navigation__responsive-container-close { color: var(--texte); }

/* ---------- Héros ---------- */

/* .wp-block-post-content > .wp-block-group.heros : plus spécifique que la
   règle :first-child de WordPress, qui remettrait la marge négative à zéro. */
.heros,
.wp-block-post-content > .wp-block-group.heros {
  position: relative;
  margin-top: calc(-1 * var(--entete) - 1px);
  padding-top: calc(var(--entete) + 1px);
  overflow: hidden;
}
/* la teinte : un pseudo-élément, pas un bloc vide que le client supprimerait */
.heros::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,                /* plus dense à droite : la photo de fond est claire */
      rgba(0, 0, 0, .94) 0%,
      rgba(0, 0, 0, .8) 40%,
      rgba(0, 0, 0, .74) 72%,
      rgba(0, 0, 0, .7) 100%);
}
.heros-fond.wp-block-image {
  position: absolute;
  inset: -8% 0 0 0;
  margin: 0;
  z-index: 0;
}
.heros-fond.wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 33%; }   /* le visage de la photo de fond reste dans le cadre */
.heros .rangee { z-index: auto; }
.heros .accroche, .heros .centre { z-index: 3; }
/* le héros tient dans l'écran, comme sur la référence : 2 + 2 + 1 */
.r-heros     { height: min(23.5vw, calc((100svh - var(--entete)) * .4)); min-height: 240px; }
.r-heros-bas { height: min(11.7vw, calc((100svh - var(--entete)) * .2)); min-height: 140px; border-bottom: 0; }

.f-haut   { left: calc(var(--gout) + 2.4vw); top: 2.2vw; font-size: 4.6vw; }
.f-droite { right: 6vw; bottom: 1.4vw; font-size: 7.4vw; }
.f-bas    { left: 9.5vw; bottom: 1.4vw; font-size: 9.6vw; }

.lisere.wp-block-image img { object-position: 57% 50%; }
.r-heros .k3.ph.wp-block-image img { object-position: 50% 22%; }   /* photo du haut : le visage garde de l'air au-dessus */   /* bande étroite : le sujet au centre de la bande */
.ph-bas.wp-block-image img { object-position: 50% 12%; }   /* bande étroite : les têtes entières, le haut de l'image près du bord */   /* bande étroite : on garde la tête et le buste */

.accroche {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: var(--pad);
}
.accroche h1 { font-size: clamp(17px, 1.35vw, 22px); line-height: 1.25; }
.accroche p:not(.lien) { color: var(--texte-doux); font-size: 14px; line-height: 1.45; margin-bottom: 8px; }

/* ---------- À propos ---------- */

.r-ap { height: 19.5vw; min-height: 240px; }
.texte { padding: var(--pad); display: flex; flex-direction: column; gap: 2.2vw; justify-content: center; }
.texte p { max-width: 34em; }
.texte-d { justify-content: flex-start; padding-top: 3.2vw; gap: 1.8vw; }
.f-ap { left: calc(var(--gout) + 3 * 18.5% - 1.5vw); top: 50%; transform: translateY(-38%); font-size: 7.6vw; }

/* ---------- Aperçu portfolio ---------- */

.r-pf-titre { height: 14vw; min-height: 160px; }
.r-pf { height: 27vw; min-height: 300px; }
.f-pf { left: 6vw; bottom: 3vw; font-size: 8.6vw; }
.carte.wp-block-image { display: flex; flex-direction: column; background: transparent; }
.carte.wp-block-image > a { flex: 1; min-height: 0; overflow: hidden; display: block; background: var(--panneau); }
.carte.wp-block-image figcaption {
  margin: 0;
  padding: 14px var(--pad) 16px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--texte-doux);
  text-align: left;
  border-top: 1px solid var(--ligne);
  transition: color .5s var(--ease);
}
.carte.wp-block-image:hover figcaption { color: var(--texte); }

/* ---------- Prestations (accueil) ---------- */

.r-tarifs { min-height: 58vw; }
.tarifs-corps { padding: 3.6vw 3.1vw 4.4vw; display: flex; flex-direction: column; }
.tarifs-corps .titre { margin-bottom: 3.8vw; }
.formules { margin: 0 0 3.4vw; width: min(100%, 50vw); display: grid; gap: 3.6vw; }
.formule > p { max-width: 38em; }

/* ---------- Pied ---------- */

.pied { background: var(--fond); }
.r-pied .c { padding: var(--pad); display: flex; flex-direction: column; gap: 4px; }
.r-pied .c.centre { align-items: center; justify-content: center; }
.r-pied a:hover { opacity: .7; }
.r-pied .logo { margin-bottom: 8px; }
.r-copy { border-bottom: 0; }
.r-copy .c { padding: 18px var(--pad); }

/* ---------- Transition de page ----------
   Le voile est un pseudo-élément du <body>. Il n'existe que si le
   JavaScript tourne (classe « js » posée dans le <head>). */

html.js body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--fond);
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.1s var(--ease);
}
html.js body.pret::after { opacity: 0; }
html.js body.pret.part::after { opacity: 1; transition-duration: .65s; }
html.js body.page-espace-client::after { transition-duration: .35s; }
/* filet de sécurité : si le script ne se charge pas, le voile se lève seul */
html.js body:not(.pret)::after { animation: voile-secours .6s 2.5s forwards; }
@keyframes voile-secours { to { opacity: 0; } }
/* le contenu arrive en fondu avec un léger glissement, et repart de même */
.wp-site-blocks > main { transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js body:not(.pret) .wp-site-blocks > main { opacity: 0; transform: translateY(16px); }
html.js body.pret.part .wp-site-blocks > main { opacity: 0; transform: translateY(-8px); transition-duration: .5s; }

/* ==========================================================
   Pages internes — même grille, mêmes cellules
   ========================================================== */

/* ---------- Ouverture de page ---------- */
.r-ouverture { height: 22vw; min-height: 240px; }
.r-ouverture .titre { font-size: clamp(40px, 4.6vw, 80px); }
.chapeau { padding: var(--pad); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.chapeau p { color: var(--texte-doux); max-width: 30em; }
.f-ouv { right: 5vw; top: 50%; transform: translateY(-45%); font-size: 8.4vw; }

/* ---------- Portfolio : filtres + galerie ---------- */
.r-filtres { height: 72px; }
.filtres { display: grid; grid-template-columns: repeat(6, 1fr); align-items: stretch; }
.filtre {
  display: flex; align-items: center; justify-content: center;
  color: var(--texte-doux);
  font-size: clamp(12px, .95vw, 15px); font-weight: 400; line-height: 1; letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer; position: relative; user-select: none;
  transition: color .5s var(--ease);
}
.filtre:hover, .filtre.actif { color: var(--texte); }
.filtre.actif::after { content: ""; position: absolute; left: 50%; bottom: 22px; width: 24px; height: 1px; background: var(--texte); transform: translateX(-50%); }

.galerie {
  grid-column: 2 / 7;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 24vw;
}
/* Cases vides semées dans la grille, comme sur la référence :
   des décalages en CSS, pas des blocs vides. */
.galerie:not(.filtree) > .g:nth-child(2)  { grid-column-start: 3; }
.galerie:not(.filtree) > .g:nth-child(6)  { grid-column-start: 3; }
.galerie:not(.filtree) > .g:nth-child(9)  { grid-column-start: 2; }
.galerie:not(.filtree) > .g:nth-child(12) { grid-column-start: 3; }

.galerie .g { position: relative; border-bottom: 1px solid var(--ligne); }
.galerie .g.large { grid-column-end: span 2; }
.galerie .g.haute { grid-row: span 2; }
.galerie .g.cache { display: none; }
.galerie .g figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 12px 16px; font-size: 12px; letter-spacing: .06em; text-align: left;
  color: var(--texte); background: linear-gradient(transparent, rgba(0, 0, 0,.7));
  opacity: 0; transition: opacity .6s var(--ease);
  pointer-events: none;
}
.galerie .g:hover figcaption { opacity: 1; }
.r-galerie { grid-template-rows: auto; }

/* Visionneuse native de WordPress (« Agrandir au clic ») aux couleurs du site */
.wp-lightbox-overlay .scrim { background-color: var(--fond) !important; opacity: .96 !important; }
.wp-lightbox-overlay .close-button { color: var(--texte); }

/* ---------- Prestations : la liste (sans prix) ---------- */
.r-formule { min-height: 26vw; }
.formule-tete { padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.formule-tete h2 { font-size: clamp(26px, 2.6vw, 44px); line-height: 1.05; transition: transform .7s var(--ease); }
.formule-tete .num { color: var(--texte-doux); font-size: 14px; letter-spacing: .04em; }
.resume { padding: var(--pad); display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.resume > p:first-child { max-width: 30em; font-size: clamp(17px, 1.3vw, 21px); }
.voir { font-size: 13px; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; }
.voir::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .7s var(--ease); }
.prestation { cursor: pointer; }
.prestation .ph img { transition: transform 1.2s var(--ease), opacity .7s var(--ease); }
.prestation:hover .voir::after, .voir:focus-visible::after { width: 56px; }
.prestation:hover .formule-tete h2 { transform: translateX(6px); }
.prestation:hover .ph img { transform: scale(1.03); }
.rangee > .fiche-detail { display: none; }      /* le détail s'affiche dans la fiche */
.fiche.wp-block-table { margin: 0 0 24px; }
.fiche.wp-block-table table { width: 100%; border-collapse: collapse; }
.fiche.wp-block-table td { border: 0; border-bottom: 1px solid var(--ligne); padding: 11px 0; }
.fiche.wp-block-table td:first-child { color: var(--texte-doux); padding-right: 24px; }
.fiche.wp-block-table td:last-child { text-align: right; }
.formule h3 a { text-decoration: none; display: inline-flex; gap: 14px; align-items: baseline; }
.formule h3 a::after { content: "→"; font-size: .7em; opacity: .5; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.formule h3 a:hover::after { transform: translateX(6px); opacity: 1; }
.formule h3 { font-size: clamp(20px, 1.8vw, 30px); padding-bottom: 6px; border-bottom: 1px solid var(--ligne); margin-bottom: 1.2vw; }

/* ---------- La fiche : panneau latéral ---------- */
.panneau { position: fixed; inset: 0; z-index: 100; }
.panneau[hidden] { display: none; }
.panneau-voile { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); opacity: 0; transition: opacity .7s var(--ease); }
.panneau-corps {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 46vw);
  background: var(--wp--preset--color--panneau, #0B0B0B); border-left: 1px solid var(--ligne);
  overflow-y: auto; overscroll-behavior: contain; outline: 0;
  padding: 28px clamp(24px, 3vw, 52px) 48px;
  transform: translateX(100%); transition: transform .8s var(--ease);
}
.panneau.ouvert .panneau-voile { opacity: 1; }
.panneau.ouvert .panneau-corps { transform: none; }
html.panneau-ouvert { overflow: hidden; }
.panneau-fermer {
  display: block; margin: 0 0 48px auto; background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--texte-doux); font: 400 13px/1 var(--police); letter-spacing: .08em; transition: color .4s var(--ease);
}
.panneau-fermer span { font-size: 18px; margin-left: 6px; vertical-align: -2px; }
.panneau-fermer:hover { color: var(--texte); }
.panneau-fermer:focus { outline: 0; }
.panneau-fermer:focus-visible { outline: 1px solid var(--ligne); outline-offset: 2px; }
.panneau-corps .num { color: var(--texte-doux); font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
.panneau-corps h2 { font-size: clamp(32px, 3vw, 52px); line-height: 1.05; margin-bottom: 26px; }
.panneau-fiche > p { color: var(--texte-doux); margin-bottom: 28px; max-width: 34em; }
.panneau-fiche h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); margin: 8px 0 10px; }
.panneau-fiche ul { list-style: none; padding: 0; margin: 0 0 34px; }
.panneau-fiche li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--ligne); position: relative; }
.panneau-fiche li::before { content: ""; position: absolute; left: 0; top: calc(9px + .8em); width: 10px; height: 1px; background: var(--texte-doux); }
.panneau-fiche .ligne-prix-base td { color: var(--texte); }
.perso { border-top: 1px solid var(--texte); padding-top: 18px; margin-bottom: 30px; }
.perso[hidden], .panneau-total[hidden], .panneau-attente[hidden] { display: none; }
.perso .etiquette { margin-bottom: 4px; }
.perso-ligne { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.perso-ligne > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.perso-prix { font-size: 13px; color: var(--texte-doux); }
.perso-ligne.actif .perso-prix { color: var(--texte); }
.qte { display: flex; align-items: center; white-space: nowrap; }
.qte button {
  width: 34px; height: 34px; border: 1px solid var(--ligne); background: none; color: var(--texte);
  font: 300 18px/1 var(--police); cursor: pointer; transition: border-color .4s var(--ease), opacity .4s var(--ease);
}
.qte button:hover:not(:disabled) { border-color: var(--texte); }
.qte button:disabled { opacity: .3; cursor: default; }
.qte output { display: inline-block; min-width: 96px; padding: 0 6px; text-align: center; }   /* « 10 photos » : unité comprise */
.panneau-total { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: baseline; padding: 4px 0 26px; }
.panneau-total span { color: var(--texte-doux); font-size: 15px; }
.panneau-total strong { text-align: right; font-weight: 400; font-size: clamp(22px, 1.9vw, 30px); white-space: nowrap; }
.panneau-total strong.p-acompte { font-size: clamp(26px, 2.3vw, 38px); }
.panneau-attente { color: var(--texte-doux); margin-bottom: 26px; }
.wp-block-button.bouton.bouton-plein { width: 100%; }
.wp-block-button.bouton.bouton-plein .wp-block-button__link { font-size: clamp(17px, 1.3vw, 21px); }
.panneau-corps .wp-block-buttons { margin-bottom: 16px; }
.panneau-note { font-size: 13px; color: var(--texte-doux); }

/* ---------- Page Réserver : le récapitulatif ---------- */
.recap { padding: 4vw var(--pad) 5vw; display: flex; flex-direction: column; gap: 22px; }
.recap h2 { font-size: clamp(26px, 2.6vw, 44px); }
.recap-vide { color: var(--texte-doux); max-width: 30em; }
.recap [hidden] { display: none; }
.recap-plein h3 { font-size: clamp(22px, 2vw, 32px); margin: 4px 0 14px; }
.recap-plein .etiquette { margin: 0; }
.recap-ligne { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ligne); }
.recap-ligne span:first-child { color: var(--texte-doux); }
.recap-ligne span:last-child { white-space: nowrap; }
.recap-total { border-top: 1px solid var(--texte); border-bottom: 0; margin-top: 10px; padding-top: 18px; font-size: clamp(18px, 1.5vw, 24px); }
.recap-acompte { border-bottom: 0; font-size: clamp(22px, 1.9vw, 30px); }
.recap-acompte span:first-child, .recap-total span:first-child { font-size: 15px; align-self: center; }
.recap-note { margin-top: 18px; font-size: 14px; color: var(--texte-doux); max-width: 32em; }
.recap-modifier { display: inline-block; margin-top: 18px; font-size: 13px; letter-spacing: .08em; color: var(--texte-doux); }
.recap-modifier:hover { color: var(--texte); }
.acompte-note { margin-top: 26px; max-width: 46em; color: var(--texte-doux); font-size: 15px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.acompte-note strong { color: var(--texte); font-weight: 400; }

.r-etapes { min-height: 16vw; }
.etape { padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.etape .num { font-size: clamp(32px, 3.2vw, 54px); font-weight: 300; color: var(--texte-doux); line-height: 1; }
.etape h3 { font-size: 18px; margin-bottom: 6px; }
.etape p:not(.num) { color: var(--texte-doux); font-size: 15px; }

.emplacement {
  margin: var(--pad); min-height: 300px;
  border: 1px dashed var(--ligne);
  display: grid; place-items: center; text-align: center; padding: 32px;
  color: var(--texte-doux); font-size: 14px;
}

/* ---------- Témoignages ---------- */
.r-temoins { min-height: 20vw; }
.temoin { padding: var(--pad); display: flex; flex-direction: column; justify-content: center; }
.temoin .wp-block-quote { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; height: 100%; }
.temoin .wp-block-quote p { font-size: clamp(17px, 1.35vw, 22px); line-height: 1.45; }
.temoin .wp-block-quote cite { font-style: normal; font-size: 13px; letter-spacing: .06em; color: var(--texte-doux); text-transform: uppercase; }

/* ---------- Texte courant (histoire, pages légales) ---------- */
.prose { padding: 4vw var(--pad) 5vw; }
.prose > * { max-width: 46em; }
.prose h2 { font-size: clamp(22px, 1.9vw, 30px); margin: 2.4em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin: 0 0 1em; color: rgba(232, 230, 221, .86); }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose a { border-bottom: 1px solid var(--ligne); }
.prose strong { font-weight: 400; color: var(--texte); }
.sommaire { padding: 4vw var(--pad); position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--texte-doux); }
.sommaire a:hover { color: var(--texte); }

/* ---------- Formulaire (Contact Form 7) ---------- */
.formulaire { padding: 4vw var(--pad) 5vw; }
.formulaire form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 3vw; }
.formulaire .wpcf7 { width: 100%; }
.champ { display: flex; flex-direction: column; gap: 10px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-size: 13px; letter-spacing: .06em; color: var(--texte-doux); }
.champ .wpcf7-form-control-wrap { display: block; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  background: transparent; color: var(--texte);
  border: 0; border-bottom: 1px solid var(--ligne); border-radius: 0;
  padding: 10px 0; font: 300 17px/1.4 var(--police);
  transition: border-color .5s var(--ease);
  color-scheme: dark;
  -webkit-appearance: none; appearance: none;
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--texte-doux) 50%), linear-gradient(-45deg, transparent 50%, var(--texte-doux) 50%); background-position: right 6px center, right 0 center; background-size: 6px 6px; background-repeat: no-repeat; }
.champ select option { background: var(--fond); }
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--texte); }
.formulaire .wpcf7-submit { width: min(248px, 100%); }
.formulaire .wpcf7-spinner { display: none; }
.formulaire .wpcf7-not-valid-tip { color: #d9a59a; font-size: 13px; margin-top: 6px; }
.formulaire .wpcf7-response-output { grid-column: 1 / -1; margin: 0 !important; padding: 14px 18px !important; border: 1px solid var(--ligne) !important; color: var(--texte); font-size: 14px; }
.coord { padding: 4vw var(--pad); display: flex; flex-direction: column; gap: 28px; }

/* ---------- Espace client : animations discrètes ---------- */
.page-espace-client .ph.wp-block-image img { transition-duration: .6s; }

/* ---------- Accessibilité ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 1px solid var(--texte); outline-offset: 3px; }

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 900px) {
  :root { --gout: 16px; --cols: 16px repeat(2, minmax(0, 1fr)) 16px; --entete: 72px; --pad: 18px; }

  .wp-site-blocks::before {
    --c: calc((100% - 32px) / 2);
    background-position: 16px 0, -10px 0, calc(16px + 2 * var(--c)) 0, -10px 0, -10px 0, -10px 0;   /* pas de trait central : il traverserait les textes */
  }

  .k2, .k3, .k4, .k5, .k6, .k2-3, .k2-4, .k3-4, .k3-5, .k3-6, .k4-5, .k4-6, .k5-6, .k2-6 { grid-column: 2 / 4; }
  .k1 { display: none; }

  .entete .logo { grid-column: 2 / 3; }
  .wp-block-navigation.nav { grid-column: 3 / 4; justify-content: flex-end; padding-right: var(--pad); }
  /* WordPress ne passe au bouton « menu » qu'en dessous de 600 px : entre 600 et 900,
     cinq liens dans une demi-colonne se chevauchent. On avance donc le bouton à 900 px. */
  .wp-block-navigation.nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .wp-block-navigation.nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }

  .r-heros, .r-heros-bas, .r-ap, .r-pf-titre, .r-pf, .r-tarifs { height: auto; min-height: 0; }

  /* pas de hauteur minimale : le bouton RÉSERVER doit tenir dans le premier écran */
  .heros .ph.k3 { grid-column: 3 / 4; aspect-ratio: 3 / 4; }
  .heros .ph.k6 { grid-column: 2 / 3; aspect-ratio: 3 / 4; }
  .heros .k3-4 { aspect-ratio: 16 / 9; }
  .r-heros-bas .accroche { order: 1; padding-top: 32px; padding-bottom: 20px; }
  .r-heros-bas .centre { order: 2; justify-content: flex-start; padding-top: 0; }
  .r-heros-bas .ph { order: 3; }
  .f-haut { font-size: 15vw; left: 16px; top: 20px; }
  .f-droite { font-size: 17vw; right: 16px; }
  .f-bas { font-size: 19vw; left: 16px; }
  .accroche h1 { font-size: 26px; }

  .apropos .ph { aspect-ratio: 4 / 3; }
  .apropos .k4 { grid-column: 2 / 4; }
  .apropos .bas { padding-top: 64px; }
  .texte { gap: 24px; }
  .texte-d { padding-top: var(--pad); gap: 16px; }
  .f-ap { left: 16px; font-size: 22vw; top: auto; bottom: 10px; transform: none; }

  .r-pf-titre .bas { padding-top: 64px; }
  .r-pf-titre .droite { justify-content: flex-start; padding-top: 0; }
  .r-pf { grid-template-rows: auto; }
  .r-pf .carte:nth-child(odd) { grid-column: 2 / 3; }
  .r-pf .carte:nth-child(even) { grid-column: 3 / 4; }
  .r-pf .carte > a { aspect-ratio: 3 / 4; }
  .f-pf { font-size: 19vw; left: 16px; bottom: auto; top: 30%; }
  .r-pf + .r-pf .carte:first-of-type { grid-column: 3 / 4; }
  .r-pf + .r-pf .carte:last-of-type { grid-column: 2 / 3; grid-row: 1; }

  .tarifs .ph { aspect-ratio: 4 / 5; }
  .tarifs-corps { padding: 48px var(--pad); }
  .tarifs-corps .titre { margin-bottom: 36px; }
  .formules { width: 100%; gap: 36px; margin-bottom: 36px; }

  .r-pied .c { border-bottom: 1px solid var(--ligne); }
  .r-pied .c.centre { align-items: flex-start; }

  .r-ouverture, .r-formule, .r-etapes, .r-temoins { height: auto; min-height: 0; }
  .r-ouverture .bas { padding-top: 64px; }
  .r-ouverture .ph { aspect-ratio: 4 / 3; }
  .f-ouv { font-size: 20vw; right: 16px; top: 40px; transform: none; }

  .r-filtres { height: auto; }
  .filtres { grid-template-columns: repeat(3, 1fr); }
  .filtre { padding: 18px 0; }
  .filtre.actif::after { bottom: 8px; }
  .galerie { grid-column: 2 / 4; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 58vw; }
  .galerie > .g { grid-column-start: auto !important; }
  .galerie .g figcaption { opacity: 1; }

  .r-formule .ph { aspect-ratio: 4 / 3; }
  .formule-tete { padding-top: 48px; }
  .resume { justify-content: flex-start; padding-top: 0; order: 2; }
  .prestation .ph { order: 3; }
  .panneau-corps { width: 100%; border-left: 0; padding: 18px 20px 40px; }
  .panneau-fermer { margin-bottom: 28px; }
  .perso-ligne { flex-wrap: wrap; }
  .recap { padding: 40px var(--pad); }

  .r-etapes .etape { border-bottom: 1px solid var(--ligne); }

  .formulaire form { grid-template-columns: 1fr; }
  .formulaire { padding: 40px var(--pad); }
  .sommaire { position: static; padding-bottom: 0; }
  .prose { padding-top: 32px; }
}

/* ==========================================================
   Finitions « premium » — communes, puis téléphone d'abord
   ========================================================== */

/* Le bouton Réserver de l'en-tête : seulement sur téléphone (sur ordinateur, il est dans le menu) */
.entete .entete-reserver { display: none; }
.heros-mobile, .defiler { display: none; }

/* La fiche : total et bouton restent au bas de l'écran pendant qu'on fait défiler */
.panneau-pied {
  position: sticky; bottom: 0; z-index: 2;
  margin: 0 calc(-1 * clamp(24px, 3vw, 52px));
  padding: 18px clamp(24px, 3vw, 52px) calc(22px + env(safe-area-inset-bottom));
  background: var(--panneau); border-top: 1px solid var(--ligne);
}
.panneau-corps { padding-bottom: 0; }
.panneau-pied .panneau-total { padding-bottom: 16px; }
.panneau-pied .wp-block-buttons { margin-bottom: 0; }
.panneau-note { margin-bottom: 26px; }
.qte button { width: 44px; height: 44px; font-size: 20px; }
.qte output { min-width: 96px; }
.panneau-fermer { min-height: 44px; padding: 0 4px; }

/* ---------- Visionneuse plein écran (portfolio) ---------- */
.galerie .lightbox-trigger { display: none !important; }
.galerie .g { cursor: zoom-in; }
.visionneuse { position: fixed; inset: 0; z-index: 200; background: var(--fond); display: flex; flex-direction: column; opacity: 0; transition: opacity .5s var(--ease); touch-action: none; }
.visionneuse[hidden] { display: none; }
.visionneuse.ouverte { opacity: 1; }
.visionneuse-haut { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 20px; padding-top: calc(8px + env(safe-area-inset-top)); font-size: 13px; letter-spacing: .08em; color: var(--texte-doux); }
.visionneuse button { background: none; border: 0; color: var(--texte); font: 400 13px/1 var(--police); letter-spacing: .08em; cursor: pointer; min-width: 44px; min-height: 44px; padding: 0 12px; }
.visionneuse-scene { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.visionneuse-scene img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform, opacity; }
.visionneuse-bas { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--texte-doux); text-align: center; min-height: 52px; }
.visionneuse .v-prec, .visionneuse .v-suiv { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; opacity: .6; transition: opacity .4s var(--ease); }
.visionneuse .v-prec { left: 12px; } .visionneuse .v-suiv { right: 12px; }
.visionneuse .v-prec:hover, .visionneuse .v-suiv:hover { opacity: 1; }
@media (hover: none), (max-width: 900px) { .visionneuse .v-prec, .visionneuse .v-suiv { display: none; } }   /* au doigt : on balaie */

@media (max-width: 900px) {
  :root { --pad: 20px; }
  body { font-size: 17px; line-height: 1.65; }

  /* Rien ne recouvre les photos sur téléphone : les mots fantômes disparaissent */
  .fantome { display: none; }
  .ph.wp-block-image:hover img { transform: none; }

  /* ----- En-tête : se retire quand on descend, revient quand on remonte ----- */
  .wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; transition: transform .6s var(--ease); }
  body.cache-entete .wp-site-blocks > header.wp-block-template-part { transform: translateY(-100%); }
  .entete { transition: background-color .5s var(--ease); border-bottom-color: transparent; }
  body.defile .entete { background: rgba(0, 0, 0, .94); border-bottom-color: var(--ligne); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .home:not(.defile) .entete { background: transparent; }
  .entete .logo { font-size: 17px; letter-spacing: .08em; padding-left: 0; }
  /* en-tête sobre : le logo seul ; la navigation passe dans la barre du bas */
  .entete .entete-reserver, .entete .wp-block-navigation.nav { display: none; }
  .wp-block-button.bouton-fin .wp-block-button__link {
    display: flex; align-items: center; min-height: 44px; padding: 0 16px;
    background: transparent; border: 1px solid rgba(232, 230, 221, .45); border-radius: 999px;
    color: var(--texte); font: 400 12px/1 var(--police); letter-spacing: .12em;
  }
  .wp-block-navigation.nav { padding-right: 4px; }
  .wp-block-navigation.nav .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }

  /* ----- Menu plein écran ----- */
  .wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open { padding: 20px 20px calc(28px + env(safe-area-inset-bottom)); animation: menu-voile .5s var(--ease) both; }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-close { min-width: 44px; min-height: 44px; }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation__container { gap: 0; }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation-item {
    font-size: clamp(34px, 10vw, 46px); font-weight: 300; letter-spacing: 0; text-transform: none;
    padding: 14px 0; border-bottom: 1px solid var(--ligne);
    animation: menu-lien .8s var(--ease) both;
  }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: .06s; }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: .12s; }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: .18s; }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: .24s; }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: .32s; }
  .wp-block-navigation.nav .is-menu-open .nav-reserver { border-bottom: 0; padding-top: 32px; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
  .wp-block-navigation.nav .is-menu-open .nav-reserver > .wp-block-navigation-item__content {
    display: flex; justify-content: center; align-items: center; width: 100%; min-height: 56px;
    border: 1px solid var(--texte) !important; border-radius: 999px; padding: 0 !important;
  }
  .wp-block-navigation.nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: transparent; opacity: .55; }

  /* ----- Accueil : des photos plein écran qui défilent, le nom, une phrase, la pilule Réserver ----- */
  .heros,
  .wp-block-post-content > .wp-block-group.heros { height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
  /* deux voiles : en bas (titre en bas) et en haut (titre en haut) ; ils se relaient en fondu */
  .heros, .wp-block-post-content > .wp-block-group.heros { z-index: 3; }   /* les traits de la grille ne passent pas sur la photo */
  .heros::before, .heros::after { z-index: 2; transition: opacity 1.4s var(--ease); }
  .heros::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .5) 66%, rgba(0, 0, 0, .72) 100%);
  }
  .heros::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .5) 26%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0) 76%, rgba(0, 0, 0, .4) 100%);
  }
  .heros.texte-haut::before { opacity: 0; }
  .heros.texte-haut::after { opacity: 1; }
  .heros.texte-haut, .wp-block-post-content > .wp-block-group.heros.texte-haut { justify-content: flex-start; }
  .heros-fond.wp-block-image, .heros .r-heros, .r-heros-bas .ph { display: none; }
  .heros-mobile.wp-block-image { display: block; position: absolute; inset: 0; margin: 0; z-index: 0; }
  .heros-mobile.wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

  /* le diaporama : les photos se superposent et passent l'une à l'autre en fondu lent, avec un zoom de 4 % au plus */
  .diaporama { display: block; position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .diapo { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 0; pointer-events: none; transition: opacity 1.8s var(--ease); }
  .diapo.actif { opacity: 1; z-index: 1; pointer-events: auto; }
  .diapo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 0s 1.9s; -webkit-user-drag: none; }
  .diapo.zoom img { transform: scale(1.04); transition: transform 8s linear; }

  .heros .r-heros-bas { position: static; display: flex; flex-direction: column; height: auto; min-height: 0; padding: 0 var(--pad) calc(var(--barre) + 136px); border: 0; }
  .heros.texte-haut .r-heros-bas { padding-top: 28px; padding-bottom: 0; }
  .r-heros-bas .accroche { padding: 0; gap: 14px; }
  .r-heros-bas .accroche > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .heros.texte-bascule .r-heros-bas .accroche > * { opacity: 0; transform: translateY(10px); }
  .accroche h1 { font-size: clamp(46px, 14vw, 68px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
  .accroche p:not(.lien) { font-size: 17px; line-height: 1.5; color: rgba(232, 230, 221, .82); margin: 0; max-width: 22em; }
  .accroche .lien a { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; font-size: 13px; letter-spacing: .12em; }
  .accroche .lien a::after { content: "→"; margin-left: 10px; }

  /* le texte de chaque photo : celui de sa catégorie (comme les sections plus bas), aligné à gauche,
     au-dessus de « Réserver » ; un dégradé noir, venu du bas, le garde lisible sur toutes les photos.
     L'accroche d'origine (titre « Tala Niang ») reste pour Google et les lecteurs d'écran. */
  .heros:has(.diaporama)::before, .heros:has(.diaporama)::after { display: none; }
  .heros:has(.diaporama) .accroche {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .diaporama::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, .55) 58%, rgba(0, 0, 0, .86) 100%);
  }
  .diapo-texte { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: calc(var(--barre) + 132px); pointer-events: none; }
  .diapo-texte .etiquette-cat { margin: 0 0 12px; color: var(--texte); }
  .diapo-titre {
    margin: 0 0 12px; max-width: 14em; font-family: var(--serif); font-weight: 500;
    font-size: clamp(28px, 8.4vw, 40px); line-height: 1.06; letter-spacing: -.005em; color: #fff; text-wrap: balance;
  }
  .diapo-texte .cat-texte { margin: 0; max-width: 30em; font-size: 15px; line-height: 1.6; color: rgba(232, 230, 221, .86); }
  .diapo-texte p:empty { display: none; }                 /* série sans titre ou sans message : le nom seul */

  /* la pilule Réserver : au centre, juste au-dessus de l'icône de défilement et de la barre du bas.
     Elle appartient à l'écran d'accueil : dès 40 px de défilement, elle part avec l'icône. */
  .r-heros-bas .centre {
    position: absolute; left: 50%; bottom: calc(var(--barre) + 56px); z-index: 3;
    width: auto; padding: 0; transform: translate(-50%, 0);
  }
  .r-heros-bas .centre, .defiler { transition: opacity .35s var(--ease), transform .45s var(--ease); }
  body.hors-accueil .r-heros-bas .centre { opacity: 0; transform: translate(-50%, 14px); pointer-events: none; }
  body.hors-accueil .defiler { opacity: 0; transform: translate(-50%, 14px); pointer-events: none; }
  .r-heros-bas .wp-block-button.bouton { width: auto; }
  .r-heros-bas .bouton .wp-block-button__link { height: 50px; padding: 0 26px 0 30px; gap: 14px; white-space: nowrap; }
  .r-heros-bas .bouton .wp-block-button__link::after { content: "→"; font-size: 16px; letter-spacing: 0; transition: transform .4s var(--ease); }
  .r-heros-bas .bouton .wp-block-button__link:active::after { transform: translateX(3px); }
  /* sur une photo claire : un voile sombre derrière la pilule seulement */
  .r-heros-bas .centre.voile .wp-block-button__link { background: rgba(0, 0, 0, .42); }

  /* l'icône de défilement : une souris dont le point glisse, et une flèche */
  .defiler { display: block; position: absolute; z-index: 3; left: 50%; bottom: calc(var(--barre) + 6px); transform: translate(-50%, 0); margin: 0; }
  .defiler a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 48px; height: 46px; border: 0; }
  .defiler a::before {
    content: ""; width: 18px; height: 28px; box-sizing: border-box; border: 1px solid rgba(232, 230, 221, .7); border-radius: 10px;
    background: radial-gradient(circle, var(--texte) 1.5px, transparent 2px) 50% 5px / 4px 4px no-repeat;
    animation: defiler-point 2.4s var(--ease) infinite;
  }
  .defiler a::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid rgba(232, 230, 221, .7); border-bottom: 1px solid rgba(232, 230, 221, .7); transform: rotate(45deg); }

  /* ----- Titres et textes ----- */
  .titre, .r-ouverture .titre { font-size: clamp(40px, 12.5vw, 60px); line-height: 1; }
  .r-ouverture .bas { padding-top: 48px; padding-bottom: 20px; }
  .chapeau { padding-top: 0; padding-bottom: 32px; }
  .chapeau p { font-size: 17px; }
  .texte p, .prose p, .formule > p { font-size: 17px; line-height: 1.7; }
  .accroche p, .discret { font-size: 15px; }
  .r-pied .c { padding: 28px var(--pad); gap: 2px; }
  .r-pied a, .r-pied p { min-height: 36px; display: flex; align-items: center; }
  .r-pied p > a { min-height: 44px; }

  /* ----- Grandes photos, avec de l'air ----- */
  .r-ouverture .ph, .apropos .ph, .r-formule .ph { aspect-ratio: 4 / 5; }
  .apropos .r-ap > .ph, .r-ouverture > .ph { margin: 0 0 28px; }

  /* ----- Portfolio : une photo par ligne, pleine largeur, entière ----- */
  .filtres { grid-template-columns: repeat(3, 1fr); }
  .filtre { min-height: 52px; padding: 0; font-size: 13px; }
  .filtre.actif::after { bottom: 10px; }
  .galerie { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 36px; padding: 28px 0 56px; }
  .galerie .g { border-bottom: 0; background: transparent; overflow: visible; }
  .galerie .g.haute, .galerie .g.large { grid-row: auto; grid-column-end: auto; }
  .galerie .g img { height: auto !important; aspect-ratio: auto; object-fit: contain; background: var(--panneau); }
  .galerie .g figcaption { position: static; opacity: 1; background: none; padding: 12px 14px 0; font-size: 13px; color: var(--texte-doux); }

  /* ----- Prestations : une carte par prestation ----- */
  .prestation { padding: 28px 0 44px; }
  .prestation .plein { background: transparent; border-left: 0; }
  .prestation .ph { order: 1; aspect-ratio: 4 / 5; }
  .prestation .formule-tete { order: 2; padding: 22px var(--pad) 0; gap: 6px; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 14px; }
  .prestation .formule-tete h2 { font-size: clamp(30px, 9vw, 40px); }
  .prestation .resume { order: 3; padding: 12px var(--pad) 0; gap: 16px; }
  .prestation .resume > p:first-child { font-size: 17px; color: var(--texte-doux); }
  .voir { min-height: 44px; }
  .prestation:hover .formule-tete h2 { transform: none; }

  /* ----- La fiche en plein écran ----- */
  .panneau-corps { padding: 12px var(--pad) 0; }
  .panneau-pied { margin: 0 calc(-1 * var(--pad)); padding: 14px var(--pad) calc(16px + env(safe-area-inset-bottom)); }
  .panneau-pied .panneau-total { gap: 4px 12px; padding-bottom: 12px; }
  .panneau-pied .panneau-total span { font-size: 13px; }
  .panneau-pied .panneau-total strong { font-size: 20px; }
  .panneau-pied .panneau-total strong.p-acompte { font-size: 22px; }
  .panneau-corps h2 { font-size: clamp(36px, 11vw, 48px); }
  .perso-ligne { flex-wrap: nowrap; padding: 12px 0; }
  .panneau-fiche td:first-child { white-space: nowrap; padding-right: 16px; }
  .panneau-fiche td:last-child { white-space: normal; text-align: right; }   /* une valeur longue passe à la ligne au lieu de déborder */
  .qte output { min-width: 88px; }

  /* ----- Réservation : un calendrier grand et facile à toucher ----- */
  .r-reserver .reservation { padding: 8px 0 40px; border-left: 0; }
  .recap { padding: 32px var(--pad) 36px; }
  .acompte-note { margin: 24px var(--pad) 0; }
  .recap-modifier { display: inline-flex; align-items: center; min-height: 44px; }

  .wp-block-button.bouton { width: 100%; }
  /* tous les boutons du téléphone : la même pilule, contour fin, fond translucide (sans flou : la photo reste nette) */
  .wp-block-button.bouton .wp-block-button__link, .formulaire .wpcf7-submit {
    height: 52px; border-radius: 999px; border: 1px solid rgba(232, 230, 221, .6);
    background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: none; backdrop-filter: none;
    color: var(--texte); font-size: 14px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
    transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease);
  }
  .wp-block-button.bouton .wp-block-button__link:active, .formulaire .wpcf7-submit:active { transform: scale(.97); background: rgba(232, 230, 221, .2); }
  .wp-block-button.bouton-verre .wp-block-button__link:hover, .wp-block-button.bouton .wp-block-button__link:hover { background: rgba(232, 230, 221, .18); }
  .entete .logo a, .lien a, .sommaire a { display: inline-flex; align-items: center; min-height: 44px; }
  .lien a { padding-bottom: 0; }

  /* ----- Formulaires ----- */
  .formulaire input, .formulaire select, .formulaire textarea { font-size: 16px; min-height: 48px; }
}

@keyframes menu-voile { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-lien { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes defiler-point { 0% { background-position: 50% 5px; } 55%, 100% { background-position: 50% 15px; } }

/* ==========================================================
   Accueil : les quatre univers et la présentation
   ========================================================== */
/* fond plein : les lignes de la grille du site ne doublent pas le contour des cadres */
.univers, .presentation { position: relative; z-index: 3; background: var(--fond); box-shadow: 0 0 0 100vmax var(--fond); clip-path: inset(0 -100vmax); }
.univers { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--pad) 0; }
.sur-titre { margin: 0 0 28px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--texte); }
/* chaque série de l'accueil : sa couverture en fond, très floutée et assombrie, sur toute la largeur ;
   par-dessus, une carte en verre (le style des pages À propos, Réserver et Portfolio) */
.cat-scene { position: relative; isolation: isolate; padding: clamp(28px, 5vw, 64px) 0; }
.cat-fond { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.cat-fond img { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(70px) saturate(1.15); }
.cat-fond::after {                       /* voile noir ; fondu vers le noir en haut et en bas : les sections s'enchaînent sans coupure */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--fond) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, var(--fond) 100%), rgba(0, 0, 0, .7);
}
.categorie {
  padding: clamp(28px, 5vw, 64px); margin: 0; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 50%), rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 60px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .categorie { background: rgba(14, 14, 14, .85); }
}
.etiquette-cat { margin: 0 0 22px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.titre-serif { margin: 0 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 9.6vw, 66px); line-height: 1.04; letter-spacing: -.005em; text-transform: none; }
.cat-texte, .presentation-texte { max-width: 34em; margin: 0 0 30px; color: var(--texte-doux); font-size: 16px; line-height: 1.75; }
.grille-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.grille-4 .g4 { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panneau); border-radius: 14px; }
.grille-4 .g4 img { width: 100%; height: 100%; object-fit: cover; }
.grille-4 .g4 > a { display: block; width: 100%; height: 100%; border: 0; }   /* la photo est un lien vers sa série : même taille (2.29.3) */
.grille-4.n1 { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
.cat-lien { margin: 26px 0 0; }
.cat-lien a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .22em; }
.cat-lien a::after { content: "→"; margin-left: 12px; letter-spacing: 0; transition: transform .4s var(--ease); }
.cat-lien a:hover::after { transform: translateX(4px); }
.presentation { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 10vw, 140px) var(--pad) clamp(56px, 8vw, 110px); }
.presentation .titre-serif { max-width: 13em; }
.presentation-bouton { margin: 0 0 30px; }
.presentation-bouton .wp-block-button.bouton { width: auto; }
.presentation-bouton .wp-block-button.bouton .wp-block-button__link {
  height: 52px; padding: 0 30px; border: 1px solid rgba(232, 230, 221, .6); border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 400; letter-spacing: .2em;
}
.mots-cles { margin: 0 0 clamp(40px, 6vw, 72px); font-size: 12px; letter-spacing: .22em; line-height: 1.9; }
.presentation-photo { margin: 0; max-width: 760px; }
.presentation-photo img { width: 100%; height: auto; }
.presentation { padding: clamp(28px, 5vw, 64px) var(--pad); isolation: isolate; }   /* 2.13.0 : une seule carte en verre, plus courte */
.presentation-carte {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4.5vw, 56px); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 50%), rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 60px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.presentation-carte.sans-portrait { grid-template-columns: minmax(0, 1fr); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .presentation-carte { background: rgba(14, 14, 14, .85); }
}
.presentation-portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: var(--panneau); }
.presentation-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.presentation-corps { display: flex; flex-wrap: wrap; align-items: center; column-gap: 34px; row-gap: 6px; }
.presentation-corps > * { flex: 0 0 100%; }
.presentation-corps > .presentation-bouton, .presentation-corps > .cat-lien { flex: 0 0 auto; margin: 0; }
.presentation .titre-serif { font-size: clamp(34px, 4.2vw, 56px); }
.presentation .presentation-texte { margin-bottom: 26px; }
.liens-apropos a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 28px; font-size: 12px; letter-spacing: .22em; }
@media (min-width: 901px) {
  .grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grille-4.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 50%; }   /* série de 2 ou 3 photos */
  .grille-4.n1 { grid-template-columns: minmax(0, 1fr); max-width: 25%; }
}

/* ---------- La rangée du portfolio (accueil) ----------
   Positions et tailles calculées par le script ; ici, seulement la scène. */
.defilant {
  position: relative; z-index: 3; overflow: hidden; background: var(--fond);
  padding: clamp(40px, 6vw, 88px) 0 0;
  touch-action: pan-y;                     /* le doigt peut toujours faire défiler la page */
  user-select: none; -webkit-user-select: none;
}
.defilant-piste { position: relative; height: 40vw; }
/* la section suivante commence juste après, avec le même souffle qu'au-dessus de la rangée */
.defilant + .univers { padding-top: clamp(40px, 6vw, 88px); }
.df {
  position: absolute; left: 50%; top: 50%; margin: 0; overflow: hidden; background: var(--panneau);
  transform-origin: 50% 50%; will-change: transform, opacity; backface-visibility: hidden;
  cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.df img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.df:focus-visible { outline: 1px solid var(--texte); outline-offset: 4px; }
/* sans script : une simple rangée que l'on fait glisser au doigt */
html:not(.js) .defilant-piste { display: flex; gap: 12px; height: auto; overflow-x: auto; padding: 0 var(--pad); }
html:not(.js) .df { position: static; flex: 0 0 30vw; aspect-ratio: 2 / 3; }

/* ---------- Pied de page : Retrouvez-moi ---------- */
.retrouvez .reseau a { font-size: 12px; letter-spacing: .2em; }

/* ==========================================================
   Barre de navigation du bas : téléphone seulement
   ========================================================== */
.barre-bas { display: none; }
@media (max-width: 900px) {
  :root { --barre: calc(62px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--barre); }               /* rien n'est caché derrière la barre */
  html.js body::after { bottom: var(--barre); }         /* le voile de transition laisse la barre visible */
  .barre-bas {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 4px env(safe-area-inset-bottom);
    background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(232, 230, 221, .14);
  }
  .barre-lien { margin: 0; }
  .barre-lien a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    height: 62px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
    color: rgba(232, 230, 221, .5); transition: color .4s var(--ease);
  }
  .barre-lien a::before {
    content: ""; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: var(--icone) center / contain no-repeat; mask: var(--icone) center / contain no-repeat;
  }
  .barre-lien a::after {
    content: ""; position: absolute; top: -1px; left: 50%; width: 24px; height: 1px; background: var(--texte);
    transform: translateX(-50%) scaleX(0); transition: transform .5s var(--ease);
  }
  .barre-lien.actif a { color: var(--texte); }
  .barre-lien.actif a::after { transform: translateX(-50%) scaleX(1); }
  .barre-accueil { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10.5 12 3.5l8.5 7V20.5h-5.5v-6h-6v6H3.5z'/%3E%3C/svg%3E"); }
  .barre-portfolio { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1'/%3E%3C/svg%3E"); }
  .barre-apropos { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.5M12 7.8v.1'/%3E%3C/svg%3E"); }
  .barre-reserver { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
  .barre-client { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c.6-4 3.7-6.5 7.5-6.5s6.9 2.5 7.5 6.5'/%3E%3C/svg%3E"); }

  /* sections de l'accueil */
  .categorie { padding: 30px 20px 22px; border-radius: 24px; -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
  .cat-scene { padding: 22px 0; }
  .grille-4 { gap: 10px; }
  .grille-4 .g4 { border-radius: 12px; }
  .cat-texte, .presentation-texte { font-size: 16px; }
  .presentation-bouton .wp-block-button.bouton { width: auto; }
  .presentation { padding: 22px var(--pad); }
  .presentation-carte { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 22px 20px 26px; border-radius: 24px; -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
  .presentation-portrait { width: min(68%, 300px); margin: 0 auto; border-radius: 18px; }
  .presentation .titre-serif { font-size: clamp(32px, 8.6vw, 44px); }
  .presentation-corps > .presentation-bouton, .presentation-corps > .cat-lien { flex-basis: 100%; }   /* les deux boutons l'un sous l'autre */
  .presentation-corps > .cat-lien { margin-top: 10px; }

  /* pied de page : Retrouvez-moi sur une ligne, en majuscules espacées */
  .r-pied .retrouvez { flex-direction: row; flex-wrap: wrap; column-gap: 26px; }
  .r-pied .retrouvez .etiquette { flex-basis: 100%; }
  .r-pied .c p:not(.etiquette):not(.logo) { font-size: 15px; min-height: 40px; }
  .r-pied .c { padding-top: 22px; padding-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  html.js body::after { display: none; }
  .defiler a::before { animation: none; background-position: 50% 9px; }
  .diapo.zoom img { transform: none; }
}

/* Cellules fusionnées sans contenu : un pseudo-élément de la rangée,
   placé dans la grille — jamais un bloc vide. */
.masque-2-3::after, .masque-5-6::after, .masque-6::after {
  content: ""; grid-row: 1; background: var(--fond); z-index: 3; border-left: 1px solid var(--ligne);
}
.masque-2-3::after { grid-column: 2 / 4; }
.masque-5-6::after { grid-column: 5 / 7; }
@media (max-width: 900px) { .masque-2-3::after, .masque-5-6::after { display: none; } }

/* ---------- Réservation : la place du bloc dans la grille ---------- */
.reservation { padding: 4vw var(--pad) 5vw; }
.reservation > * { max-width: 900px; }

.r-reserver { grid-template-rows: auto; }

/* « Réserver » dans le menu : un filet discret, l'appel à l'action se distingue sans crier */
.wp-block-navigation.nav .nav-reserver > .wp-block-navigation-item__content { border: 1px solid var(--ligne); padding: 8px 14px; opacity: 1; }
.wp-block-navigation.nav .nav-reserver > .wp-block-navigation-item__content:hover,
.wp-block-navigation.nav .nav-reserver.current-menu-item > .wp-block-navigation-item__content { border-color: var(--texte); }
.wp-block-navigation.nav .is-menu-open .nav-reserver > .wp-block-navigation-item__content { border: 0; padding: 0; }

/* ==========================================================
   Portfolio sur téléphone : une série par écran (inc/series.php)
   Ordinateur : la galerie filtrable reste telle quelle, ces écrans sont masqués.
   « Téléphone » couvre aussi les grands téléphones tenus en paysage (hauteur ≤ 520 px).
   ========================================================== */
:root { --nuit: var(--fond); }   /* le noir du site */
.series, .series-habillage { display: none; }
.menu-plein[hidden] { display: none; }

/* boutons ronds : 44 × 44 au doigt, quel que soit le dessin */
.rond {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 50%;
  background: none; color: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.traits { position: relative; display: block; width: 20px; height: 8px; }
.traits::before, .traits::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.2px; background: currentColor;
  transition: transform .3s var(--ease);
}
.traits::before { top: 0; } .traits::after { bottom: 0; }
.croix { position: relative; display: block; width: 16px; height: 16px; }
.croix::before, .croix::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 1.2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.croix::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 900px), (max-height: 520px) and (orientation: landscape) {
  html.vue-series {
    scroll-snap-type: y mandatory; background: var(--nuit);
    /* hauteur d'un écran de série : l'écran moins la barre du bas */
    --h: calc(100vh - var(--barre, 0px));
    --h: calc(100dvh - var(--barre, 0px));
    --bord: clamp(14px, 4.5vw, 28px);
    /* au-dessus de la photo : le logo vertical et les boutons du haut ne la touchent jamais */
    --reserve: calc(env(safe-area-inset-top) + 108px);   /* juste sous le logo vertical et le bouton ←→ */
    --sous: 98px;                           /* sous la photo : le nom de la série et le bouton « View shoot » */
    /* photo en 2:3 (le format des photos) : 87,5 % de la largeur, au plus 72 % de la hauteur,
       et toujours de quoi loger le titre au-dessus de la barre du bas */
    --ph: min(calc(85vw * 1.5), calc(var(--h) * .74), calc(var(--h) - var(--reserve) - var(--sous) - 8px));
    --pw: calc(var(--ph) * 2 / 3);
    --haut: max(var(--reserve), calc((var(--h) - var(--ph) - var(--sous)) / 2));   /* le bloc photo + titre est centré */
    --dessous: calc(var(--haut) + var(--ph));
  }
  html.vue-series body { background: var(--nuit); }
  .vue-series .entete,
  .vue-series .wp-block-post-content > :not(.series) { display: none; }
  .vue-series .wp-site-blocks > main, .vue-series .wp-block-post-content { margin: 0; padding-top: 0; }

  .series { display: block; position: relative; z-index: 3; background: var(--nuit); }
  .serie { position: relative; z-index: 1; height: var(--h); scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
  /* le fond : la photo affichée, en plein écran, très floutée et assombrie ; elle change en fondu avec la photo */
  .series-fond { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--nuit); }
  .series-fond img {
    position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover;
    filter: blur(70px) saturate(1.15); opacity: 0; transition: opacity 1s var(--ease);
  }
  .series-fond img.visible { opacity: 1; }
  .series-fond::after {                    /* le voile noir, et un dégradé vers le noir en haut et en bas pour la lisibilité */
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(180deg, var(--nuit) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 78%, var(--nuit) 100%),
      rgba(0, 0, 0, .7);
  }
  .vue-series .wp-site-blocks > footer { scroll-snap-align: end; position: relative; z-index: 3; background: var(--nuit); }
  .serie-cadre {
    position: absolute; left: 50%; top: var(--haut);
    width: var(--pw); height: var(--ph); transform: translateX(-50%);
    overflow: hidden; background: rgba(255, 255, 255, .035); -webkit-tap-highlight-color: transparent;
    border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  }
  .serie-cadre::after {                    /* le bord de verre, au-dessus de la photo : fin, plus clair en haut */
    content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  }
  .serie-cadre img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
    opacity: 0; transition: opacity 1.3s var(--ease); user-select: none; -webkit-user-drag: none;
  }
  .serie-cadre img.active { opacity: 1; }

  /* l'habillage fixe : logo, menu, ←→, titre, flèche ; il suit la série affichée */
  .series-habillage {
    display: block; position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: var(--h);
    pointer-events: none; transition: opacity .5s var(--ease), visibility .5s;
  }
  .series-habillage.loin { opacity: 0; visibility: hidden; }
  .series-habillage > * { pointer-events: auto; position: absolute; }
  .series-logo {                           /* 2.28.1 : le logo complet, comme l'en-tête des autres pages (34 px de haut, 16 px du bord, centré dans 72 px) */
    /* il finit 53 px sous le haut : toujours au-dessus de la photo (au moins 108 px) et à gauche du menu */
    top: calc(env(safe-area-inset-top) + 14px); left: calc(env(safe-area-inset-left) + 16px);
    display: flex; align-items: center; min-height: 44px; padding: 0; line-height: 0; -webkit-tap-highlight-color: transparent;
  }
  .series-logo .logo-entete { display: block; height: 34px; width: auto; }
  .series-habillage .menu-ouvrir { top: calc(env(safe-area-inset-top) + 6px); right: calc(env(safe-area-inset-right) + var(--bord) - 11px); }
  .series-suivante { top: calc(env(safe-area-inset-top) + 52px); right: calc(env(safe-area-inset-right) + var(--bord) - 11px); }
  .series-suivante .fleches { font-size: 10px; letter-spacing: -.05em; }
  .series-suivante, .series-bas {          /* les boutons ronds en verre de Réserver */
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: background-color .25s var(--ease), transform .2s var(--ease);
  }
  .series-suivante:active, .series-bas:active { transform: scale(.92); background: rgba(255, 255, 255, .18); }
  /* sous la photo, aligné sur son bord gauche ; la flèche ↓ sur la même ligne, à droite */
  .series-titre {
    left: calc((100vw - var(--pw)) / 2); top: calc(var(--dessous) + 12px);
    width: calc(var(--pw) - 54px);
  }
  .series-etiquette {                      /* « —— PORTRAIT » : le sur-titre de Réserver, seul nom de la série */
    display: flex; align-items: center; gap: 12px; margin: 0; padding-top: 8px; font-weight: 400;
    font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--texte-doux); white-space: nowrap;
  }
  .series-etiquette::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
  .series-voir {                           /* une pilule transparente : seulement son contour et le texte */
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
    height: 44px; margin-top: 10px; padding: 0 18px 0 22px; border-radius: 999px;
    color: var(--texte); font-size: 14px; font-weight: 300; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
    background: none; border: 1px solid rgba(232, 230, 221, .55);
    transition: transform .25s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  }
  .series-voir:hover, .series-voir:active { border-color: var(--texte); box-shadow: 0 0 14px rgba(232, 230, 221, .18); }   /* le contour s'éclaire, sans fond */
  .series-voir svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
  .series-voir:active { transform: scale(.97); }
  .series-voir:active svg { transform: translateX(3px); }
  .series-bas {
    right: calc((100vw - var(--pw)) / 2); top: calc(var(--dessous) + 6px);
    width: 44px; height: 44px; padding: 0; color: var(--texte);
    font-size: 15px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .series-bas span { display: inline-block; animation: invite-bas 2.6s var(--ease) infinite; }
}
@media (max-height: 520px) and (orientation: landscape) {
  html.vue-series { --reserve: calc(env(safe-area-inset-top) + 14px); }   /* le logo et les boutons sont sur les côtés */
  /* la photo est étroite : le nom prend la place qu'il lui faut, ↓ passe à droite de la photo */
  .series-titre { width: max-content; }
  .series-bas { right: calc((100vw - var(--pw)) / 2 - 58px); }
}
@keyframes invite-bas { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* menu plein écran (portfolio et pages des séries) */
/* le menu : panneau en verre flouté (« Liquid Glass ») qui flotte sous le bouton */
.verre, .serie-barre .rond, .retour-flottant {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); text-decoration: none;
}
.menu-plein { position: fixed; inset: 0; z-index: 150; }       /* calque transparent : un toucher dessus referme */
html.menu-ouvert .menu-ouvrir { visibility: hidden; }          /* le bouton du calque prend sa place */
.menu-plein .menu-fermer { position: fixed; z-index: 2; }
.menu-plein .menu-fermer:focus:not(:focus-visible) { outline: none; }   /* anneau de focus au clavier seulement */
.menu-plein.ouvert .menu-fermer .traits::before { transform: translateY(3.4px) rotate(45deg); }
.menu-plein.ouvert .menu-fermer .traits::after { transform: translateY(-3.4px) rotate(-45deg); }
.menu-verre {
  position: fixed; overflow-y: auto; overscroll-behavior: contain;
  width: min(330px, calc(100vw - 2 * max(14px, env(safe-area-inset-right)))); max-height: calc(100dvh - var(--haut, 64px) - var(--barre, 0px) - 14px);
  padding: 22px 24px 18px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%), rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  opacity: 0; transform: scale(.96); transform-origin: top right;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.menu-plein.ouvert .menu-verre { opacity: 1; transform: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu-verre, .verre, .serie-barre .rond, .retour-flottant { background: rgba(0, 0, 0, .75); }
}
.menu-verre, .menu-verre a { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.menu-sur-titre { margin: 0 0 6px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.menu-plein ul { list-style: none; margin: 0; padding: 0; }
/* en haut, les pages en grand ; la page affichée : plus lumineuse, un petit trait à gauche */
.menu-grand a { position: relative; display: block; padding: 3px 0; font: 500 clamp(26px, 7.6vw, 34px)/1.2 var(--serif); text-decoration: none; color: rgba(255, 255, 255, .78) !important; transition: color .25s var(--ease); }
.menu-grand a:hover, .menu-grand a.ici { color: #fff !important; }
.menu-grand a.ici::before { content: ""; position: absolute; left: -14px; top: 50%; width: 2px; height: .9em; border-radius: 2px; background: #fff; transform: translateY(-50%); }
/* en bas, les séries en petites capitales espacées */
.menu-bas { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.menu-bas .menu-sur-titre { margin-bottom: 0; }
.menu-petit { display: flex; flex-wrap: wrap; gap: 0 18px; }
.menu-petit a { display: inline-flex; align-items: center; min-height: 44px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .85) !important; }

/* ==========================================================
   Page d'une série : /portfolio/{série}/ — maçonnerie bord à bord
   ========================================================== */
body.page-serie, html:has(body.page-serie) { background: var(--nuit); }
.page-serie .entete, .page-serie .wp-site-blocks::before { display: none; }
.page-serie .wp-site-blocks > main, .page-serie .wp-block-post-content { margin: 0; padding-top: 0; }
.page-serie .wp-site-blocks > footer { position: relative; z-index: 3; background: var(--nuit); }
.serie-page { position: relative; z-index: 3; background: var(--nuit); min-height: 100vh; }
.serie-barre {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 12px) 8px calc(env(safe-area-inset-left) + 12px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 70%), rgba(10, 10, 10, .5);   /* la barre de prix de Réserver */
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.serie-barre .rond, .retour-flottant {            /* ✕, menu et ‹ : les boutons ronds en verre de Réserver */
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .25s var(--ease), transform .2s var(--ease);
}
.serie-barre .rond:active, .retour-flottant:active { transform: scale(.92); background: rgba(255, 255, 255, .18); }
.serie-barre h1 {
  margin: 0; text-align: center; font: 500 clamp(19px, 5.4vw, 26px)/1.1 var(--serif); letter-spacing: .01em;
  color: #fff; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.maconnerie { display: flex; max-width: 1120px; margin: 0 auto; padding-top: calc(env(safe-area-inset-top) + 60px); }
.m-col { flex: 1 1 0; min-width: 0; }
.m { position: relative; margin: 0; overflow: hidden; background: rgba(255, 255, 255, .04); cursor: zoom-in; border-radius: 6px; }   /* coins légèrement arrondis, espacement inchangé */
.m img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.js .m img { opacity: 0; transition: opacity .25s var(--ease); }   /* 2.47.0 : fondu court (0,9 s avant) */
html.js .m img.deja { transition: none; }   /* déjà chargée : tout de suite */
html.js .m img.vue { opacity: 1; }
.retour-flottant {
  position: fixed; z-index: 30; left: calc(env(safe-area-inset-left) + 16px);
  bottom: calc(var(--barre, env(safe-area-inset-bottom)) + 16px);
  width: 48px; height: 48px; font-size: 26px; line-height: 1;
}
.retour-flottant span { margin: -3px 2px 0 0; font-weight: 300; }

@media (prefers-reduced-motion: reduce) {
  .serie-cadre img, .series-habillage, .menu-verre, .traits::before, .traits::after, html.js .m img, .series-fond img { transition: none; }
  .series-bas span { animation: none; }
}

/* ==========================================================
   Logo (inc/logo.php) : logo complet en haut (sauf Portfolio) et dans le pied
   ========================================================== */
.a-logo a { display: inline-flex; align-items: center; min-height: 44px; line-height: 0; }
.a-logo .logo-entete { display: block; height: 38px; width: auto; }
.r-pied .c:has(> .a-logo) { align-items: center; text-align: center; }
.r-pied .a-logo { margin-bottom: 10px; }
.r-pied .logo-pied { display: block; width: 150px; height: auto; }
@media (max-width: 900px) {
  .entete .a-logo .logo-entete { height: 34px; }
}

/* ==========================================================
   Liquid Glass : quelques touches choisies, pas partout.
   Le verre est réservé à ce qui flotte au-dessus d'une photo ou de la page :
   menu ouvert, bouton de l'écran d'accueil, barre du bas (téléphone),
   commandes de la visionneuse, fiche des prestations (son pied collant),
   et la page Réserver (assets/reservation.css).
   Restent simples : les photos, les fonds de section, les titres et les textes,
   les galeries, les séparateurs, les liens et les boutons courants.
   ========================================================== */

:root {
  --verre-fond: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04) 55%), rgba(255, 255, 255, .06);
  --verre-sombre: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 50%), rgba(12, 12, 12, .72);
  --verre-bord: rgba(255, 255, 255, .2);
  --verre-reflet: inset 0 1px 0 rgba(255, 255, 255, .2);
  --verre-flou: blur(22px) saturate(160%);
}
@media (max-width: 900px) {
  :root { --verre-flou: blur(14px) saturate(150%); }   /* téléphone : un flou plus léger, le défilement reste fluide */
}

/* le bouton de l'écran d'accueil, posé sur la photo */
.wp-block-button.bouton-verre .wp-block-button__link {
  position: relative; overflow: hidden;
  background: var(--verre-fond); border: 1px solid rgba(255, 255, 255, .34); box-shadow: var(--verre-reflet);   /* un bord un peu plus net : la pilule reste visible sur une photo claire */
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
}
.wp-block-button.bouton-verre .wp-block-button__link::before {            /* un reflet passe au survol, une fois */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .9s var(--ease);
}
.wp-block-button.bouton-verre .wp-block-button__link:hover { background: var(--verre-fond); border-color: rgba(255, 255, 255, .5); }
.wp-block-button.bouton-verre .wp-block-button__link:hover::before { transform: translateX(100%); }
.r-heros-bas .centre.voile .bouton-verre .wp-block-button__link { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 55%), rgba(0, 0, 0, .4); }

/* la barre du bas (téléphone) : un verre sombre, un fil de lumière en haut */
@media (max-width: 900px) {
  .barre-bas {
    background: var(--verre-sombre); border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
  }
}

/* la visionneuse : la photo reste nue ; seules les commandes sont en verre */
.visionneuse .v-fermer {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--verre-fond); border: 1px solid var(--verre-bord); box-shadow: var(--verre-reflet);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
  transition: border-color .3s var(--ease), transform .2s var(--ease);
}
.visionneuse .v-prec, .visionneuse .v-suiv {
  width: 52px; height: 52px; min-width: 0; padding: 0; border-radius: 50%; font-size: 20px; opacity: .75;
  background: var(--verre-fond); border: 1px solid var(--verre-bord); box-shadow: var(--verre-reflet);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
}
.visionneuse .v-prec { left: 20px; } .visionneuse .v-suiv { right: 20px; }
.visionneuse .v-fermer:hover, .visionneuse .v-prec:hover, .visionneuse .v-suiv:hover { border-color: rgba(255, 255, 255, .4); opacity: 1; }
.visionneuse .v-fermer:active, .visionneuse .v-prec:active, .visionneuse .v-suiv:active { transform: translateY(-50%) scale(.95); }
.visionneuse .v-fermer:active { transform: scale(.95); }

/* la fiche des prestations : sur ordinateur, un panneau de verre sombre au-dessus de la page ;
   sur téléphone, elle reste pleine (pas de grande surface floutée) ; son pied collant est en verre partout */
@media (min-width: 901px) {
  .panneau-voile { background: rgba(0, 0, 0, .5); }
  .panneau-corps {
    background: var(--verre-sombre); border-left: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, .06), -30px 0 80px rgba(0, 0, 0, .4);
    -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
  }
}
.panneau-pied {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 60%), rgba(11, 11, 11, .9);
  border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
}

/* sans flou possible, ou si le visiteur préfère moins de transparence : des surfaces pleines */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wp-block-button.bouton-verre .wp-block-button__link, .visionneuse .v-fermer, .visionneuse .v-prec, .visionneuse .v-suiv { background: rgba(30, 30, 30, .9); }
  .barre-bas, .panneau-pied, .panneau-corps { background: #0b0b0b; }
}
@media (prefers-reduced-transparency: reduce) {
  .wp-block-button.bouton-verre .wp-block-button__link, .visionneuse .v-fermer, .visionneuse .v-prec, .visionneuse .v-suiv,
  .barre-bas, .panneau-pied, .panneau-corps, .menu-verre, .verre, .retour-flottant {
    background: #111; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* la visionneuse, sur la page d'une série : la grille reste devinée derrière, floutée */
.page-serie .visionneuse {
  background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: blur(26px) saturate(130%); backdrop-filter: blur(26px) saturate(130%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .page-serie .visionneuse { background: var(--fond); }
}

/* ==========================================================
   Écran d'accueil, ordinateur : deux pilules en verre en bas à droite de la mosaïque,
   la case de gauche reste vide. Le téléphone garde sa pilule « Réserver » seule.
   ========================================================== */
.bouton-portfolio.wp-block-button { display: none; }
@media (min-width: 901px) {
  /* le texte de gauche disparaît ; le titre reste pour Google et les lecteurs d'écran */
  .r-heros-bas .accroche {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .r-heros-bas .centre {
    position: absolute; grid-column: 1 / -1; right: var(--pad); bottom: clamp(20px, 1.8vw, 30px);
    display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 12px; padding: 0;
  }
  .r-heros-bas .wp-block-button.bouton, .bouton-portfolio.wp-block-button { display: inline-block; width: auto; }
  .r-heros-bas .bouton-verre .wp-block-button__link {
    gap: 12px; height: 54px; padding: 0 27px; border-radius: 999px; white-space: nowrap;
    color: #fff; font-family: var(--police); font-size: 17px; font-weight: 400; letter-spacing: .01em; text-transform: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 20px rgba(0, 0, 0, .22);
    -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  }
  .r-heros-bas .bouton-verre .wp-block-button__link::after { content: "→"; font-size: 17px; letter-spacing: 0; transition: transform .25s var(--ease); }
  .r-heros-bas .bouton-verre .wp-block-button__link:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .02) 55%), rgba(255, 255, 255, .28);
    border-color: rgba(255, 255, 255, .6); transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 30px rgba(0, 0, 0, .35);
  }
  .r-heros-bas .bouton-verre .wp-block-button__link:hover::after { transform: translateX(3px); }
  /* « Voir le portfolio » : un verre plus discret, une petite grille devant le texte */
  .r-heros-bas .bouton-portfolio .wp-block-button__link {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 20px rgba(0, 0, 0, .22);
  }
  .r-heros-bas .bouton-portfolio .wp-block-button__link::after {
    content: ""; order: -1; width: 17px; height: 17px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Crect x='1.5' y='1.5' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='1.5' width='5' height='5' rx='1'/%3E%3Crect x='1.5' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Crect x='1.5' y='1.5' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='1.5' width='5' height='5' rx='1'/%3E%3Crect x='1.5' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .r-heros-bas .bouton-portfolio .wp-block-button__link:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .38);
  }
  .r-heros-bas .bouton-portfolio .wp-block-button__link:hover::after { transform: none; }

  /* « Réserver » dans le menu : la même pilule en verre, en plus petit */
  .wp-block-navigation.nav .nav-reserver > .wp-block-navigation-item__content {
    display: inline-flex; align-items: center; height: 44px; padding: 0 21px; border-radius: 999px;
    color: #fff; font-size: 16px; letter-spacing: .01em; text-transform: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 4px 14px rgba(0, 0, 0, .2);
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  }
  .wp-block-navigation.nav .nav-reserver > .wp-block-navigation-item__content:hover,
  .wp-block-navigation.nav .nav-reserver.current-menu-item > .wp-block-navigation-item__content {
    background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .02) 55%), rgba(255, 255, 255, .26);
    border-color: rgba(255, 255, 255, .6); opacity: 1;
  }
  .wp-block-navigation.nav .nav-reserver > .wp-block-navigation-item__content:hover {
    transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 24px rgba(0, 0, 0, .3);
  }
}
@media (min-width: 901px) {
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .r-heros-bas .bouton-verre .wp-block-button__link, .r-heros-bas .bouton-portfolio .wp-block-button__link,
    .wp-block-navigation.nav .nav-reserver > .wp-block-navigation-item__content { background: rgba(20, 20, 20, .75); }
  }
}

/* Espace client sans l'extension « Galeries clients » : un message simple */
.espace-attente { width: min(1320px, 100%); margin: 0 auto; padding: clamp(48px, 7vw, 110px) var(--pad); }
.espace-attente p:last-child { max-width: 30em; margin-top: 24px; color: var(--texte-doux); font-size: 18px; line-height: 1.6; }

/* Barre d'administration WordPress (visible seulement quand vous êtes connecté) : elle reste en haut,
   et les éléments fixés en haut du Portfolio téléphone et des pages de série se placent dessous.
   Pour un visiteur, la variable n'existe pas : rien ne change. */
@media (max-width: 600px) {
  body.admin-bar #wpadminbar { position: fixed; }
}
@media (max-width: 900px), (max-height: 520px) and (orientation: landscape) {
  html.vue-series {
    --h: calc(100vh - var(--barre, 0px) - var(--wp-admin--admin-bar--height, 0px));
    --h: calc(100dvh - var(--barre, 0px) - var(--wp-admin--admin-bar--height, 0px));
  }
  body.admin-bar .series-habillage { top: var(--wp-admin--admin-bar--height, 0px); }
}
body.admin-bar .serie-barre { top: var(--wp-admin--admin-bar--height, 0px); }

/* Pied de page (toutes les pages) : « RÉSERVER » en pilule de verre, comme les autres boutons du site */
.r-pied .wp-block-button.bouton { width: auto; }
.r-pied .wp-block-button.bouton .wp-block-button__link {
  height: 52px; padding: 0 30px; border-radius: 999px; gap: 10px;
  color: #fff; font: 400 14px/1 var(--police); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 20px rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.r-pied .wp-block-button.bouton .wp-block-button__link:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .02) 55%), rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .6); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 30px rgba(0, 0, 0, .35);
}
@media (max-width: 900px) { .r-pied .wp-block-button.bouton { width: 100%; } .r-pied .wp-block-button.bouton .wp-block-button__link { width: 100%; } }

/* ==========================================================
   Portfolio sur téléphone, version immersive (2.26.0) — l'ancienne version : livraison/archives/
   photo plus grande, zoom lent, barre de progression en segments, nom en serif, points des séries,
   « Faites défiler », transition entre séries, dernier écran. L'ordinateur ne change pas.
   ========================================================== */
@media (max-width: 900px), (max-height: 520px) and (orientation: landscape) {
  html.vue-series {
    --sous: 110px;                          /* sous la photo : « — SÉRIE », le nom (2 lignes au plus) et « View shoot » (2.26.1 : plus de barre) */
    /* cadre toujours vertical (2.26.1) : 88 % de la largeur, en 2:3 si la place le permet, jamais moins haut que le 4:5 ;
       sur un petit écran la largeur se réduit pour garder le 4:5 sans rien cacher */
    --dispo: calc(var(--h) - var(--reserve) - var(--sous) - 8px);
    --pw: min(88vw, calc(var(--dispo) * .8));
    --ph: max(calc(var(--pw) * 1.25), min(calc(var(--pw) * 1.5), calc(var(--h) * .76), var(--dispo)));
  }
  .serie-cadre { border-radius: 20px; transition: transform .8s var(--ease), filter .8s var(--ease), opacity .8s var(--ease); }
  /* la série qui s'en va : un peu plus petite et plus sombre ; la nouvelle arrive en fondu */
  .serie:not(.en-vue) .serie-cadre { transform: translateX(-50%) scale(.93); filter: brightness(.45); opacity: .7; }
  /* le zoom lent de la photo affichée (1,00 → 1,04), le temps de son tour */
  .serie-cadre img { transform: scale(1.04); transform-origin: 50% 15%; object-position: 50% 15%; transition: opacity 1.2s var(--ease); }   /* sans « will-change » : le navigateur redessine la photo nette à sa taille finale (2.29.1) */   /* cadré vers le haut : les têtes ne sont jamais coupées */
  .serie-cadre img.active { animation: ken-burns 5.2s linear forwards; }
  @keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.04); } }

  /* la barre de progression : 2 px, un segment par photo, sur la largeur de la photo */
  .series-progres {
    left: calc((100vw - var(--pw)) / 2); top: calc(var(--dessous) + 12px); width: var(--pw); height: 2px;
    display: flex; gap: 4px; pointer-events: none; transition: opacity .4s var(--ease);
    opacity: 0; visibility: hidden;          /* 2.26.1 : plus aucun indicateur ; la barre reste la minuterie invisible du fondu automatique */
  }
  .series-progres > span { flex: 1; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(232, 230, 221, .22); }
  .series-progres i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--texte); }
  .series-progres .plein i { width: 100%; }
  .series-progres .encours i { animation: remplir 4s linear forwards; }
  .series-progres.pause .encours i { animation-play-state: paused; }
  @keyframes remplir { to { width: 100%; } }

  /* « — SÉRIE », puis le nom en serif et « View shoot » sur la même ligne */
  .series-titre { left: calc((100vw - var(--pw)) / 2); top: calc(var(--dessous) + 16px); width: var(--pw); transition: opacity .4s var(--ease); }
  .series-sur {
    display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
    font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--texte-doux);
  }
  .series-sur::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }
  .series-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }   /* trop étroit : « View shoot » passe dessous */
  .series-etiquette {
    display: block; flex: 1 1 auto; min-width: min-content; padding: 0; margin: 0; white-space: normal;
    font: 400 clamp(28px, 8vw, 36px)/1.04 var(--serif); letter-spacing: 0; text-transform: none; color: var(--texte);
  }
  .series-etiquette::before { content: none; }
  .series-etiquette span { display: inline-block; }
  .series-etiquette .mot { animation: mot-monte .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
  @keyframes mot-monte { from { opacity: 0; transform: translateY(14px); } }
  .series-voir { flex: none; margin-top: 0; height: 44px; padding: 0 14px 0 18px; gap: 12px; font-size: 13.5px; }
  .series-bas { display: none; }

  /* les points des séries, sur le bord droit : celui de la série affichée est plus long et crème */
  .series-points {
    right: calc(env(safe-area-inset-right) + 2px); top: calc(var(--haut) + var(--ph) / 2); transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center; transition: opacity .4s var(--ease);
  }
  .series-points button {
    display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .series-points button::before {
    content: ""; width: 4px; height: 4px; border-radius: 4px; background: rgba(232, 230, 221, .35);
    transition: height .4s var(--ease), background-color .4s var(--ease);
  }
  .series-points button.actif::before { height: 16px; background: var(--texte); }

  /* « Faites défiler » : premier écran seulement, en bas de la photo ; il s'efface au premier défilement */
  .series-indice {
    left: 50%; top: calc(var(--dessous) - 58px); transform: translateX(-50%); margin: 0;
    display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
    font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
    text-shadow: 0 1px 10px rgba(0, 0, 0, .6); transition: opacity .5s var(--ease), visibility .5s;
  }
  .series-indice span { display: block; width: 1px; height: 22px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); transform-origin: top; animation: ligne-descend 1.8s var(--ease) infinite; }
  .series-indice.cache { opacity: 0; visibility: hidden; }
  @keyframes ligne-descend { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

  /* le dernier écran : l'habillage des séries s'efface (le logo et le menu restent) */
  .series-habillage.fin .series-titre, .series-habillage.fin .series-progres,
  .series-habillage.fin .series-indice, .series-habillage.fin .series-suivante { opacity: 0; visibility: hidden; }
  .serie-fin { display: flex; align-items: center; justify-content: center; text-align: center; isolation: isolate; }
  .serie-fin-fond { position: absolute; inset: -10%; z-index: -2; width: 120%; height: 120%; object-fit: cover; filter: blur(36px) brightness(.62) saturate(1.15); }
  .serie-fin::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)); }
  .serie-fin-texte { width: min(86vw, 420px); padding-top: calc(env(safe-area-inset-top) + 40px); }
  .serie-fin h2 { margin: 0; font: 400 clamp(30px, 8.6vw, 40px)/1.1 var(--serif); color: var(--texte); text-wrap: balance; }
  .serie-fin-boutons { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
  .serie-fin-pilule {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
    color: #fff; font: 400 15px/1 var(--police); text-decoration: none; white-space: nowrap;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 20px rgba(0, 0, 0, .22);
    -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  }
  .serie-fin-pilule svg { width: 18px; height: 18px; flex: none; }
  .serie-fin-pilule.discret { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .24); }
  .serie-fin-pilule:active { transform: scale(.97); }
}
.series-points, .series-progres, .series-indice { display: none; }
@media (max-width: 900px), (max-height: 520px) and (orientation: landscape) {
  .series-habillage .series-points, .series-habillage .series-progres { display: flex; }
  .series-habillage .series-indice { display: flex; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .serie-cadre img.active, .series-etiquette .mot, .series-indice span { animation: none; }
  .serie-cadre, .serie-cadre img { transition: none; }
  .serie-cadre img { transform: none; }
}

/* ==========================================================
   2.46.0 — photos en WebP et diaporama sans écran noir
   ========================================================== */
/* le <picture> (WebP d'abord, JPEG en secours) ne change rien à la mise en page : la photo reste à sa place */
picture.tala-webp { display: contents; }
/* diaporama de l'accueil : la miniature floutée (quelques centaines d'octets, dans la page) s'affiche tout de suite
   sous la photo, qui la recouvre dès qu'elle est chargée */
.diapo::before { content: ""; position: absolute; inset: -24px; background: var(--flou, none) var(--pos, 50% 30%) / cover no-repeat; filter: blur(16px); }
.diapo img { position: relative; z-index: 1; }

/* 2.47.0 : jamais de case vide — une miniature floutée (24 px, écrite dans la page) à la place exacte de la photo */
.m::before, .serie-cadre::before, .pf-serie-photo::before {
  content: ""; position: absolute; inset: -24px; pointer-events: none;
  background: var(--flou, none) 50% 50% / cover no-repeat; filter: blur(16px);
}
.m img, .pf-serie-photo img { position: relative; }

/* 2.48.0 : les autres pages — sections des séries et mosaïque de l'Accueil, Réserver, À propos, Contact :
   la miniature floutée à la place exacte de la photo, puis la photo en fondu court (assets/app.js) */
.a-flou::before, .resa-fond::before, .ap-photo::before {
  content: ""; position: absolute; inset: -24px; pointer-events: none;
  background: var(--flou, none) 50% 50% / cover no-repeat; filter: blur(16px);
}
.resa-fond::before { inset: 0; }
.ap-photo::before { background-position: 50% 18%; }   /* même cadrage que la photo */
.grille-4 .g4.a-flou, .resa-carte-photo.a-flou { position: relative; }
.a-flou img, .resa-fond img, .ap-photo img { position: relative; }
html.js .a-flou img:not(.af-vue) { opacity: 0; }
html.js .a-flou img.af-vue:not(.af-deja) { animation: tala-fondu .25s var(--ease); }
@keyframes tala-fondu { from { opacity: 0; } }
@media (max-width: 900px) {
  .ph.a-flou::before { display: none; }       /* la mosaïque n'est montrée que sur ordinateur */
}
