/* Sparktacus v5 : direction "Mise sous tension"
   Basalte, cendre, braise oxyde ; le vert = energie / validation. Profondeur, grain, lumiere. */

@font-face { font-family: "Barlow Condensed"; src: url("/v5/fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/v5/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/v5/fonts/BarlowCondensed-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/v5/fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --noir:      #101110;
  --basalte:   #171816;
  --basalte-2: #20211e;
  --basalte-3: #2d2e2a;
  --cendre:    #e5e3dd;
  --papier:    #f4f3ef;
  --encre:     #1b1c1a;
  --gris:      #58574f;
  --gris-clair:#a7a59c;
  --braise:    #a3301b;
  --braise-v:  #e0584a;
  --feu:       #3ddc84;
  --feu-2:     #34c274;
  --feu-sombre:#1d7a47;
  --feu-rgb: 61,220,132;
  --feu-sombre-rgb: 29,122,71;
  --on-feu: #06150c;
  --feu-done-bg: #22442f;
  --feu-done-txt: #9fe0b9;
  --cta-rgb: 163,48,27;
  --cta-hover: #7f2213;
  --alerte-rgb: 224,88,74;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --header-h: 72px;
}

/* Theme rouge Ferrari (test 2026-09-25, ecarte) : visible seulement avec ?rouge */
html.rouge {
  --feu: #ff3131;
  --feu-2: #d40000;
  --feu-sombre: #9e0000;
  --feu-rgb: 255,49,49;
  --feu-sombre-rgb: 158,0,0;
  --on-feu: #ffffff;
  --feu-done-bg: #4a1010;
  --feu-done-txt: #ffb4b4;
  --braise: #d40000;
  --braise-v: #ff6161;
  --cta-rgb: 212,0,0;
  --cta-hover: #a30000;
  --alerte-rgb: 255,97,97;
}
html.rouge .aurora span:nth-child(3) { background: rgba(120,0,0,.35); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html:not(.rm) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--cendre);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--feu); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--feu); color: var(--on-feu); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--papier); color: var(--encre); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Intro : mise sous tension ---------- */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center; align-content: center; gap: 22px;
  position: fixed; inset: 0; z-index: 150; background: var(--noir);
  animation: introOut .9s var(--ease-io) 1.25s forwards;
}
.intro-lamp {
  width: 26px; height: 26px; border-radius: 50%; background: #2e302c;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.7);
  animation: lampOn .5s var(--ease-out) .35s forwards;
}
.intro-word {
  font: 600 15px var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--gris-clair);
  opacity: 0; animation: fadeIn .5s ease .55s forwards;
}
@keyframes lampOn {
  to { background: var(--feu); box-shadow: 0 0 0 6px rgba(var(--feu-rgb),.16), 0 0 60px 18px rgba(var(--feu-rgb),.55), 0 0 220px 60px rgba(var(--feu-rgb),.18); }
}
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes fadeIn { to { opacity: 1; } }
.intro-on .intro { clip-path: inset(0 0 0 0); }

