/* ==========================================================================
   DARKSIDE — Design System
   Dark. Precise. Iconic.
   Tokens -> Primitives -> Components -> Motion layer -> Responsive -> A11y
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds — noirs chauds dérivés du blason (or sur noir) */
  --bg:        #0b0a09;   /* noir profond, base de page */
  --bg-2:      #111010;   /* +1 cran — bandes alternées */
  --bg-3:      #171513;   /* +2 crans — cartes, surfaces */
  --ink:       #060505;   /* le plus sombre — stats, footer */

  /* Texte */
  --fg:        #f2efe9;   /* blanc cassé tiède (jamais #fff) */
  --fg-soft:   #c6c1b7;
  --muted:     #857f75;

  /* Accent unique — or du blason */
  --accent:      #c7a44e;
  --accent-deep: #8a6f2d;
  --accent-lite: #e3c983;

  /* Lignes */
  --line:      rgba(242, 239, 233, 0.12);
  --line-soft: rgba(242, 239, 233, 0.06);
  --line-gold: rgba(199, 164, 78, 0.28);

  /* Layout */
  --maxw: 1280px;
  --pad:  clamp(22px, 5vw, 84px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Typographies */
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Échelle typographique fluide */
  --t-display: clamp(56px, 13vw, 200px);
  --t-h2:      clamp(36px, 5.2vw, 78px);
  --t-h3:      clamp(20px, 2vw, 28px);
  --t-lede:    clamp(16px, 1.25vw, 20px);
  --t-body:    clamp(15px, 1.05vw, 17px);
  --t-label:   12px;

  /* Espacements */
  --s-section: clamp(90px, 13vh, 180px);
  --s-block:   clamp(28px, 4vw, 56px);
  --s-item:    16px;
  --s-tight:   8px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* 🔴 clip, JAMAIS hidden — hidden casse le position:sticky du stage scrub */
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--ink); padding: 12px 18px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.skip:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   3. PRIMITIVES
   -------------------------------------------------------------------------- */

/* Eyebrow — petit label capitales espacées, accent */
.eyebrow {
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 22px;
}

/* Lede */
.lede {
  font-size: var(--t-lede);
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 46ch;
  margin-top: 26px;
}

.meta {
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Titres serif éditoriaux */
.editorial__title, .tarifs__title, .gallery__title, .booking__title,
.values__title, .process__title, .manifesto__title, .contact__title {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.editorial__title em, .tarifs__title em, .gallery__title em, .booking__title em,
.values__title em, .process__title em, .manifesto__title em,
.contact__title em, .scrub__beat-title em {
  font-style: italic;
  color: var(--accent);
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease),
              border-color 0.5s var(--ease), transform 0.35s var(--ease);
}
.btn--light  { background: var(--fg); color: var(--ink); }
.btn--light:hover  { background: var(--accent); color: var(--ink); }
.btn--line   { border-color: var(--line); color: var(--fg); }
.btn--line:hover   { border-color: var(--accent); color: var(--accent); }
.btn--ghost  { border-color: var(--line); color: var(--fg); padding: 12px 24px; }
.btn--ghost:hover  { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 19px 42px; }
.btn--sm { padding: 11px 20px; font-size: 11px; }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }

/* Barre de progression de lecture */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200;
  background: transparent; pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-lite));
}

/* --------------------------------------------------------------------------
   4. NAV
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  padding: 22px var(--pad);
  transition: background 0.6s var(--ease), padding 0.6s var(--ease),
              border-color 0.6s var(--ease), backdrop-filter 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 13px var(--pad);
  background: rgba(11, 10, 9, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.nav__brand { display: flex; align-items: baseline; gap: 12px; }
.nav__brand-mark {
  font-family: var(--serif); font-weight: 700;
  font-size: 19px; letter-spacing: 0.24em;
}
.nav__brand-sub {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav__links a {
  position: relative;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-soft);
  padding: 4px 0;
  transition: color 0.4s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Lien croisé vers la maison voisine (barber ↔ tattoo) */
