/* ============================================================
   CINEMATIC SITE STARTER — structural + motion CSS
   ------------------------------------------------------------
   The :root block below is your BRAND CHARTER. These are the only
   values you (or Claude) should change to reskin the whole site —
   colours, fonts, spacing, accent. They start NEUTRAL on purpose.
   Everything under "STRUCTURAL CSS" drives the scrub engine,
   sections, and motion. You normally never touch it.
   ============================================================ */

:root {
  /* ---- CHARTE MBA AVOCAT — site clair, plaques bleu nuit ---- */
  --bg:          #FFFFFF;   /* page base : blanc (charte client) */
  --bg-2:        #F7F9FB;   /* bande alternée très légère */
  --bg-3:        #EDF1F5;   /* +2 : fonds de cadre / placeholders */
  --ink:         #10213A;   /* bleu nuit — aplats, footer */

  /* ---- Text ---- */
  --fg:          #10213A;   /* encre principale (bleu nuit, jamais noir pur) */
  --fg-soft:     #41546E;   /* texte secondaire */
  --muted:       #75859B;   /* labels, mentions, légendes */

  /* ---- Accent + lines ---- */
  --accent:      #5B8DB8;   /* accent unique : italiques, eyebrows, filets forts */
  --line:        rgba(16, 33, 58, 0.14); /* hairlines dérivées de l'encre */

  /* ---- Plaques bleu nuit (référence fournie par le client) ---- */
  --night-1:     #132540;
  --night-2:     #0D1B2E;
  --night-3:     #0A1424;
  --paper:       #FFFFFF;   /* texte sur plaque */
  --paper-soft:  #C3D0DE;   /* corps sur plaque */
  --plate-em:    #B9CCDD;   /* italique de titre sur plaque */
  --plate-eyebrow:#8FA9C4;  /* eyebrow sur plaque */
  --plate-grad:
    radial-gradient(115% 85% at 72% 14%, rgba(58,96,140,0.42) 0%, rgba(11,21,36,0) 62%),
    linear-gradient(158deg, #132540 0%, #0D1B2E 52%, #0A1424 100%);

  /* ---- Layout ---- */
  --maxw:        1240px;
  --pad:         clamp(22px, 5vw, 80px);

  /* ---- Motion + type ---- */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --serif:       "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:        "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ============================================================
   STRUCTURAL CSS — drives the engine. Rarely needs editing.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
em { font-style: italic; }

/* ---- Shared bits ---------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.eyebrow--light { color: var(--fg-soft); }
.eyebrow--center { text-align: center; }

.lede   { font-size: clamp(16px, 1.4vw, 19px); color: var(--fg-soft); max-width: 46ch; margin: 26px 0 0; line-height: 1.75; }
.meta   { font-size: 14px; color: var(--muted); letter-spacing: 0.02em; margin: 20px 0 0; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn--light { color: var(--fg); border: 1px solid rgba(245,244,242,0.45); }
.btn--light:hover { background: var(--fg); color: var(--ink); transform: translateY(-2px); }
.btn--solid { color: var(--ink); background: var(--fg); margin-top: 8px; }
.btn--solid:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }

/* ---- Scroll progress ------------------------------------------------ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 200; transition: width .1s linear;
}

/* ---- Nav ------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), backdrop-filter .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  padding-top: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--sans); font-weight: 500;
  font-size: 16px; letter-spacing: 0.42em; padding-left: 0.42em;
  color: var(--fg);
}
.nav__links { display: flex; gap: 38px; }
.nav__links a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-soft); position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .4s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg); border: 1px solid rgba(245,244,242,0.4);
  padding: 11px 22px; border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.nav__cta:hover { background: var(--fg); color: var(--ink); transform: translateY(-1px); }

/* ============================================================
   SCRUB HERO
   The .scrub height controls fly-through speed. Rule of thumb:
   height_vh  ≈  frames × 4.6   (a STARTING point, then judge by eye —
   too fast → raise toward ×6, too slow → lower toward ×3).

   DEFAULT = 160vh, on purpose: out of the box the starter ships with a
   SINGLE demo frame (assets/frames/frame-001.jpg, data-frames="1"), so a
   tall hero would be 5+ screens of one static gradient = confusing. Once
   you drop your real frames and bump data-frames to N, raise this to
   ~N × 4.6vh (e.g. 121 frames → 560vh) and tune by eye.
   ============================================================ */
.scrub { position: relative; height: 345vh; background: var(--bg); }
.scrub__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrub__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrub__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8,8,10,0.78) 0%, rgba(8,8,10,0.12) 42%, rgba(8,8,10,0) 65%),
    linear-gradient(to bottom, rgba(8,8,10,0.5) 0%, rgba(8,8,10,0) 28%);
}

