/* ============================================================
   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 {
  /* ---- Backgrounds (dark by default — swap to taste) ---- */
  --bg:          #14100b;   /* ADAPT — brun-noir chaud, le "papier" passé en nuit */
  --bg-2:        #1a150e;   /* derived: +1 step lighter (alternating bands) */
  --bg-3:        #211a12;   /* derived: +2 steps */
  --ink:         #0e0b07;   /* derived: darkest (stats / footer) */

  /* ---- Text ---- */
  --fg:          #f3eee2;   /* ADAPT — crème tiède (le paper de la marque) */
  --fg-soft:     #cfc6b4;   /* derived: secondary text */
  --muted:       #948a78;   /* derived: labels, legal, captions */

  /* ---- Accent + lines ---- */
  --accent:      #c9b07e;   /* ADAPT — l'or clair de la marque, seul accent */
  --line:        rgba(243, 238, 226, 0.14); /* derived from --fg @ ~14% — hairline dividers */

  /* ---- Layout ---- */
  --maxw:        1240px;
  --pad:         clamp(22px, 5vw, 80px);

  /* ---- Motion + type ---- */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --serif:       'Cormorant Garamond', Georgia, serif;   /* ADAPT — display / headings */
  --sans:        'Jost', system-ui, sans-serif;          /* ADAPT — body / UI */
  --mono:        'IBM Plex Mono', monospace;             /* touches "atlas scientifique" */
}

/* ============================================================
   STRUCTURAL CSS — drives the engine. Rarely needs editing.
   ============================================================ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

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; }
/* Phrase mise en avant (même police que le menu = Jost), un peu plus claire */
.lede-accent {
  display: inline; color: var(--fg); font-weight: 500; letter-spacing: 0.01em;
}
.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(14, 11, 7, 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); }

/* Au-dessus du hero image (nav transparente), on masque la marque pour ne
   pas doubler le titre déjà gravé dans l'image ; elle réapparaît dès que la
   nav passe en fond solide au scroll. Ombre légère pour la lisibilité. */
.nav__brand, .nav__links a, .nav__cta { text-shadow: 0 1px 14px rgba(0,0,0,0.55); }
.nav:not(.is-scrolled) .nav__brand { opacity: 0; pointer-events: none; }
.nav.is-scrolled .nav__brand, .nav.is-scrolled .nav__links a, .nav.is-scrolled .nav__cta { text-shadow: none; }

/* ---- Burger (mobile/tablette) — caché en desktop ---- */
.nav__burger { display: none; }
.nav__links-cta { display: none; }   /* CTA dupliqué : visible seulement dans le panneau mobile */

/* ============================================================
   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: 240vh; 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(14,11,7,0.78) 0%, rgba(14,11,7,0.12) 42%, rgba(14,11,7,0) 65%),
    linear-gradient(to bottom, rgba(14,11,7,0.5) 0%, rgba(14,11,7,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); } }

/* ============================================================
   HERO — vidéo d'accueil (circuit / ville) + titre en surimpression
   ============================================================ */
.hero-img {
  position: relative; overflow: hidden; background: #06080c;
  height: 100vh; height: 100svh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  perspective: 1400px;
}
.hero-img__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: center; will-change: transform; transition: transform .3s var(--ease);
}
/* Tilt souris désactivé : la vidéo joue en continu, sans réaction au survol, et reste nette (pas de rééchantillonnage). */
.hero-img__scrim {
  position: absolute; inset: 0; pointer-events: none;
  /* Le bas fond complètement vers le noir du 2e bloc (#04060a) — jonction
     fondue façon Apple, sans trait net. */
  background: linear-gradient(to bottom,
    rgba(6,8,12,0.62) 0%,
    rgba(6,8,12,0.16) 30%,
    rgba(5,7,11,0.52) 74%,
    rgba(4,6,10,0.92) 93%,
    #04060a 100%);
}
.hero-img__content { position: relative; z-index: 2; max-width: 900px; padding: 0 var(--pad); }
.hero-img__eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 22px; text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero-img__title {
  font-family: var(--serif); font-weight: 500; line-height: 0.98; letter-spacing: -0.01em;
  font-size: clamp(54px, 9vw, 124px); color: var(--fg); text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero-img__title em { font-style: italic; color: var(--fg); }
.hero-img__title { margin-bottom: 30px; }
.hero-img__tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.8vw, 34px);
  color: #f4ffff;
  margin: 30px auto 0; max-width: 26ch;
  text-shadow: 0 0 30px rgba(87,224,230,0.6), 0 0 14px rgba(87,224,230,0.45), 0 2px 20px rgba(0,0,0,0.95);
  letter-spacing: 0.01em; line-height: 1.35;
}