.nav__cross {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.nav__cross:hover { color: var(--accent); }

.nav__burger {
  display: none;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span {
  display: block; width: 15px; height: 1px; background: var(--fg);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 34px; padding: 0 var(--pad);
}
.drawer[hidden] { display: none; }
.drawer__links { display: flex; flex-direction: column; gap: 18px; }
.drawer__links a {
  font-family: var(--serif); font-size: clamp(32px, 9vw, 54px);
  line-height: 1;
}
.drawer__links a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   5. HERO — SCROLL SCRUB
   -------------------------------------------------------------------------- */
/* Hauteur = point de départ. Avec de vraies frames : ~ frames x 4.6 vh.
   Régler à l'oeil : trop rapide -> x6, trop lent -> x3. */
.scrub { position: relative; height: 556vh; background: var(--bg); }
.scrub__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrub__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.scrub__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top,    rgba(6,5,5,0.90) 0%, rgba(6,5,5,0.20) 45%, rgba(6,5,5,0) 68%),
    linear-gradient(to bottom, rgba(6,5,5,0.72) 0%, rgba(6,5,5,0) 34%),
    radial-gradient(120% 90% at 50% 45%, rgba(6,5,5,0) 38%, rgba(6,5,5,0.72) 100%);
}
.scrub__grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(3) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2%, 1%); }
  66%  { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* Beats */
.scrub__beat {
  position: absolute; z-index: 10;
  left: var(--pad); right: var(--pad);
  bottom: clamp(70px, 14vh, 150px);
  max-width: 780px;
  opacity: 0;
  will-change: opacity, transform;
}
.scrub__beat--hero { bottom: clamp(80px, 15vh, 160px); max-width: none; }
.scrub__beat-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.05; font-weight: 400;
  text-shadow: 0 2px 40px rgba(0,0,0,0.9);
}
.scrub__beat-copy {
  margin-top: 22px; max-width: 44ch;
  color: var(--fg-soft);
  text-shadow: 0 1px 24px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.7);
}
.scrub__beat .btn { margin-top: 34px; }

/* Le wordmark DARKSIDE */
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: 0.86;
  letter-spacing: clamp(0.01em, 0.6vw, 0.06em);
  margin: 0 0 4px;
}
.wordmark__text {
  display: inline-block;
  background: linear-gradient(
    100deg,
    var(--accent-deep) 0%,
    var(--accent-lite) 22%,
    #fffaf0 38%,
    var(--accent) 55%,
    var(--accent-deep) 78%,
    var(--accent-lite) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sheen 9s linear infinite;
  filter: drop-shadow(0 8px 60px rgba(199, 164, 78, 0.18));
}
@keyframes sheen {
  0%   { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

.scrub__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 22px);
  letter-spacing: 0.2em;
  color: var(--fg-soft);
  margin-top: 18px;
}
.scrub__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Arrivée — pas d'écran de chargement.
   Le canvas part légèrement agrandi et se pose : dans la continuité du zoom
   de la page de choix, on a l'impression d'achever d'entrer dans le bâtiment.
   Tant que la première frame n'est pas peinte, le stage reste noir plutôt
   que de montrer un canvas vide. */
.scrub__stage { background: var(--ink); }
.scrub__canvas {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease);
}
.scrub.is-painted .scrub__canvas { opacity: 1; transform: none; }
.scrub.is-painted .scrub__scrim,
.scrub.is-painted .scrub__grain { animation-delay: 0.2s; }

/* Cue */
.scrub__cue {
  position: absolute; z-index: 10; right: var(--pad); bottom: clamp(70px, 14vh, 150px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.scrub__cue-line { width: 1px; height: 64px; background: linear-gradient(var(--accent), transparent); }

/* --------------------------------------------------------------------------
   6. STATS
   -------------------------------------------------------------------------- */
.stats { background: var(--ink); padding: clamp(70px, 11vh, 140px) var(--pad); }
.stats__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 60px);
}
.stat { border-left: 1px solid var(--line); padding-left: 26px; }
.stat__num {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 5.4vw, 76px); line-height: 1; color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: 0.42em; color: var(--accent); }
.stat__label {
  display: block; margin-top: 18px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. ÉDITORIAL
   -------------------------------------------------------------------------- */
.editorial { background: var(--bg); padding: var(--s-section) var(--pad); }
.editorial__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.editorial__aside { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 52px); }