/* Loader */
.loader {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--bg); transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__brand { font-family: var(--sans); font-size: 14px; letter-spacing: 0.5em; padding-left: 0.5em; color: var(--fg); }
.loader__track { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s var(--ease); }
.loader__pct { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

/* Caption beats — fade in/out over the moving footage (bottom-left) */
.scrub__beat {
  position: absolute; left: var(--pad); bottom: clamp(64px, 13vh, 140px); z-index: 10;
  max-width: 720px; opacity: 0; will-change: opacity, transform;
}
.scrub__eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.scrub__title {
  font-size: clamp(58px, 10vw, 132px); line-height: 0.92; color: var(--fg);
  text-shadow: 0 2px 50px rgba(0,0,0,0.45);
}
.scrub__title em, .scrub__beat-title em { color: var(--fg); }
.scrub__tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.2vw, 28px);
  color: var(--fg-soft); margin: 22px 0 0; max-width: 30ch;
}
.scrub__beat-title {
  font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em;
  font-size: clamp(40px, 6.4vw, 92px); color: var(--fg); text-shadow: 0 2px 50px rgba(0,0,0,0.45);
}
.scrub__beat-copy {
  font-size: clamp(16px, 1.45vw, 20px); color: var(--fg-soft);
  margin: 22px 0 0; max-width: 42ch; line-height: 1.7; text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}
.scrub__beat .btn { margin-top: 30px; }

.scrub__cue {
  position: absolute; right: var(--pad); bottom: clamp(48px, 10vh, 96px); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-soft);
}
.scrub__cue-line { width: 1px; height: 54px; background: linear-gradient(var(--fg-soft), transparent); animation: cuePulse 2.4s var(--ease) infinite; }
@keyframes cuePulse { 0%,100% { opacity: .35; transform: scaleY(.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   EDITORIAL (image + text)
   ============================================================ */
.editorial { padding: clamp(90px, 13vh, 180px) var(--pad); background: var(--bg); }
.editorial--reverse { background: var(--bg-2); }
.editorial__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 90px); align-items: center;
}
.editorial--reverse .editorial__media { order: 2; }
.editorial--reverse .editorial__text { order: 1; }
.editorial__text { max-width: 480px; }
.editorial__title { font-size: clamp(38px, 5.2vw, 76px); }
.editorial__title em { color: var(--accent); }

/* .frame ships with a visual fallback so an un-replaced placeholder never reads as a
   bare black rectangle. Replace the editorial images at GUIDE step 4 bis. */
.frame {
  margin: 0; overflow: hidden; border-radius: 4px; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7);
  position: relative; aspect-ratio: 16 / 9; background: var(--bg-3);
  background-image: repeating-linear-gradient(45deg, rgba(245,244,242,0.018) 0 14px, transparent 14px 28px);
}
.frame::after {
  content: "Image à venir"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); opacity: 0.5; pointer-events: none;
}
.frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.editorial__media:hover .frame img { transform: scale(1.04); }

/* ============================================================
   FULL-BLEED IMAGE SECTIONS
   ============================================================ */
.bleed { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.bleed--tall { min-height: 100vh; }
.bleed__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,8,10,0.88) 0%, rgba(8,8,10,0.32) 38%, rgba(8,8,10,0) 60%),
    linear-gradient(to right, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.12) 50%, rgba(8,8,10,0) 80%);
}
.bleed__content { position: relative; z-index: 2; max-width: 640px; padding: 0 var(--pad); }
.bleed__content--low { align-self: flex-end; padding-bottom: clamp(60px, 12vh, 120px); }
.bleed__title { font-size: clamp(40px, 6vw, 92px); color: var(--fg); text-shadow: 0 2px 40px rgba(0,0,0,0.5); }
.bleed__title em { color: var(--fg); }
.bleed__copy { font-size: clamp(16px, 1.4vw, 19px); color: var(--fg); max-width: 46ch; margin: 24px 0 36px; line-height: 1.75; text-shadow: 0 1px 24px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.6); }
.bleed__specs { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.bleed__specs li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid rgba(245,244,242,0.22); min-width: 150px; }
.bleed__spec-k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.bleed__spec-v { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); color: var(--fg); }

