/* ==========================================================================
   HandLab — landing page · thème Graphite
   Polices auto-hébergées (RGPD : aucune requête vers un CDN tiers).
   ========================================================================== */

@font-face { font-family: 'Barlow Condensed'; font-weight: 400; font-display: swap; src: url('../fonts/barlow-condensed-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url('../fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }

:root {
  /* Graphite — mêmes valeurs que le thème de l'application */
  --bg: #0b0b0d;
  --surface: #151518;
  --surface-2: #1e1e22;
  --line: #2e2e34;
  --line-2: #393940;
  --muted: #86868f;
  --text-2: #a3a3ac;
  --text: #e4e4e7;
  --white: #fff;

  --brand: #4f46e5;
  --brand-2: #6366f1;
  --brand-3: #a5b4fc;
  --amber: #f59e0b;
  --green: #22c55e;
  --red: #f43f5e;
  --cyan: #22d3ee;

  --font-title: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --radius: 4px;
  --wrap: 1320px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 18px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-3); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typo ---------- */
h1, h2, h3, h4 { font-family: var(--font-title); margin: 0; text-transform: uppercase; letter-spacing: .005em; line-height: .95; color: var(--white); }
h1 { font-weight: 800; font-size: clamp(2.7rem, 5.3vw, 5rem); }
h2 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.05; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 56ch; }
.grad {
  background: linear-gradient(100deg, #c7d2fe 0%, #818cf8 45%, #6366f1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font: 600 .95rem/1 var(--font-title); letter-spacing: .22em; text-transform: uppercase; color: var(--brand-3);
  display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-2); }

/* ---------- Boutons & formulaires ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 1.15rem/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 1em 1.5em; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 0 0 1px #6366f1 inset, 0 10px 30px -10px rgba(99,102,241,.7); }
.btn-primary:hover { background: #5b54f0; transform: translateY(-1px); box-shadow: 0 0 0 1px #818cf8 inset, 0 14px 36px -10px rgba(99,102,241,.9); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand-3); color: #fff; }
.btn-sm { font-size: 1rem; padding: .75em 1.1em; }

.signup { display: grid; gap: 12px; max-width: 560px; }
.signup-row { display: flex; gap: 8px; }
.signup input[type=email] {
  flex: 1; min-width: 0; font: 500 1.15rem/1 var(--font-body); color: var(--white);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0 1.1em; height: 58px;
}
.signup input[type=email]::placeholder { color: var(--muted); }
.signup input[type=email]:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
.signup .btn { height: 58px; padding-inline: 1.5em; white-space: nowrap; }
.signup-note { font-size: .92rem; color: var(--muted); }
.signup-note a { color: var(--text-2); }
.signup-extra { display: grid; gap: 10px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); display: grid; place-content: center; cursor: pointer; }
.check input:checked { background: var(--brand); border-color: var(--brand-2); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles label { position: relative; cursor: pointer; }
.roles input { position: absolute; opacity: 0; inset: 0; }
.roles span { display: block; font: 700 1rem/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; padding: .7em 1em; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text-2); background: var(--surface); transition: .15s; }
.roles input:checked + span { background: rgba(99,102,241,.18); border-color: var(--brand-2); color: #fff; }
.roles input:focus-visible + span { outline: 2px solid var(--brand-3); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { min-height: 1.4em; font-weight: 500; font-size: 1rem; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
.signup.is-done .signup-row, .signup.is-done .signup-extra, .signup.is-done .signup-note { display: none; }
.signup.is-done .form-msg { font: 700 1.5rem/1.2 var(--font-title); text-transform: uppercase; letter-spacing: .03em; padding: 1rem 1.2rem; border: 1px solid rgba(34,197,94,.4); background: rgba(34,197,94,.08); border-radius: var(--radius); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(11,11,13,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.lang button { background: none; border: 0; color: var(--text-2); padding: .7em .8em; font: 700 .95rem/1 var(--font-title); letter-spacing: .12em; cursor: pointer; }
.lang button.on { background: var(--surface); color: #fff; }
.lang button:hover { color: #fff; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { font: 600 1.05rem/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--text-2); transition: color .15s; }
.nav ul a:hover { color: #fff; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: baseline; font: 800 1em/1 var(--font-title); text-transform: uppercase; color: #fff; text-decoration: none; letter-spacing: .01em; }
.wordmark i { font-style: normal; color: var(--brand); }
.wordmark svg { height: .74em; width: auto; margin: 0 .01em 0 .02em; align-self: baseline; overflow: visible; transform: translateY(.088em); }
.nav .wordmark { font-size: 2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 40px; isolation: isolate; overflow: clip; }
.hero::before { /* halo indigo à la Proton */
  content: ""; position: absolute; z-index: -2; inset: -10% -20% auto -20%; height: 130%;
  background:
    radial-gradient(45% 40% at 72% 52%, rgba(79,70,229,.55), transparent 70%),
    radial-gradient(30% 30% at 20% 10%, rgba(99,102,241,.22), transparent 70%);
}
.hero::after { /* grille discrète */
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 60% 35%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 60% 35%, #000, transparent 75%);
  opacity: .22;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .7em; font: 600 .95rem/1 var(--font-title); letter-spacing: .16em; text-transform: uppercase; padding: .65em 1em; border: 1px solid var(--line-2); background: rgba(21,21,24,.7); border-radius: 999px; color: var(--text-2); margin-bottom: 1.6rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 1.8rem; padding: 0; list-style: none; }