/* ---------- Grain, progression, curseur ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none;
  background: linear-gradient(90deg, var(--feu-sombre), var(--feu));
  transform: scaleX(0); transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(var(--feu-rgb),.6);
}
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js:not(.rm) .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; }
  .cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--feu); }
  .cursor-ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(229,227,221,.45);
    transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), background .25s, border-color .25s;
  }
  .cursor.hot .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--feu); background: rgba(var(--feu-rgb),.08); }
  .cursor.hide { opacity: 0; }
}

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 24px;
  font: 600 15px/1.2 var(--text); text-decoration: none;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: color .25s ease, border-color .25s ease, transform .16s var(--ease-out);
}
.btn > span { position: relative; z-index: 1; display: inline-block; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn-fire { background: var(--braise); color: #fff; box-shadow: 0 10px 30px -12px rgba(var(--cta-rgb),.8); }
.btn-fire::before { background: var(--cta-hover); }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line::before { background: var(--cendre); }
.btn-line:hover { color: var(--encre); }
.sec-light .btn-line:hover { color: var(--papier); }
.sec-light .btn-line::before { background: var(--encre); }
.btn[disabled] { opacity: .5; cursor: default; }
.magnet { will-change: transform; }

/* ---------- Header ---------- */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .35s ease, border-color .35s ease, transform .45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
header.site.scrolled { background: rgba(16,17,16,.72); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); border-bottom-color: rgba(229,227,221,.08); }
header.site.away { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { width: 122px; height: auto; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { position: relative; font-size: 14.5px; text-decoration: none; color: var(--gris-clair); transition: color .2s; padding: 6px 0; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--feu); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.links a:hover, .links a.active { color: var(--papier); }
.links a:hover::after, .links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--cendre); margin: 5px 0; transition: transform .25s var(--ease-out), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }
.mobile-menu.open { display: block; background: var(--noir); border-top: 1px solid var(--basalte-3); height: calc(100svh - var(--header-h)); overflow-y: auto; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 16px var(--gut) 32px; }
.mobile-menu a { padding: 16px 0; font: 800 34px/1 var(--display); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--basalte-3); }
.mobile-menu.open a { animation: menuIn .5s var(--ease-out) both; }
.mobile-menu.open a:nth-child(2) { animation-delay: .04s; } .mobile-menu.open a:nth-child(3) { animation-delay: .08s; }
.mobile-menu.open a:nth-child(4) { animation-delay: .12s; } .mobile-menu.open a:nth-child(5) { animation-delay: .16s; }
.mobile-menu.open a:nth-child(6) { animation-delay: .2s; color: var(--feu); }
@keyframes menuIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Titres ---------- */
.h2 {
  font: 800 clamp(38px, 5.6vw, 84px)/.92 var(--display);
  text-transform: uppercase; letter-spacing: .002em;
  max-width: 17ch; text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--gris-clair); max-width: 56ch; margin-top: 24px; }
.sec-light .lede { color: var(--gris); }

