/* ════════════════════════════════════════════════════════════════════════
   Opsor — Landing
   DA reprise VERBATIM du SaaS (frontend/src/index.css) : monochrome luxe clair,
   violet AI SÉLECTIF (encre, jamais halo), Satoshi + Geist Mono.
   Parti pris landing : la page se lit comme un dossier CEE — le mono porte les
   artefacts du métier (codes de fiches, kWhc, dates, primes). Pas de bento, pas
   de cartes alignées, pas de glow au hover. Hover = encre / hairline qui fonce.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* Neutres clairs (SaaS) */
  --bg: #FAFAFA;
  --bg-elev: #FFFFFF;
  --bg-soft: #F5F5F5;
  --ink: #0A0A0A;
  --ink-2: #525252;
  --ink-3: #8A8A8A;
  --ink-4: #B5B5B5;
  --bdr: #EEEEEE;
  --bdr-soft: #F4F4F4;
  --bdr-strong: #E2E2E2;

  /* Sombre (la maison de l'orbe) */
  --night: #0c0b14;
  --night-deep: #08070e;
  --night-elev: #15131f;
  --night-bdr: rgba(255, 255, 255, 0.09);
  --night-ink: #F4F2FA;
  --night-ink-2: #9b96ab;
  --night-ink-3: #6a667a;

  /* Violet — ENCRE, jamais lumière */
  --v: #6D4AFF;
  --v-deep: #4E2EE0;
  --v-light: #A88BFF;
  --v-soft: rgba(109, 74, 255, 0.08);
  --v-soft-strong: rgba(109, 74, 255, 0.16);
  --v-fill-from: #C5B7FF;
  --v-fill-to: #8A6FFF;
  --v-fill-border: #B0A0FF;

  /* DPE officiel (la seule vraie couleur — c'est de la donnée, pas du décor) */
  --dpe-a: #16A34A; --dpe-b: #4D9E2A; --dpe-c: #A3B814; --dpe-d: #EAB308;
  --dpe-e: #F08C00; --dpe-f: #E8590C; --dpe-g: #DC2626;

  --success: #16A34A;
  --warning: #B45309;

  --font-sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Largeur de la gouttière mono (rail de référence dossier) */
  --rail: 132px;
  --pad-x: clamp(20px, 6vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` (et non `hidden`) : bloque le débordement horizontal SANS faire du
     body un conteneur de défilement — sinon les pins ScrollTrigger (position:
     fixed) se cassent sur mobile réel (alors qu'ils marchent en émulation). */
  overflow-x: clip;
}

::selection { background: var(--v-soft-strong); color: var(--ink); }
:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; border-radius: 2px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ── Typo helpers ────────────────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v);
}
.eyebrow.on-dark { color: var(--v-light); }

/* « OPS·01 » — code de section, façon référence de fiche CEE */
.refcode {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.refcode.on-dark { color: var(--night-ink-3); }

/* Le gradient « Opsor » du SaaS (cyan→violet→magenta) — réservé au mot signature */
.tint {
  background: linear-gradient(95deg, #2ED9F2 0%, #7C50FF 48%, #C63AA0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 13px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease-soft), background .2s var(--ease-soft),
              border-color .2s var(--ease-soft), color .2s var(--ease-soft);
  white-space: nowrap;
}
.btn .arrow { transition: transform .3s var(--ease-soft); }
.btn:hover .arrow { transform: translateX(3px); }

/* CTA principal = NOIR (doctrine SaaS : CTA noir, pas violet) */
.btn-ink {
  background: var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 14px -6px rgba(15, 13, 29, 0.45);
}
.btn-ink:hover { transform: translateY(-1px); background: #1c1c1c; }
.btn-ink.on-dark { background: #fff; color: var(--ink); box-shadow: 0 6px 22px -8px rgba(0,0,0,.5); }
.btn-ink.on-dark:hover { background: #f0eef8; }

/* Bouton fantôme — hairline qui fonce au hover, AUCUN glow */
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--bdr-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-ghost.on-dark { color: var(--night-ink); border-color: var(--night-bdr); }
.btn-ghost.on-dark:hover { border-color: rgba(255,255,255,.45); }

/* ════════════════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  /* padding-top un peu plus grand : le menu respire dans la carte hero inset */
  padding: 30px var(--pad-x) 20px;
  transition: background .4s var(--ease-soft), border-color .4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--bdr);
}
.nav.on-dark-zone { color: var(--night-ink); }
.nav.on-dark-zone.scrolled {
  background: rgba(12, 11, 20, 0.6);
  border-bottom-color: var(--night-bdr);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; display: block; }

/* Menu central : 3 liens dans une pilule à fond TRANSPARENT (glassy) arrondie.
   Le bouton « Demander un accès » (blanc) reste à droite. */
.nav-menu {
  /* 50vw (et non 50%) : centre sur le viewport ENTIER, barre de défilement
     comprise → parfaitement centré à l'œil même avec une scrollbar. */
  position: absolute; left: 50vw; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav-menu a {
  font-size: 13.5px; font-weight: 500; color: var(--night-ink-2);
  padding: 8px 16px; border-radius: var(--r-pill);
  transition: color .2s var(--ease-soft), background .2s var(--ease-soft);
}
.nav-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }
.nav:not(.on-dark-zone) .nav-menu { background: rgba(10, 10, 10, 0.04); border-color: var(--bdr); }
.nav:not(.on-dark-zone) .nav-menu a { color: var(--ink-2); }
.nav:not(.on-dark-zone) .nav-menu a:hover { color: var(--ink); background: rgba(10, 10, 10, 0.05); }

/* Burger (mobile) */
.nav-burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 11px; flex-direction: column; justify-content: space-between; z-index: 110; }
.nav-burger span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-soft), opacity .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau menu mobile */
.nav-mobile {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  padding: 92px var(--pad-x) 28px;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(12, 11, 20, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--night-bdr);
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .42s var(--ease-soft), opacity .3s var(--ease-soft);
}
.nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile a:not(.btn) { font-size: 19px; font-weight: 500; color: var(--night-ink); padding: 15px 4px; border-bottom: 1px solid var(--night-bdr); }
.nav-mobile .btn { margin-top: 18px; justify-content: center; padding: 15px; font-size: 15px; }
body.menu-open { overflow: hidden; }

@media (max-width: 920px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (min-width: 921px) { .nav-mobile { display: none; } }

/* ════════════════════════════════════════════════════════════════════════
   Sections — rythme & rail mono
   ════════════════════════════════════════════════════════════════════════ */
section { position: relative; }

.section-dark { background: var(--night); color: var(--night-ink); }
.section-dark .refcode { color: var(--night-ink-3); }

/* Rail : colonne mono à gauche qui « code » la section comme une fiche.
   Sur desktop = gouttière fixe ; en mobile = inline au-dessus du titre. */
.rail-section {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  padding: clamp(90px, 12vh, 160px) var(--pad-x);
  gap: 0;
}
.rail {
  position: sticky; top: 120px; align-self: start;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 6px;
}
.rail .tick { width: 26px; height: 1px; background: var(--bdr-strong); }
.section-dark .rail .tick { background: var(--night-bdr); }
@media (max-width: 900px) {
  .rail-section { grid-template-columns: 1fr; }
  .rail { position: static; flex-direction: row; align-items: center; gap: 12px; margin-bottom: 26px; }
  .rail .tick { width: 38px; }
}

/* ════════════════════════════════════════════════════════════════════════
   HERO — image de nature aux bords floutés dans la nuit + copie + composer
   (orbe retiré ici, conservé sur le CTA final)
   ════════════════════════════════════════════════════════════════════════ */
.hero {
  --hero-m: clamp(10px, 1.4vw, 18px);
  background: var(--night);
  color: var(--night-ink);
  margin: var(--hero-m);
  border-radius: clamp(20px, 2.2vw, 32px);
  min-height: calc(100svh - 2 * var(--hero-m));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 116px var(--pad-x) 112px;
  position: relative; overflow: hidden;
}

/* Image en fond PLEIN ÉCRAN + léger Ken Burns
   (sélecteur à 2 classes pour battre `.hero > *` qui forcerait position:relative) */
.hero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  transform: scale(1.06); animation: heroKen 26s ease-in-out infinite alternate;
}
@keyframes heroKen { from { transform: scale(1.06); } to { transform: scale(1.14) translateY(-1.5%); } }

/* Voile nuit : assombrit pour la lisibilité + fond le bas dans la section */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 38%, transparent 30%, rgba(8,7,14,.42) 78%),
    linear-gradient(to bottom, rgba(8,7,14,.62) 0%, rgba(8,7,14,.28) 28%, rgba(8,7,14,.40) 64%, var(--night) 100%);
}
.hero > * { position: relative; z-index: 2; }

.hero-content { max-width: 1000px; }
.hero .eyebrow { color: #cdbcff; text-shadow: 0 1px 16px rgba(0,0,0,.6); }
.hero h1 {
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 20px auto 0;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero-lead {
  margin: 26px auto 0; max-width: 56ch;
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; color: rgba(244,242,250,.82);
  text-shadow: 0 1px 18px rgba(0,0,0,.4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; justify-content: center; }

/* Dispositif maîtrisé — barre de logos, bas à gauche */
.hero-certs { position: absolute; left: var(--pad-x); bottom: 34px; z-index: 2; text-align: left; }
.certs-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--night-ink-3); display: block; margin-bottom: 14px; }
/* Logos officiels en silhouette blanche (sans pavé), hauteurs équilibrées
   par logo (aspects très différents). Filet d'ombre pour décoller du ciel. */
.certs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.cert-logo {
  width: auto; display: block; opacity: .9;
  filter: drop-shadow(0 1px 10px rgba(0,0,0,.45));
  transition: opacity .2s var(--ease-soft);
}
.cert-logo:hover { opacity: 1; }
.l-cee  { height: 32px; }
.l-mpr  { height: 30px; }
.l-rge  { height: 38px; }
.l-anah { height: 48px; }

/* Composer vivant — repris du SaaS (shell + bordure violette qui respire) */
.composer {
  margin-top: 30px;
  display: flex; align-items: center; gap: 12px;
  background: var(--night-elev);
  border: 1px solid var(--night-bdr);
  border-radius: var(--r-pill);
  padding: 14px 18px;
  max-width: 430px;
  position: relative;
}
.composer::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ba, 0deg),
    transparent 0%, transparent 62%, rgba(124,80,255,.5) 76%, var(--v) 86%, rgba(168,130,255,1) 91%, var(--v) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 3.4s linear infinite;
}
@property --ba { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --ba: 360deg; } }
.composer .c-orb {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 38% 34%, #2ee0f2 0%, #6D4AFF 52%, #c63aa0 84%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.composer .c-text { font-size: 15px; color: var(--night-ink); flex: 1; min-height: 1.2em; }
.composer .c-caret {
  display: inline-block; width: 2px; height: 1.05em; background: var(--v-light);
  margin-left: 1px; vertical-align: -2px; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--night-ink-3); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.hero-scroll .line { width: 1px; height: 30px; background: linear-gradient(var(--night-ink-3), transparent); }

@media (max-width: 900px) {
  .hero { padding: 130px var(--pad-x) 120px; justify-content: center; }
  .hero h1 { font-size: clamp(34px, 9vw, 56px); }
  .hero-lead { font-size: 16px; }
  .hero::after {
    background:
      radial-gradient(120% 80% at 50% 36%, transparent 22%, rgba(8,7,14,.5) 80%),
      linear-gradient(to bottom, rgba(8,7,14,.55) 0%, rgba(8,7,14,.38) 40%, rgba(8,7,14,.55) 74%, var(--night) 100%);
  }
  .hero-scroll { display: none; }
  /* La barre de logos passe sous le contenu, centrée */
  .hero-certs { position: static; margin-top: 44px; text-align: center; }
  .certs-row { justify-content: center; gap: 18px; }
}

/* ════════════════════════════════════════════════════════════════════════
   PROBLEM (LE MÉTIER) — déclaration éditoriale, un seul axe gauche.
   Chaque front : [numéro + tag fusionnés] | [question + explication].
   ════════════════════════════════════════════════════════════════════════ */
.problem {
  background: var(--night-deep); color: var(--night-ink);
  padding: clamp(90px, 12vh, 150px) var(--pad-x);
}
.problem-head { max-width: 1080px; }
.problem .eyebrow { display: block; margin-bottom: 22px; }
.problem .lede {
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 500;
  max-width: 17ch; margin: 0;
}
.problem .lede em { font-style: normal; color: var(--night-ink-2); }

.fronts { margin-top: clamp(46px, 6vh, 76px); border-top: 1px solid var(--night-bdr); }
.front {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding: clamp(28px, 3.4vh, 40px) 0;
  border-bottom: 1px solid var(--night-bdr);
}
/* Label gauche : numéro assumé + capacité, collés ensemble */
.front-label { display: flex; flex-direction: column; gap: 12px; }
.front-label .n {
  font-family: var(--font-mono); font-size: 36px; font-weight: 500;
  color: var(--v-light); line-height: 1; letter-spacing: -0.02em;
}
.front-label .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--night-ink-3);
}
.front-body .q {
  font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.02em; font-weight: 500;
  line-height: 1.04; color: var(--night-ink); margin: 0;
}
.front-body .sub {
  font-size: 15.5px; line-height: 1.55; color: var(--night-ink-2);
  margin: 16px 0 0; max-width: 58ch;
}
.problem .close {
  margin-top: clamp(44px, 6vh, 68px);
  font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.015em;
  color: var(--night-ink); max-width: 24ch; font-weight: 500;
}
.problem .close b { color: var(--v-light); font-weight: 500; }
@media (max-width: 720px) {
  .front { grid-template-columns: 1fr; gap: 14px; }
  .front-label { flex-direction: row; align-items: baseline; gap: 14px; }
  .front-label .n { font-size: 26px; }
  .front-label .tag { align-self: center; }
}

/* ════════════════════════════════════════════════════════════════════════
   SOLUTION — pinnée, 3 beats, artefacts annotés (PAS des cartes)
   ════════════════════════════════════════════════════════════════════════ */
/* Couture : la section claire remonte en carte au-dessus de la nuit */
.solution {
  background: var(--bg);
  position: relative; z-index: 2;
  border-radius: 44px 44px 0 0;
  margin-top: -48px;
  box-shadow: 0 -30px 90px -50px rgba(0,0,0,.6);
}
/* aube : lumière de l'orbe qui « perce » dans le jour, au seuil */
.solution::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 220px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(109,74,255,.10), transparent 70%);
}
.sol-intro { padding: clamp(96px, 13vh, 168px) var(--pad-x) 0; max-width: 820px; position: relative; }
.sol-intro h2 {
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; margin-top: 16px;
}
.sol-intro p { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 50ch; }

/* ── Showcase à défilement HORIZONTAL ─────────────────────────────────── */
.showcase { position: relative; overflow: hidden; }
.sc-track { display: flex; flex-wrap: nowrap; width: max-content; will-change: transform; }
.sc-panel {
  width: 100vw; flex: 0 0 100vw; height: 100svh;
  display: grid; grid-template-columns: 360px 1fr;
  gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: 96px var(--pad-x) 116px;
}
.panel-head { max-width: 360px; }
.panel-head .p-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--v); }
.panel-head h3 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.03em; font-weight: 700; margin: 14px 0 0; }
.panel-head p { margin-top: 16px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.panel-head p b { color: var(--ink); font-weight: 600; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.p-tags span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); border: 1px solid var(--bdr-strong); border-radius: var(--r-pill); padding: 6px 12px; }

/* Device générique (chrome SaaS) */
.panel-device {
  width: 100%; height: min(72vh, 660px);
  background: var(--bg-elev); border: 1px solid var(--bdr); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -40px rgba(15, 13, 29, 0.28);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
}
.device-bar {
  height: 42px; flex: 0 0 42px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  border-bottom: 1px solid var(--bdr); background: var(--bg-soft);
}
.device-bar.dark { background: var(--night-elev); border-bottom-color: var(--night-bdr); }
.device-bar .dots { display: flex; gap: 6px; }
.device-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--bdr-strong); }
.device-bar.dark .dots i { background: rgba(255, 255, 255, .18); }
.device-bar .url {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  background: var(--bg-elev); border: 1px solid var(--bdr); border-radius: var(--r-pill);
  padding: 4px 14px; margin: 0 auto;
}
.device-bar.dark .url { background: rgba(255, 255, 255, .04); border-color: var(--night-bdr); color: var(--night-ink-3); }

/* UI du showcase (onglets + indice), fixe au-dessus des panneaux pinnés */
.sc-ui {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x); pointer-events: none;
}
.sc-nav { display: flex; gap: 8px; pointer-events: auto; }
.sc-tab {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3);
  background: var(--bg-elev); border: 1px solid var(--bdr); border-radius: var(--r-pill);
  padding: 8px 14px; cursor: pointer; transition: color .25s var(--ease-soft), border-color .25s var(--ease-soft);
}
.sc-tab b { font-family: var(--font-mono); }
.sc-tab.on { color: var(--ink); border-color: var(--ink); }
.sc-tab.on b { color: var(--v); }
.sc-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 8px; }
.sc-hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* ── Artefact 1 : PROSPECTION (vraie carte Mapbox + résultats floutés) ── */
.map-stage { position: relative; flex: 1; min-height: 0; background: #e9e7f0; }
.land-map { position: absolute; inset: 0; }
.ms-head b { color: var(--v-deep); font-weight: 600; }
/* Faisceau qui balaie la carte pendant la « prospection » (piloté en JS) */
.pp-scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 36%;
  pointer-events: none; z-index: 4; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(109,74,255,.10) 55%, rgba(109,74,255,.20));
  border-right: 1.5px solid rgba(109,74,255,.55);
  mix-blend-mode: multiply;
}
.land-map canvas { outline: none; }
.map-side {
  position: absolute; left: 14px; top: 14px; width: 246px; max-height: calc(100% - 28px);
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--bdr); border-radius: var(--r-md); padding: 12px;
  display: flex; flex-direction: column; gap: 8px; z-index: 5;
  box-shadow: 0 18px 40px -24px rgba(15, 13, 29, .4);
}
.ms-head { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ms-unlock {
  margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--ink);
  border: 0; border-radius: var(--r-pill); padding: 10px 14px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14); transition: background .2s var(--ease-soft);
}
.ms-unlock:hover { background: #1c1c1c; }
.map-stage .pp-fiche { z-index: 5; }
.map-stage .pp-legend, .map-stage .pp-lock { z-index: 5; }
.pp-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; align-items: center; padding: 8px; border-radius: var(--r-sm); }
.pp-row.sel { background: var(--v-soft); }
.pp-dpe { width: 22px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.pp-main .t { font-size: 12px; font-weight: 600; line-height: 1.2; }
.pp-main .s { font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.pp-aides { font-family: var(--font-mono); font-size: 11px; color: var(--v-deep); font-weight: 600; }
.pp-blur { filter: blur(5px); user-select: none; }
.pp-fiche {
  position: absolute; top: 14px; right: 14px; width: 200px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-md);
  box-shadow: 0 24px 50px -28px rgba(15,13,29,.5); padding: 13px;
}
.pp-fiche .badges { display: flex; gap: 6px; align-items: center; margin-bottom: 9px; }
.pp-fiche .chip { font-family: var(--font-mono); font-size: 9px; padding: 3px 7px; border-radius: var(--r-pill); }
.pp-fiche h4 { font-size: 13px; letter-spacing: -0.01em; }
.pp-fiche .addr { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.pp-fiche .prime { margin-top: 11px; background: var(--v-soft); border-radius: var(--r-sm); padding: 9px 11px; }
.pp-fiche .prime .k { font-size: 9.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.pp-fiche .prime .val { font-family: var(--font-mono); font-size: 19px; color: var(--v-deep); font-weight: 600; }
.pp-lock {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 500;
  padding: 9px 16px; border-radius: var(--r-pill);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
}
.pp-legend {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border: 1px solid var(--bdr); border-radius: var(--r-sm); padding: 8px 11px;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-2); display: flex; gap: 12px;
}
.pp-legend .k { display: flex; align-items: center; gap: 5px; }
.pp-legend .k i { width: 8px; height: 8px; border-radius: 50%; }

/* ── Artefact 2 : MONTAGE (dossier conforme + import CDC + curseur) ───── */
.dossier-mock { position: relative; flex: 1; min-height: 0; background: var(--bg); padding: 20px 22px; display: flex; flex-direction: column; gap: 13px; overflow: hidden; }
.ad-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ad-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.ad-title .fiche { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-left: 8px; }
.ad-conform { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--success); background: var(--bg-elev); border: 1px solid var(--bdr); border-radius: var(--r-pill); padding: 6px 12px; }
.ad-conform .check { width: 16px; height: 16px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 10px; }
.ad-mand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-mand .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ad-pill { font-size: 12px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--bdr-strong); color: var(--ink-2); background: var(--bg-elev); transition: all .2s; }
.ad-pill.on { border-color: var(--v); color: var(--v-deep); background: var(--v-soft); }
.ad-rows { display: flex; flex-direction: column; gap: 0; background: var(--bg-elev); border: 1px solid var(--bdr); border-radius: var(--r-md); overflow: hidden; }
.ad-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--bdr-soft); }
.ad-line:last-child { border-bottom: 0; }
.ad-line .k { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.ad-line .k .ok { color: var(--success); font-size: 13px; }
.ad-line .val { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.ad-prime { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 16px 20px; }
.ad-prime .lab { font-size: 12px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }
.ad-prime .amt { font-family: var(--font-mono); font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-top: 6px; }
.ad-prime .amt .cur { font-size: 0.6em; color: rgba(255,255,255,.7); }
.ad-prime .note { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.55); text-align: right; max-width: 16ch; }

/* ── Artefact 3 : VEILLE (alerte + recalcul animé) ────────────────────── */
.veille-mock { position: relative; flex: 1; min-height: 0; background: var(--night); color: var(--night-ink); padding: 26px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.vm-head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--night-ink-3); position: relative; }
.av-radar { position: absolute; top: -40px; right: -40px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid var(--night-bdr); }
.av-radar::after { content: ''; position: absolute; inset: 40px; border-radius: 50%; border: 1px solid var(--night-bdr); }
.av-ping { position: absolute; top: 30px; right: 70px; width: 12px; height: 12px; }
.av-ping i { position: absolute; inset: 0; border-radius: 50%; background: var(--v-light); }
.av-ping i::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--v); animation: ping 2.4s var(--ease-soft) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%,100% { transform: scale(3.6); opacity: 0; } }
.av-head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--night-ink-3); position: relative; }
.av-alert { background: var(--night-elev); border: 1px solid var(--night-bdr); border-left: 2px solid var(--v); border-radius: var(--r-md); padding: 16px 18px; position: relative; }
.av-alert .when { font-family: var(--font-mono); font-size: 10.5px; color: var(--v-light); letter-spacing: .08em; }
.av-alert .what { font-size: 16px; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; }
.av-alert .ref { font-family: var(--font-mono); font-size: 11px; color: var(--night-ink-2); margin-top: 4px; }
.av-alert .body { font-size: 13.5px; color: var(--night-ink-2); margin-top: 11px; line-height: 1.5; }
.av-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 12.5px; color: var(--night-ink); border: 1px solid var(--night-bdr); border-radius: var(--r-pill); padding: 7px 13px; align-self: flex-start; }
.av-action .ok { color: var(--success); }
.av-foot { margin-top: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--night-ink-3); position: relative; }

/* Import du cahier des charges (montage) */
.ad-import {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed var(--bdr-strong); border-radius: var(--r-md); padding: 11px 14px;
  transition: border-color .35s var(--ease-soft), background .35s var(--ease-soft);
}
.ad-import.active { border-color: var(--v); background: var(--v-soft); }
.imp-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-soft); display: grid; place-items: center; font-size: 17px; color: var(--v); flex: 0 0 auto; }
.imp-txt { display: flex; flex-direction: column; }
.imp-txt b { font-size: 13.5px; }
.imp-txt span { font-size: 11.5px; color: var(--ink-3); }
.imp-file { margin-left: auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; min-width: 140px; opacity: 0; transform: translateY(5px); transition: opacity .3s, transform .3s; }
.imp-file.show { opacity: 1; transform: none; }
.imp-doc { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }
.imp-bar { width: 140px; height: 4px; border-radius: 3px; background: var(--bdr); overflow: hidden; }
.imp-bar b { display: block; height: 100%; width: 0; background: var(--v); border-radius: 3px; }
.ad-conform { transition: transform .3s var(--ease-spring); }
.ad-conform.stamp { transform: scale(1.12); }

/* Curseur factice animé */
.mock-cursor {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; z-index: 20;
  pointer-events: none; opacity: 0; will-change: transform;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5l13.5 7.8-5.7 1-.2.05 2.8 5.8-2.6 1.2-2.8-5.8-4.3 3.9z' fill='%23fff' stroke='%230a0a0a' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.35));
}
.mock-cursor.down { transform: scale(.86); }
.mock-cursor.click::after {
  content: ''; position: absolute; left: 2px; top: 2px; width: 26px; height: 26px;
  border-radius: 50%; border: 2px solid var(--v); transform: translate(-50%,-50%);
  animation: clickPulse .5s var(--ease-soft);
}
@keyframes clickPulse { from { transform: translate(-50%,-50%) scale(.2); opacity: .9; } to { transform: translate(-50%,-50%) scale(1.6); opacity: 0; } }

/* Recalcul des dossiers (veille) */
.vm-recalc { background: var(--night-elev); border: 1px solid var(--night-bdr); border-radius: var(--r-md); padding: 14px 16px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft); }
.vm-recalc.show { opacity: 1; transform: none; }
.vm-recalc-head { font-size: 13px; color: var(--night-ink-2); display: flex; align-items: center; gap: 9px; }
.vm-recalc.done .vm-recalc-head { color: var(--night-ink); }
.vm-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--night-bdr); border-top-color: var(--v-light); animation: spin .8s linear infinite; flex: 0 0 auto; }
.vm-recalc.done .vm-spin { border: 2px solid var(--success); border-top-color: var(--success); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.vm-dossiers { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.vm-dos { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--night-ink); opacity: .28; transition: opacity .35s var(--ease-soft); }
.vm-dos.done { opacity: 1; }
.vm-dos .vm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: 0 0 auto; }
.vm-dos.warn .vm-dot { background: var(--warning); }
.vm-dos { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; }
.vm-dn { font-size: 13px; }
.vm-delta { font-family: var(--font-mono); font-size: 11px; color: var(--night-ink-3); }
.vm-delta.down { color: #e0a44e; }
.vm-delta.act { color: var(--v-light); }
.vm-dos .vm-st { font-family: var(--font-mono); font-size: 11px; color: var(--success); }
.vm-dos.warn .vm-st { color: #e0a44e; }
/* diff de coefficient (veille) */
.vm-diff { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--night-bdr); font-family: var(--font-mono); font-size: 12px; opacity: 0; transition: opacity .4s var(--ease-soft); }
.vm-diff.show { opacity: 1; }
.vm-diff-lbl { color: var(--night-ink-3); }
.vm-diff-old { color: var(--night-ink-3); text-decoration: line-through; }
.vm-diff-arrow { color: var(--night-ink-3); }
.vm-diff-new { color: var(--v-light); font-weight: 600; }

/* ── Montage : parcours multi-écrans (Dossier → Analyse → Verdict) ────── */
.dm-steps { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.dm-step { transition: color .3s var(--ease-soft); }
.dm-step.on { color: var(--v); font-weight: 600; }
.dm-sep { color: var(--ink-4); }

.dm-stage { position: relative; flex: 1; min-height: 0; }
.dm-screen { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; opacity: 0; pointer-events: none; }
.dm-screen.on { opacity: 1; pointer-events: auto; }

/* écran 1 */
.dm-draft { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--bdr); border-radius: var(--r-pill); padding: 5px 11px; }
.dm-jointes { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-2); margin-top: auto; }
.dm-jointes-sub { font-size: 11.5px; color: var(--ink-3); }
.dm-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff; background: var(--ink); border: 0; border-radius: var(--r-pill); padding: 11px 18px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.dm-cta .arrow { transition: transform .3s var(--ease-soft); }

/* écran 2 — analyse des pièces */
.dm-scan-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); flex: 0 0 auto; }
.dm-scan-head b { font-weight: 600; }
.dm-scan-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.dm-pieces { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.dm-piece { display: grid; grid-template-columns: 1fr 20px; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--bdr); border-radius: var(--r-sm); background: var(--bg-elev); opacity: .35; transition: opacity .3s var(--ease-soft), border-color .3s, background .3s; }
.dm-piece.seen { opacity: 1; }
.dm-piece.warn-on { border-color: rgba(234,179,8,.5); background: var(--warning-soft); }
.dp-name { font-size: 13px; color: var(--ink); }
.dp-badge { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--bdr-strong); transition: background .3s; }
.dm-piece.ok-on .dp-badge { background: var(--success); }
.dm-piece.ok-on .dp-badge::after { content: '✓'; }
.dm-piece.warn-on .dp-badge { background: var(--warning); }
.dm-piece.warn-on .dp-badge::after { content: '!'; }
.dp-msg { grid-column: 1 / -1; font-size: 11.5px; line-height: 1.4; color: var(--warning); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s var(--ease-soft), opacity .3s, margin .3s; }
.dm-piece.warn-on .dp-msg { max-height: 44px; opacity: 1; margin-top: 6px; }

/* écran 3 — verdict */
.dm-verdict { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.dm-v-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--warning); background: var(--warning-soft); border: 1px solid rgba(234,179,8,.35); border-radius: var(--r-pill); padding: 8px 14px; }
.dm-v-badge b { font-family: var(--font-mono); font-size: 16px; color: var(--warning); }
.dm-v-title { font-size: clamp(18px, 2vw, 25px); letter-spacing: -0.02em; font-weight: 600; line-height: 1.12; max-width: 22ch; }
.dm-v-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.dm-v-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.dvl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); flex: 0 0 auto; }
.dm-v-prime { margin-top: auto; }

/* ── Preuve : scène 3 vidéos (milieu net, côtés floutés) ──────────────── */
.proof-videos { display: flex; align-items: center; justify-content: center; margin-top: 56px; }
.pv-item { position: relative; flex: 0 0 auto; }
.pv-frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--night-bdr); display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(109,74,255,.12), transparent 60%),
    linear-gradient(155deg, #16131f, #0c0b14);
}
.pv-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-ph { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-ink-3); }
.pv-main { width: clamp(380px, 46vw, 740px); z-index: 3; }
.pv-main .pv-frame { box-shadow: 0 50px 110px -45px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.05); }
.pv-main .pv-ph { font-size: 12px; color: var(--night-ink-2); }
.pv-main figcaption { text-align: center; margin-top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-ink-2); }
.pv-play {
  position: absolute; z-index: 2; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center;
  font-size: 20px; padding-left: 4px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
/* Côtés : floutés, assombris, tuckés derrière le milieu */
.pv-side { width: clamp(220px, 24vw, 360px); z-index: 1; opacity: .5; filter: blur(3px) saturate(.85); }
.pv-side .pv-frame { aspect-ratio: 16 / 11; }
.pv-left { transform: scale(.92); margin-right: -56px; mask-image: linear-gradient(to right, transparent, #000 60%); -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); }
.pv-right { transform: scale(.92); margin-left: -56px; mask-image: linear-gradient(to left, transparent, #000 60%); -webkit-mask-image: linear-gradient(to left, transparent, #000 60%); }
@media (max-width: 860px) {
  .pv-side { display: none; }
  .pv-main { width: 100%; }
}

/* ══ Showcase mobile ════════════════════════════════════════════════════
   .native  → scroll horizontal NATIF (swipe + snap) avec mockups animés
   .stacked → panneaux empilés (reduced-motion / pas de GSAP)
   ═══════════════════════════════════════════════════════════════════════ */
.showcase.native { position: relative; height: 100svh; overflow: hidden; }
.showcase.native .sc-track {
  flex-direction: row; width: auto; height: 100%; transform: none !important;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.showcase.native .sc-track::-webkit-scrollbar { display: none; }
.showcase.native .sc-panel {
  width: 100vw; flex: 0 0 100vw; height: 100%; scroll-snap-align: start;
  grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 14px;
  align-items: stretch; align-content: stretch;
  padding: 84px var(--pad-x) 86px; overflow: hidden;
}
.showcase.native .panel-head { max-width: none; }
.showcase.native .panel-head h3 { font-size: clamp(24px, 6.5vw, 34px); }
.showcase.native .panel-head p { font-size: 14.5px; margin-top: 10px; }
.showcase.native .p-tags { margin-top: 14px; }
.showcase.native .panel-device { height: auto; min-height: 0; }
.showcase.native .sc-ui { display: flex; position: absolute; left: 0; right: 0; bottom: 18px; z-index: 12; }
.showcase.native .sc-hint { display: none; }
.showcase.native .sc-nav { margin: 0 auto; }
.showcase.native .map-side { width: 178px; }

/* PILE DE CARTES : chaque panneau est « sticky » et vient RECOUVRIR le précédent
   au scroll (Montage recouvre Prospection, Veille recouvre Montage). Décalage de
   top croissant → on voit le bord de la carte du dessous (effet paquet). */
.showcase.stacked { overflow: visible; }
.showcase.stacked .sc-track { flex-direction: column; width: 100%; transform: none !important; gap: 0; padding-bottom: 30vh; }
.showcase.stacked .sc-panel {
  position: sticky; top: 78px;
  width: 100%; flex: none; height: auto;
  grid-template-columns: 1fr; gap: 14px;
  padding: 24px 20px 28px; margin: 0 0 14px;
  background: var(--bg-elev); border: 1px solid var(--bdr);
  border-radius: 26px; box-shadow: 0 24px 60px -30px rgba(15, 13, 29, .5);
}
.showcase.stacked .sc-panel:nth-child(2) { top: 94px; }
.showcase.stacked .sc-panel:nth-child(3) { top: 110px; }
.showcase.stacked .panel-head { max-width: none; }
.showcase.stacked .panel-head h3 { font-size: clamp(23px, 6vw, 30px); }
.showcase.stacked .panel-head p { font-size: 13.5px; margin-top: 8px; }
.showcase.stacked .p-tags { margin-top: 12px; }
.showcase.stacked .panel-device { height: min(52vh, 460px); }
.showcase.stacked .map-stage { height: 100%; }
.showcase.stacked .dossier-mock, .showcase.stacked .veille-mock { min-height: 0; }
.showcase.stacked .sc-ui, .showcase.stacked .mock-cursor { display: none; }

/* Réglages communs des artefacts en petit écran */
@media (max-width: 980px) {
  .panel-head { max-width: none; }
  /* fallback no-JS : permet quand même le scroll horizontal */
  .showcase:not(.native):not(.stacked) { overflow-x: auto; }
  /* analyse des pièces plus compacte */
  .dm-piece { padding: 7px 11px; }
  .dp-name { font-size: 12.5px; }
  .dm-pieces { gap: 5px; }
  .dm-scan-head { font-size: 13px; }
}
@media (max-width: 560px) {
  .map-side { width: 160px; padding: 9px; }
  .map-side .pp-row .pp-aides { display: none; }
  .map-stage .pp-fiche { display: none; }
  .showcase.native .panel-head h3 { font-size: 25px; }
}

/* ════════════════════════════════════════════════════════════════════════
   BENEFITS — registre (mono, façon comptabilité de certificats). PAS bento.
   ════════════════════════════════════════════════════════════════════════ */
/* min-height ≥ écran : indispensable pour que le recouvrement (pin) couvre
   tout le viewport, sinon le fond clair du body apparaît dans le trou. */
.benefits { background: var(--bg); padding: clamp(90px, 12vh, 150px) var(--pad-x); min-height: 100svh; }
.benefits-head { max-width: 1080px; }
.benefits .eyebrow { display: block; margin-bottom: 22px; }
.benefits .lede { font-size: clamp(28px, 4vw, 50px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; max-width: 18ch; margin: 0; }

.ledger { margin-top: clamp(46px, 6vh, 76px); border-top: 1px solid var(--ink); }
.ledger-row {
  display: grid; grid-template-columns: 86px minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px); align-items: baseline;
  padding: clamp(26px, 3.2vh, 38px) 0; border-bottom: 1px solid var(--bdr);
  transition: background .3s var(--ease-soft);
}
.ledger-row:hover { background: var(--bg-soft); }
.ledger-row .idx { font-family: var(--font-mono); font-size: 30px; font-weight: 500; color: var(--v); line-height: 1; letter-spacing: -0.02em; }
.ledger-row .h { font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.02em; font-weight: 600; line-height: 1.08; margin: 0; }
.ledger-row .h .num { font-family: var(--font-mono); color: var(--v); }
.ledger-row .d { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 0; }
@media (max-width: 760px) {
  .ledger-row { grid-template-columns: 56px 1fr; gap: 14px; }
  .ledger-row .idx { font-size: 24px; }
  .ledger-row .d { grid-column: 2; margin-top: 8px; }
}

/* ════════════════════════════════════════════════════════════════════════
   PROOF — la preuve = la démo (fond sombre, montage d'artefacts + sources)
   ════════════════════════════════════════════════════════════════════════ */
/* Couture inverse : la nuit remonte en carte au-dessus du jour */
.proof {
  background: var(--night-deep); color: var(--night-ink); text-align: center;
  padding: clamp(110px, 15vh, 190px) var(--pad-x); overflow: hidden;
  position: relative; z-index: 2;
  border-radius: 44px 44px 0 0; margin-top: -48px;
  box-shadow: 0 -30px 90px -50px rgba(109,74,255,.18);
}
.proof h2 { font-size: clamp(28px, 4vw, 52px); letter-spacing: -0.03em; font-weight: 700; max-width: 16ch; margin: 16px auto 0; line-height: 1.05; }
.proof .sub { margin-top: 20px; font-size: 17px; color: var(--night-ink-2); max-width: 46ch; margin-left: auto; margin-right: auto; }
.proof-strip { margin-top: 54px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.proof-card {
  width: 268px; height: 196px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--night-bdr); background: var(--night-elev); position: relative;
  text-align: left; transition: border-color .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.proof-card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-3px); }
.proof-card .cap { position: absolute; inset: auto 0 0 0; padding: 10px 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-2); background: linear-gradient(transparent, rgba(8,7,14,.92)); }
.proof-card .mini { position: absolute; inset: 0 0 34px 0; padding: 16px; overflow: hidden; }

/* Mini 1 — carte */
.pm-map { background:
  linear-gradient(115deg, #16131f, #0d0b16),
  repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px),
  repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,255,255,.03) 26px 27px);
}
.pm-mk { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); transform: translate(-50%,-50%); }
.pm-chip { position: absolute; right: 14px; top: 14px; display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid var(--night-bdr);
  border-radius: var(--r-pill); padding: 5px 10px 5px 6px; font-family: var(--font-mono); font-size: 11px; color: var(--night-ink); }
.pm-chip .d { width: 16px; height: 16px; border-radius: 4px; color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 600; }

/* Mini 2 — prime */
.pm-prime { display: flex; flex-direction: column; gap: 9px; background: linear-gradient(150deg,#17141f,#0d0b15); }
.pm-conform { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 10.5px; color: var(--success);
  border: 1px solid var(--night-bdr); border-radius: var(--r-pill); padding: 4px 10px; }
.pm-conform .c { width: 13px; height: 13px; border-radius: 50%; background: var(--success); color:#fff; display: grid; place-items: center; font-size: 8px; }
.pm-amt { font-family: var(--font-mono); font-size: 38px; font-weight: 600; letter-spacing: -0.02em; color: var(--night-ink); line-height: 1; margin-top: 4px; }
.pm-amt span { font-size: 0.55em; color: var(--night-ink-2); }
.pm-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--night-ink-3); }

/* Mini 3 — veille */
.pm-veille { display: flex; flex-direction: column; gap: 8px; background: linear-gradient(150deg,#191525,#0d0b16); border-left: 2px solid var(--v); }
.pm-when { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--v-light); }
.pm-what { font-size: 14px; font-weight: 600; color: var(--night-ink); line-height: 1.25; letter-spacing: -0.01em; margin-top: 2px; }
.pm-ref { font-family: var(--font-mono); font-size: 10.5px; color: var(--night-ink-3); }
.sources { margin-top: 56px; }
.sources .sl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--night-ink-3); }
.sources .row { margin-top: 16px; display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: var(--night-ink-2); }
.sources .row span { position: relative; }
.sources .row span + span::before { content: '·'; position: absolute; left: -15px; color: var(--night-ink-3); }

/* ════════════════════════════════════════════════════════════════════════
   CTA final — miroir du hero, orbe centré
   ════════════════════════════════════════════════════════════════════════ */
.cta-final { background: var(--night); color: var(--night-ink); text-align: center; padding: clamp(110px, 16vh, 200px) var(--pad-x); position: relative; overflow: hidden; }
.cta-orb { width: min(40vw, 300px); aspect-ratio: 1; margin: 0 auto 36px; position: relative; }
.cta-orb .orb-host { position: absolute; inset: 0; border-radius: 50%; }
.cta-final h2 { font-size: clamp(34px, 5.4vw, 72px); letter-spacing: -0.035em; font-weight: 700; line-height: 0.98; max-width: 16ch; margin: 0 auto; }
.cta-final .sub { margin-top: 20px; font-size: 18px; color: var(--night-ink-2); max-width: 42ch; margin-left: auto; margin-right: auto; }
.cta-final .actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--night); color: var(--night-ink-3); border-top: 1px solid var(--night-bdr); padding: clamp(48px, 7vh, 80px) var(--pad-x) 36px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.ft-brand-col .brand { color: var(--night-ink); }
.ft-tag { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--night-ink-2); max-width: 34ch; }
.ft-addr { margin-top: 18px; font-size: 12px; line-height: 1.6; color: var(--night-ink-3); }
.ft-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-ink-3); margin-bottom: 16px; font-weight: 500; }
.ft-col a { display: block; font-size: 14px; color: var(--night-ink-2); padding: 5px 0; transition: color .2s var(--ease-soft); }
.ft-col a:hover { color: var(--night-ink); }
.ft-bottom { margin-top: clamp(36px, 5vh, 56px); padding-top: 24px; border-top: 1px solid var(--night-bdr); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ft-bottom .mono { font-size: 12px; color: var(--night-ink-3); }
@media (max-width: 820px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .ft-brand-col { grid-column: 1 / -1; }
}

/* ════════════════════════════════════════════════════════════════════════
   Reveals (GSAP pose .is-in ; fallback : tout visible sans JS)
   ════════════════════════════════════════════════════════════════════════ */
/* Filet de sécurité : le contenu est VISIBLE par défaut. Il n'est masqué (pour
   être animé) QUE si le moteur d'animation s'est confirmé prêt en posant
   `html.anim-ready`. Donc si le JS échoue (CDN down, module cassé…), le texte
   reste visible — il ne « disparaît » jamais. */
html.anim-ready .reveal { opacity: 0; transform: translateY(24px); }
html.anim-ready .reveal.is-in { opacity: 1; transform: none; }

@keyframes orb-fallback-pulse { 0%,100% { opacity: .85; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Sans JS : ne jamais laisser de contenu caché */
.no-js .reveal { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════════════════
   SOUS-PAGES (légal + formulaire d'accès)
   ════════════════════════════════════════════════════════════════════════ */
.subpage { background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.sub-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x); border-bottom: 1px solid var(--bdr);
  background: rgba(250, 250, 250, 0.82); backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}
.sub-nav .brand { color: var(--ink); }
.sub-nav .back { font-size: 14px; color: var(--ink-2); transition: color .2s var(--ease-soft); }
.sub-nav .back:hover { color: var(--ink); }
.sub-wrap { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vh, 88px) var(--pad-x) clamp(70px, 10vh, 110px); }
.sub-wrap h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.04; }
.sub-meta { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.sub-lead { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }

/* contenu légal */
.legal h2 { font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -0.02em; font-weight: 600; margin: 44px 0 0; }
.legal h3 { font-size: 16px; font-weight: 600; margin: 26px 0 0; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.legal li::marker { color: var(--ink-3); }
.legal a { color: var(--v); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .ph { background: var(--warning-soft); color: var(--warning); padding: 1px 7px; border-radius: 4px; font-family: var(--font-mono); font-size: 12.5px; }
.legal .info-table { margin-top: 16px; border: 1px solid var(--bdr); border-radius: var(--r-md); overflow: hidden; }
.legal .info-table div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--bdr-soft); font-size: 14px; }
.legal .info-table div:last-child { border-bottom: 0; }
.legal .info-table dt { color: var(--ink-3); font-family: var(--font-mono); font-size: 12.5px; }
.legal .info-table dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .legal .info-table div { grid-template-columns: 1fr; gap: 2px; } }

/* footer compact des sous-pages */
.sub-foot { border-top: 1px solid var(--bdr); padding: 26px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sub-foot .l { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; }
.sub-foot a { color: var(--ink-3); transition: color .2s; } .sub-foot a:hover { color: var(--ink); }
.sub-foot .c { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* formulaire d'accès */
.form-page .sub-wrap { max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.form-intro h1 { font-size: clamp(30px, 4vw, 46px); }
.form-intro .sub-lead { font-size: 17px; }
.form-points { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-points li { list-style: none; display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink-2); }
.form-points .ck { width: 20px; height: 20px; border-radius: 50%; background: var(--v-soft); color: var(--v-deep); display: grid; place-items: center; font-size: 11px; flex: 0 0 auto; margin-top: 1px; }
.form-card { background: var(--bg-elev); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 80px -50px rgba(15,13,29,.3); }
.form-card h2 { font-size: 19px; letter-spacing: -0.01em; }
.form-card .fc-sub { font-size: 13.5px; color: var(--ink-3); margin-top: 5px; }
.fld { margin-top: 18px; }
.fld label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.fld input { width: 100%; font-family: inherit; font-size: 15px; padding: 13px 15px; border: 1px solid var(--bdr-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); transition: border-color .2s var(--ease-soft); }
.fld input::placeholder { color: var(--ink-4); }
.fld input:focus { outline: none; border-color: var(--v); box-shadow: 0 0 0 3px var(--v-soft); }
.form-submit { margin-top: 24px; width: 100%; justify-content: center; font-size: 15px; padding: 14px; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); text-align: center; }
.form-error { margin-top: 12px; font-size: 13px; color: var(--danger); text-align: center; min-height: 0; }
.form-error:empty { display: none; }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok.show { display: block; }
.form-ok .ok-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-size: 24px; margin: 0 auto 14px; }
.form-ok h2 { font-size: 20px; }
.form-ok p { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 840px) {
  .form-page .sub-wrap { grid-template-columns: 1fr; }
  .form-intro { order: -1; }
}