@media (max-width: 760px) {
  .hero-img { height: 92vh; height: 92svh; min-height: 520px; }
}

/* ============================================================
   INTRO — terminal codeur scientifique → extinction "vieille télé" → site
   L'overlay est MASQUÉ par défaut : il n'apparaît que si le JS l'active
   (.is-active). Si le JS ne se charge pas (ex. fichier ouvert seul sur
   mobile), le site reste visible — pas d'écran noir bloquant.
   ============================================================ */
.intro {
  display: none;
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  background: #06080c; color: #7CF6A8;
  font-family: var(--mono);
}
.intro.is-active { display: block; }
.intro.is-gone { display: none; }

.intro__warp { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform, filter, opacity; }

/* Extinction tube cathodique : l'image s'écrase en une ligne, puis un point. */
.intro.is-off { background: #000; }
.intro.is-off .intro__warp { animation: crtOff .55s cubic-bezier(.6,.05,.3,1) forwards; }
@keyframes crtOff {
  0%   { transform: scale(1, 1);          filter: brightness(1); opacity: 1; }
  46%  { transform: scale(1, 0.006);      filter: brightness(4.5); opacity: 1; }
  70%  { transform: scale(1, 0.006);      filter: brightness(5.5); opacity: 1; }
  100% { transform: scale(0.0012, 0.006); filter: brightness(9); opacity: .85; }
}
/* Ligne blanche nette au centre qui se rétracte en point (le "blip" télé). */
.intro__crt {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; z-index: 5; pointer-events: none;
  transform: translateY(-50%) scaleX(0); opacity: 0;
  background: #eafff2; box-shadow: 0 0 24px 6px rgba(234,255,242,0.9);
}
.intro.is-off .intro__crt { animation: crtLine .55s cubic-bezier(.6,.05,.3,1) forwards; }
@keyframes crtLine {
  0%   { transform: translateY(-50%) scaleX(0);    opacity: 0; }
  46%  { transform: translateY(-50%) scaleX(1);    opacity: 1; }
  70%  { transform: translateY(-50%) scaleX(1);    opacity: 1; }
  92%  { transform: translateY(-50%) scaleX(0.015); opacity: 1; }
  100% { transform: translateY(-50%) scaleX(0.015); opacity: 0; }
}

/* Fond vidéo de l'intro (hyperspace) + voile pour la lisibilité du terminal. */
.intro__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.intro__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(6,8,12,0.30) 0%, rgba(6,8,12,0.62) 55%, rgba(6,8,12,0.88) 100%);
}

.intro__flash {
  position: absolute; inset: 0; background: #eafff2; opacity: 0; pointer-events: none; z-index: 6;
}
.intro.is-off .intro__flash { animation: crtFlash .55s ease-out forwards; }
@keyframes crtFlash { 0%, 88% { opacity: 0; } 95% { opacity: .8; } 100% { opacity: 0; } }