/* Revelations : rideau (wipe) sur les titres, montee douce ailleurs */
html.js:not(.rm) .wipe { clip-path: inset(0 0 100% 0); transform: translateY(24px); transition: clip-path .9s var(--ease-io), transform .9s var(--ease-io); }
html.js:not(.rm) .wipe.in { clip-path: inset(0); transform: none; }
.wipe { padding-bottom: .08em; }
html.js:not(.rm) .reveal-up { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
html.js:not(.rm) .reveal-up.in { opacity: 1; transform: none; }

/* Titre eclaire mot a mot au defilement */
.scrub .w { transition: color .2s linear; }
html.js:not(.rm) .scrub .w { color: rgba(27,28,26,.14); }
html.js:not(.rm) .scrub .w.on { color: var(--encre); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: clip;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 32px) 0 72px;
  background: radial-gradient(120% 90% at 80% 40%, #1c1e1b 0%, var(--noir) 60%);
}
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(58vw, 1000px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  will-change: transform;
}
.hero-media > img, .hero-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 62%; }
.hero-video { opacity: 0; transition: opacity .6s ease; }
.hero-video.show { opacity: 1; }
.hero-lit { opacity: 0; transition: opacity .8s ease; }
.hero.lit .hero-lit { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,17,16,.55) 0%, rgba(16,17,16,0) 30%, rgba(16,17,16,0) 70%, var(--noir) 100%); pointer-events: none; }
.hero-bloom {
  position: absolute; left: 34%; top: 60%; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: 1;
  background: radial-gradient(circle, rgba(var(--feu-rgb),.42) 0%, rgba(var(--feu-rgb),.12) 30%, transparent 62%);
  opacity: 0; transform: scale(.4); transition: opacity 1.4s ease, transform 1.8s var(--ease-out); pointer-events: none;
  mix-blend-mode: screen;
}
.hero.lit .hero-bloom { opacity: 1; transform: none; }
.hero-torch {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--feu-rgb),.10), transparent 70%);
}
.hero:hover .hero-torch { opacity: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-text { position: relative; z-index: 2; max-width: 720px; }
.hero-kicker { font-size: 15px; color: var(--gris-clair); margin-bottom: 28px; display: inline-flex; align-items: center; gap: 12px; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--feu); box-shadow: 0 0 12px var(--feu); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--feu); } }
.hero-h1 { font: 800 clamp(52px, 7vw, 118px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.hero-h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-h1 .l2 { color: transparent; -webkit-text-stroke: 1.5px rgba(229,227,221,.75); margin-top: .06em; }
.hero.lit .hero-h1 .l2 { -webkit-text-stroke-color: var(--feu); color: rgba(var(--feu-rgb),.08); transition: color 1s ease, -webkit-text-stroke-color 1s ease; }
.hero-h1 .w { display: inline-block; }
html.js:not(.rm) .hero-h1 .w { transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; }
html.js:not(.rm) .hero.ready .hero-h1 .w { transform: none; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.hero-sub { font-size: clamp(17px, 1.45vw, 21px); color: var(--cendre); max-width: 44ch; margin-top: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
html.js:not(.rm) .hero .reveal-up { transition-delay: .5s; }
html.js:not(.rm) .hero .hero-ctas.reveal-up { transition-delay: .62s; }

/* Console du feu vert */
.console {
  position: absolute; z-index: 3; top: calc(var(--header-h) + 28px); right: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); width: 420px;
  background: linear-gradient(160deg, rgba(40,42,38,.72), rgba(20,21,19,.82));
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(229,227,221,.12); border-radius: 18px; padding: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(0,0,0,.8);
}
.console::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(var(--feu-rgb),0), rgba(var(--feu-rgb),0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background 1s ease; }
.hero.lit .console::before { background: linear-gradient(140deg, rgba(var(--feu-rgb),.9), rgba(var(--feu-rgb),0) 55%); }
html.js:not(.rm) .console { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity 1s var(--ease-out) .8s, transform 1s var(--ease-out) .8s; }
html.js:not(.rm) .hero.ready .console { opacity: 1; transform: none; }
.console-top { display: flex; gap: 14px; align-items: center; }
.lamp { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #3a3b37; box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 0 0 3px rgba(229,227,221,.06); transition: background .3s, box-shadow .5s; }
.lamp.on { background: var(--feu); box-shadow: inset 0 -2px 3px rgba(0,0,0,.2), 0 0 0 3px rgba(var(--feu-rgb),.18), 0 0 24px 5px rgba(var(--feu-rgb),.6); }
.console-h { font: 600 21px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--papier); }
.console-state { font-size: 14px; color: var(--gris-clair); margin-top: 2px; }
.console-list { margin: 16px 0; border-top: 1px solid rgba(229,227,221,.1); }
.console-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(229,227,221,.1); font-size: 14px; position: relative; }
.console-list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--feu); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.console-list li.done::after { transform: scaleX(1); }
.c-what { color: var(--cendre); }
.c-st { color: var(--gris-clair); white-space: nowrap; text-align: right; transition: color .3s; }
.console-list li.done .c-st { color: var(--feu); }
.console-actions { display: flex; gap: 10px; align-items: center; }
.btn-go {
  position: relative; overflow: hidden; flex: 1; min-height: 56px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--feu-2); color: var(--on-feu);
  font: 800 19px/1 var(--display); text-transform: uppercase; letter-spacing: .08em;
  box-shadow: 0 0 0 0 rgba(var(--feu-rgb),.5), 0 12px 30px -10px rgba(var(--feu-rgb),.6);
  animation: callme 2.6s ease-in-out infinite 2.4s;
  transition: transform .16s var(--ease-out), filter .2s;
}
@keyframes callme { 0%, 60%, 100% { box-shadow: 0 0 0 0 rgba(var(--feu-rgb),.45), 0 12px 30px -10px rgba(var(--feu-rgb),.6); } 30% { box-shadow: 0 0 0 12px rgba(var(--feu-rgb),0), 0 12px 30px -10px rgba(var(--feu-rgb),.6); } }
.btn-go:hover { filter: brightness(1.08); }
.btn-go:active { transform: scale(.97); }
.btn-go-fill { position: absolute; inset: 0; background: var(--feu); transform: scaleX(0); transform-origin: left; transition: transform 1.6s linear; }
.btn-go.busy .btn-go-fill { transform: scaleX(1); }
.btn-go-label { position: relative; }
.btn-go[disabled] { animation: none; cursor: default; }
.btn-go.done { background: var(--feu-done-bg); color: var(--feu-done-txt); box-shadow: none; }
.btn-go.done .btn-go-fill { opacity: 0; }
.btn-quiet { min-height: 56px; padding: 0 18px; background: none; border: 1px solid rgba(229,227,221,.25); border-radius: 999px; color: var(--cendre); font: 500 14px var(--text); cursor: pointer; }
.console-note { font-size: 12px; color: var(--gris-clair); margin-top: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(229,227,221,.35); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--feu); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Bandeau cinetique ---------- */
.marquee { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; background: var(--noir); border-top: 1px solid var(--basalte-3); border-bottom: 1px solid var(--basalte-3); }
.marquee-row { display: flex; width: max-content; align-items: center; gap: 0; white-space: nowrap; will-change: transform; }
.marquee-row span { font: 800 clamp(56px, 9vw, 150px)/1 var(--display); text-transform: uppercase; padding: 0 .25em; color: var(--cendre); }
.marquee-row i { width: .5em; height: .5em; min-width: 26px; min-height: 26px; border-radius: 50%; background: var(--feu); box-shadow: 0 0 30px rgba(var(--feu-rgb),.7); }
.marquee-row.outline span { color: transparent; -webkit-text-stroke: 1.5px rgba(229,227,221,.35); }
.marquee-row.outline i { background: transparent; box-shadow: none; border: 2px solid rgba(229,227,221,.35); }