/* ============================================================
   AMENITIES / FEATURE LIST
   ============================================================ */
.amenities { background: var(--bg-2); padding: clamp(90px, 14vh, 180px) var(--pad); }
.amenities__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start;
}
.amenities__head { position: sticky; top: 120px; }
.amenities__title { font-size: clamp(34px, 4.4vw, 64px); color: var(--fg); }
.amenities__title em { color: var(--accent); }
.amenities__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px);
}
.amenity {
  display: flex; gap: 20px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.amenity__index { font-family: var(--serif); font-size: 15px; color: var(--accent); letter-spacing: 0.04em; flex: 0 0 auto; min-width: 26px; }
.amenity__text { font-size: clamp(15px, 1.15vw, 17px); color: var(--fg-soft); line-height: 1.5; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--ink); padding: clamp(70px, 11vh, 130px) 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 { text-align: left; border-left: 1px solid var(--line); padding-left: 26px; }
.stat__num { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 5.5vw, 76px); line-height: 1; color: var(--fg); }
.stat__unit { font-size: 0.42em; color: var(--accent); letter-spacing: 0.02em; }
.stat__label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { background: var(--bg); padding: clamp(110px, 18vh, 220px) var(--pad); }
.manifesto__inner { max-width: 940px; margin: 0 auto; text-align: center; }
.manifesto__title { font-size: clamp(40px, 6.5vw, 104px); color: var(--fg); }
.manifesto__title em { color: var(--accent); }
.manifesto__copy { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 30px); color: var(--fg-soft); margin: 34px auto 0; max-width: 56ch; line-height: 1.5; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); padding: clamp(90px, 14vh, 180px) var(--pad); }
.contact__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center;
}
.contact__title { font-size: clamp(34px, 4.6vw, 64px); color: var(--fg); margin-top: 8px; }
.contact__copy { color: var(--fg-soft); max-width: 42ch; margin: 26px 0 0; }
.contact__details { display: flex; flex-direction: column; gap: 4px; }
.contact__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
.contact__row:not(.contact__row--static):hover { padding-left: 10px; }
.contact__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact__value { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 24px); color: var(--fg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); padding: clamp(60px, 9vh, 110px) var(--pad) 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer__brand { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); color: var(--fg); }
.footer__tagline { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin: 14px 0 0; }
.footer__base { max-width: var(--maxw); margin: 32px auto 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__legal { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   MOTION LAYER (subtle, premium micro-interactions)
   All disabled under prefers-reduced-motion (media query at end).
   ============================================================ */

/* Masked line-by-line reveal for section titles (built in JS) */
.ml-reveal .ml-line {
  overflow: hidden;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}
.ml-reveal .ml-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--ml-delay, 0s);
  will-change: transform;
}
.ml-reveal.is-shown .ml-line__inner { transform: translateY(0); }

/* Eyebrows above masked titles: gentle clip-up + fade */
.ml-eyebrow {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: clip-path 0.7s var(--ease), opacity 0.7s var(--ease);
}
.ml-eyebrow.is-shown { clip-path: inset(0 0 0 0); opacity: 1; }

/* Animated counters (stats) */
.stat__num.is-counting { font-variant-numeric: tabular-nums; }

/* Parallax media (full-bleed images). JS sets --py (px). */
.bleed__img {
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
}

/* CTA / button press feedback */
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }
.nav__cta:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }
.btn--light:active { transform: scale(0.98); }