.intro__terminal {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(660px, 90vw); padding: 0 0 24px;
  background: rgba(5,9,13,0.9);
  border: 1px solid rgba(124,246,168,0.32); border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(124,246,168,0.06), 0 30px 90px -28px rgba(0,0,0,0.9), 0 0 70px rgba(124,246,168,0.10) inset;
  backdrop-filter: blur(2px); overflow: hidden;
}
/* Barre de titre du terminal (pastilles + chemin), façon fenêtre de code. */
.intro__terminal::before {
  content: "●  ●  ●      root@matrice — /portail/optogramme";
  display: block; letter-spacing: 1px; font-size: 11px;
  color: rgba(124,246,168,0.55); padding: 12px 18px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(124,246,168,0.18);
  background: rgba(124,246,168,0.05);
}
.intro__lines {
  margin: 0; padding: 0 26px; font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 15.5px); line-height: 2;
  white-space: pre-wrap; word-break: break-word; min-height: 7.5em;
  color: #9dffc2; text-shadow: 0 0 12px rgba(124,246,168,0.30);
}
.intro__lines .ln-prompt { color: #ff8a4c; text-shadow: 0 0 14px rgba(255,138,76,0.45); }
.intro__lines .ln-cmd { color: #cfeede; }
.intro__lines .ln-ok { color: #7CF6A8; }
.intro__lines .ln-msg { color: #eafff2; font-style: italic; text-shadow: 0 0 18px rgba(124,246,168,0.6); }
.intro__lines .ln-dim { color: rgba(124,246,168,0.55); }
.intro__lines .ln-bar { color: #7CF6A8; letter-spacing: 1px; }
.intro__caret {
  display: inline-block; width: 9px; height: 1.05em; vertical-align: -2px;
  background: #7CF6A8; margin-left: 2px; box-shadow: 0 0 10px rgba(124,246,168,0.8);
  animation: introCaret 1s steps(1) infinite;
}
@keyframes introCaret { 50% { opacity: 0; } }

.intro__skip {
  position: absolute; z-index: 6; right: 22px; bottom: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(124,246,168,0.6); background: none; border: 1px solid rgba(124,246,168,0.25);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: color .25s, border-color .25s;
}
.intro__skip:hover { color: #eafff2; border-color: rgba(124,246,168,0.6); }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
}

/* ============================================================
   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(14,11,7,0.88) 0%, rgba(14,11,7,0.32) 38%, rgba(14,11,7,0) 60%),
    linear-gradient(to right, rgba(14,11,7,0.55) 0%, rgba(14,11,7,0.12) 50%, rgba(14,11,7,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);
}

/* ============================================================
   MATRICE LAYER (additive) — sections propres au site
   Matrice d'Énergies : bandeau d'arcanes, octogramme, planche
   calculateur, zones, packs, missions, accordéon, outil pro,
   consultation, modales. Ne touche pas au moteur scrub.
   ============================================================ */

.mono { font-family: var(--mono); }
.nav__brand { font-size: 13px; letter-spacing: 0.3em; }

/* ---- helpers de section ---- */
.band { padding: clamp(90px, 13vh, 180px) var(--pad); background: var(--bg); }
.band--alt { background: var(--bg-2); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.shead { margin: 0 0 clamp(44px, 7vh, 80px); max-width: 720px; }
.section-title { font-size: clamp(36px, 4.8vw, 68px); color: var(--fg); }
.section-title em { color: var(--accent); }

/* ---- octogramme (hero + éditorial) ---- */
.scrub__sigil {
  position: absolute; top: 50%; right: clamp(20px, 7vw, 110px);
  transform: translateY(-50%);
  width: min(38vw, 480px); z-index: 5; pointer-events: none; opacity: 0.85;
}
.scrub__sigil svg { width: 100%; height: auto; overflow: visible; display: block; }
.sigil-trait { fill: none; stroke: var(--accent); stroke-width: 1; }
.sigil-trait.t2 { stroke: rgba(201, 176, 126, 0.6); }
.sigil-trait.t3 { stroke: rgba(243, 238, 226, 0.3); }
.sigil-noeud { fill: var(--bg); stroke: var(--accent); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  .sigil-trait { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: sigilTracer 3.2s var(--ease) forwards; }
  .sigil-trait.t2 { animation-delay: 0.5s; }
  .sigil-trait.t3 { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation-delay: 1s; }
  .sigil-noeud { opacity: 0; animation: sigilApparaitre 0.6s ease forwards; animation-delay: 1.6s; }
  .sigil-pulse { transform-origin: center; animation: sigilPulser 6s ease-in-out infinite; }
}
@keyframes sigilTracer { to { stroke-dashoffset: 0; } }
@keyframes sigilApparaitre { to { opacity: 1; } }
@keyframes sigilPulser { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* ---- bandeau des 22 arcanes ---- */
.bandeau {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden; background: var(--bg-2);
}
.bandeau__piste { display: flex; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .bandeau__piste { animation: bandeauDefiler 46s linear infinite; }
  .bandeau:hover .bandeau__piste { animation-play-state: paused; }
}
@keyframes bandeauDefiler { to { transform: translateX(-50%); } }
.bandeau__item {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); padding: 0 28px; display: flex; align-items: center; gap: 28px; white-space: nowrap;
}
.bandeau__item::after { content: '◦'; color: var(--accent); }

/* ---- éditorial : cadre SVG (optogramme) ---- */
.frame--svg {
  aspect-ratio: 1 / 1; background: var(--bg-3); background-image: none;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 5vw, 56px);
}
.frame--svg::after { content: none; }
.frame--svg svg { width: 100%; height: 100%; overflow: visible; }
.frame__legende {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); z-index: 2;
}

/* ---- trio de définitions (sous l'éditorial) ---- */
.defs {
  max-width: var(--maxw); margin: clamp(56px, 9vh, 100px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3.5vw, 48px);
}
.def { border-top: 1px solid var(--line); padding-top: 26px; }
.def__glyphe { font-family: var(--serif); font-size: 38px; color: var(--accent); line-height: 1; display: block; }
.def h3 { font-size: 22px; margin: 14px 0 10px; color: var(--fg); }
.def p { font-size: 15px; color: var(--fg-soft); margin: 0; line-height: 1.7; }

/* ---- planche ÉLECTRONIQUE sombre (calculateur) — fondue dans le décor ----
   On garde la STRUCTURE de la matrice (boules colorées + tracé + numéros)
   à l'identique : seuls le fond crème et les couleurs neutres passent en
   "carte électronique" cyan, pour se fondre dans le site sombre. */
/* L'outil n'a plus de boîte : il se fond dans le décor (champ de particules). */
.plate {
  background: transparent; border: none; box-shadow: none; border-radius: 0;
  color: #cfeef0;
  padding: clamp(18px, 3vw, 36px) 0 0; max-width: 980px; margin: 0 auto;
  position: relative; z-index: 1;
}
.note-outil { text-align: center; margin: 22px 0 0; font-size: 14px; color: rgba(207,238,240,0.6); font-style: italic; font-family: var(--serif); }

/* champ date — verre sombre + accents électriques */
.date-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.date-row label { font-weight: 400; letter-spacing: 0.04em; color: rgba(207,238,240,0.75); }
.date-input {
  display: flex; align-items: center; gap: 5px;
  background: rgba(87,224,230,0.06); border: 1px solid rgba(87,224,230,0.35); border-radius: 10px;
  padding: 9px 14px; font-size: 16px; font-family: var(--mono); color-scheme: dark;
}
.date-input input {
  border: none; outline: none; width: 2.4ch; text-align: center; font-size: 16px;
  font-family: var(--mono); background: transparent; color: #eafeff;
  caret-color: #57e0e6; -webkit-text-fill-color: #eafeff; appearance: none;
}
.date-input input.year { width: 4.6ch; }
.date-input input::placeholder { color: rgba(207,238,240,0.32); -webkit-text-fill-color: rgba(207,238,240,0.32); }
.date-input span { color: #57e0e6; font-weight: 500; }
.date-input input:-webkit-autofill, .date-input input:-webkit-autofill:hover, .date-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eafeff !important; box-shadow: 0 0 0 1000px #0c1620 inset !important;
  transition: background-color 9999s ease-in-out 0s;
}
#btn-calculer {
  padding: 11px 26px; border: 1px solid #57e0e6; background: #57e0e6; color: #04161a;
  border-radius: 999px; font-weight: 500; cursor: pointer; font-size: 13px; font-family: var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase; transition: all 0.4s var(--ease);
}
#btn-calculer:hover { background: #8af1f5; border-color: #8af1f5; transform: translateY(-1px); box-shadow: 0 0 22px rgba(87,224,230,0.45); }
#btn-calculer:active { transform: translateY(1px); }
@media (max-width: 480px) { .date-input input { font-size: 15px; } #btn-calculer { font-size: 12px; padding: 10px 20px; } }

/* Décor animé de l'outil : champ de particules / circuit qui occupe toute la
   section, en arrière-plan. Mouvement continu, fondu dans le fond noir. */
.tool-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
}

/* SVG matrice — fond sombre + tracé électrique (positions/numéros inchangés) */
#stage { position: relative; width: 100%; max-width: 860px; margin: 0 auto; z-index: 1; }
#matrice-svg {
  width: 100%; height: auto; border: none; background: transparent;
  opacity: 0; transition: opacity 0.9s ease;   /* révélée par l'effet spirale après "Calculer" */
}
#matrice-svg line, #matrice-svg polyline, #matrice-svg polygon {
  stroke: rgba(87,224,230,0.55); stroke-width: 1.2; stroke-dasharray: 1.5, 2.5; stroke-linecap: round;
}
/* boules vides (avant calcul) : contour cyan. Une fois calculées, matrice.js
   applique la couleur d'énergie en inline (prioritaire) → inchangé. */
#points circle { fill: rgba(87,224,230,0.05); stroke: rgba(87,224,230,0.45); stroke-width: 1; }
/* petits points des graduations (étaient noirs) → cyan */
#graduations-ages circle { fill: rgba(87,224,230,0.65); }
#texte-matrice text { font-size: 12px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
#graduations-ages text { font-size: 6px; fill: rgba(170,224,228,0.55); text-anchor: middle; dominant-baseline: middle; }
#energy-ages text { text-anchor: middle; dominant-baseline: middle; fill: #dff6f0; }
#energy-ages .energy-year { font-size: 7px; font-weight: 400; }
#energy-ages .energy-anchor { font-size: 8px; font-weight: 600; }

/* ---- shead avec bougie intégrée (calculateur) ---- */
.shead--with-candle {
  display: flex; align-items: flex-start; gap: clamp(24px, 4vw, 56px);
  max-width: var(--maxw);
}
.shead__text { flex: 1; }

/* ---- vidéo bougie (intégrée dans le shead, à droite du titre) ---- */
.candle-vid {
  order: -1;                 /* placée À GAUCHE du titre du 2e bloc */
  flex: 0 0 auto;
  width: clamp(84px, 8.5vw, 128px);
  aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 8px; opacity: 0.92; pointer-events: none;
  margin: 2px clamp(18px, 2.4vw, 34px) 0 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 92% at 50% 55%, #000 36%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 92% at 50% 55%, #000 36%, transparent 100%);
}
@media (max-width: 980px) { .candle-vid { display: none; } }

/* ---- zones ---- */
.zones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.zone-card {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: 4px; padding: 32px 28px 28px;
  background: var(--bg-3); display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.zone-card:hover, .zone-card:focus-visible {
  transform: translateY(-6px); border-color: rgba(201, 176, 126, 0.5);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.zone-card__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center;
}
.zone-card__prix { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--fg-soft); letter-spacing: 0.14em; }
.zone-card h3 { font-size: 24px; margin: 0 0 10px; color: var(--fg); font-weight: 500; }
.zone-card p { font-size: 14.5px; color: var(--fg-soft); flex: 1; margin: 0; line-height: 1.65; }
.zone-card__lien {
  margin-top: 22px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.zone-card__lien::after { content: '→'; transition: transform 0.3s var(--ease); }
.zone-card:hover .zone-card__lien::after { transform: translateX(6px); }
.zone-card__offerte {
  position: absolute; top: 18px; right: -34px; transform: rotate(38deg);
  background: var(--accent); color: var(--ink); font-size: 10px; letter-spacing: 0.18em;
  padding: 4px 40px; text-transform: uppercase; font-weight: 500;
}

/* ---- packs / tarifs ---- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pack {
  border: 1px solid var(--line); border-radius: 4px; padding: 42px 34px;
  background: var(--bg-2); display: flex; flex-direction: column; position: relative;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.pack:hover { transform: translateY(-6px); }
.pack--vedette { border-color: rgba(201, 176, 126, 0.55); background: var(--bg-3); }
.pack__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--ink); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; padding: 6px 18px; border-radius: 999px; white-space: nowrap; font-weight: 500;
}
.pack h3 { font-size: 26px; margin: 0 0 6px; color: var(--fg); }
.pack__desc { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.pack__prix { font-family: var(--serif); font-size: clamp(46px, 4vw, 58px); color: var(--fg); line-height: 1; }
.pack__prix small { font-size: 0.4em; color: var(--accent); }
.pack__remise { font-size: 12.5px; color: var(--accent); letter-spacing: 0.06em; margin: 10px 0 26px; min-height: 1.2em; }
.pack ul { list-style: none; text-align: left; margin: 0 0 30px; padding: 0; flex: 1; }
.pack ul li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg-soft); display: flex; gap: 10px; }
.pack ul li::before { content: '—'; color: var(--accent); flex: none; }
.tarif-note { text-align: center; margin: 44px auto 0; font-size: 15px; color: var(--fg-soft); max-width: 720px; }
.tarif-note b { color: var(--accent); font-weight: 500; }

/* boutons de paiement (couleurs fonctionnelles Stripe / PayPal) */
.btns-payer { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 0 auto; width: 100%; }
.btn-payer {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  padding: 13px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); letter-spacing: 0.02em;
}
.btn-payer:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.btn-payer.stripe { background: #635bff; }
.btn-payer.stripe:hover { background: #4a3fcc; }
.btn-payer.paypal { background: #0070ba; }
.btn-payer.paypal:hover { background: #005c99; }

/* ---- missions (timeline 3 temps) ---- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3.5vw, 48px); }
.tl-item { border-top: 1px solid var(--line); padding-top: 26px; }
.tl-age { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.tl-item h3 { font-size: 26px; margin: 14px 0 10px; color: var(--fg); }
.tl-item p { font-size: 15px; color: var(--fg-soft); margin: 0; line-height: 1.7; }
.tl-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; cursor: pointer;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid rgba(201, 176, 126, 0.4); padding-bottom: 3px;
}
.tl-link:hover { color: var(--fg); border-color: var(--fg); }

/* ---- accordéon (charte) ---- */
.accordeon { max-width: 860px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-tete {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 4px; text-align: left; gap: 18px; color: var(--fg);
}
.acc-tete h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin: 0; line-height: 1.3; }
.acc-ico {
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--accent);
  transition: all 0.35s var(--ease); font-family: var(--sans);
}
.acc-item.ouvert .acc-ico { transform: rotate(45deg); background: var(--accent); color: var(--ink); border-color: var(--accent); }
.acc-corps { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.acc-corps-int { padding: 0 4px 28px; color: var(--fg-soft); font-size: 15px; line-height: 1.7; }
.acc-corps-int p { margin: 0 0 12px; }
.acc-corps-int ul { margin: 10px 0 10px 20px; padding: 0; }
.acc-corps-int li { margin: 6px 0; }
.citation {
  border-left: 2px solid var(--accent); padding: 14px 20px; margin: 18px 0;
  background: rgba(201, 176, 126, 0.07); font-style: italic; font-family: var(--serif);
  font-size: 18px; color: var(--fg); border-radius: 0 6px 6px 0; line-height: 1.5;
}

/* ---- consultation ---- */
.consult { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.consult-infos h3 { font-size: 22px; margin: 28px 0 10px; color: var(--accent); font-weight: 500; }
.consult-infos h3:first-child { margin-top: 0; }
.consult-infos p { font-size: 15px; color: var(--fg-soft); margin: 0 0 8px; line-height: 1.7; }
.consult-infos strong { color: var(--fg); font-weight: 500; }
.consult-infos ol { margin: 10px 0 10px 20px; padding: 0; color: var(--fg-soft); font-size: 15px; }
.consult-infos ol li { margin: 7px 0; }
.offre {
  margin-top: 34px; border: 1px dashed rgba(201, 176, 126, 0.5); border-radius: 6px;
  padding: 24px; background: rgba(201, 176, 126, 0.06);
}
.offre h3 { margin-top: 0 !important; }
.formulaire { background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: clamp(28px, 4vw, 42px); }
.champ { margin-bottom: 20px; }
.champ label { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.req { color: var(--accent); }
.champ input, .champ textarea, .champ select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg-2); font-family: var(--sans); font-size: 15px; color: var(--fg);
  font-weight: 300; transition: border-color 0.3s var(--ease); box-sizing: border-box;
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--muted); opacity: 0.7; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--accent); }
.champ select { color-scheme: dark; }
.champ textarea { min-height: 130px; resize: vertical; }
.form-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-envoyer { width: 100%; justify-content: center; border: none; cursor: pointer; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; font-style: italic; }

/* ---- footer extras ---- */
.footer__mail { margin: 18px 0 0; }
.footer__mail a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--fg-soft); }
.footer__mail a:hover { color: var(--accent); }
.footer__legal a:hover { color: var(--accent); }

/* ---- bouton haut de page ---- */
.haut-page {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-3); color: var(--fg); border: 1px solid var(--line); cursor: pointer;
  font-size: 17px; opacity: 0; pointer-events: none; transition: all 0.4s var(--ease); z-index: 150;
}
.haut-page.visible { opacity: 1; pointer-events: auto; }
.haut-page:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateY(-3px); }