/* ---------- Sections ---------- */
.sec { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.sec-tight { padding-top: clamp(40px, 6vw, 72px); }
.sec-light { background: var(--cendre); color: var(--encre); }
.sec-dark { background: var(--basalte); }
.sec-head { margin-bottom: clamp(44px, 5vw, 72px); }

/* Voyant de section : s'allume a l'entree */
.power::before {
  content: ""; position: absolute; top: clamp(40px, 6vw, 72px); right: var(--gut); width: 12px; height: 12px; border-radius: 50%;
  background: #8a877e; opacity: .5; transition: background .5s, box-shadow .8s, opacity .5s;
}
.power.on::before { background: var(--feu); opacity: 1; box-shadow: 0 0 0 5px rgba(var(--feu-rgb),.15), 0 0 26px 6px rgba(var(--feu-rgb),.55); }

/* Embauche */
.emb-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.emb-copy p { color: var(--gris); max-width: 52ch; }
.emb-copy p + p { margin-top: 16px; }
.def { position: relative; overflow: hidden; margin-top: 32px; padding: 22px 24px; background: var(--papier); border-radius: 14px; box-shadow: 0 30px 60px -40px rgba(27,28,26,.5); }
.def::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--feu-sombre); }
.def::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.7) 50%, transparent 60%); transform: translateX(-100%); }
.def.in::after { animation: sweep 1.6s var(--ease-io) .5s; }
@keyframes sweep { to { transform: translateX(100%); } }
.def dt { font: 800 28px/1 var(--display); text-transform: uppercase; }
.def dt i { font: italic 400 15px var(--text); text-transform: none; color: var(--gris); margin-left: 6px; }
.def dd { margin-top: 8px; }