/* Intro load reveal (nav) */
body.intro-ready .nav { opacity: 0; transform: translateY(-12px); }
body.intro-ready.is-loaded .nav {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .editorial__inner, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .editorial--reverse .editorial__media { order: 1; }
  .editorial--reverse .editorial__text { order: 2; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .amenities__inner { grid-template-columns: 1fr; gap: 44px; }
  .amenities__head { position: static; }
  .amenities__list { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
/* 🔴 820px = le breakpoint JS isSmall : sous cette largeur le scrub passe en
   STATIQUE (1 frame fixe, voir script.js). On DOIT y ramener le hero à 100vh,
   sinon la section garde sa hauteur N×4.6vh et le viewer scrolle plusieurs
   écrans de vide sur une image figée. La coupure CSS suit le breakpoint JS. */
@media (max-width: 820px) {
  .scrub { height: 100vh; }
}
@media (max-width: 560px) {
  .stats__inner { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; text-align: center; align-items: center; }
  .nav__cta { display: none; }
  .scrub { height: 100vh; }
  .bleed__specs { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ml-reveal .ml-line { overflow: visible; padding-bottom: 0; margin-bottom: 0; }
  .ml-reveal .ml-line__inner { transform: none !important; transition: none !important; }
  .ml-eyebrow { clip-path: none !important; opacity: 1 !important; transition: none !important; }
  .bleed__img { transform: none !important; will-change: auto; }
  .btn:active, .nav__cta:active, .btn--light:active { transform: none !important; }
  body.intro-ready .nav { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   MBA THEME LAYER — site clair, plaques bleu nuit
   Ajouté à l'assemblage (étape 5). Surcharges des contextes
   sombres (hero, nav, footer) + composants propres au site.
   ============================================================ */

h1, h2, h3 { font-weight: 400; }

/* ---- Boutons : rectangulaires (registre éditorial du cabinet) ---- */
.btn, .nav__cta { border-radius: 0; }
.btn--light { color: var(--plate-em); border: 1px solid var(--plate-em); }
.btn--light:hover { background: var(--plate-em); color: var(--night-3); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--accent); color: #fff; }

/* ---- Wordmark nominal (nom complet, pas le sigle) ---- */
.nav__brand { font-size: 13px; letter-spacing: 0.18em; padding-left: 0; line-height: 1.3; }
.nav__brand .nav__brand-sub { letter-spacing: 0.26em; }

/* ---- Nav — par défaut posée sur le hero sombre (accueil) ---- */
.nav__brand { color: #fff; }
.nav__brand .nav__brand-sub {
  display: block; font-size: 8.5px; letter-spacing: 0.3em; padding-left: 0.02em;
  color: var(--plate-eyebrow); text-transform: uppercase; margin-top: 4px; font-weight: 500;
}
.nav__links a { color: rgba(255,255,255,0.75); }
.nav__links a:hover { color: #fff; }
.nav__cta { color: #fff; border-color: rgba(255,255,255,0.5); }
.nav__cta:hover { background: #fff; color: var(--ink); }
.nav.is-scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav.is-scrolled .nav__brand .nav__brand-sub { color: var(--accent); }
.nav.is-scrolled .nav__links a { color: var(--fg-soft); }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }
.nav.is-scrolled .nav__cta { color: var(--ink); border-color: var(--ink); }
.nav.is-scrolled .nav__cta:hover { background: var(--ink); color: #fff; }
/* Pages intérieures : nav sur fond blanc dès le chargement */
.nav--onlight .nav__brand { color: var(--ink); }
.nav--onlight .nav__brand .nav__brand-sub { color: var(--accent); }
.nav--onlight .nav__links a { color: var(--fg-soft); }
.nav--onlight .nav__links a:hover { color: var(--ink); }
.nav--onlight .nav__cta { color: var(--ink); border-color: var(--ink); }
.nav--onlight .nav__cta:hover { background: var(--ink); color: #fff; }

/* ---- Hero scrub : le seul moment pleinement sombre ---- */
.scrub { background: var(--night-3); }
.scrub__scrim {
  background:
    linear-gradient(to top, rgba(10,20,36,0.80) 0%, rgba(10,20,36,0.14) 42%, rgba(10,20,36,0) 65%),
    linear-gradient(to bottom, rgba(10,20,36,0.55) 0%, rgba(10,20,36,0) 28%);
}
.loader { background: var(--plate-grad); }
.loader__brand { color: #fff; }
.loader__track { background: rgba(255,255,255,0.16); }
.loader__bar { background: var(--plate-em); }
.loader__pct { color: var(--plate-eyebrow); }
.scrub__eyebrow {
  display: flex; align-items: center; gap: 14px; color: var(--plate-eyebrow);
}
.scrub__eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--plate-eyebrow); opacity: 0.85; flex: 0 0 auto; }
.scrub__title { color: #fff; font-weight: 400; }
.scrub__beat-title { color: #fff; font-weight: 400; }
.scrub__title em, .scrub__beat-title em { color: var(--plate-em); }
.scrub__tagline { color: var(--paper-soft); }
.scrub__beat-copy { color: var(--paper-soft); }
.scrub__cue { color: rgba(255,255,255,0.55); }
.scrub__cue-line { background: linear-gradient(rgba(255,255,255,0.55), transparent); }

/* ---- Plaque bleu nuit (blocs de titre) ---- */
.plate {
  background: var(--plate-grad);
  border: 1px solid rgba(255,255,255,0.09);
  padding: clamp(30px, 4.5vw, 52px);
}
.plate .eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--plate-eyebrow); margin-bottom: 16px;
}
.plate .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--plate-eyebrow); opacity: 0.85; flex: 0 0 auto; }
.plate h1, .plate h2 { color: #fff; line-height: 1.18; letter-spacing: -0.006em; }
.plate h1 { font-size: clamp(34px, 5.2vw, 54px); }
.plate h2 { font-size: clamp(28px, 4.2vw, 44px); }
.plate em { color: var(--plate-em); }
.plate p { color: var(--paper-soft); }
.plate .plate__copy { margin: 18px 0 0; font-size: clamp(15px, 1.3vw, 17px); max-width: 56ch; line-height: 1.7; }
.plate .plate__tag { margin: 18px 0 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.plate .btn { margin-top: 26px; }

/* ---- En-tête de page intérieure ---- */
.pagehead { padding: calc(clamp(70px, 12vh, 120px) + 64px) var(--pad) 0; background: var(--bg); }
.pagehead__inner { max-width: var(--maxw); margin: 0 auto; }
.pagehead .plate { max-width: 860px; }
.pagehead__sub { max-width: 62ch; color: var(--fg-soft); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.75; margin: 34px 0 0; }

/* ---- Sections génériques de page intérieure ---- */
.section { padding: clamp(70px, 11vh, 150px) var(--pad); background: var(--bg); }
.section--alt { background: var(--bg-2); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section .plate { max-width: 860px; margin-bottom: clamp(30px, 5vh, 54px); }
.prose { max-width: 64ch; color: var(--fg-soft); font-size: clamp(15.5px, 1.35vw, 17.5px); line-height: 1.8; }
.prose p { margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 500; color: var(--fg); }

/* ---- Éditorial : ombre adaptée au fond clair ---- */
.frame { box-shadow: 0 30px 70px -40px rgba(16,33,58,0.45); background: var(--bg-3); }
.frame::after { color: var(--muted); }
.frame--portrait { aspect-ratio: 4 / 5; }
.editorial__text .plate { margin-bottom: 26px; }
.editorial__title { font-weight: 400; }

/* ---- La méthode : étapes numérotées ---- */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: clamp(14px, 3vw, 26px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.step__t { font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); font-weight: 400; line-height: 1.15; margin: 0 0 8px; color: var(--fg); }
.step__c { margin: 0; font-size: 15.5px; color: var(--fg-soft); line-height: 1.65; max-width: 52ch; }
.steps__closing { font-size: clamp(16px, 1.4vw, 18px); color: var(--fg); margin: 30px 0 0; }

/* ---- Les domaines (aperçu accueil) ---- */
.doms { list-style: none; margin: 0; padding: 0; max-width: 780px; border-top: 1px solid var(--line); }
.dom { padding: 26px 0; border-bottom: 1px solid var(--line); }
.dom__t { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; margin: 0 0 8px; color: var(--fg); }
.dom__t em { color: var(--accent); }
.dom__c { margin: 0; font-size: 15.5px; color: var(--fg-soft); line-height: 1.7; max-width: 62ch; }
.doms__more { display: inline-block; margin-top: 28px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.doms__more:hover { color: var(--fg); border-color: var(--fg); }

/* ---- Interventions (page compétences) ---- */
.iv { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 clamp(28px, 4vw, 56px); max-width: 780px; }
.iv li { border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 15px; color: var(--fg-soft); }
.iv li::before { content: "— "; color: var(--accent); }
.iv-label { margin-top: 34px; }

/* ---- Full-bleed : texte clair garanti sur l'image ---- */
.bleed__scrim {
  background:
    linear-gradient(to top, rgba(10,20,36,0.88) 0%, rgba(10,20,36,0.32) 38%, rgba(10,20,36,0) 60%),
    linear-gradient(to right, rgba(10,20,36,0.55) 0%, rgba(10,20,36,0.12) 50%, rgba(10,20,36,0) 80%);
}
.bleed__title { color: #fff; font-weight: 400; }
.bleed__title em { color: var(--plate-em); }
.bleed__copy { color: var(--paper-soft); }
.bleed .eyebrow--light { color: var(--plate-eyebrow); display: flex; align-items: center; gap: 14px; }
.bleed .eyebrow--light::before { content: ""; width: 26px; height: 1px; background: var(--plate-eyebrow); opacity: 0.85; flex: 0 0 auto; }

/* ---- Panneau CTA (plaque large) ---- */
.ctapanel { padding: clamp(70px, 11vh, 150px) var(--pad); background: var(--bg); }
.ctapanel__inner { max-width: var(--maxw); margin: 0 auto; }
.ctapanel .plate { max-width: 860px; }

/* ---- Formulaire « Exposer ma situation » ---- */
.expose { padding: clamp(50px, 8vh, 100px) var(--pad) clamp(90px, 13vh, 170px); background: var(--bg); }
.expose__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--line); background: var(--bg-2); padding: clamp(24px, 4vw, 40px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--sans); font-weight: 300; font-size: 15px; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; outline: none; transition: border-color .3s var(--ease);
}
.field textarea { border: 1px solid var(--line); padding: 14px; min-height: 150px; resize: vertical; line-height: 1.6; background: var(--bg); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form__counter { font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); align-self: flex-end; margin-top: -14px; font-variant-numeric: tabular-nums; }
.form__counter.is-over { color: #A94438; font-weight: 500; }
.form .btn { align-self: flex-start; cursor: pointer; border: 1px solid var(--ink); font-family: var(--sans); }
.form__note { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 56ch; }
.expose__aside .frame { margin-bottom: 34px; }
.expose__coords { border-top: 1px solid var(--line); margin-top: 8px; }
.expose__coords .contact-row { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.expose__coords .contact-row span:first-child { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.expose__coords .contact-row span:last-child, .expose__coords .contact-row a { font-family: var(--serif); font-size: clamp(17px, 1.6vw, 21px); color: var(--fg); }

/* ---- Mentions légales ---- */
.legal { padding: clamp(50px, 8vh, 90px) var(--pad) clamp(90px, 13vh, 160px); background: var(--bg); }
.legal__inner { max-width: 820px; margin: 0 auto 0 0; }
.legal h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 54px 0 18px; color: var(--fg); }
.legal h2 em { color: var(--accent); }
.legal table { border-collapse: collapse; width: 100%; margin: 0 0 8px; }
.legal td { padding: 11px 18px 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-soft); vertical-align: top; }
.legal td:first-child { width: 200px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.legal__toc { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.legal__toc a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid transparent; }
.legal__toc a:hover { border-color: var(--accent); }

/* ---- Footer 3 colonnes sur bleu nuit ---- */
.footer { background: var(--plate-grad); }
.footer__cols {
  max-width: var(--maxw); margin: 0 auto; padding-bottom: 50px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 70px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__col h4, .footer__coltitle { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--plate-eyebrow); margin: 0 0 16px; }
.footer__col p, .footer__col a { font-size: 14px; font-weight: 300; color: var(--paper-soft); line-height: 2; margin: 0; display: block; }
.footer__col a:hover { color: #fff; }
.footer__base { color: var(--paper-soft); }
.footer .footer__legal { color: rgba(195,208,222,0.75); }
.footer .footer__legal a:hover { color: #fff; }

/* ---- Responsive du thème ---- */
@media (max-width: 980px) {
  .expose__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 34px; }
  .legal td:first-child { width: 140px; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 44px 1fr; }
  .step__n { font-size: 26px; }
  .legal td { display: block; }
  .legal td:first-child { width: auto; padding-bottom: 0; border-bottom: 0; }
}

/* ---- Micro-CTA sous les boutons (rassurance courte) ---- */
.scrub__microcta {
  margin: 16px 0 0;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--plate-eyebrow);
  text-shadow: 0 1px 20px rgba(0,0,0,0.5);
}
.plate__microcta {
  margin: 18px 0 0;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--plate-eyebrow);
}

/* ---- Ligne directe dans l'aperçu Droit pénal ---- */
.dom__tel { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 1px; white-space: nowrap; }
.dom__tel:hover { color: var(--fg); border-color: var(--fg); }

/* ---- Le hero porte désormais un H1 sur 2 lignes : un cran plus sobre ---- */
.scrub__title { font-size: clamp(40px, 6.6vw, 86px); line-height: 1.06; }

/* ---- Piege anti-spam Netlify Forms (invisible, hors flux, non focusable) ---- */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Message d'erreur du formulaire (retour PHP ?erreur=1) ---- */
.form__error { margin: 0; padding: 14px 16px; border-left: 3px solid #A94438;
  background: rgba(169,68,56,0.06); color: #8C3830; font-size: 13.5px; line-height: 1.65; }
