/* =====================================================================
   Cabinet Monceau — feuille de style
   Palette : porcelaine / encre verte / vert Monceau / laiton
   Polices : Fraunces (titres, en local) · Instrument Sans (texte, en local)
   ===================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("polices/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("polices/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("polices/InstrumentSans-Italic.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --porcelaine: #F6F5F1;
  --blanc: #FFFFFF;
  --encre: #101815;
  --encre-2: #2A3530;
  --gris: #6B736E;
  --gris-clair: #D9DBD5;
  --vert: #1E4A3C;
  --vert-sombre: #0F2A22;
  --vert-clair: #E6ECE5;
  --laiton: #B9975B;
  --laiton-clair: #E8DCC2;

  --titre: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --texte: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --conteneur: 1200px;
  --marge: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 9rem);
  --rayon: 22px;
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --duree: .9s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--porcelaine);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 300; line-height: 1.05; letter-spacing: -.01em; font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); font-weight: 400; font-variation-settings: "opsz" 40, "SOFT" 50, "WONK" 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 4px; border-radius: 4px; }

.conteneur { width: min(100% - 2 * var(--marge), var(--conteneur)); margin-inline: auto; }
.sur-titre {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--laiton); font-weight: 600; margin-bottom: 1.1rem;
}
.entete { max-width: 46rem; margin: 0 auto var(--marge); text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.entete-gauche { text-align: left; margin-inline: 0; }
.entete-texte { margin-top: 1.25rem; font-size: 1.15rem; color: var(--gris); line-height: 1.55; }
.entete-claire h2 { color: var(--porcelaine); }
.entete-claire .entete-texte { color: rgba(246,245,241,.7); }

.saut { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .6rem 1rem; z-index: 100; }
.saut:focus { left: 1rem; top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  letter-spacing: .005em; line-height: 1; white-space: nowrap;
  transition: transform .5s var(--courbe), background-color .3s, color .3s, box-shadow .5s var(--courbe);
  will-change: transform;
}
.btn-primaire { background: var(--encre); color: var(--porcelaine); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 30px -14px rgba(16,24,21,.55); }
.btn-primaire:hover { background: var(--vert); box-shadow: 0 18px 36px -16px rgba(30,74,60,.6); }
.btn-fantome { color: var(--porcelaine); background: rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.3); }
.btn-fantome:hover { background: rgba(255,255,255,.26); }
.btn-large { padding: 1.15rem 2rem; font-size: 1.05rem; width: 100%; }
.lien { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; color: var(--vert); margin-top: 1.5rem; }
.lien::after { content: ""; width: 1.6rem; height: 1px; background: currentColor; transition: width .4s var(--courbe); }
.lien:hover::after { width: 2.6rem; }
.lien-simple { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barre de navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.1rem 0;
  transition: padding .5s var(--courbe), background-color .5s, box-shadow .5s;
  color: var(--porcelaine);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(246,245,241,.78);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(16,24,21,.07);
  transition: opacity .5s;
}
.nav--solide { padding: .7rem 0; color: var(--encre); }
.nav--solide::before { opacity: 1; }
.nav-int { width: min(100% - 2 * var(--marge), var(--conteneur)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.marque { display: grid; grid-template-columns: auto auto; column-gap: .6rem; align-items: baseline; line-height: 1; }
.marque-point { width: 9px; height: 9px; border-radius: 50%; background: var(--laiton); align-self: center; }
.marque-nom { font-family: var(--titre); font-size: 1.55rem; font-weight: 400; letter-spacing: -.01em; font-variation-settings: "opsz" 72, "SOFT" 60; }
.marque-sous { grid-column: 2; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .72; margin-top: .3rem; }
.marque-sous sup { font-size: .6em; }
.nav-liens { display: flex; align-items: center; gap: 1.9rem; font-size: .95rem; font-weight: 500; }
.nav-liens > a:not(.btn) { position: relative; padding: .3rem 0; opacity: .88; transition: opacity .3s; }
.nav-liens > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--courbe); }
.nav-liens > a:not(.btn):hover { opacity: 1; }
.nav-liens > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-tel { font-variant-numeric: tabular-nums; }
.btn-nav { padding: .7rem 1.2rem; font-size: .9rem; }
.nav:not(.nav--solide) .btn-nav { background: var(--porcelaine); color: var(--encre); }
.nav:not(.nav--solide) .btn-nav:hover { background: #fff; }
.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; top: 50%; transition: transform .45s var(--courbe); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Ouverture ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; color: var(--porcelaine); isolation: isolate; overflow: clip; }
.hero-image { position: absolute; inset: 0; z-index: -1; background: #2b3a34; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16,24,21,.55) 0%, rgba(16,24,21,.28) 38%, rgba(16,24,21,0) 68%),
    linear-gradient(180deg, rgba(16,24,21,.38) 0%, rgba(16,24,21,0) 30%),
    linear-gradient(0deg, rgba(16,24,21,.9) 0%, rgba(16,24,21,.5) 36%, rgba(16,24,21,0) 70%);
}
.hero-contenu { width: min(100% - 2 * var(--marge), var(--conteneur)); margin-inline: auto; padding-top: 9rem; max-width: 100%; }
.hero h1 { max-width: 12ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(16,24,21,.35); }
.hero .sur-titre { color: var(--laiton-clair); text-shadow: 0 1px 12px rgba(16,24,21,.6); }
.hero-texte { max-width: 34rem; margin-top: 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: rgba(246,245,241,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-bandeau {
  width: min(100% - 2 * var(--marge), var(--conteneur)); margin: 3.2rem auto 0;
  display: flex; flex-wrap: wrap; gap: .5rem 2.2rem; padding: 1.3rem 0 1.6rem;
  border-top: 1px solid rgba(246,245,241,.22);
  font-size: .86rem; letter-spacing: .02em; color: rgba(246,245,241,.72);
}
.hero-bandeau li { display: flex; align-items: center; gap: .6rem; }
.hero-bandeau li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--laiton); }

/* Séquence d'ouverture : uniquement quand la page sait qu'elle est visible. */
html.reveal-actif .hero-image img { animation: hero-zoom 2.6s var(--courbe) both; }
html.reveal-actif .hero-ligne { animation: hero-monte 1.3s var(--courbe) both; animation-delay: calc(.35s + var(--i, 0) * .14s); }
@keyframes hero-zoom { from { transform: scale(1.08); opacity: .6; } to { transform: scale(1); opacity: 1; } }
@keyframes hero-monte { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Manifeste (texte qui s'allume au défilement) ---------- */
.manifeste { padding: var(--section) 0; }
.manifeste-texte {
  width: min(100% - 2 * var(--marge), 58rem); margin-inline: auto;
  font-family: var(--titre); font-weight: 300; font-variation-settings: "opsz" 96, "SOFT" 60;
  font-size: clamp(1.75rem, 3.8vw, 3.2rem); line-height: 1.22; letter-spacing: -.005em;
  text-align: center; text-wrap: balance;
}
.manifeste-texte .mot { display: inline; color: var(--encre); opacity: var(--o, 1); transition: opacity .25s linear; }

/* ---------- Rideau d'ouverture (une fois par session, 2,3 s) ---------- */
.rideau { display: none; position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; background: var(--porcelaine); }
html.intro .rideau { display: block; animation: rideau-leve .8s cubic-bezier(.75, 0, .2, 1) 1.6s both; }
.rideau-disque { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--vert); transform: scale(0); animation: rideau-disque .9s cubic-bezier(.6, 0, .2, 1) .35s both; }
.rideau-int { position: absolute; inset: 0; display: grid; place-items: center; }
.rideau-int > * { grid-area: 1 / 1; }
.rideau-point { width: 12px; height: 12px; border-radius: 50%; background: var(--laiton); transform: scale(0); animation: rideau-point .5s cubic-bezier(.2, .9, .3, 1.4) both, rideau-point-sort .3s ease .45s forwards; }
.rideau-nom { font-family: var(--titre); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 60; font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: 1; letter-spacing: .12em; color: var(--porcelaine); opacity: 0; transform: translateY(24px); animation: rideau-nom .8s var(--courbe) .8s both; }
.rideau-trait { width: 120px; height: 1px; background: var(--laiton); transform: translateY(4.6em) scaleX(0); animation: rideau-trait .6s var(--courbe) 1.05s both; }
.rideau-sous { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--laiton-clair); transform: translateY(5.4rem); opacity: 0; animation: rideau-sous .5s var(--courbe) 1.2s both; }
.rideau-sous sup { font-size: .6em; }
@keyframes rideau-point { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rideau-point-sort { to { opacity: 0; } }
@keyframes rideau-disque { to { transform: scale(90); } }
@keyframes rideau-nom { from { opacity: 0; transform: translateY(24px); letter-spacing: .3em; } to { opacity: 1; transform: none; letter-spacing: .06em; } }
@keyframes rideau-trait { from { transform: translateY(4.6em) scaleX(0); } to { transform: translateY(4.6em) scaleX(1); } }
@keyframes rideau-sous { from { opacity: 0; transform: translateY(5.8rem); } to { opacity: 1; transform: translateY(5.4rem); } }
@keyframes rideau-leve { to { transform: translateY(-100%); } }
html.intro.reveal-actif .hero-image img { animation-delay: 1.7s; }
html.intro.reveal-actif .hero-ligne { animation-delay: calc(1.95s + var(--i, 0) * .14s); }

/* ---------- Apparitions au défilement (règle maison) ---------- */
html.reveal-actif [data-reveal]:not([data-vu]) { opacity: 0; transform: translateY(26px); }
[data-reveal] { transition: opacity var(--duree) var(--courbe), transform var(--duree) var(--courbe); transition-delay: calc(var(--i, 0) * .12s); }

/* ---------- Soins ---------- */
.soins { padding: var(--section) 0; }
.soins-grille { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.soin {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  background: var(--blanc); border-radius: var(--rayon); padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: 0 1px 0 rgba(16,24,21,.04), 0 30px 60px -40px rgba(16,24,21,.25);
}
.soin:nth-child(even) .soin-media { order: 2; }
.soin-media { border-radius: calc(var(--rayon) - 8px); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--vert-clair); }
.soin-media img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--p, 0)); transition: transform .1s linear; will-change: transform; }
.soin-corps { padding: 1rem clamp(0rem, 2vw, 1.5rem); }
.soin-corps p:not(.sur-titre) { margin-top: 1.1rem; color: var(--encre-2); }
.points { margin-top: 1.4rem; display: grid; gap: .55rem; font-size: .95rem; color: var(--encre-2); }
.points li { display: flex; gap: .75rem; align-items: baseline; }
.points li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--laiton); transform: translateY(-.35em); }