/* Postes : piste horizontale epinglee (desktop) */
.postes-sec { position: relative; background: var(--cendre); color: var(--encre); }
.postes-pin { padding: 24px 0 clamp(80px, 10vw, 140px); }
.postes-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.postes-h { font: 600 24px/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--gris); }
.postes-count { font: 600 22px var(--display); color: var(--gris); letter-spacing: .06em; }
.postes-count b { color: var(--encre); }
.postes-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 var(--gut); max-width: var(--wrap); margin: 0 auto; }
.poste { position: relative; background: var(--papier); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 80px -50px rgba(27,28,26,.55); transform-style: preserve-3d; }
.poste-media { position: relative; aspect-ratio: 16 / 10; background: #2a2b28; overflow: hidden; }
.poste-media img, .poste-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.poste-media video { opacity: 0; transition: opacity .6s ease, transform 1.2s var(--ease-out); }
.poste-media video.show { opacity: 1; }
.poste:hover .poste-media img, .poste:hover .poste-media video { transform: scale(1.05); }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 45%); z-index: 2; }
.tilt:hover .glare { opacity: 1; }
.poste-body { padding: 24px 26px 30px; }
.poste-role { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--braise); font-weight: 600; }
.poste-role::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--feu-sombre); }
.poste h3 { font: 800 32px/1 var(--display); text-transform: uppercase; margin-top: 8px; }
.poste-fiche { margin-top: 20px; }
.poste-fiche > div { padding: 12px 0; border-top: 1px solid #dcd9d1; }
.poste-fiche dt { font-size: 13px; font-weight: 600; color: var(--gris); }
.poste-fiche dd { font-size: 15.5px; line-height: 1.5; margin-top: 2px; }
.poste-more { display: none; }
@media (min-width: 1101px) {
  html.js:not(.rm) .postes-sec { height: 300vh; }
  html.js:not(.rm) .postes-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: var(--header-h) 0 24px; }
  html.js:not(.rm) .postes-track { display: flex; gap: 28px; max-width: none; margin: 0; padding: 0 var(--gut); width: max-content; will-change: transform; }
  html.js:not(.rm) .postes-track > .poste { width: min(42vw, 560px); flex: none; }
  html.js:not(.rm) .poste-more { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 40px; background: var(--basalte); color: var(--cendre); }
  html.js:not(.rm) .postes-track .poste-body { padding: 20px 24px 24px; }
  html.js:not(.rm) .postes-track .poste-fiche > div { padding: 9px 0; }
}
.poste-more-t { font: 800 clamp(30px, 3vw, 44px)/1 var(--display); text-transform: uppercase; }

/* Demos */
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--basalte-3); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; background: none; border: 0; cursor: pointer; padding: 16px 20px; font: 600 24px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--gris-clair); transition: color .2s; }
.tabs button[aria-selected="true"], .tabs button:hover { color: var(--papier); }
.tabs-ink { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100px; background: var(--feu); box-shadow: 0 0 14px rgba(var(--feu-rgb),.8); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.panel:not([hidden]) { animation: panelIn .5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; filter: blur(6px); transform: translateY(10px); } to { opacity: 1; filter: none; transform: none; } }
.panel-intro { color: var(--gris-clair); margin-bottom: 20px; max-width: 60ch; }
.demo { background: linear-gradient(180deg, var(--basalte-2), #1b1c19); border: 1px solid var(--basalte-3); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 100px -60px rgba(0,0,0,.9); }
.demo-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--basalte-3); font-size: 14px; }
.demo-bar-label { color: var(--cendre); }
.demo-badge { font-size: 12px; color: var(--gris-clair); border: 1px solid var(--basalte-3); border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.inbox { padding: 8px 0; min-height: 300px; }
.mail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 20px; border-bottom: 1px solid var(--basalte-3); }
.mail:last-child { border-bottom: 0; }
.mail.sorted { animation: mailIn .5s var(--ease-out) both; }
.mail.sorted:nth-child(2) { animation-delay: .06s; } .mail.sorted:nth-child(3) { animation-delay: .12s; }
.mail.sorted:nth-child(4) { animation-delay: .18s; } .mail.sorted:nth-child(5) { animation-delay: .24s; }
@keyframes mailIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.mail .from { font-size: 13px; color: var(--gris-clair); grid-column: 1; }
.mail .subj { grid-column: 1; font-size: 15.5px; }
.mail .cat { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--basalte-3); color: var(--gris-clair); }
.mail.sorted .cat.urgent { background: rgba(var(--alerte-rgb),.16); color: var(--braise-v); }
.mail.sorted .cat.devis { background: rgba(var(--feu-rgb),.14); color: var(--feu); }
.mail .draft { grid-column: 1 / -1; margin-top: 8px; padding: 8px 12px; font-size: 14px; color: var(--cendre); background: var(--noir); border-left: 2px solid var(--feu); border-radius: 0 6px 6px 0; }
.call, .chat { padding: 20px; min-height: 320px; max-height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; background: var(--basalte-3); animation: pop .35s var(--ease-out); }
.bubble .who { display: block; font-size: 12px; font-weight: 600; color: var(--gris-clair); margin-bottom: 2px; }
.bubble.agent, .bubble.bot { align-self: flex-start; border: 1px solid rgba(var(--feu-rgb),.3); background: rgba(var(--feu-rgb),.07); }
.bubble.agent .who, .bubble.bot .who { color: var(--feu); }
.bubble.client, .bubble.user { align-self: flex-end; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.notif { margin: 0 20px 20px; padding: 16px 18px; border-radius: 12px; background: var(--noir); border: 1px solid rgba(var(--feu-rgb),.35); animation: pop .5s var(--ease-out); }
.notif-h { font: 700 18px var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--feu); margin-bottom: 8px; }
.notif-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 20px; font-size: 14.5px; }
.notif-fields .k { display: block; font-size: 12px; color: var(--gris-clair); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--basalte-3); }
.demo-note { font-size: 14px; color: var(--feu); }