/* Cadre image éditorial */
.frame {
  margin: 0; position: relative; overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  box-shadow: 0 46px 100px -46px rgba(0, 0, 0, 0.9);
}
.frame--square   { aspect-ratio: 1 / 1; }
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.92);
  transition: transform 1.6s var(--ease), filter 1.2s var(--ease);
}
.frame:hover img { transform: scale(1.045); filter: grayscale(0.75) contrast(1.16) brightness(1); }

/* Glyphe typographique (remplace une image : formes + texture, pas de photo) */

/* --------------------------------------------------------------------------
   8. MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 4vw, 56px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(242,239,233,0.22);
  padding-right: 0.4em; white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   9. TARIFS
   -------------------------------------------------------------------------- */
.tarifs { background: var(--bg-2); padding: var(--s-section) var(--pad); }
.tarifs__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.tarifs__head { position: sticky; top: 130px; }
.tarifs__note { margin-top: 26px; color: var(--muted); max-width: 32ch; font-size: 14px; }

.tarifs__list { display: grid; }

/* Intertitre de famille (Cheveux, Barbe, Extra, VIP) */
.tarif-cat {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: clamp(34px, 4vw, 54px) 0 16px;
  font-family: var(--serif); font-size: clamp(21px, 2.1vw, 29px);
  color: var(--accent-lite);
}
.tarif-cat:first-child { padding-top: 0; }
.tarif-cat em {
  font-family: var(--sans); font-style: normal;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.tarif-cat + .tarif { border-top: 1px solid var(--line-gold); }

.tarif--vip { background: linear-gradient(90deg, rgba(199,164,78,0.07), rgba(199,164,78,0) 62%); }
.tarif--vip .tarif__price { color: var(--accent-lite); }
.tarif {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  gap: 20px clamp(18px, 2.4vw, 34px);
  align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.5s var(--ease);
}
.tarif:first-child { border-top: 1px solid var(--line-soft); }
.tarif:hover { border-bottom-color: var(--line-gold); }
.tarif__index { font-family: var(--serif); font-size: 14px; margin-left: 10px; color: var(--accent); }
.tarif__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tarif__name {
  font-family: var(--serif); font-size: var(--t-h3); line-height: 1.15;
  transition: transform 0.6s var(--ease), color 0.5s var(--ease);
}
.tarif:hover .tarif__name { transform: translateX(8px); color: var(--accent-lite); }
.tarif__desc { font-size: 14px; color: var(--muted); max-width: 42ch; }
.tarif__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.tarif__dur { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tarif__price { font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); color: var(--fg); }
.tarif__book {
  align-self: center;
  background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-soft);
  transition: border-color 0.45s var(--ease), color 0.45s var(--ease), background 0.45s var(--ease);
}
.tarif__book:hover { border-color: var(--accent); color: var(--ink); background: var(--accent); }
.tarif__book:active { transform: scale(0.97); }

/* CTA répété en fin de bloc éditorial */
.cta-inline { margin-top: clamp(32px, 4vw, 48px); }

/* --------------------------------------------------------------------------
   10. GALERIE + LIGHTBOX
   -------------------------------------------------------------------------- */
.gallery { background: var(--ink); padding: var(--s-section) var(--pad); }
.gallery__inner { max-width: var(--maxw); margin: 0 auto; }
.gallery__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: clamp(24px, 4vw, 60px); flex-wrap: wrap;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.gallery__head .cta-inline { margin-top: 0; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 230px);
  gap: clamp(10px, 1.2vw, 18px);
}
.shot {
  position: relative; margin: 0; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line-soft);
  cursor: zoom-in;
}
.shot--wide   { grid-column: span 2; grid-row: span 2; }
.shot--tall   { grid-column: span 1; grid-row: span 2; }
.shot--square { grid-column: span 1; grid-row: span 1; }
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.86);
  transition: transform 1.4s var(--ease), filter 0.9s var(--ease);
}
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6,5,5,0.72) 0%, rgba(6,5,5,0) 46%);
  opacity: 0.9; transition: opacity 0.7s var(--ease);
}
.shot figcaption {
  position: absolute; left: 18px; bottom: 15px; z-index: 2;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-soft);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.shot:hover img { transform: scale(1.06); filter: grayscale(0.4) contrast(1.14) brightness(1); }