/* ---- modales ---- */
.modale-fond {
  position: fixed; inset: 0; background: rgba(8, 6, 4, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 400; display: flex; align-items: center; justify-content: center; padding: 22px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.modale-fond.ouverte { opacity: 1; pointer-events: auto; }
.modale {
  background: var(--bg-2); border: 1px solid var(--line);
  border-top: 2px solid var(--accent-z, var(--accent));
  border-radius: 8px; max-width: 820px; width: 100%; max-height: 88vh;
  overflow-y: auto; position: relative; padding: clamp(36px, 5vw, 54px) clamp(22px, 5vw, 50px);
  transform: translateY(26px) scale(0.98); transition: transform 0.4s var(--ease);
  overscroll-behavior: contain;
}
.modale-fond.ouverte .modale { transform: translateY(0) scale(1); }
.modale-fermer {
  position: sticky; top: 0; margin-left: auto; display: flex; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer;
  align-items: center; justify-content: center; font-size: 16px; color: var(--fg);
  transition: all 0.3s var(--ease); z-index: 5; float: right;
}
.modale-fermer:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.modale .eyebrow { color: var(--accent-z, var(--accent)); margin-bottom: 14px; }
.modale h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 6px; color: var(--fg); }
.modale-sous { font-style: italic; font-family: var(--serif); font-size: 19px; color: var(--fg-soft); margin: 0 0 30px; }
.modale h3 { font-size: 22px; margin: 30px 0 12px; color: var(--accent-z, var(--accent)); font-weight: 500; }
.modale h4 { font-size: 16px; margin: 0 0 8px; font-weight: 500; font-family: var(--sans); letter-spacing: 0.03em; color: var(--fg); }
.modale p { margin: 12px 0; font-size: 15px; color: var(--fg-soft); line-height: 1.7; }
.modale ul, .modale ol { margin: 12px 0 12px 22px; padding: 0; }
.modale li { margin: 7px 0; font-size: 14.5px; color: var(--fg-soft); line-height: 1.6; }
.modale strong { font-weight: 500; color: var(--fg); }
.modale a { color: var(--accent); }
.modale .citation { border-color: var(--accent-z, var(--accent)); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.pole { border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.pole.pos { border-color: rgba(111, 140, 90, 0.45); background: rgba(111, 140, 90, 0.08); }
.pole.neg { border-color: rgba(176, 72, 72, 0.4); background: rgba(176, 72, 72, 0.07); }
.pole h4 { margin-top: 0; }

/* bloc paiement dans modale */
.bloc-paiement {
  margin-top: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 28px;
  text-align: center; background: var(--bg-3);
}
.bp-titre { font-family: var(--serif); font-size: 21px; margin: 0 0 4px; color: var(--fg); }
.bp-prix { font-family: var(--mono); font-size: 24px; color: var(--accent); margin: 8px 0 18px; }
.bp-prix small { font-size: 12px; color: var(--muted); display: block; letter-spacing: 0.1em; margin-top: 6px; font-family: var(--sans); }
.bp-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; font-style: italic; }
.bp-gratuit {
  display: inline-flex; align-items: center; gap: 10px; background: #6f8c5a; color: #fff;
  padding: 13px 26px; border-radius: 8px; text-decoration: none; font-size: 14px;
  letter-spacing: 0.04em; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bp-gratuit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(111, 140, 90, 0.35); }

/* ---- responsive du layer Matrice ---- */
@media (max-width: 980px) {
  .scrub__sigil { display: none; }
  .defs { grid-template-columns: 1fr; gap: 30px; }
  .packs { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .timeline { grid-template-columns: 1fr; gap: 34px; }
  .consult { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .duo { grid-template-columns: 1fr; }
  .form-duo { grid-template-columns: 1fr; }
  .modale { max-height: 92vh; }
}

/* ============================================================
   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; }
  /* La nav devient : marque + burger. Les liens passent dans un panneau. */
  .nav__cta { display: none; }              /* CTA hors-panneau masqué sur mobile */
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 9px; margin: -9px -9px -9px 0;
    background: none; border: 0; cursor: pointer; z-index: 160;
  }
  .nav__burger span {
    display: block; height: 2px; width: 100%; background: var(--fg); border-radius: 2px;
    transition: transform .35s var(--ease), opacity .25s var(--ease);
  }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Panneau déroulant */
  .nav__links {
    display: flex; flex-direction: column; gap: 6px;
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 88px var(--pad) 32px;
    background: rgba(14, 11, 7, 0.96); backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%); transition: transform .42s var(--ease);
    z-index: 155;
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__links a {
    font-size: 15px; letter-spacing: 0.16em; padding: 14px 0;
    border-bottom: 1px solid var(--line); color: var(--fg); text-shadow: none;
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links-cta {
    display: inline-flex; align-self: flex-start; margin-top: 18px;
    color: var(--ink); background: var(--fg); border-radius: 999px;
    padding: 13px 26px; font-weight: 500; border-bottom: 0;
  }
}
/* 🔴 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; }
}

/* ============================================================
   FOND CYBERNÉTIQUE — grille circuit + points aux intersections
   Appliqué en surimpression sur tous les blocs de contenu.
   Pas de position: absolute nécessaire : background-image s'ajoute
   sur la background-color existante définie plus haut.
   ============================================================ */
.band,
.band--alt,
.stats,
.editorial,
.editorial--reverse,
.amenities,
.manifesto {
  background-image:
    radial-gradient(circle, rgba(87,224,230,0.14) 1.2px, transparent 1.5px),
    repeating-linear-gradient(0deg,  rgba(87,224,230,0.04) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(90deg, rgba(87,224,230,0.04) 0 1px, transparent 1px 54px);
  background-size: 54px 54px, 54px 54px, 54px 54px;
}

/* === OUTIL (calculateur) : pas de grille en carrés, fond noir profond.
   Le décor vivant est assuré par le champ de particules (.tool-bg). === */
#calculateur {
  background: #04060a;
  background-image: none;
  overflow: hidden;
}
#calculateur::before {
  background: radial-gradient(ellipse 65% 55% at 50% 44%, rgba(87,224,230,0.07) 0%, transparent 72%);
}

/* Lueur ambiante centrale sur les grandes sections */
.band::before,
.manifesto::before,
.stats::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(87,224,230,0.035) 0%, transparent 70%);
  z-index: 0;
}
.band { position: relative; }
.band .wrap { position: relative; z-index: 1; }
.stats { position: relative; }
.stats__inner { position: relative; z-index: 1; }
.manifesto { position: relative; }
.manifesto__inner { position: relative; z-index: 1; }

/* Chiffres stats — légère lueur cyan */
.stat__num { text-shadow: 0 0 30px rgba(87,224,230,0.18); }

/* Zone cards — glass cybernétique */
.zone-card {
  background: rgba(33,26,18,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(87,224,230,0.10);
}
.zone-card:hover, .zone-card:focus-visible {
  border-color: rgba(87,224,230,0.38);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8), 0 0 28px rgba(87,224,230,0.07) inset;
}

/* Packs — glass léger */
.pack {
  background: rgba(26,21,14,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pack--vedette {
  border-color: rgba(201,176,126,0.55);
  box-shadow: 0 0 40px rgba(201,176,126,0.06) inset;
}

@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; }
}