/* Controle : tableau en perspective */
.ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.checks { margin-top: 28px; }
.checks li { position: relative; padding: 12px 0 12px 32px; border-top: 1px solid #d3d0c8; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--feu-sombre); box-shadow: 0 0 0 3px rgba(var(--feu-sombre-rgb),.15); }
.board-stage { perspective: 1400px; }
.board { background: var(--noir); color: var(--cendre); border-radius: 18px; padding: 24px; box-shadow: 0 60px 120px -50px rgba(16,17,16,.8), 0 1px 0 rgba(255,255,255,.06) inset; transform-origin: 50% 100%; will-change: transform; }
.board-top { display: flex; align-items: center; gap: 12px; font: 600 21px var(--display); text-transform: uppercase; letter-spacing: .03em; padding-bottom: 16px; border-bottom: 1px solid var(--basalte-3); }
.board-lab { font-size: 13px; color: var(--gris-clair); margin: 18px 0 8px; }
.q { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--basalte-2); border-radius: 10px; font-size: 14.5px; margin-bottom: 6px; transition: background .4s, opacity .4s, transform .4s var(--ease-out); }
.q.ok { background: rgba(var(--feu-rgb),.14); }
.q.gone { opacity: 0; transform: translateX(30px); }
.q-btns { display: flex; gap: 6px; flex: none; }
.q-btns b { font-weight: 600; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; }
.q-no { color: var(--gris-clair); border: 1px solid var(--basalte-3); }
.q-yes { background: var(--feu-2); color: var(--on-feu); }
.board-log p { font-size: 14.5px; padding: 6px 0; color: var(--cendre); }
.board-log p.new { animation: logIn .6s var(--ease-out); }
@keyframes logIn { from { opacity: 0; transform: translateY(-8px); background: rgba(var(--feu-rgb),.2); } to { opacity: 1; transform: none; background: transparent; } }
.board-log .t { font-variant-numeric: tabular-nums; color: var(--gris-clair); margin-right: 10px; }
.board figcaption { font-size: 12.5px; color: var(--gris-clair); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--basalte-3); }

/* Recrutement : rail qui se remplit */
.rail { position: relative; height: 2px; background: var(--basalte-3); margin-bottom: 40px; }
.rail-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--feu-sombre), var(--feu)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 16px rgba(var(--feu-rgb),.7); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { padding: 0 clamp(16px, 2vw, 28px) 8px; border-left: 1px solid var(--basalte-3); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.s-n { display: block; font: 800 110px/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--basalte-3); margin-bottom: 22px; transition: color .6s ease, -webkit-text-stroke-color .6s ease, text-shadow .6s ease; }
.steps li.on .s-n { color: var(--feu); -webkit-text-stroke-color: var(--feu); text-shadow: 0 0 40px rgba(var(--feu-rgb),.45); }
.steps h3 { font: 800 30px/1 var(--display); text-transform: uppercase; color: var(--papier); margin-bottom: 12px; }
.steps p { color: var(--gris-clair); font-size: 15.5px; }

/* Ancrage */
.ancrage { position: relative; overflow: clip; background: var(--noir); padding: clamp(160px, 24vw, 320px) 0 clamp(64px, 8vw, 100px); }
.ancrage-media { position: absolute; inset: -12% 0; will-change: transform; }
.ancrage-media img, .ancrage-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ancrage-media video { opacity: 0; transition: opacity 1s ease; }
.ancrage-media video.show { opacity: 1; }
.ancrage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--noir) 0%, rgba(16,17,16,.2) 25%, rgba(16,17,16,.5) 55%, rgba(16,17,16,.96) 100%); }
.ancrage-in { position: relative; z-index: 1; }
.ancrage .h2 { color: var(--papier); max-width: 13ch; font-size: clamp(48px, 7.5vw, 124px); }
.engage { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); margin-top: clamp(44px, 5vw, 72px); }
.engage li { border-top: 2px solid var(--cendre); padding-top: 16px; }
.engage li:nth-child(2) { --d: .08s; } .engage li:nth-child(3) { --d: .16s; } .engage li:nth-child(4) { --d: .24s; }
.engage h3 { font: 700 23px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--papier); }
.engage p { font-size: 15px; color: var(--cendre); margin-top: 8px; opacity: .85; }

/* Realisations */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.refs > :nth-child(2) { --d: .08s; } .refs > :nth-child(3) { --d: .16s; }
.ref { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--papier); border-radius: 18px; padding: 28px; text-decoration: none; box-shadow: 0 30px 60px -45px rgba(27,28,26,.6); transform-style: preserve-3d; }
.ref-meta { font-size: 13.5px; color: var(--gris); }
.ref h3 { font: 800 36px/1 var(--display); text-transform: uppercase; margin: 8px 0 12px; }
.ref p:not(.ref-meta) { color: var(--gris); font-size: 15.5px; }
.ref-go { margin-top: auto; padding-top: 20px; font-weight: 600; color: var(--braise); }

/* FAQ */
.faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list details { border-top: 1px solid #cfccc4; }
.faq-list details:last-child { border-bottom: 1px solid #cfccc4; }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 18px; transition: color .2s; }
.faq-list summary:hover { color: var(--feu-sombre); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 0 24px; color: var(--gris); max-width: 62ch; }
.faq-list details[open] p { animation: pop .4s var(--ease-out); }

/* Contact : aurore verte */
.contact { background: var(--noir); overflow: clip; }
.aurora { position: absolute; inset: 0; pointer-events: none; filter: blur(80px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; }
.aurora span:nth-child(1) { width: 50vw; height: 50vw; left: -10vw; top: -20vw; background: rgba(var(--feu-sombre-rgb),.55); animation: drift1 18s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; bottom: -20vw; background: rgba(var(--feu-rgb),.28); animation: drift2 22s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 40vw; top: 20%; background: rgba(163,48,27,.25); animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12vw, 8vw) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-14vw, -6vw) scale(.9); } }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.contact .h2 { font-size: clamp(44px, 6.2vw, 96px); }
.contact-line { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--gris-clair); }
.email-img { width: 216px; height: auto; }
.cform { display: flex; flex-direction: column; background: rgba(32,33,30,.6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(229,227,221,.1); border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 50px 100px -50px rgba(0,0,0,.8); }
.cform label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cform input, .cform textarea { font: 400 16px var(--text); color: var(--papier); background: rgba(16,17,16,.7); border: 1px solid var(--basalte-3); border-radius: 10px; padding: 13px 15px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.cform input::placeholder, .cform textarea::placeholder { color: #7c7b74; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--feu); box-shadow: 0 0 0 4px rgba(var(--feu-rgb),.16); }
.cform .is-invalid { border-color: var(--braise-v); }
.field-msg { min-height: 20px; font-size: 13px; color: var(--braise-v); margin: 4px 0 10px; }
.cform .btn { align-self: flex-start; margin-top: 4px; }
.cform-rgpd { font-size: 13px; color: var(--gris-clair); margin-top: 16px; }
.cform-note { font-size: 14px; margin-top: 8px; color: var(--cendre); }
.cform-note.success { color: var(--feu); }

/* Footer */
.foot { position: relative; background: #0b0c0b; padding: 72px 0 28px; font-size: 15px; color: var(--gris-clair); overflow: clip; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand p { max-width: 40ch; margin: 16px 0; }
.foot-fb { color: var(--cendre); }
.foot-nav { display: flex; flex-direction: column; gap: 10px; }
.foot-nav a { text-decoration: none; transition: color .2s; }
.foot-nav a:hover { color: var(--feu); }
.foot-word {
  font: 800 clamp(80px, 19vw, 330px)/.8 var(--display); text-transform: uppercase; text-align: center; letter-spacing: -.01em;
  margin: 56px 0 8px; color: transparent; -webkit-text-stroke: 1px rgba(229,227,221,.16);
  background: linear-gradient(90deg, var(--feu) 0 var(--fill, 0%), transparent var(--fill, 0%));
  -webkit-background-clip: text; background-clip: text; user-select: none;
}
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--basalte-3); font-size: 13.5px; }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--feu-2); color: var(--on-feu); border: 0; box-shadow: 0 10px 30px -8px rgba(var(--feu-rgb),.7); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.95); transition: opacity .25s, transform .25s var(--ease-out), visibility .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:active { transform: scale(.94); }
.staging-badge { position: fixed; left: 16px; bottom: 16px; z-index: 70; font-size: 12px; color: var(--gris-clair); background: var(--basalte-2); border: 1px solid var(--basalte-3); border-radius: 4px; padding: 4px 8px; pointer-events: none; }

/* Mouvement reduit : tout est affiche, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grain { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .engage { grid-template-columns: repeat(2, 1fr); }
  .postes-track { grid-template-columns: 1fr 1fr; }
  .rail { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 8px); min-height: 0; }
  .hero-media { position: relative; width: 100%; height: 78vw; max-height: 620px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); order: 2; }
  .hero-grid { grid-template-columns: 1fr; order: 1; }
  .hero { display: flex; flex-direction: column; }
  .hero-media { order: 2; margin-top: 12px; }
  .hero-grid { display: contents; }
  .hero-text { order: 1; padding: 0 var(--gut); }
  .console { order: 3; position: relative; top: auto; right: auto; width: auto; margin: -6vw var(--gut) 0; }
  .hero-bloom { left: 38%; top: 62%; width: 600px; height: 600px; margin: -300px 0 0 -300px; }
  .scroll-cue { display: none; }
  .emb-head, .ctrl, .faq, .contact-grid { grid-template-columns: 1fr; }
  .postes-track, .refs { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
  .hero-h1 { font-size: clamp(46px, 14vw, 72px); }
  .hero-ctas .btn { width: 100%; }
  .console { padding: 18px; }
  .console-list li { flex-direction: column; gap: 0; }
  .c-st { text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-left: 0; border-left: 0; border-top: 1px solid var(--basalte-3); padding-top: 20px; }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .s-n { font-size: 72px; margin-bottom: 12px; }
  .engage { grid-template-columns: 1fr; }
  .tabs button { font-size: 19px; padding: 14px 12px; }
  .mail { padding: 12px 16px; }
  .bubble { max-width: 90%; }
  .q { flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: 1fr; }
  .staging-badge { display: none; }
  .power::before { top: 28px; }
  .postes-head { flex-direction: column; align-items: flex-start; }
  .postes-count { display: none; }
}
@media (max-width: 380px) { .demo-bar { flex-direction: column; align-items: flex-start; } }