.shot:hover::after { opacity: 1; }
.shot:hover figcaption { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 28px);
  padding: clamp(50px, 8vh, 90px) clamp(14px, 4vw, 60px);
  background: rgba(6, 5, 5, 0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.lightbox__figure img {
  max-width: min(1100px, 82vw); max-height: 78vh;
  width: auto; height: auto; object-fit: contain;
  border: 1px solid var(--line-gold);
}
.lightbox__figure figcaption {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.lightbox__close, .lightbox__nav {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg); cursor: pointer; line-height: 1;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__close {
  position: absolute; top: clamp(16px, 3vh, 30px); right: clamp(16px, 3vw, 40px);
  width: 44px; height: 44px; font-size: 24px;
}
.lightbox__nav { width: 52px; height: 52px; flex: 0 0 auto; font-size: 28px; }

/* --------------------------------------------------------------------------
   11. VALEURS
   -------------------------------------------------------------------------- */
.values { background: var(--bg); padding: var(--s-section) var(--pad); }
.values__inner { max-width: var(--maxw); margin: 0 auto; }
.values__head { max-width: 620px; margin-bottom: clamp(50px, 7vw, 92px); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
.value {
  position: relative;
  padding: clamp(34px, 3.6vw, 54px) clamp(24px, 2.6vw, 38px);
  background: var(--bg);
  transition: background 0.7s var(--ease);
  overflow: hidden;
}
.value::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, rgba(199,164,78,0.09), rgba(199,164,78,0) 58%);
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.value:hover { background: var(--bg-3); }
.value:hover::before { opacity: 1; }
.value__icon { position: relative; display: block; width: 30px; height: 30px; color: var(--accent); margin-bottom: 30px; }
.value__icon svg { width: 100%; height: 100%; }
.value__name {
  position: relative;
  font-family: var(--serif); font-size: var(--t-h3); margin-bottom: 14px;
}
.value__copy { position: relative; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* --------------------------------------------------------------------------
   12. RITUEL — TIMELINE
   -------------------------------------------------------------------------- */
.process { background: var(--bg-2); padding: var(--s-section) var(--pad); }
.process__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start;
}
.process__head { position: sticky; top: 130px; }
.process__note { margin-top: 26px; color: var(--muted); max-width: 30ch; font-size: 14px; }
.process__list { position: relative; padding-left: clamp(24px, 4vw, 54px); }
.process__list::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(var(--line-gold), var(--line-soft));
}
.step { position: relative; display: flex; gap: clamp(20px, 3vw, 44px); padding: clamp(24px, 3vw, 40px) 0; }
.step::before {
  content: ""; position: absolute; left: calc(-1 * clamp(24px, 4vw, 54px)); top: clamp(34px, 3.6vw, 50px);
  width: 7px; height: 7px; margin-left: -3px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 5px rgba(199,164,78,0.10);
}
.step + .step { border-top: 1px solid var(--line-soft); }
.step__num {
  font-family: var(--serif); font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px var(--line-gold);
  flex: 0 0 auto;
}
.step__body h3 { font-family: var(--serif); font-size: var(--t-h3); margin-bottom: 10px; }
.step__body p { font-size: 14px; color: var(--muted); max-width: 46ch; }

/* --------------------------------------------------------------------------
   13. MANIFESTE
   -------------------------------------------------------------------------- */
.manifesto {
  background: var(--ink); padding: clamp(120px, 18vh, 240px) var(--pad);
  text-align: center;
}
.manifesto__inner { max-width: 820px; margin: 0 auto; }
.manifesto__title { font-size: clamp(32px, 4.4vw, 64px); }
.manifesto__copy {
  margin-top: 40px; font-size: var(--t-lede); line-height: 1.85; color: var(--fg-soft);
}

/* --------------------------------------------------------------------------
   14 bis. RÉSERVATION
   -------------------------------------------------------------------------- */
.booking { background: var(--bg-2); padding: var(--s-section) var(--pad); }
.booking__inner { max-width: 980px; margin: 0 auto; }
.booking__head { margin-bottom: clamp(40px, 5vw, 70px); }

.booking__form {
  border: 1px solid var(--line);
  background: var(--bg-3);
  padding: clamp(24px, 3.4vw, 52px);
}

/* Fil d'étapes */
.booking__steps {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px);
  padding-bottom: 26px; margin-bottom: clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}