.pills li { font: 600 .98rem/1 var(--font-title); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: .55em; }
.pills li::before { content: ""; width: 6px; height: 6px; background: var(--brand-2); transform: rotate(45deg); }

/* ---------- Appareils ---------- */
.stage { position: relative; }
.tablet {
  position: relative; border-radius: 26px; padding: 12px; background: linear-gradient(145deg, #2a2a30, #0d0d10 40%, #1a1a1f);
  box-shadow: 0 0 0 1px #3a3a42 inset, 0 0 0 1px #000, 0 50px 100px -30px rgba(0,0,0,.9), 0 30px 120px -20px rgba(79,70,229,.35);
}
.tablet::before { content: ""; position: absolute; top: 50%; left: 4px; width: 4px; height: 4px; border-radius: 50%; background: #0a0a0c; box-shadow: 0 0 0 1px #2a2a30; transform: translateY(-50%); }
.tablet .screen { border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 2560 / 1600; }
.tablet img { width: 100%; height: 100%; object-fit: contain; }
.tablet .screen.crop { position: relative; }
.tablet .screen.crop img { position: absolute; left: 0; top: 0; width: calc(var(--z, 1) * 100%); height: auto; max-width: none; transform: translate(calc(var(--a, 0) * -1%), calc(var(--b, 0) * -1%)); }
.phone {
  position: relative; border-radius: 26px; padding: 8px; background: linear-gradient(145deg, #2d2d34, #0b0b0e 45%, #202026);
  box-shadow: 0 0 0 1px #3a3a42 inset, 0 0 0 1px #000, 0 40px 80px -24px rgba(0,0,0,.95), 0 20px 80px -20px rgba(79,70,229,.3);
}
.phone .screen { border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 1170 / 2532; position: relative; }
.phone::before { content: ""; position: absolute; top: 3px; left: 50%; width: 34px; height: 4px; border-radius: 4px; background: #050507; box-shadow: 0 0 0 1px #2a2a30; transform: translateX(-50%); }
.phone img { width: 100%; height: 100%; object-fit: contain; }

.hero-stage { margin-right: 0; margin-bottom: 70px; }
.hero-stage .tablet { width: 108%; margin-left: -4%; transform: perspective(2400px) rotateY(-4deg) rotateX(1deg); transform-origin: center; }
.hero-stage .phone { position: absolute; width: 22%; left: -11%; bottom: -26%; transform: rotate(-3deg); }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 10px;
  background: rgba(30,30,34,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); box-shadow: 0 20px 50px -15px rgba(0,0,0,.8);
  font: 700 1.1rem/1.1 var(--font-title); text-transform: uppercase; letter-spacing: .05em; color: #fff;
}
.chip small { display: block; font: 500 .85rem/1.2 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--text-2); margin-top: 3px; }
.chip .ico { width: 38px; height: 38px; display: grid; place-content: center; border-radius: 8px; background: rgba(99,102,241,.2); color: var(--brand-3); flex: none; }
.chip .ico svg { width: 20px; height: 20px; }
.chip.ok .ico { background: rgba(34,197,94,.16); color: var(--green); }
.chip-a { right: 2%; bottom: -14%; animation: float 7s ease-in-out infinite; }
.chip-b { right: 20%; top: -13%; animation: float 8s ease-in-out -3s infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* ---------- Bandeau chiffres ---------- */
.strip { margin-top: 110px; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 34px 28px; border-left: 1px solid var(--line); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item b { display: block; font: 800 clamp(2.6rem, 4.6vw, 3.8rem)/1 var(--font-title); color: #fff; }
.strip-item b em { font-style: normal; color: var(--brand-3); }
.strip-item span { display: block; margin-top: 8px; color: var(--text-2); font-size: 1rem; }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(44px, 5vw, 72px) 0; }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.sec-head h2 { margin-bottom: 1.2rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head.center .eyebrow { justify-content: center; }
.sec.alt { background: linear-gradient(180deg, transparent, rgba(21,21,24,.7) 12%, rgba(21,21,24,.7) 88%, transparent); }
.glow-l::before, .glow-r::before { content: ""; position: absolute; z-index: -1; width: 70vw; max-width: 900px; aspect-ratio: 1; top: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(79,70,229,.28), transparent); filter: blur(10px); pointer-events: none; }
.glow-l::before { left: -25vw; } .glow-r::before { right: -25vw; }
.sec { isolation: isolate; }

.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split.rev .split-txt { order: 2; }
.split-txt h2 { margin-bottom: 1.2rem; }
.split-txt .lead + .lead { margin-top: 1rem; }

.steps { counter-reset: s; list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 6px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 800 1.9rem/1 var(--font-title); color: var(--brand-2); grid-row: span 2; }
.steps b { font: 700 1.4rem/1.1 var(--font-title); text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.steps span { color: var(--text-2); font-size: 1rem; line-height: 1.45; }

.ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 1.05rem; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border: 2.5px solid var(--green); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.ticks li b { color: #fff; font-weight: 600; }

/* paire avant/après */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(40px, 6vw, 72px); }
.duo figure { margin: 0; }
.cap { margin-top: 18px; display: grid; gap: 6px; }
.cap b { font: 700 1.5rem/1.05 var(--font-title); text-transform: uppercase; color: #fff; letter-spacing: .02em; display: flex; align-items: center; gap: .6em; }
.cap b .tag { font-size: .85rem; letter-spacing: .14em; padding: .35em .7em; border-radius: 3px; }
.tag.atk { background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid rgba(245,158,11,.35); }
.tag.def { background: rgba(99,102,241,.18); color: var(--brand-3); border: 1px solid rgba(99,102,241,.4); }
.cap span { color: var(--text-2); font-size: 1rem; }

/* lightbox trigger */
.zoomable { cursor: zoom-in; }

/* ---------- Offline ---------- */
.offline-stage { position: relative; }
.offline-stage .chip { right: -3%; bottom: -6%; border-color: rgba(244,63,94,.45); }
.offline-stage .chip .ico { background: rgba(244,63,94,.16); color: var(--red); }
.flow { display: flex; align-items: stretch; gap: 0; margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.flow div { flex: 1; padding: 16px 16px 16px 18px; border-left: 1px solid var(--line); }
.flow div:first-child { border-left: 0; }
.flow b { display: block; font: 700 1.15rem/1.1 var(--font-title); text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.flow span { display: block; margin-top: 6px; font-size: .93rem; color: var(--text-2); line-height: 1.35; }
.flow .s-on b { color: var(--red); } .flow .s-mid b { color: var(--amber); } .flow .s-ok b { color: var(--green); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: border-color .2s, transform .25s; }
.card:hover { border-color: var(--line-2); }
.card-txt { padding: 26px 28px 8px; }
.card-txt h3 { margin-bottom: .5rem; display: flex; align-items: center; gap: .55em; }
.card-txt h3 svg { width: 24px; height: 24px; flex: none; color: var(--brand-3); }
.card-txt p { color: var(--text-2); font-size: 1rem; line-height: 1.45; max-width: 52ch; }
.card-img { margin: 22px 22px 0; flex: 1; min-height: 0; position: relative; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; background: #000; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.card-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(21,21,24,.95)); pointer-events: none; }
.c-a { grid-column: span 4; } .c-b { grid-column: span 2; } .c-c { grid-column: span 2; } .c-d { grid-column: span 2; } .c-e { grid-column: span 2; } .c-f { grid-column: span 3; } .c-g { grid-column: span 3; }
.c-a .card-img { aspect-ratio: 16/9.4; } .c-b .card-img, .c-c .card-img, .c-d .card-img, .c-e .card-img { aspect-ratio: 4/3.4; }
.c-f .card-img, .c-g .card-img { aspect-ratio: 16/6.4; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 28px 0; margin-top: 10px; }
.kpis span { font: 700 .92rem/1 var(--font-title); text-transform: uppercase; letter-spacing: .1em; padding: .55em .8em; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-2); background: var(--surface-2); }

/* ---------- Analyses ---------- */
.big-shot { position: relative; margin-top: 10px; }
.big-shot .tablet { max-width: 1040px; margin-inline: auto; }
.facets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facets div { padding: 24px 26px; border-left: 1px solid var(--line); }
.facets div:first-child { border-left: 0; }
.facets b { display: block; font: 800 1.7rem/1 var(--font-title); text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.facets span { color: var(--text-2); font-size: .98rem; line-height: 1.45; display: block; }

/* ---------- Joueurs (téléphones) ---------- */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.4vw, 34px); }
.phones .phone { width: clamp(150px, 23vw, 280px); flex: none; }
.phones .phone:nth-child(2) { margin-top: 56px; }
.phones .phone:nth-child(3) { margin-top: 18px; }
.phones .phone:nth-child(4) { margin-top: 74px; }
.phones-txt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.phones-txt h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.phones-txt p { color: var(--text-2); font-size: 1rem; line-height: 1.45; }

/* ---------- Caisse noire (dans la section joueurs) ---------- */
.phones .phone-caisse { box-shadow: 0 0 0 1px #3a3a42 inset, 0 0 0 1px #000, 0 40px 80px -24px rgba(0,0,0,.95), 0 20px 80px -14px rgba(244,63,94,.45); }
.phones-txt.three { grid-template-columns: repeat(3, 1fr); max-width: 920px; margin-inline: auto; text-align: center; }
.caisse-txt h3 { color: #fda4af; }
.caisse-txt .stamp { font-size: .78rem; margin-bottom: .9rem; }
.stamp { display: inline-block; transform: rotate(-3deg); font: 800 1rem/1 var(--font-title); letter-spacing: .22em; text-transform: uppercase; color: var(--red); border: 2px solid var(--red); padding: .5em .8em; border-radius: 3px; margin-bottom: 1.2rem; opacity: .9; }
.ticks.red li::before { border-color: var(--red); }

/* ---------- Import / migration ---------- */
.migrate { border: 1px solid var(--line-2); border-radius: 8px; background:
  linear-gradient(120deg, rgba(79,70,229,.18), rgba(21,21,24,.9) 55%), var(--surface);
  padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.migrate h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 1rem; }
.migrate .lead { margin-bottom: 1.6rem; }
.fmts { display: flex; flex-wrap: wrap; gap: 8px; }
.fmts span { font: 700 1rem/1 var(--font-title); letter-spacing: .1em; padding: .6em .9em; border: 1px dashed var(--line-2); border-radius: 3px; color: var(--text-2); text-transform: uppercase; }
.migrate-art { display: grid; gap: 10px; }
.mig-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.mig-box { border: 1px solid var(--line-2); background: var(--bg); border-radius: var(--radius); padding: 16px 18px; }
.mig-box b { display: block; font: 700 1.25rem/1.1 var(--font-title); text-transform: uppercase; color: #fff; }
.mig-box small { color: var(--muted); font-size: .9rem; }
.mig-arrow { color: var(--brand-3); } .mig-arrow svg { width: 38px; height: 38px; }
.mig-box.hl { border-color: var(--brand-2); box-shadow: 0 0 40px -10px rgba(99,102,241,.6); }

/* ---------- FFHB / agenda ---------- */
.unofficial { display: inline-flex; gap: .6em; align-items: center; margin-top: 1.4rem; font-size: .95rem; color: var(--muted); border-left: 2px solid var(--amber); padding: 6px 0 6px 12px; max-width: 52ch; }
.unofficial b { color: var(--amber); font-weight: 600; }
.cal-stack { position: relative; }
.cal-stack .tablet:nth-child(2) { position: absolute; width: 70%; right: -4%; bottom: -14%; transform: rotate(2deg); }

/* ---------- Thèmes / details ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.mini { padding: 26px 28px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.mini h3 { margin-bottom: .5rem; }
.mini p { color: var(--text-2); font-size: 1rem; line-height: 1.45; }
.mini .n { font: 800 1rem/1 var(--font-title); letter-spacing: .2em; color: var(--brand-2); margin-bottom: 14px; display: block; }

/* ---------- CTA final ---------- */
.final { text-align: center; padding: clamp(64px, 7vw, 100px) 0; position: relative; isolation: isolate; overflow: clip; }
.final::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1200px, 130vw); aspect-ratio: 1.6; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(79,70,229,.45), rgba(79,70,229,.12) 60%, transparent); }
.final h2 { font-size: clamp(2.8rem, 7vw, 6rem); margin-bottom: 1.3rem; }
.final .lead { margin: 0 auto 2.4rem; }
.final .signup { margin-inline: auto; text-align: left; }
.final .roles { justify-content: flex-start; }
.final .signup-row { flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; background: #08080a; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.foot .wordmark { font-size: 2.2rem; }
.foot p.small { color: var(--muted); font-size: .92rem; line-height: 1.6; max-width: 110ch; }
.foot p.small + p.small { margin-top: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.foot ul a { font: 600 1rem/1 var(--font-title); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: var(--text-2); }
.foot ul a:hover { color: #fff; }
.disclaimer { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(5,5,7,.92); backdrop-filter: blur(6px); padding: 4vh 4vw; cursor: zoom-out; }
.lb.open { display: grid; animation: fade .2s ease; }
.lb img { max-width: 100%; max-height: 92vh; border-radius: 8px; box-shadow: 0 40px 120px rgba(0,0,0,.8); border: 1px solid var(--line-2); }
.lb button { position: absolute; top: 18px; right: 22px; background: var(--surface-2); color: #fff; border: 1px solid var(--line-2); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav ul { display: none; }
  .hero { padding-top: 120px; }
  .hero-grid, .split, .split.rev, .migrate { grid-template-columns: 1fr; }
  .split.rev .split-txt { order: 0; }
  .hero-stage { margin-top: 30px; margin-bottom: 70px; }
  .hero-stage .tablet { width: 100%; transform: none; }
  .hero-stage .phone { width: 30%; right: -2%; bottom: -16%; }
  .chip-a { left: 0; } .chip-b { right: 6%; top: -9%; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-a, .c-f, .c-g { grid-column: span 2; } .c-b, .c-c, .c-d, .c-e { grid-column: span 1; }
  .facets { grid-template-columns: 1fr 1fr; } .facets div:nth-child(3) { border-left: 0; } .facets div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .phones-txt { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; } .foot ul { justify-content: flex-start; }
  .cal-stack .tablet:nth-child(2) { right: 0; bottom: -10%; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .signup-row { flex-direction: column; } .signup .btn { width: 100%; } .signup input[type=email] { flex: none; width: 100%; }
  .hero-stage .phone { left: 1%; bottom: -16%; width: 26%; }
  .hero-stage { margin-bottom: 90px; }
  .phones .phone { width: calc((100vw - 32px - 20px) / 3); }
  .strip-item { padding: 24px 16px; } .strip-item:nth-child(odd) { padding-left: 0; } .strip-item b { font-size: 2.3rem; }
  .duo { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; } .c-a, .c-b, .c-c, .c-d, .c-e, .c-f, .c-g { grid-column: span 1; }
  .c-a .card-img, .c-f .card-img, .c-g .card-img { aspect-ratio: 16/9; }
  .flow { flex-direction: column; } .flow div { border-left: 0; border-top: 1px solid var(--line); } .flow div:first-child { border-top: 0; }
  .facets { grid-template-columns: 1fr; } .facets div { border-left: 0; border-top: 1px solid var(--line); } .facets div:first-child { border-top: 0; }
  .phones { gap: 10px; } .phones .phone { padding: 4px; border-radius: 16px; } .phones .phone .screen { border-radius: 12px; }
  .phones .phone:nth-child(4) { display: none; }
  .phones-txt { grid-template-columns: 1fr; }
  .chip { padding: 9px 12px 9px 10px; font-size: .95rem; } .chip small { display: none; } .chip .ico { width: 30px; height: 30px; }
  .chip-a { bottom: 4%; }
  .mig-row { grid-template-columns: 1fr; } .mig-arrow { transform: rotate(90deg); justify-self: center; }
  .cal-stack .tablet:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* boutons de chapitres sous les vidéos */
.dots { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dots button { flex: 1; min-width: 90px; position: relative; overflow: hidden; background: var(--surface); color: var(--text-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: .8em 1em; font: 700 1rem/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.dots button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand-2); }
.dots button.on { color: #fff; border-color: var(--brand-2); }
.dots button.on::after { width: 100%; transition: width 2.8s linear; }
.card-txt { padding-bottom: 14px; }

/* vidéos (live, analyses) : la progression du chapitre suit la lecture */
.tablet video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.live-dots button::after { width: calc(var(--p, 0) * 100%); }
.live-dots button.on::after { width: calc(var(--p, 0) * 100%); transition: none; }

.note { display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; margin: 44px auto 0; max-width: 62ch; color: var(--text-2); font-size: 1rem; }
.note .ico { flex: none; width: 30px; height: 30px; display: grid; place-content: center; border-radius: 6px; background: rgba(244,63,94,.14); color: var(--red); }
.note .ico svg { width: 18px; height: 18px; }
.kpis-center { justify-content: center; padding: 0; margin-top: 40px; }
.car-stage .dots button { min-width: 140px; }
sup a { color: var(--brand-3); text-decoration: none; font-weight: 700; padding-left: 1px; }
sup a:hover { text-decoration: underline; }
.final .lead { margin: 0 auto 2rem; max-width: 52ch; }

/* badge Go live */
.live-eyebrow::before { display: none; }
.onair { display: inline-flex; align-items: center; gap: .65em; padding: .55em .9em .55em .8em; border: 1px solid rgba(244,63,94,.45); background: rgba(244,63,94,.1); border-radius: 999px; color: #fda4af; font: 700 1rem/1 var(--font-title); letter-spacing: .22em; text-transform: uppercase; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; box-shadow: 0 0 0 var(--red); } }
.sec-head.center .live-eyebrow { justify-content: center; }

/* sections fusionnées */
.sub-h { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 1.2rem; }
.note-left { justify-content: flex-start; text-align: left; margin: 2rem 0 0; }
.duo-club { margin-top: 0; gap: clamp(24px, 3vw, 40px); }
.cap-ico { width: 22px; height: 22px; flex: none; color: var(--brand-3); }
@media (max-width: 1000px) { .phones-txt.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .phones-txt.three { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; } }

/* ---------- Roadmap : DA chantier ---------- */
.roadmap { position: relative; overflow: clip; padding-block: 18px; }
.roadmap > .wrap { padding-block: clamp(48px, 5.5vw, 80px); }
.roadmap::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(245,158,11,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(245,158,11,.06) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.roadmap .eyebrow { color: var(--amber); }
.roadmap .eyebrow::before { background: var(--amber); }
.tape { overflow: hidden; white-space: nowrap; transform: rotate(-1.2deg); margin-inline: -2%; padding: .55em 0; color: #111;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 22px, #111 22px 44px); border-block: 2px solid #111; }
.tape span { display: inline-block; padding: .25em 0; background: var(--amber); font: 800 .95rem/1 var(--font-title); letter-spacing: .24em; text-transform: uppercase; animation: tape 40s linear infinite; }
.tape-b { transform: rotate(1deg); }
.tape-b span { animation-direction: reverse; }
@keyframes tape { to { transform: translateX(-50%); } }

.rm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: stretch; counter-reset: rm; }
.rm-step { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px 26px 30px; }
.rm-step h3 { margin: 1rem 0 .8rem; }
.rm-step p, .rm-step li { color: var(--text-2); font-size: 1rem; }
.rm-step ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rm-step ul li { padding-left: 1.3em; position: relative; }
.rm-step ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55em; height: .3em; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.rm-tag { display: inline-flex; align-items: center; gap: .5em; font: 700 .9rem/1 var(--font-title); letter-spacing: .18em; text-transform: uppercase; padding: .5em .75em; border-radius: 3px; }
.rm-tag svg { width: 16px; height: 16px; }
.rm-done .rm-tag { color: var(--green); background: rgba(34,197,94,.12); }
.rm-next { border-style: dashed; }
.rm-next .rm-tag { color: var(--text-2); background: var(--surface-2); }
.rm-link { display: inline-flex; align-items: center; gap: .5em; margin-top: 1.2rem; color: var(--brand-3); text-decoration: none; font: 700 1rem/1 var(--font-title); letter-spacing: .1em; text-transform: uppercase; }
.rm-link svg { width: 18px; height: 18px; transition: transform .2s; }
.rm-link:hover svg { transform: translateX(4px); }

.rm-wip { padding-top: 40px; background:
  linear-gradient(var(--surface), var(--surface)) padding-box,
  repeating-linear-gradient(-45deg, var(--amber) 0 12px, #111 12px 24px) border-box;
  border: 6px solid transparent; box-shadow: 0 30px 80px -30px rgba(245,158,11,.35); }
.rm-wip .rm-tag { color: #111; background: var(--amber); }
.rm-wip .rm-tag svg { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rm-wip h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.rm-stamp { position: absolute; top: -18px; right: 18px; margin: 0; background: var(--bg); color: var(--amber); border-color: var(--amber); font-size: .8rem; transform: rotate(4deg); }
.rm-bar { margin-top: 1.6rem; height: 12px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; }
.rm-bar i { display: block; height: 100%; width: 62%; background: repeating-linear-gradient(-45deg, var(--amber) 0 10px, #b45309 10px 20px); background-size: 28.28px 28.28px; animation: bar 1s linear infinite; }
@keyframes bar { to { background-position: 28.28px 0; } }

@media (max-width: 1000px) { .rm { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }
