/* vibebusters : feuille de style maison (pas de Tailwind, pas de CDN).
   Direction visuelle : DIRECTION.md (nuit + spectre + alerte, métaphore fantôme). */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-mono-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-mono-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/unbounded-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/unbounded-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/unbounded-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/unbounded-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/unbounded-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/unbounded-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variables + socle ---------- */
:root {
  --night: #0A0A0F;
  --surface: #13131C;
  --line: #23232F;
  --line-soft: #2E2E3C;
  --spectre: #5BFF9F;
  --spectre-dark: #07140C;
  --alert: #FF4D5E;
  --energy: #9B6BFF;
  --ink: #EDEDF2;
  --muted: #8A8A99;
  --display: 'Unbounded', sans-serif;
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'Space Mono', monospace;
  --wrap: 72rem;
  --wrap-narrow: 46rem;
  --radius: 1rem;
  --radius-lg: 1.25rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--spectre); color: var(--spectre-dark); }

.mono { font-family: var(--mono); }
.spectre { color: var(--spectre); }
.energy { color: var(--energy); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.center { text-align: center; }
.glow { text-shadow: 0 0 18px rgba(91,255,159,0.55), 0 0 4px rgba(91,255,159,0.8); }

.skip {
  position: absolute; left: -999px; top: 0.75rem; z-index: 100;
  background: var(--spectre); color: var(--spectre-dark);
  padding: 0.5rem 1rem; border-radius: 0.375rem; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0.75rem; }

/* ---------- Fonds ---------- */
.nightbg {
  background:
    radial-gradient(800px 500px at 50% -10%, rgba(155,107,255,0.10), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(91,255,159,0.06), transparent 55%),
    var(--night);
}
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; position: relative; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.wrap-form { max-width: 36rem; margin: 0 auto; padding: 0 1.25rem; position: relative; }
.section { padding: 4.5rem 0; position: relative; }
.section-lined { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tall { padding: 7rem 0; }
.section + .section-lined, .section-lined + .section-lined { border-top: none; }

.split { display: grid; gap: 3rem; align-items: center; }
.stack { display: grid; gap: 0.75rem; align-content: start; }
.stack-text { display: grid; gap: 1rem; color: var(--muted); font-size: 1.0625rem; }
.stack-text strong, .stack-text .ink { color: var(--ink); }
.cards-3 { display: grid; gap: 1.25rem; margin-top: 3rem; }
.cards-4 { display: grid; gap: 1.25rem; margin-top: 3rem; }

@media (min-width: 700px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-qui { grid-template-columns: 2fr 3fr; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 6.5rem 0; }
}

/* ---------- Typographie ---------- */
.kicker { font-family: var(--mono); font-size: 0.75rem; color: var(--spectre); margin-bottom: 1rem; }
.kicker-center { text-align: center; }
.h1 {
  font-family: var(--display); font-weight: 900; letter-spacing: -0.02em;
  line-height: 1.02; font-size: clamp(2rem, 5.5vw, 3.5rem);
}
.h1-hero { font-size: clamp(2.125rem, 5.5vw, 3.75rem); line-height: 0.98; }
.h1-post { font-size: clamp(1.75rem, 4.5vw, 2.75rem); line-height: 1.1; }
.h1 em, .h2 em { font-style: normal; color: var(--spectre); text-shadow: 0 0 18px rgba(91,255,159,0.55), 0 0 4px rgba(91,255,159,0.8); }
.h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.01em;
  line-height: 1.15; font-size: clamp(1.625rem, 3.5vw, 2.25rem);
}
.h2-center { text-align: center; }
.h2-big { font-size: clamp(1.875rem, 4.5vw, 3rem); line-height: 1.05; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin-top: 0.75rem; }
.h3-step { margin-top: 0.5rem; font-size: 1.125rem; }
.lede { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted); max-width: 36rem; }
.lede-center { margin-left: auto; margin-right: auto; }
.section-head { max-width: 42rem; }
.section-head-center { margin: 0 auto; text-align: center; }
.section-lede { margin-top: 1.25rem; color: var(--muted); font-size: 1.0625rem; }
.section-lede-center { max-width: 36rem; margin-left: auto; margin-right: auto; }
.section-lede .ink { color: var(--ink); }
.punch { margin-top: 1.25rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.section-more { margin-top: 2.5rem; font-size: 0.9375rem; }
.section-more a { color: var(--spectre); text-decoration: none; }
.section-more a:hover { text-decoration: underline; }
.section-more-center { text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 0.875rem 1.5rem; border-radius: 0.5rem;
  text-decoration: none; font-weight: 600; text-align: center;
  border: none; cursor: pointer; font-size: 1rem;
}
.btn-spectre {
  font-family: var(--mono); font-weight: 700;
  background: var(--spectre); color: var(--spectre-dark);
  transition: box-shadow 0.25s, transform 0.15s;
}
.btn-spectre:hover { box-shadow: 0 0 28px rgba(91,255,159,0.5); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-soft); transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--spectre); color: var(--spectre); }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35,35,47,0.7);
}
.announce {
  display: block; text-align: center; padding: 0.5rem 1.25rem;
  font-size: 0.8125rem; text-decoration: none;
  background: rgba(91,255,159,0.08); border-bottom: 1px solid rgba(91,255,159,0.2);
  color: var(--muted); transition: background 0.2s;
}
.announce:hover { background: rgba(91,255,159,0.14); }
.announce-dot { color: var(--spectre); animation: pulse 2s ease-in-out infinite; margin-right: 0.375rem; }
.announce-text { color: var(--ink); font-weight: 500; }
.announce-cta { font-family: var(--mono); color: var(--spectre); margin-left: 0.375rem; }
.announce:hover .announce-cta { text-decoration: underline; }

.head-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.brand-row { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; text-transform: lowercase; }
.nav { display: none; align-items: center; gap: 1.5rem; font-size: 0.9375rem; }
.nav a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .lang-switch { font-family: var(--mono); font-size: 0.8125rem; border: 1px solid var(--line-soft); border-radius: 0.375rem; padding: 0.25rem 0.5rem; }
.nav .lang-switch:hover { border-color: var(--spectre); color: var(--spectre); }
.nav .nav-cta {
  font-family: var(--mono); font-weight: 700; font-size: 0.875rem;
  background: var(--spectre); color: var(--spectre-dark);
  padding: 0.5rem 1rem; border-radius: 0.375rem;
  transition: box-shadow 0.25s;
}
.nav .nav-cta:hover { box-shadow: 0 0 22px rgba(91,255,159,0.5); color: var(--spectre-dark); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: 0.625rem;
  background: none; border: 1px solid var(--line-soft); border-radius: 0.5rem; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: grid; gap: 0.25rem; padding: 0.75rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.nav-mobile a { padding: 0.625rem 0.5rem; text-decoration: none; color: var(--ink); border-radius: 0.375rem; }
.nav-mobile a:hover { background: var(--surface); }
.nav-mobile .lang-switch-mobile { color: var(--spectre); font-size: 0.875rem; }

@media (min-width: 940px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--spectre);
  border: 1px solid rgba(91,255,159,0.3); border-radius: 999px;
  padding: 0.25rem 0.75rem; margin-bottom: 1.75rem;
  box-shadow: 0 0 0 1px rgba(91,255,159,0.15), 0 0 30px rgba(91,255,159,0.08);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--spectre); animation: pulse 2s ease-in-out infinite; }
.hero-copy .lede .mono { color: var(--ink); font-size: 0.9em; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions-center { justify-content: center; margin-top: 2.25rem; }
.hero-trust { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.8125rem; color: var(--muted); }
.hero-trust .ink { color: var(--ink); }
.hero-trust .sep { color: var(--line-soft); }

.hero-page { position: relative; overflow: hidden; padding: 4.5rem 0; }
@media (min-width: 940px) {
  .hero { padding: 6rem 0 7rem; }
  .hero-grid { grid-template-columns: 7fr 5fr; }
  .hero-page { padding: 5.5rem 0; }
}

/* Le viseur de scan */
.hero-visual { display: flex; justify-content: center; }
.scanner {
  position: relative; width: 100%; max-width: 24rem; aspect-ratio: 1;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(19,19,28,0.6); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(91,255,159,0.4), 0 0 30px rgba(91,255,159,0.12);
}
.corner { position: absolute; width: 1.5rem; height: 1.5rem; border-color: var(--spectre); border-style: solid; border-width: 0; }
.c-tl { top: 0.75rem; left: 0.75rem; border-top-width: 2px; border-left-width: 2px; }
.c-tr { top: 0.75rem; right: 0.75rem; border-top-width: 2px; border-right-width: 2px; }
.c-bl { bottom: 0.75rem; left: 0.75rem; border-bottom-width: 2px; border-left-width: 2px; }
.c-br { bottom: 0.75rem; right: 0.75rem; border-bottom-width: 2px; border-right-width: 2px; }
.scanline {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--spectre);
  box-shadow: 0 0 14px 2px rgba(91,255,159,0.7);
  animation: sweep 3.2s ease-in-out infinite;
}
.scanner-code {
  position: absolute; inset: 0; padding: 1rem;
  font-size: 0.6875rem; line-height: 1.8; color: rgba(91,255,159,0.15);
  user-select: none; overflow: hidden;
}
.scanner-ghost { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* Le glow s'applique au svg entier : sur le path interne, le filtre serait
   clippé au canvas SVG et peindrait un carré. */
.scanner-ghost svg { filter: drop-shadow(0 0 8px rgba(91,255,159,0.45)); }
.scanner-caption {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  font-size: 0.625rem; letter-spacing: 0.2em; color: var(--spectre);
}
.ghost-float { animation: float 5s ease-in-out infinite; }

/* ---------- Cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  display: flex; flex-direction: column;
}
.card-accent {
  border-color: rgba(91,255,159,0.4);
  box-shadow: 0 0 0 1px rgba(91,255,159,0.25), 0 0 30px rgba(91,255,159,0.1);
}
.card-num { font-size: 0.875rem; color: var(--muted); }
.card-text { margin-top: 0.75rem; color: var(--muted); flex: 1; }
.card-text .ink { color: var(--ink); }

.point {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.25rem;
}
.point p { color: var(--muted); }
.point strong { color: var(--ink); font-weight: 500; }
.platforms-line { margin-top: 1.5rem; color: var(--muted); font-size: 0.9375rem; }
.platforms-line a { color: var(--spectre); text-decoration: none; }
.platforms-line a:hover { text-decoration: underline; }

/* ---------- Pilotage Lovable ---------- */
.lovable-support-grid { display: grid; gap: 3rem; align-items: center; }
.lovable-support-action { margin-top: 2rem; }
.lovable-routing,
.lovable-mode-console {
  position: relative;
  overflow: hidden;
  background: #0D0D13;
  border: 1px solid var(--energy);
  box-shadow: 10px 10px 0 rgba(155,107,255,0.13);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.lovable-routing::before,
.lovable-mode-console::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(91,255,159,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,255,159,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.lovable-console-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: #181824;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}
.lovable-console-live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--spectre); }
.lovable-console-live i {
  width: 0.45rem;
  height: 0.45rem;
  flex: none;
  border-radius: 50%;
  background: var(--spectre);
  box-shadow: 0 0 10px rgba(91,255,159,0.8);
}
.lovable-routing-body { position: relative; padding: 0.75rem 1rem; }
.lovable-routing-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1fr) minmax(2.5rem, 0.65fr) minmax(6rem, auto);
  gap: 0.75rem;
  align-items: center;
  padding: 1.15rem 0;
  font-size: 0.6875rem;
  color: var(--muted);
}
.lovable-routing-row + .lovable-routing-row { border-top: 1px solid var(--line); }
.lovable-routing-row strong { color: var(--spectre); text-align: right; }
.lovable-routing-line { position: relative; height: 1px; background: var(--line-soft); }
.lovable-routing-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--spectre);
  border-right: 1px solid var(--spectre);
  transform: rotate(45deg);
}
.lovable-routing-line i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--energy);
}
.lovable-routing-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--muted);
  background: #08080C;
  border-top: 1px solid var(--line);
  font-size: 0.5625rem;
}
.lovable-routing-foot span:first-child { color: var(--energy); }
.lovable-modes-section .section-head { margin-bottom: 2.5rem; }
.lovable-mode-grid { position: relative; display: grid; }
.lovable-mode { padding: clamp(1.5rem, 4vw, 2.5rem); }
.lovable-mode + .lovable-mode { border-top: 1px solid var(--line-soft); }
.lovable-mode-route {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.6875rem;
}
.lovable-mode-route span[aria-hidden] { color: var(--energy); }
.lovable-mode-route strong { color: var(--spectre); }
.lovable-mode p { margin-top: 0.85rem; color: var(--muted); }

@media (min-width: 700px) {
  .lovable-console-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .lovable-mode-grid { grid-template-columns: repeat(2, 1fr); }
  .lovable-mode + .lovable-mode { border-top: 0; border-left: 1px solid var(--line-soft); }
}

@media (min-width: 940px) {
  .lovable-support-grid { grid-template-columns: minmax(0, 0.95fr) minmax(26rem, 1.05fr); gap: 5rem; }
}

/* Stats sourcées */
.stat-value { font-family: var(--display); font-weight: 900; font-size: 3rem; color: var(--alert); text-shadow: 0 0 18px rgba(255,77,94,0.55); line-height: 1; }
.stat-suffix { font-size: 1.375rem; }
.stat-text { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--muted); flex: 1; }
.stat-action { margin-top: 0.75rem; font-size: 0.9375rem; }
.stat-source { margin-top: 0.75rem; font-size: 0.6875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.stat-source:hover { color: var(--ink); }

/* Offres */
.offer-top { display: flex; align-items: center; justify-content: space-between; }
.offer-badge {
  font-size: 0.75rem; color: var(--spectre);
  border: 1px solid rgba(91,255,159,0.4); border-radius: 999px; padding: 0.25rem 0.625rem;
}
.offer-name { font-size: 1.5rem; margin-top: 1rem; }
.offer-tagline { font-size: 0.875rem; margin-top: 0.25rem; }
.offer-price { margin-top: 1.25rem; font-family: var(--display); font-weight: 700; font-size: 1.125rem; }
.offer-price-note { font-family: var(--sans); font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.offer-note { margin-top: 0.25rem; font-size: 0.75rem; margin-bottom: 0.25rem; }
.offer .btn { margin-top: 1.25rem; }

/* Étapes méthode */
.steps { gap: 2rem; }
.step-num { font-family: var(--display); font-weight: 900; font-size: 3.5rem; color: var(--line); line-height: 1; }
.step-num.spectre { color: var(--spectre); }

/* Callout atelier */
.callout {
  background: var(--surface); border: 1px solid rgba(91,255,159,0.4);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: 0 0 0 1px rgba(91,255,159,0.25), 0 0 30px rgba(91,255,159,0.1);
  display: grid; gap: 2rem; align-items: center;
}
.callout-side { display: grid; gap: 1rem; justify-items: start; }
.callout-under { font-size: 0.875rem; color: var(--muted); }
.callout-under a { color: var(--spectre); text-decoration: none; }
.callout-under a:hover { text-decoration: underline; }
@media (min-width: 940px) {
  .callout { grid-template-columns: 3fr 2fr; padding: 3rem; }
  .callout-side { justify-items: end; text-align: right; }
}
.chips { margin-top: 1.5rem; display: inline-flex; flex-wrap: wrap; gap: 0.375rem 0.75rem; font-size: 0.875rem; color: var(--muted); }
.chips .ink { color: var(--ink); font-weight: 700; }
.chips .sep { color: var(--line-soft); }
.chips-boxed {
  background: var(--surface); border: 1px solid rgba(91,255,159,0.4); border-radius: 0.5rem;
  padding: 0.75rem 1rem; box-shadow: 0 0 0 1px rgba(91,255,159,0.2), 0 0 30px rgba(91,255,159,0.08);
}

/* Qui */
.qui-card {
  aspect-ratio: 1; max-width: 20rem; margin: 0 auto; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(91,255,159,0.3), 0 0 30px rgba(91,255,159,0.1);
}
.qui-caption { margin-top: 1rem; font-size: 0.75rem; color: var(--muted); }
.qui-caption .ink { color: var(--ink); }

/* Portrait "nos experts" (photo Higgsfield, badge officiel) */
.qui-photo-card { position: relative; overflow: hidden; padding: 0; max-width: 24rem; }
.qui-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.qui-caption-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 1.75rem 1rem 0.875rem; text-align: center;
  background: linear-gradient(transparent, rgba(10,10,15,0.85));
}

/* Images de la prose (équipe, formateur) */
.prose img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(91,255,159,0.25), 0 0 30px rgba(91,255,159,0.08);
  margin: 1.5rem 0;
}

/* ---------- Audit de code : radiographie du dépôt ---------- */
.code-audit-hero { padding: 4.5rem 0 5rem; }
.code-audit-hero-grid { display: grid; gap: 3rem; align-items: center; }
.code-audit-copy { position: relative; z-index: 1; }
.repo-radiograph {
  position: relative; min-height: 30rem; border: 1px solid var(--steel-light);
  border-radius: var(--radius-lg); background: var(--void); padding: 0.625rem;
  box-shadow: 0 0 0 1px rgba(91,255,159,0.18), 0 0 34px rgba(91,255,159,0.08);
}
.repo-radiograph::before,
.repo-radiograph::after {
  content: ''; position: absolute; width: 2rem; height: 2rem; z-index: 2;
  border-color: var(--spectre); border-style: solid;
}
.repo-radiograph::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.repo-radiograph::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.repo-radiograph-inner {
  position: relative; min-height: 28.75rem; overflow: hidden;
  border: 1px solid var(--line); background:
    linear-gradient(rgba(91,255,159,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,255,159,0.035) 1px, transparent 1px),
    var(--night);
  background-size: 32px 32px;
}
.repo-head,
.repo-foot {
  position: absolute; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem; color: var(--muted); font-size: 0.625rem;
  letter-spacing: 0.08em; background: var(--surface);
}
.repo-head { top: 0; border-bottom: 1px solid var(--line); }
.repo-foot { bottom: 0; border-top: 1px solid var(--line); }
.repo-live { color: var(--spectre); }
.repo-live i {
  display: inline-block; width: 6px; height: 6px; margin-right: 0.4rem;
  border-radius: 50%; background: var(--spectre);
}
.repo-tree {
  position: absolute; top: 4.5rem; left: 1.25rem; display: grid; gap: 0.65rem;
  color: var(--muted); font-size: 0.75rem;
}
.repo-tree span:not(.repo-folder) { padding-left: 0.75rem; }
.repo-tree .repo-folder { color: var(--ink); }
.repo-scan-beam {
  position: absolute; top: 49%; left: 0; right: 0; height: 1px;
  background: var(--spectre); box-shadow: 0 0 14px rgba(91,255,159,0.75);
}
.repo-proof-pins {
  position: absolute; top: 4.25rem; right: 1rem; bottom: 4.5rem;
  display: grid; align-content: space-between;
}
.repo-proof-pins span {
  min-width: 3.25rem; padding: 0.3rem 0.45rem; border: 1px solid var(--line-soft);
  background: var(--surface); color: var(--spectre); font-family: var(--mono);
  font-size: 0.625rem; text-align: center;
}
.repo-score-lockup {
  position: absolute; right: 5.25rem; bottom: 4.6rem; display: flex;
  align-items: baseline; gap: 0.4rem; color: var(--ink);
}
.repo-score-lockup strong {
  font-family: var(--display); font-size: clamp(3.75rem, 9vw, 6rem); line-height: 0.85;
  color: var(--spectre); text-shadow: 0 0 22px rgba(91,255,159,0.25);
}
.repo-score-lockup span { color: var(--muted); }

.takeover-section { background: var(--night); }
.takeover-scale {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin: 2rem 0 1rem;
  color: var(--muted); font-size: 0.6875rem;
}
.takeover-scale span { display: inline-flex; align-items: center; gap: 0.5rem; }
.takeover-scale strong {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border: 1px solid var(--spectre); color: var(--spectre);
}
.takeover-index { border: 1px solid var(--steel-light); background: var(--void); }
.takeover-axis { display: grid; border-bottom: 1px solid var(--steel); }
.takeover-axis:last-child { border-bottom: 0; }
.takeover-axis-head {
  display: grid; grid-template-columns: 3.25rem 1fr; align-items: center;
  gap: 1rem; padding: 1.25rem; background: var(--surface);
}
.takeover-axis-num { color: var(--steel-light); font-size: 1.25rem; font-weight: 700; }
.takeover-axis-code { color: var(--spectre); font-size: 0.625rem; letter-spacing: 0.12em; }
.takeover-axis h3 {
  margin-top: 0.15rem; font-family: var(--display); font-size: 1rem; line-height: 1.25;
}
.takeover-criteria { list-style: none; padding: 0; display: grid; }
.takeover-criteria li {
  display: grid; grid-template-columns: 4.25rem 1fr; gap: 0.75rem 1rem;
  align-items: center; padding: 1rem 1.25rem; border-top: 1px solid var(--line);
}
.criterion-id { color: var(--muted); font-size: 0.6875rem; }
.criterion-copy { color: var(--ink); }
.criterion-proof {
  grid-column: 2; color: var(--muted); font-size: 0.5625rem;
  letter-spacing: 0.08em;
}
.takeover-bands { display: grid; margin-top: 1rem; border: 1px solid var(--line); }
.takeover-band { display: grid; gap: 0.25rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.takeover-band:last-child { border-bottom: 0; }
.takeover-band strong { color: var(--spectre); font-size: 0.75rem; }
.takeover-band span { color: var(--muted); font-size: 0.875rem; }
.takeover-caveat {
  margin: 1.25rem 0 0; max-width: 58rem; color: var(--muted); font-size: 0.875rem;
  border-left: 2px solid var(--energy); padding-left: 1rem;
}
.report-evidence-grid { display: grid; gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); }
.report-evidence { padding: 1.5rem; background: var(--surface); }
.report-evidence-id { color: var(--spectre); font-size: 0.625rem; }
.report-evidence h3 { margin-top: 0.75rem; font-family: var(--display); font-size: 1rem; }
.report-evidence p { margin-top: 0.625rem; color: var(--muted); }
.sample-finding-section { border-top: 1px solid var(--line); }
.sample-finding {
  margin-top: 2rem; background: var(--surface); border: 1px solid rgba(91,255,159,0.3);
  border-radius: var(--radius-lg); overflow: hidden;
}
.sample-finding > header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); background: var(--night);
}
.sample-finding-id { color: var(--spectre); font-size: 0.75rem; }
.sample-finding-priority { color: var(--alert); font-size: 0.68rem; }
.sample-finding-grid { display: grid; }
.sample-finding-grid > div { padding: 1.35rem; }
.sample-finding-grid > div + div { border-top: 1px solid var(--line); }
.sample-finding-grid span { color: var(--spectre); font-size: 0.68rem; text-transform: uppercase; }
.sample-finding-grid p { margin-top: 0.65rem; color: var(--muted); }
.code-audit-prose { background: var(--night); }

@media (min-width: 700px) {
  .takeover-bands { grid-template-columns: repeat(4, 1fr); }
  .takeover-band { border-right: 1px solid var(--line); border-bottom: 0; }
  .takeover-band:last-child { border-right: 0; }
  .report-evidence-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 940px) {
  .code-audit-hero-grid { grid-template-columns: 7fr 5fr; }
  .takeover-axis { grid-template-columns: 15rem 1fr; }
  .takeover-axis-head { border-right: 1px solid var(--steel); }
  .takeover-criteria { grid-template-columns: repeat(2, 1fr); }
  .takeover-criteria li { border-top: 0; }
  .takeover-criteria li + li { border-left: 1px solid var(--line); }
  .report-evidence-grid { grid-template-columns: repeat(4, 1fr); }
  .sample-finding-grid { grid-template-columns: repeat(3, 1fr); }
  .sample-finding-grid > div + div { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.25rem 1.5rem;
}
.faq-item[open] { border-color: rgba(91,255,159,0.3); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; list-style: none; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--spectre); font-size: 1.5rem; line-height: 1; transition: transform 0.2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item > p { margin-top: 1rem; color: var(--muted); }

/* ---------- Prose (corps markdown) ---------- */
.prose { color: var(--muted); font-size: 1.0625rem; }
.prose h2 {
  font-family: var(--display); font-weight: 800; color: var(--ink);
  font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.25;
  margin-top: 3rem; margin-bottom: 1rem;
}
.prose h3 {
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: 1.1875rem; margin-top: 2.25rem; margin-bottom: 0.75rem;
}
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 1rem 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--spectre); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose li { margin: 0.5rem 0; }
.prose li::marker { color: var(--spectre); }
.prose code {
  font-family: var(--mono); font-size: 0.875em; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.25rem; padding: 0.125rem 0.375rem;
}
.prose pre {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem;
  padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0;
}
.prose pre code { background: none; border: none; padding: 0; color: var(--spectre); font-size: 0.875rem; }
.prose blockquote {
  border-left: 2px solid var(--spectre); padding-left: 1.25rem; margin: 1.5rem 0;
  color: var(--ink);
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.625rem 0.875rem; text-align: left; }
.prose th { color: var(--ink); font-weight: 600; background: var(--surface); }

/* Encarts maison dans la prose */
.prose .note {
  background: var(--surface); border: 1px solid rgba(91,255,159,0.3);
  border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.prose .note p { margin: 0.5rem 0; }

/* Checklist interactive */
.check-item {
  display: flex; gap: 0.875rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.125rem 1.25rem; margin: 0.75rem 0;
}
.check-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 1.4rem; height: 1.4rem; flex: none; margin-top: 0.15rem;
  border: 1px solid var(--line-soft); border-radius: 0.35rem;
  background: var(--night); cursor: pointer; transition: 0.15s;
}
.check-item input[type="checkbox"]:checked { background: var(--spectre); border-color: var(--spectre); }
.check-item input[type="checkbox"]:checked + label { color: var(--muted); text-decoration: line-through; }
.check-item label { color: var(--muted); cursor: pointer; }
.check-item label strong { color: var(--ink); font-weight: 500; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 1.25rem; }
.post-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: rgba(91,255,159,0.4); }
.post-date { font-size: 0.75rem; color: var(--muted); }
.post-byline { margin: 1rem 0 0; color: var(--muted); font-size: 0.875rem; }
.post-byline a { color: var(--ink); }
.post-title { font-family: var(--display); font-weight: 700; font-size: 1.3125rem; line-height: 1.3; margin-top: 0.625rem; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--spectre); }
.post-desc { margin-top: 0.75rem; color: var(--muted); }
.post-more { margin-top: 1rem; font-size: 0.875rem; }
.post-more a { color: var(--spectre); text-decoration: none; }
.post-more a:hover { text-decoration: underline; }
.post-breadcrumb { font-size: 0.8125rem; margin-bottom: 1.5rem; }
.post-breadcrumb a { color: var(--muted); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--ink); }
.hero-page .post-date { margin-bottom: 1rem; }

.site-breadcrumb {
  background: var(--night); border-bottom: 1px solid var(--line);
  color: var(--muted); font-family: var(--mono); font-size: 0.72rem;
}
.site-breadcrumb .wrap {
  display: flex; align-items: center; gap: 0.55rem; min-height: 2.6rem;
  white-space: nowrap; overflow: hidden;
}
.site-breadcrumb a { color: var(--spectre); text-decoration: none; flex: none; }
.site-breadcrumb a:hover { text-decoration: underline; }
.site-breadcrumb span[aria-current="page"] { overflow: hidden; text-overflow: ellipsis; }

.source-register {
  margin-top: 4rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.source-register h2 {
  margin-top: 0.45rem; font-family: var(--display); font-size: 1.1rem; line-height: 1.3;
}
.source-register ul { margin: 1.1rem 0 0; padding-left: 1.2rem; }
.source-register li + li { margin-top: 0.55rem; }
.source-register a { color: var(--ink); text-underline-offset: 0.2em; }
.source-register a:hover { color: var(--spectre); }
.source-verified { margin-top: 1.1rem; color: var(--muted); font-size: 0.72rem; }

/* ---------- Formulaires ---------- */
.lead-form { display: grid; gap: 1rem; }
.form-field { display: grid; gap: 0.45rem; }
.form-label { font-family: var(--mono); font-size: 0.75rem; color: var(--ink); }
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="url"],
.lead-form select,
.lead-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.5rem; padding: 0.875rem 1rem;
  color: var(--ink); font-family: var(--mono); font-size: 0.875rem;
  outline: none; transition: border-color 0.2s;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--muted); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--spectre); }
.lead-form select { appearance: none; }
.lead-form select:invalid, .lead-form select option[value=""] { color: var(--muted); }
.form-hint { margin-top: 0.375rem; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.form-hint-center { text-align: center; margin-top: 0; }
.form-status { font-family: var(--mono); font-size: 0.875rem; text-align: center; color: var(--spectre); }
.form-status.error { color: var(--alert); }
.form-reassurance {
  display: flex; gap: 0.625rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.5rem; padding: 0.875rem 1rem;
}
.form-reassurance p { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.form-lock {
  display: grid; place-items: center; flex: none;
  width: 2rem; height: 2rem; border: 1px solid var(--spectre); color: var(--spectre);
  font-size: 0.625rem; font-weight: 700;
}
.form-submit-mark { margin-left: 0.35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Divers ---------- */
.cta-box {
  background: var(--surface); border: 1px solid rgba(91,255,159,0.4);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  box-shadow: 0 0 0 1px rgba(91,255,159,0.25), 0 0 30px rgba(91,255,159,0.1);
}
.cta-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.cta-text { margin-top: 0.625rem; color: var(--muted); font-size: 0.9375rem; }
.cta-box .btn { margin-top: 1.5rem; }

.cta-final { overflow: hidden; }

.bridge { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.bridge-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.bridge-text { margin-top: 0.375rem; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 700px) {
  .bridge { flex-direction: row; align-items: center; justify-content: space-between; }
}

.program { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 0.875rem; }
.program li { display: flex; gap: 1rem; color: var(--muted); }
.program li.ink { color: var(--ink); }
.program-num { font-family: var(--display); font-weight: 900; font-size: 1.25rem; color: var(--line-soft); flex: none; }
.program-num.spectre { color: var(--spectre); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.foot-grid { display: grid; gap: 2.5rem; }
.foot-brand .foot-line { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.foot-parent { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); max-width: 20rem; }
.foot-parent a { color: var(--ink); text-decoration: none; }
.foot-parent a:hover { color: var(--spectre); }
.foot-col { display: grid; gap: 0.5rem; align-content: start; }
.foot-col h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.375rem; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.foot-col a:hover { color: var(--spectre); }
.foot-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.foot-legal p { font-family: var(--mono); font-size: 0.75rem; color: rgba(138,138,153,0.6); }
@media (min-width: 940px) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes sweep { 0% { top: 4%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 96%; opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes flicker { 0%, 19%, 21%, 23%, 80%, 100% { opacity: 1; } 20%, 22%, 82% { opacity: 0.45; } }
.flicker { animation: flicker 4.5s infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ghost-float, .scanline, .flicker, .announce-dot, .hero-badge .dot { animation: none; }
  .btn-spectre:hover { transform: none; }
}

/* ---------- Impression (checklist) ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .announce, .cta-box, .hero-actions, .skip { display: none; }
  .nightbg, .card, .check-item, .faq-item { background: #fff !important; border-color: #ccc !important; box-shadow: none !important; }
  .h1, .h2, .h3, .prose, .prose h2, .prose h3, .prose strong, .check-item label, .check-item label strong, .lede { color: #000 !important; text-shadow: none !important; }
  .kicker, .spectre { color: #0a7a40 !important; text-shadow: none !important; }
  .check-item input[type="checkbox"] { border-color: #000 !important; background: #fff !important; }
}

/* ========================================================================== */
/* V2 HOME · UNITÉ D'INTERVENTION NUMÉRIQUE                                   */
/* ========================================================================== */

:root {
  --alert-deep: #6E101E;
  --steel: #343541;
  --steel-light: #4B4C5A;
  --void: #050509;
}

:focus-visible {
  outline: 3px solid var(--spectre);
  outline-offset: 4px;
}

.nav-mobile[hidden] { display: none; }

.route-home .site-head {
  background: var(--night);
  backdrop-filter: none;
  border-bottom-color: var(--steel);
}

.route-home .announce {
  background: var(--alert-deep);
  border-bottom-color: rgba(255,255,255,0.12);
  color: var(--ink);
}

.route-home .announce-cta,
.route-home .announce-dot { color: var(--spectre); }

/* Hero, la machine est le seul grand moment animé de la page. */
.hero-v2 {
  min-height: calc(100dvh - 6.5rem);
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
  isolation: isolate;
}

.intervention-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(255,77,94,0.13) 50%, transparent 50.15%),
    linear-gradient(rgba(91,255,159,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,255,159,0.035) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, #000 15%, transparent 100%);
}

.hero-v2::before {
  content: '';
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -17rem;
  top: 5%;
  border: 1px solid rgba(155,107,255,0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(155,107,255,0.025), 0 0 0 7rem rgba(155,107,255,0.018);
  pointer-events: none;
}

.hero-cable {
  position: absolute;
  width: 22rem;
  height: 11rem;
  left: -9rem;
  bottom: -4rem;
  border: 8px solid var(--steel);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-v2-grid { width: 100%; gap: 3.25rem; }
.hero-v2 .hero-copy { position: relative; z-index: 2; }
.hero-v2 .hero-badge {
  border-radius: 0;
  border-color: var(--alert);
  border-left-width: 5px;
  background: rgba(255,77,94,0.08);
  color: var(--ink);
  box-shadow: none;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.hero-v2 .hero-badge .dot {
  border-radius: 0;
  background: var(--alert);
  box-shadow: 0 0 12px rgba(255,77,94,0.8);
}

.hero-v2 .h1-hero {
  max-width: 48rem;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.94;
  text-wrap: balance;
}

.hero-v2 .lede { max-width: 42rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.hero-v2 .btn { min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; }
.hero-v2 .btn-spectre {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  border-radius: 0;
}
.hero-v2 .btn-ghost { border-radius: 0; border-color: var(--steel-light); }
.hero-v2 .hero-trust { display: none; }

.containment-wrap { position: relative; padding: 0.75rem; }
.containment-wrap::before,
.containment-wrap::after {
  content: '';
  position: absolute;
  width: 42%;
  height: 16px;
  top: 18%;
  background: repeating-linear-gradient(135deg, var(--alert) 0 12px, var(--night) 12px 24px);
  border: 1px solid var(--steel-light);
  z-index: -1;
}
.containment-wrap::before { left: -12%; transform: rotate(-18deg); }
.containment-wrap::after { right: -12%; transform: rotate(18deg); }

.containment-unit {
  position: relative;
  width: min(100%, 31rem);
  margin: 0 auto;
  padding: 1.1rem;
  background:
    radial-gradient(circle at 12px 12px, #71727D 0 2px, #17171E 2.5px 5px, transparent 5.5px),
    linear-gradient(145deg, #292A34, #121219 45%, #242530);
  background-size: 100% 100%;
  border: 2px solid var(--steel-light);
  box-shadow:
    0 0 0 4px var(--void),
    0 0 0 6px var(--alert-deep),
    18px 22px 0 rgba(0,0,0,0.35),
    0 0 65px rgba(155,107,255,0.13);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 26px), calc(100% - 26px) 100%, 20px 100%, 0 calc(100% - 20px), 0 18px);
}

.unit-rail {
  height: 0.55rem;
  border: 1px solid #5B5C68;
  background: repeating-linear-gradient(90deg, #17171E 0 14px, #3C3D48 14px 18px);
  box-shadow: inset 0 1px rgba(255,255,255,0.1);
}
.unit-rail-top { margin-bottom: 0.8rem; }
.unit-rail-bottom { margin-top: 0.85rem; }

.unit-head,
.unit-foot,
.meter-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.unit-head {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}
.unit-signal { color: var(--spectre); white-space: nowrap; }
.unit-signal i,
.dependency-state i {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.spectral-chamber {
  position: relative;
  min-height: 23rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(91,255,159,0.11), transparent 30%),
    radial-gradient(circle at 50% 75%, rgba(155,107,255,0.17), transparent 32%),
    var(--void);
  border: 2px solid var(--alert-deep);
  box-shadow: inset 0 0 0 5px #101018, inset 0 0 55px rgba(0,0,0,0.9);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px);
}

.chamber-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(91,255,159,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,255,159,0.13) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: perspective(280px) rotateX(18deg) scale(1.2);
}

.spectral-chamber .scanner-code {
  inset: 0;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(91,255,159,0.18);
  font-size: 0.58rem;
  line-height: 1;
  z-index: 0;
}
.spectral-chamber .scanner-code span:nth-child(even) { text-align: right; color: rgba(255,77,94,0.18); }

.reticle {
  position: absolute;
  left: 50%;
  top: 45%;
  border: 1px solid rgba(91,255,159,0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.reticle::before,
.reticle::after { content: ''; position: absolute; background: rgba(91,255,159,0.36); }
.reticle::before { width: 1px; top: -14px; bottom: -14px; left: 50%; }
.reticle::after { height: 1px; left: -14px; right: -14px; top: 50%; }
.reticle-one { width: 14rem; height: 14rem; animation: reticle-hunt 5s ease-in-out infinite; }
.reticle-two { width: 9rem; height: 9rem; animation: reticle-hunt 5s ease-in-out 0.2s infinite reverse; }

.energy-field { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.energy-beam {
  stroke: var(--energy);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(155,107,255,0.85));
  stroke-dasharray: 8 10;
  animation: energy-flow 1.1s linear infinite;
}
.energy-beam-b { stroke: var(--alert); animation-direction: reverse; }
.energy-beam-core { stroke: var(--spectre); stroke-width: 1.3; animation-duration: 0.8s; opacity: 0.8; }

.code-ghost {
  position: absolute;
  width: 46%;
  left: 27%;
  top: 18%;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(91,255,159,0.52));
}
.code-ghost-body {
  fill: #11161A;
  stroke: var(--spectre);
  stroke-width: 2.4;
}
.code-ghost-tail,
.code-ghost-brow,
.code-ghost-mouth {
  fill: none;
  stroke: var(--spectre);
  stroke-width: 3;
  stroke-linecap: round;
}
.code-ghost-eye { fill: var(--alert); filter: drop-shadow(0 0 5px rgba(255,77,94,0.9)); }
.ghost-brace,
.ghost-tag { fill: var(--spectre); font-family: var(--mono); font-weight: 700; }
.ghost-brace { font-size: 38px; opacity: 0.8; }
.ghost-tag { font-size: 14px; letter-spacing: 0.08em; }

.chamber-alert {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  padding: 0.35rem 0.55rem;
  background: var(--alert);
  color: var(--night);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.trap-deck {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 5.5rem 1fr;
  align-items: end;
  gap: 0.25rem;
  width: 78%;
  height: 3.3rem;
  margin: -1.55rem auto 0;
}
.trap-lid {
  height: 1.55rem;
  background: linear-gradient(#4A4B57, #20212A);
  border: 1px solid #686975;
  box-shadow: 0 5px 0 #0B0B10;
}
.trap-lid-left { transform: skewY(8deg); transform-origin: right bottom; }
.trap-lid-right { transform: skewY(-8deg); transform-origin: left bottom; }
.trap-core {
  position: relative;
  height: 3rem;
  background: var(--alert-deep);
  border: 2px solid var(--alert);
  box-shadow: 0 0 20px rgba(255,77,94,0.28);
}
.trap-slot { position: absolute; width: 58%; height: 0.35rem; left: 21%; top: 0.6rem; background: var(--void); }
.trap-light { position: absolute; width: 0.45rem; height: 0.45rem; bottom: 0.5rem; box-shadow: 0 0 8px currentColor; }
.trap-light-red { left: 30%; color: var(--alert); background: currentColor; }
.trap-light-green { right: 30%; color: var(--spectre); background: currentColor; }

.unit-meter {
  margin-top: 0.8rem;
  padding: 0.75rem;
  background: #0E0E14;
  border: 1px solid var(--steel-light);
}
.meter-copy { color: var(--muted); font-size: 0.57rem; letter-spacing: 0.06em; }
.meter-copy strong { color: var(--spectre); font-size: 0.7rem; }
.meter-track { height: 0.55rem; margin-top: 0.55rem; padding: 2px; background: #050508; border: 1px solid #32333E; }
.meter-track span {
  display: block;
  width: 67%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--spectre) 0 9px, transparent 9px 12px);
  box-shadow: 0 0 12px rgba(91,255,159,0.38);
  animation: meter-breathe 2.2s ease-in-out infinite;
}
.unit-foot { margin-top: 0.7rem; color: var(--muted); font-size: 0.52rem; letter-spacing: 0.08em; }
.unit-foot span:first-child { color: var(--spectre); }

/* Bande de preuve, courte et factuelle. */
.proof-strip {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--alert-deep);
  border-top: 1px solid var(--alert);
  border-bottom: 1px solid var(--alert);
}
.proof-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background: repeating-linear-gradient(135deg, transparent 0 18px, #fff 18px 20px);
}
.proof-strip-inner {
  min-height: 4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.72rem;
}
.proof-mark {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--night);
  background: var(--spectre);
  font-weight: 700;
  transform: rotate(-4deg);
}
.proof-item { color: var(--ink); }
.proof-item + .proof-item { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 0.55rem; }

/* Dossiers d'intervention. */
.dispatch-section { background: #0D0D13; }
.case-files { align-items: stretch; }
.case-file {
  position: relative;
  border-radius: 0;
  padding: 2.1rem 1.75rem 1.75rem;
  background: linear-gradient(145deg, #181821, #101016);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.case-file::before {
  content: 'CASE FILE';
  position: absolute;
  top: 0.55rem;
  right: 1.15rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.case-file:nth-child(2) { border-color: var(--spectre); transform: translateY(0); }
.case-file:nth-child(3) { border-left: 3px solid var(--energy); }
.case-clip {
  position: absolute;
  width: 3.2rem;
  height: 0.45rem;
  left: 1.7rem;
  top: 0;
  background: var(--steel-light);
  box-shadow: 0 3px 0 #08080C;
}
.case-file .card-num { color: var(--alert); }
.case-file.card-accent .card-num { color: var(--spectre); }

/* Console de reprise de propriété. */
.ownership-section { overflow: hidden; }
.ownership-section::before {
  content: 'PROPERTY TRANSFER';
  position: absolute;
  right: -3rem;
  top: 2rem;
  color: rgba(255,255,255,0.025);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 8rem);
  white-space: nowrap;
  pointer-events: none;
}
.ownership-console {
  position: relative;
  padding: 1rem;
  background: #0B0B10;
  border: 2px solid var(--steel-light);
  box-shadow: 12px 12px 0 #050507, 13px 13px 0 var(--alert-deep);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 12px);
}
.console-head,
.console-output {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}
.console-head { color: var(--muted); border-bottom: 1px solid var(--steel); }
.console-live { color: var(--alert); }
.dependency-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.dependency-id { color: var(--energy); font-size: 0.72rem; }
.dependency-row p { display: grid; gap: 0.2rem; color: var(--muted); font-size: 0.88rem; }
.dependency-row strong { color: var(--ink); font-weight: 500; }
.dependency-state {
  grid-column: 2;
  color: var(--alert);
  font-size: 0.55rem;
  white-space: nowrap;
}
.console-output {
  margin-top: 1rem;
  color: var(--night);
  background: var(--spectre);
  font-weight: 700;
}
.console-output strong { font-family: var(--display); font-size: 0.7rem; }

/* Rapport de terrain, une seule surface plutôt qu'une rangée de cartes. */
.evidence-section { background: #111117; }
.diagnostic-board {
  margin-top: 3rem;
  border: 2px solid var(--steel-light);
  background: var(--void);
  box-shadow: inset 0 0 0 5px #111118;
}
.diagnostic-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: var(--alert-deep);
  border-bottom: 1px solid var(--alert);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}
.diagnostic-grid { margin-top: 0; gap: 0; }
.diagnostic-cell {
  min-width: 0;
  padding: 1.5rem;
  border-bottom: 1px solid var(--steel);
}
.diagnostic-cell .stat-value { color: var(--ink); font-size: clamp(2.3rem, 6vw, 3.8rem); text-shadow: none; }
.diagnostic-cell:first-child .stat-value { color: var(--alert); text-shadow: 0 0 18px rgba(255,77,94,0.4); }
.diagnostic-cell .stat-source { display: inline-block; }

/* Rack des trois interventions. */
.equipment-section { overflow: hidden; }
.equipment-rack { align-items: stretch; }
.equipment-card {
  position: relative;
  border-radius: 0;
  padding: 1.75rem;
  overflow: hidden;
  background: linear-gradient(160deg, #1C1D26, #0E0E14 65%);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.equipment-card.card-accent { box-shadow: none; }
.equipment-visual {
  margin: -1.75rem -1.75rem 1.4rem;
  background: #0B0B10;
  border-bottom: 1px solid var(--steel-light);
}
.equipment-visual-scan { border-top: 1px solid rgba(91,255,159,0.7); }
.equipment-visual-intervention { border-top: 1px solid rgba(255,77,94,0.7); }
.equipment-visual-rebuild { border-top: 1px solid rgba(155,107,255,0.7); }
.equipment-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  background: #14141C;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}
.equipment-visual-head strong { color: var(--ink); font-size: 0.62rem; }
.equipment-visual-head span { display: inline-flex; align-items: center; gap: 0.4rem; text-align: right; }
.equipment-visual-head i {
  width: 0.38rem;
  height: 0.38rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.equipment-visual-scan .equipment-visual-head span { color: var(--spectre); }
.equipment-visual-intervention .equipment-visual-head span { color: var(--alert); }
.equipment-visual-rebuild .equipment-visual-head span { color: var(--energy); }
.offer-diagram { display: block; width: 100%; height: auto; background: #0A0A0F; }
.diagram-grid path,
.blueprint-grid path { fill: none; stroke: rgba(255,255,255,0.04); stroke-width: 1; }

/* Scan : le fantôme de code est identifié, pas encore capturé. */
.scan-reticle { fill: none; stroke: rgba(91,255,159,0.5); stroke-width: 1.2; }
.scan-reticle circle:last-of-type { stroke: rgba(155,107,255,0.45); stroke-dasharray: 5 5; }
.mini-code-ghost path:first-child { fill: rgba(91,255,159,0.08); stroke: var(--spectre); stroke-width: 1.6; }
.mini-code-ghost circle { fill: var(--alert); }
.mini-code-ghost path:not(:first-child) { fill: none; stroke: var(--alert); stroke-width: 1.3; }
.mini-code-ghost text { fill: var(--energy); font: 13px var(--mono); }
.scan-sweep {
  fill: none;
  stroke: var(--spectre);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px rgba(91,255,159,0.8));
  animation: offer-scan 3.2s ease-in-out infinite;
}
.scan-signals text { fill: var(--muted); font-size: 8px; letter-spacing: 0.04em; }
.scan-signals rect { fill: #252531; }
.scan-signals .signal-fill { fill: var(--spectre); }
.scan-signals .signal-fill-2 { fill: var(--energy); }
.scan-signals .signal-fill-3 { fill: var(--alert); }

/* Intervention : les anomalies sont aspirées dans un piège ouvert. */
.capture-field { fill: rgba(91,255,159,0.1); stroke: rgba(91,255,159,0.58); stroke-width: 1; }
.captured-code { fill: var(--alert); font-size: 13px; filter: drop-shadow(0 0 5px rgba(255,77,94,0.65)); }
.captured-code text:nth-child(2) { fill: var(--energy); }
.capture-stream { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 6; animation: offer-capture 2.5s linear infinite; }
.capture-stream-a { stroke: var(--spectre); }
.capture-stream-b { stroke: var(--energy); animation-delay: -1.1s; }
.open-trap rect:first-of-type { fill: #1A1A24; stroke: var(--spectre); stroke-width: 1.4; }
.trap-door { fill: #171720; stroke: var(--energy); stroke-width: 1.4; }
.open-trap .offer-trap-slot { fill: var(--spectre); filter: drop-shadow(0 0 6px rgba(91,255,159,0.85)); }
.open-trap .offer-trap-light { fill: var(--alert); }
.open-trap .offer-trap-light-alt { fill: var(--spectre); }

/* Reconstruction : un plan lisible remplace la métaphore de la machine. */
.architecture-links { fill: none; stroke: var(--energy); stroke-width: 1.3; stroke-dasharray: 4 4; }
.architecture-node rect { fill: #111119; stroke-width: 1.3; }
.architecture-node text {
  fill: var(--ink);
  font: 7px var(--mono);
  text-anchor: middle;
  dominant-baseline: middle;
}
.architecture-node.node-keep rect { stroke: var(--spectre); }
.architecture-node.node-new rect { stroke: var(--energy); }
.architecture-node.node-new { filter: drop-shadow(0 0 5px rgba(155,107,255,0.22)); }
.architecture-foundation { fill: none; stroke: var(--spectre); stroke-width: 3; filter: drop-shadow(0 0 5px rgba(91,255,159,0.5)); }

@keyframes offer-scan {
  0%, 100% { transform: translateY(-27px); opacity: 0.3; }
  50% { transform: translateY(28px); opacity: 1; }
}
@keyframes offer-capture { to { stroke-dashoffset: -22; } }

/* Transmission, parcours de mission et équipe. */
.transmission-section .callout {
  position: relative;
  border-radius: 0;
  border-color: var(--energy);
  box-shadow: 10px 10px 0 rgba(155,107,255,0.15);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.transmission-section .callout::before {
  content: 'INCOMING TRANSMISSION';
  position: absolute;
  right: 1rem;
  top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.5rem;
  color: var(--energy);
  letter-spacing: 0.08em;
}

.mission-section { background: #0B0B10; }
.mission-path { position: relative; }
.mission-step { position: relative; padding: 1.25rem 0 1.5rem 4.5rem; min-height: 8rem; }
.mission-step::before {
  content: '';
  position: absolute;
  left: 1.45rem;
  top: 4.9rem;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(var(--alert), var(--energy));
}
.mission-step:last-child::before { display: none; }
.mission-step .step-num {
  position: absolute;
  left: 0;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  color: var(--ink);
  background: var(--alert-deep);
  border: 1px solid var(--alert);
  font-size: 1.25rem;
  text-shadow: none;
}
.mission-step:last-child .step-num { color: var(--night); background: var(--spectre); border-color: var(--spectre); }

.crew-badge {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: 2px solid var(--alert);
  background:
    radial-gradient(circle at 50% 45%, rgba(91,255,159,0.12), transparent 32%),
    repeating-linear-gradient(135deg, #12121A 0 18px, #0D0D13 18px 36px);
  box-shadow: 12px 12px 0 var(--alert-deep);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.crew-badge svg { filter: drop-shadow(0 0 10px rgba(91,255,159,0.38)); }
.crew-stamp {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.55rem;
  color: var(--alert);
  border: 1px solid currentColor;
  font-size: 0.55rem;
  transform: rotate(-4deg);
}

.cta-containment { isolation: isolate; }
.containment-rings {
  position: absolute;
  width: min(72vw, 52rem);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(91,255,159,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 4rem rgba(91,255,159,0.025),
    0 0 0 8rem rgba(155,107,255,0.02),
    0 0 80px rgba(91,255,159,0.08);
  z-index: -1;
}
.cta-containment .btn { border-radius: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }

@media (min-width: 700px) {
  .proof-strip-inner { grid-template-columns: auto repeat(3, 1fr); gap: 1.25rem; }
  .proof-mark { grid-row: auto; }
  .proof-item + .proof-item { border-top: 0; border-left: 1px solid rgba(255,255,255,0.18); padding-top: 0; padding-left: 1.25rem; }
  .dependency-row { grid-template-columns: auto 1fr auto; align-items: center; }
  .dependency-state { grid-column: auto; }
  .diagnostic-cell { border-right: 1px solid var(--steel); }
  .diagnostic-cell:nth-child(even) { border-right: 0; }
}

@media (min-width: 940px) {
  .hero-v2 { padding: 4rem 0 5rem; }
  .hero-v2-grid { grid-template-columns: minmax(0, 1.08fr) minmax(23rem, 0.82fr); gap: clamp(3rem, 6vw, 6.5rem); }
  .containment-unit { transform: rotate(1.25deg); transition: transform 0.35s ease-out; }
  .containment-unit:hover { transform: rotate(0deg) translateY(-4px); }
  .case-file:nth-child(2) { transform: translateY(-1.4rem); }
  .diagnostic-cell { border-bottom: 0; border-right: 1px solid var(--steel); }
  .diagnostic-cell:nth-child(even) { border-right: 1px solid var(--steel); }
  .diagnostic-cell:last-child { border-right: 0; }
  .mission-path::before {
    content: '';
    position: absolute;
    left: 7%;
    right: 7%;
    top: 2.6rem;
    height: 2px;
    background: linear-gradient(90deg, var(--alert), var(--energy) 60%, var(--spectre));
  }
  .mission-step { padding: 5.4rem 1.25rem 0; min-height: auto; }
  .mission-step::before { display: none; }
  .mission-step .step-num { left: 50%; top: 1rem; transform: translateX(-50%); z-index: 1; }
}

@keyframes energy-flow { to { stroke-dashoffset: -36; } }
@keyframes reticle-hunt {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-47%, -53%) scale(1.08); opacity: 0.35; }
}
@keyframes meter-breathe { 50% { opacity: 0.56; filter: brightness(1.35); } }

@media (prefers-reduced-motion: reduce) {
  .energy-beam,
  .reticle,
  .meter-track span,
  .scan-sweep,
  .capture-stream { animation: none; }
  .containment-unit { transition: none; }
  .containment-unit:hover { transform: none; }
}

@media (max-width: 420px) {
  .hero-v2 { padding-top: 2.75rem; }
  .hero-v2 .hero-actions { display: grid; }
  .hero-v2 .btn { width: 100%; }
  .containment-wrap { padding: 0.35rem; }
  .containment-unit { padding: 0.75rem; box-shadow: 8px 10px 0 rgba(0,0,0,0.35), 0 0 40px rgba(155,107,255,0.12); }
  .spectral-chamber { min-height: 19rem; }
  .unit-head { align-items: flex-start; }
  .unit-head > span:first-child { max-width: 50%; }
  .reticle-one { width: 11rem; height: 11rem; }
  .reticle-two { width: 7rem; height: 7rem; }
  .trap-deck { width: 88%; }
  .diagnostic-head { align-items: flex-start; flex-direction: column; }
  .console-output { align-items: flex-start; flex-direction: column; }
}