.bstepdot {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); transition: color 0.5s var(--ease);
}
.bstepdot span { font-family: var(--serif); font-size: 14px; color: var(--line); transition: color 0.5s var(--ease); }
.bstepdot.is-active { color: var(--fg); }
.bstepdot.is-active span { color: var(--accent); }
.bstepdot.is-done span { color: var(--accent-deep); }

/* Panneaux */
.bpanel { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.bpanel.is-active { display: block; }
.bpanel__legend {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2; padding: 0; margin-bottom: 10px;
}
.bpanel__sub { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.bpanel__err { margin-top: 18px; font-size: 13px; color: var(--accent-lite); }
.bpanel__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--line-soft);
}

/* Choix (prestations, jours, créneaux) */
.bchoices { display: grid; gap: 10px; margin-top: 24px; }
.bchoices--services { grid-template-columns: repeat(2, 1fr); }
.bchoices--days { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.bslots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px; margin-top: 22px;
}
.bslots:empty::after {
  content: "Choisissez d'abord un jour.";
  grid-column: 1 / -1; font-size: 13px; color: var(--muted);
}

.bopt {
  position: relative; display: block; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  padding: 15px 18px; text-align: left; width: 100%;
  font-family: var(--sans); color: var(--fg-soft);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.bopt:hover { border-color: var(--line-gold); color: var(--fg); }
.bopt.is-selected { border-color: var(--accent); background: rgba(199, 164, 78, 0.08); color: var(--fg); }
.bopt.is-selected::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent);
}
.bopt__name { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.bopt__meta {
  display: flex; gap: 12px; margin-top: 7px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.bopt__meta b { font-weight: 400; color: var(--accent); }
.bopt--day { text-align: center; padding: 14px 8px; }
.bopt--day .bopt__dow { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.bopt--day .bopt__num { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; margin: 4px 0 2px; }
.bopt--day .bopt__mon { display: block; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.bopt--slot { text-align: center; padding: 13px 8px; font-family: var(--serif); font-size: 17px; }

/* Champs */
.bfields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.bfield { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.bfield--full { grid-column: 1 / -1; }
.bfield__label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.bfield__label em { font-style: normal; text-transform: none; letter-spacing: 0.04em; opacity: 0.7; }
.bfield input, .bfield textarea {
  font-family: var(--sans); font-size: 15px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line);
  padding: 14px 16px; width: 100%; resize: vertical;
  transition: border-color 0.4s var(--ease);
}
.bfield input:focus, .bfield textarea:focus { outline: none; border-color: var(--accent); }
.bfield input::placeholder, .bfield textarea::placeholder { color: var(--muted); }
.bfield input[aria-invalid="true"], .bfield textarea[aria-invalid="true"] { border-color: var(--accent-lite); }

/* Récap */
.brecap, .bdone__recap {
  margin-top: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line-gold);
  background: rgba(199, 164, 78, 0.05);
  padding: clamp(18px, 2.2vw, 28px);
  display: grid; gap: 12px;
}
.brecap__row, .bdone__recap .brecap__row {
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 13px; letter-spacing: 0.06em;
}
.brecap__k { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.18em; }
.brecap__v { font-family: var(--serif); font-size: 17px; color: var(--fg); text-align: right; }

/* Confirmation */
.bdone { text-align: left; }
.bdone__title { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; }
.bdone__copy { margin-top: 26px; color: var(--fg-soft); font-size: 15px; }
.bdone__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.bdone__actions { flex-direction: row; }
.bdone__fallback {
  flex: 1 1 100%; margin: 0;
  border: 1px solid var(--line); background: var(--bg);
  padding: 18px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.7; color: var(--fg-soft); white-space: pre-wrap;
}
.bdone__actions code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em; color: var(--accent);
}
.bdone__restart {
  margin-top: 26px; background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.bdone__restart:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Compteur de verrouillage du créneau */
.bhold {
  margin-top: 16px;
  font-size: 12px; letter-spacing: 0.1em; color: var(--accent);
}
.bhold.is-expired { color: var(--fg-soft); }

/* --------------------------------------------------------------------------
   14 ter. PAGE DE GESTION (rdv.html)
   -------------------------------------------------------------------------- */
.manage-page { display: flex; flex-direction: column; min-height: 100vh; }
.manage {
  flex: 1;
  display: flex; align-items: center;
  padding: clamp(120px, 18vh, 200px) var(--pad) clamp(70px, 10vh, 120px);
  background: var(--bg);
}
.manage__inner {
  max-width: 760px; margin: 0 auto; width: 100%;
}
.manage__title {
  font-family: var(--serif); font-size: clamp(32px, 5vw, 62px);
  font-weight: 400; line-height: 1.05; margin-bottom: 8px;
}
.manage .brecap { margin-top: clamp(30px, 4vw, 44px); }
.manage__policy {
  margin-top: 26px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 52ch;
}
.manage__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 4vw, 44px); }
.manage__reschedule, .manage__confirm {
  margin-top: clamp(34px, 4vw, 50px);
  padding-top: clamp(28px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
}
.manage__reschedule .bchoices, .manage__reschedule .bslots { margin-top: 20px; }
.manage .footer__base { border-top: 1px solid var(--line-soft); }

/* CTA collant (mobile) */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
  display: none; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 5, 5, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  transform: translateY(110%); transition: transform 0.5s var(--ease);
}
.stickycta .btn { width: 100%; }
.stickycta.is-shown { transform: none; }

/* --------------------------------------------------------------------------
   15. CONTACT
   -------------------------------------------------------------------------- */
.contact { background: var(--bg); padding: var(--s-section) var(--pad); }
.contact__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px); align-items: start;
}
.contact__pitch .btn { margin-top: 44px; }
.contact__card {
  border: 1px solid var(--line); padding: clamp(30px, 3.4vw, 52px);
  background: var(--bg-3);
}
.contact__list > div {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.contact__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__list dt {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  padding-top: 3px;
}
.contact__list dd { font-size: 15px; color: var(--fg-soft); line-height: 1.7; }
.contact__list a { border-bottom: 1px solid var(--line-gold); padding-bottom: 1px; transition: color 0.4s; }
.contact__list a:hover { color: var(--accent); }
.contact__social { display: flex; flex-wrap: wrap; gap: 18px; }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); padding: clamp(70px, 10vh, 120px) var(--pad) 30px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(34px, 5vw, 80px);
  padding-bottom: clamp(50px, 7vh, 90px); border-bottom: 1px solid var(--line-soft);
}
.footer__mark {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4vw, 52px); letter-spacing: 0.16em;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-lite) 45%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.footer__sub {
  display: block; margin-top: 14px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
}
.footer__crest {
  width: clamp(96px, 11vw, 148px); height: auto; margin-top: 30px;
  border: 1px solid var(--line-gold);
  filter: contrast(1.06) saturate(1.05);
}
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-soft); }
.footer__nav a:hover { color: var(--accent); }
.footer__meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__meta p { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.footer__meta .btn { margin-top: 14px; }
.footer__base {
  max-width: var(--maxw); margin: 0 auto; padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--accent); }
.footer__tag { color: var(--accent); }

/* --------------------------------------------------------------------------
   17. MOTION LAYER (additive — n'affecte jamais le moteur scrub)
   -------------------------------------------------------------------------- */
.ml-reveal .ml-line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ml-reveal .ml-line__inner {
  display: block;
  transition: transform 1s var(--ease);
  transition-delay: var(--ml-delay, 0s);
}
/* Même sécurité positive que .ml-fade : le titre n'est poussé hors de son
   masque que si l'observer est en place pour le faire remonter. */
.ml-ready .ml-reveal .ml-line__inner { transform: translateY(110%); }
.ml-ready .ml-reveal.is-shown .ml-line__inner { transform: translateY(0); }

/* 🔴 Sécurité positive : rien n'est masqué tant que le JS n'a pas posé
   .ml-ready sur <html>, juste avant d'installer l'observer. Si le script
   échoue, si le CSS arrive sans son JS, ou si un cache sert une version
   dépareillée, le contenu reste visible. Une animation d'apparition ne doit
   jamais pouvoir escamoter une section de façon définitive. */
.ml-fade { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.ml-ready .ml-fade { opacity: 0; transform: translateY(22px); }
.ml-ready .ml-fade.is-shown { opacity: 1; transform: none; }

.nav { opacity: 0; transform: translateY(-12px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), background 0.6s var(--ease), padding 0.6s var(--ease), border-color 0.6s var(--ease); }
.nav.is-loaded { opacity: 1; transform: none; }
body:not(.intro-ready) .nav { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .shot--wide { grid-column: span 2; }
}

@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .editorial__inner, .tarifs__inner,
  .process__inner, .contact__inner { grid-template-columns: 1fr; }
  .tarifs__head, .process__head { position: static; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
}

/* 🔴 Aligné sur le breakpoint JS (isSmall = 820px) : sous 820px le scrub est
   statique, donc la section doit revenir à 100vh — sinon on scrolle du vide. */
@media (max-width: 820px) {
  .scrub { height: 100vh; }
  .scrub__cue { display: none; }
  .scrub__beat--hero { bottom: clamp(56px, 10vh, 100px); }
  .scrub__actions { flex-direction: column; align-items: stretch; }
  .scrub__actions .btn { width: 100%; }
}

@media (max-width: 820px) {
  .stickycta { display: block; }
  body { padding-bottom: 0; }
}

@media (max-width: 700px) {
  .values__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .contact__list > div { grid-template-columns: 1fr; gap: 6px; }
  .step { flex-direction: column; gap: 14px; }

  /* Tarifs : nom + prix sur une ligne, bouton pleine largeur en dessous */
  .tarif { grid-template-columns: 28px 1fr auto; row-gap: 14px; }
  .tarif__book { grid-column: 1 / -1; justify-self: start; }

  /* Galerie : deux colonnes, formats simplifiés */
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .shot--wide { grid-column: span 2; grid-row: span 1; }
  .shot--tall { grid-row: span 1; }

  /* Réservation */
  .bchoices--services { grid-template-columns: 1fr; }
  .bfields { grid-template-columns: 1fr; }
  .booking__steps { gap: 14px; }
  .bstepdot { font-size: 10px; letter-spacing: 0.12em; }
  .bpanel__actions .btn { flex: 1 1 auto; }

  .lightbox__nav { width: 42px; height: 42px; font-size: 22px; }
  .lightbox__figure img { max-width: 88vw; max-height: 66vh; }
}

@media (max-width: 520px) {
  .stats__inner { grid-template-columns: 1fr; }
  .marquee__track span { -webkit-text-stroke-width: 0.6px; }
}

/* --------------------------------------------------------------------------
   19. REDUCED MOTION — neutralise TOUTE la couche motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ml-reveal .ml-line__inner { transform: none !important; }
  .ml-fade { opacity: 1 !important; transform: none !important; }
  .nav { opacity: 1 !important; transform: none !important; }
  .scrub__grain { animation: none; }
  .marquee__track { animation: none; }
  .wordmark__text { animation: none; background-position: 40% 50%; }
  .scrub { height: 100vh; }
}