/* ---------- Teintier ---------- */
.teinte { padding: var(--section) 0; background: var(--vert-sombre); color: var(--porcelaine); position: relative; overflow: clip; }
.teinte::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 80%; background: radial-gradient(closest-side, rgba(185,151,91,.22), transparent 70%); pointer-events: none; }
.teinte-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.teinte-texte p:not(.sur-titre) { margin-top: 1.25rem; color: rgba(246,245,241,.78); font-size: 1.1rem; }
.teinte-legende { font-family: var(--titre); font-size: 1.35rem; color: var(--porcelaine) !important; font-variation-settings: "opsz" 40, "SOFT" 50; }
.teinte-legende strong { font-weight: 600; color: var(--laiton-clair); }
.teinte-outil { display: grid; gap: 2.2rem; justify-items: center; }
.dent { width: min(58%, 230px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.dent-svg { width: 100%; height: auto; overflow: visible; }
#dent-forme { transition: fill .6s var(--courbe); }
.teintier { display: flex; gap: .45rem; width: 100%; justify-content: center; flex-wrap: wrap; }
.tab {
  display: grid; gap: .5rem; justify-items: center; font-size: .72rem; letter-spacing: .08em; font-weight: 600;
  color: rgba(246,245,241,.6); padding: .35rem; border-radius: 12px; transition: color .3s, transform .5s var(--courbe);
}
.tab span { display: block; width: clamp(30px, 4.4vw, 44px); height: clamp(52px, 7.5vw, 76px); background: var(--c); border-radius: 8px 8px 16px 16px; box-shadow: inset 0 -10px 16px -10px rgba(0,0,0,.25), 0 6px 14px -8px rgba(0,0,0,.5); transition: transform .5s var(--courbe), box-shadow .5s; }
.tab:hover, .tab.actif { color: var(--porcelaine); }
.tab:hover span, .tab.actif span { transform: translateY(-8px); box-shadow: inset 0 -10px 16px -10px rgba(0,0,0,.25), 0 16px 24px -12px rgba(0,0,0,.6), 0 0 0 2px var(--laiton); }

/* ---------- Le lieu (images fixes + textes qui défilent) ---------- */
.lieu { padding: var(--section) 0; background: var(--blanc); }
.lieu-grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.lieu-media { position: sticky; top: 15vh; height: 70vh; min-height: 420px; border-radius: var(--rayon); overflow: hidden; background: var(--vert-clair); }
.lieu-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 1s var(--courbe), transform 1.6s var(--courbe); }
.lieu-media img.actif { opacity: 1; transform: none; }
.lieu-points { position: absolute; left: 1.4rem; bottom: 1.4rem; display: flex; gap: .5rem; }
.lieu-points li { width: 24px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.45); transition: background .4s, width .4s var(--courbe); }
.lieu-points li.actif { background: #fff; width: 44px; }
.lieu-etapes { display: grid; }
.lieu-etape { min-height: 70vh; display: grid; align-content: center; padding: 2rem 0; opacity: .3; transition: opacity .6s var(--courbe); }
.lieu-etape.actif { opacity: 1; }
.lieu-etape p:not(.sur-titre) { margin-top: 1.1rem; color: var(--encre-2); font-size: 1.1rem; max-width: 30rem; }
.lieu-image-mobile { display: none; }

/* ---------- Équipe ---------- */
.equipe { padding: var(--section) 0; }
.equipe-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.membre { margin: 0; }
.membre-photo { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 3 / 4; background: var(--vert-clair); position: relative; }
.membre-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--courbe); }
.membre:hover .membre-photo img { transform: scale(1.04); }
.membre figcaption { padding: 1.2rem .25rem 0; }
.membre h3 { font-size: 1.35rem; }
.membre-role { margin-top: .35rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--laiton); font-weight: 600; }
.membre-titres { margin-top: .8rem; font-size: .92rem; color: var(--gris); line-height: 1.5; }
.membre blockquote { margin: 1rem 0 0; font-family: var(--titre); font-size: 1.1rem; font-style: italic; color: var(--encre-2); font-variation-settings: "opsz" 40, "SOFT" 80; }

/* ---------- Parcours (ligne qui se remplit) ---------- */
.parcours { padding: var(--section) 0; background: var(--encre); color: var(--porcelaine); --avance: 0; }
.parcours .sur-titre { color: var(--laiton); }
.etapes { position: relative; max-width: 52rem; margin: 0 auto; display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-left: 0; }
.etapes::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: rgba(246,245,241,.16); }
.etapes::after { content: ""; position: absolute; left: 27px; top: 10px; width: 1px; height: calc((100% - 20px) * var(--avance)); background: linear-gradient(var(--laiton), var(--laiton-clair)); transition: height .15s linear; }
.etape { display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; align-items: start; position: relative; }
.etape-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titre); font-size: 1.4rem; font-weight: 400;
  border: 1px solid rgba(246,245,241,.25); background: var(--encre); color: rgba(246,245,241,.6);
  transition: background .6s var(--courbe), color .6s, border-color .6s, transform .6s var(--courbe);
  position: relative; z-index: 1;
}
.etape.allume .etape-num { background: var(--laiton); color: var(--encre); border-color: var(--laiton); transform: scale(1.06); }
.etape-corps { padding-top: .55rem; }
.etape h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; color: var(--porcelaine); }
.etape-duree { font-family: var(--texte); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--laiton); font-weight: 600; }
.etape p { margin-top: .8rem; color: rgba(246,245,241,.7); max-width: 40rem; }

/* ---------- Honoraires ---------- */
.honoraires { padding: var(--section) 0; background: var(--blanc); }
.honoraires-grille { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.honoraires .entete { position: sticky; top: 7rem; }
.tarif { margin: 0; }
.tarif-ligne { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--gris-clair); position: relative; }
.tarif-ligne::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--laiton); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--courbe); }
.tarif-ligne:hover::after { transform: scaleX(1); }
.tarif-ligne dt { font-size: 1.05rem; }
.tarif-ligne dd { margin: 0; font-family: var(--titre); font-size: 1.35rem; font-weight: 400; white-space: nowrap; text-align: right; font-variation-settings: "opsz" 40, "SOFT" 50; display: grid; }
.tarif-ligne dd small { font-family: var(--texte); font-size: .74rem; color: var(--gris); letter-spacing: .04em; }
.tarif-note { margin-top: 1.5rem; font-size: .88rem; color: var(--gris); line-height: 1.55; }

/* ---------- Questions ---------- */
.faq { padding: var(--section) 0; }
.faq-grille { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq .entete { position: sticky; top: 7rem; }
.q { border-bottom: 1px solid var(--gris-clair); }
.q h3 { font-size: 1rem; font-family: var(--texte); font-weight: 500; }
.q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; text-align: left; padding: 1.3rem 0; font-size: 1.12rem; font-weight: 500; transition: color .3s; }
.q button:hover { color: var(--vert); }
.q-signe { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gris-clair); position: relative; transition: transform .5s var(--courbe), background .3s, border-color .3s; }
.q-signe::before, .q-signe::after { content: ""; position: absolute; top: 50%; left: 50%; background: currentColor; transform: translate(-50%, -50%); }
.q-signe::before { width: 12px; height: 1.5px; }
.q-signe::after { width: 1.5px; height: 12px; transition: transform .5s var(--courbe); }
.q button[aria-expanded="true"] .q-signe { transform: rotate(180deg); background: var(--encre); color: var(--porcelaine); border-color: var(--encre); }
.q button[aria-expanded="true"] .q-signe::after { transform: translate(-50%, -50%) scaleY(0); }
.q-panneau { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--courbe); }
.q-panneau > div { overflow: hidden; }
.q-panneau p { padding: 0 3.5rem 1.4rem 0; color: var(--encre-2); }
.q-panneau.ouvert { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0; background: var(--vert-clair); }
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-photo { margin-top: 2rem; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 16 / 10; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.coordonnees { margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.coordonnees dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--laiton); font-weight: 600; margin-bottom: .4rem; }
.coordonnees dd { margin: 0; line-height: 1.5; }
.coordonnees a { font-weight: 600; }
.petit { font-size: .88rem; color: var(--gris); }
.formulaire { background: var(--blanc); border-radius: var(--rayon); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 30px 60px -40px rgba(16,24,21,.3); position: relative; }
.champ { display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.champ label { font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
.facultatif { font-weight: 400; color: var(--gris); margin-left: .3rem; }
.champ input, .champ select, .champ textarea {
  font: inherit; color: inherit; width: 100%; padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid var(--gris-clair); background: var(--porcelaine);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert); background: #fff; box-shadow: 0 0 0 4px rgba(30,74,60,.12); }
.champ textarea { resize: vertical; min-height: 6rem; }
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23101815' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.champ.erreur input { border-color: #B3412F; }
.formulaire-note { margin-top: 1rem; font-size: .84rem; color: var(--gris); text-align: center; }
.formulaire-merci { position: absolute; inset: 0; background: var(--blanc); border-radius: var(--rayon); display: grid; align-content: center; padding: 2.5rem; text-align: center; }
.formulaire-merci[hidden] { display: none; }
.merci-titre { font-family: var(--titre); font-size: 2.2rem; font-weight: 300; margin-bottom: 1rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: rgba(246,245,241,.72); padding: 4rem 0 2rem; font-size: .92rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(246,245,241,.12); }
.pied-marque { color: var(--porcelaine); font-size: 1.8rem; margin-bottom: .8rem; }
.pied-texte { line-height: 1.7; }
.pied-exemple { margin-top: .6rem; font-size: .82rem; color: rgba(246,245,241,.45); }
.pied-liens { display: grid; gap: .6rem; align-content: start; }
.pied-liens a:hover, .pied a:hover { color: var(--porcelaine); }
.pied-bas { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .8rem; color: rgba(246,245,241,.5); }
.pied-bas a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Écrans moyens et téléphones ---------- */

/* ---------- Avant / après (comparateur à curseur) ---------- */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.resultats { padding: calc(var(--section) * .35) 0 var(--section); background: var(--porcelaine); }
.resultats-grille { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: auto; gap: clamp(1rem, 2vw, 1.5rem); }
.comparateur { margin: 0; display: grid; gap: .9rem; }
.comparateur--grand { grid-row: 1 / 3; }
.comparateur-cadre {
  position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--rayon) - 6px); overflow: hidden;
  background: var(--vert-clair); cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  box-shadow: 0 24px 48px -30px rgba(16,24,21,.45);
}
.comparateur-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparateur-avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparateur-etiquette {
  position: absolute; top: .9rem; z-index: 2; padding: .4rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(16,24,21,.55); color: var(--porcelaine); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity .3s;
}
.comparateur-etiquette--avant { left: .9rem; opacity: clamp(0, calc((var(--n, .5) - .1) * 6), 1); }
.comparateur-etiquette--apres { right: .9rem; background: rgba(185,151,91,.85); opacity: clamp(0, calc((.9 - var(--n, .5)) * 6), 1); }
.comparateur-ligne { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255,255,255,.95); z-index: 2; box-shadow: 0 0 0 1px rgba(16,24,21,.12); }
.comparateur-poignee {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--porcelaine); color: var(--encre); display: grid; place-items: center;
  box-shadow: 0 8px 24px -8px rgba(16,24,21,.55), 0 0 0 1px rgba(16,24,21,.08);
  transition: transform .4s var(--courbe);
}
.comparateur-poignee svg { width: 22px; height: 22px; }
.comparateur-cadre:hover .comparateur-poignee, .comparateur-cadre.touche .comparateur-poignee { transform: translate(-50%, -50%) scale(1.08); }
.comparateur-curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.comparateur-cadre:focus-within { outline: 3px solid var(--laiton); outline-offset: 3px; }
.comparateur figcaption { display: grid; gap: .3rem; padding: 0 .25rem; }
.comparateur figcaption strong { font-family: var(--titre); font-weight: 500; font-size: 1.25rem; color: var(--encre); font-variation-settings: "opsz" 40, "SOFT" 50; }
.comparateur figcaption span { color: var(--encre-2); font-size: .98rem; line-height: 1.55; }
.comparateur--grand figcaption strong { font-size: 1.5rem; }
.resultats-mention { margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; max-width: 46rem; text-align: center; font-size: .9rem; color: var(--gris); line-height: 1.6; }
/* Petit balancement à l'apparition, pour montrer que ça glisse (stoppé au premier geste) */
@keyframes comparateur-invite { 0%, 100% { --pos: 50%; } 35% { --pos: 38%; } 70% { --pos: 60%; } }
.comparateur[data-vu] .comparateur-cadre:not(.touche) { animation: comparateur-invite 2.4s var(--courbe) .5s 1; }

@media (max-width: 1024px) {
  .equipe-grille { grid-template-columns: repeat(2, 1fr); }
  .nav-tel { display: none; }
}
@media (max-width: 860px) {
  .nav-liens {
    position: fixed; inset: 0; background: var(--porcelaine); color: var(--encre);
    flex-direction: column; justify-content: center; gap: 1.6rem; font-size: 1.5rem; font-family: var(--titre); font-weight: 300;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .4s, transform .5s var(--courbe);
  }
  .nav-liens.ouvert { opacity: 1; pointer-events: auto; transform: none; }
  .nav-liens .btn-nav { font-family: var(--texte); font-size: 1rem; padding: 1rem 1.6rem; margin-top: 1rem; }
  .nav:not(.nav--solide) .btn-nav { background: var(--encre); color: var(--porcelaine); }
  .nav-tel { display: block; font-family: var(--texte); font-size: 1rem; }
  .burger { display: block; position: relative; z-index: 2; }
  .nav.menu-ouvert { color: var(--encre); }
  .hero-contenu { padding-top: 7rem; }
  .soin { grid-template-columns: 1fr; }
  .soin:nth-child(even) .soin-media { order: 0; }
  .soin-media { aspect-ratio: 4 / 3; }
  .teinte-grille, .honoraires-grille, .faq-grille, .contact-grille { grid-template-columns: 1fr; }
  .resultats-grille { grid-template-columns: 1fr; }
  .comparateur--grand { grid-row: auto; }
  .honoraires .entete, .faq .entete { position: static; }
  .lieu-grille { grid-template-columns: 1fr; }
  .lieu-media { display: none; }
  .lieu-etape { min-height: 0; opacity: 1; padding: 1.5rem 0; }
  .lieu-image-mobile { display: block; margin-top: 1.5rem; border-radius: var(--rayon); aspect-ratio: 4 / 3; object-fit: cover; }
  .pied-grille { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .equipe-grille { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-bandeau { gap: .4rem 1.2rem; font-size: .8rem; }
  .coordonnees { grid-template-columns: 1fr; }
  .teintier { gap: .3rem; }
  .tab { padding: .2rem; font-size: .66rem; }
  .tarif-ligne { flex-direction: column; gap: .2rem; }
  .tarif-ligne dd { text-align: left; }
  .etape { grid-template-columns: 44px 1fr; gap: 1rem; }
  .etape-num { width: 44px; height: 44px; font-size: 1.15rem; }
  .etapes::before, .etapes::after { left: 21px; }
}

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .soin-media img { transform: none !important; }
  .motes, .rideau { display: none !important; }
  .comparateur-cadre { animation: none !important; }
}
