/* ─────────────────────────────────────────────────────────────
   TESTMATCH — AI Terminal Editorial
   Système de design Synthocode (plum + sunset aurora), adapté au
   closed testing Google Play. Bricolage Grotesque · Hanken · Spline Mono.
   ───────────────────────────────────────────────────────────── */

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

:root {
  --ink: #0D0A16;
  --ink-2: #130E20;
  --ink-3: #1C1432;
  --line: rgba(245, 240, 255, 0.08);
  --line-2: rgba(245, 240, 255, 0.16);

  --paper: #FBF5FF;
  --paper-2: #DBD2E6;
  --paper-3: #ABA0BE;
  --paper-4: #7C7090;

  --cyan: #F0A6FF;
  --cyan-2: #E879F9;
  --violet: #B79CFF;
  --violet-2: #8B5CF6;
  --amber: #FFC656;
  --emerald: #34D399;
  --rose: #FB7185;

  --grad-brain: linear-gradient(115deg, #B79CFF 0%, #E879F9 42%, #FFA45B 100%);

  --display: "Bricolage Grotesque", ui-rounded, "Trebuchet MS", sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Spline Sans Mono", "JetBrains Mono", ui-monospace, monospace;

  --shadow-deep: 0 24px 80px -20px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* NB: pas de scroll-behavior:smooth ici — ça entre en conflit avec GSAP ScrollSmoother
   (qui gère lui-même le lissage). Le repli natif est géré en JS. */
html { scrollbar-gutter: stable; }
body {
  background: var(--ink); color: var(--paper-2);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmospheric layers */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: radial-gradient(rgba(244,244,245,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 1200px 800px at 50% 0%, #000 30%, transparent 70%);
  mask-image: radial-gradient(ellipse 1200px 800px at 50% 0%, #000 30%, transparent 70%);
  opacity: 0.6;
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--cyan); color: var(--ink); padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; font-family: var(--mono); font-size: 13px; }
.skip:focus { left: 0; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: 32px; position: relative; z-index: 2; }
@media (max-width: 720px) { .wrap { padding-inline: 20px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-3);
}
.eyebrow::before { content: '✦'; color: var(--cyan); font-family: var(--display); font-style: italic; font-size: 16px; }

/* type */
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 400; color: var(--paper);
  line-height: 1.02; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
h1 { font-size: clamp(44px, 7.4vw, 104px); }
h2 { font-size: clamp(34px, 5.2vw, 68px); }
h3 { font-size: clamp(22px, 2.6vw, 32px); font-variation-settings: "opsz" 36, "SOFT" 50; }
.italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1; }
p { color: var(--paper-2); }
strong { color: var(--paper); font-weight: 500; }
.ink-grad { background: var(--grad-brain); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 20px; font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* léger relief embossé « Se connecter » sur tous les boutons (chacun garde sa couleur) */
.btn::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,0.18), rgba(255,255,255,0) 100%);
  pointer-events: none; opacity: 0.8;
}
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--paper); color: var(--ink); text-shadow: 0 1px rgba(255,255,255,0.6); box-shadow: 0 0 0 1px var(--paper), 0 .5px .5px 1px rgba(255,255,255,.5), 0 10px 22px -8px rgba(244,244,245,0.4); }
.btn-primary:hover { box-shadow: 0 0 0 1px var(--paper), 0 16px 34px -10px rgba(244,244,245,0.5), inset 0 0 3px 1px rgba(255,255,255,.7); }
.btn-primary:active { box-shadow: 0 0 0 1px var(--paper), inset 0 2px 6px rgba(0,0,0,.18); }
.btn-ghost { background: transparent; color: var(--paper-2); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 14px -6px rgba(0,0,0,.5); }
.btn-ghost:hover { color: var(--paper); border-color: var(--paper-3); background: rgba(244,244,245,0.03); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 20px -8px rgba(0,0,0,.55); }
.btn-ghost:active { box-shadow: inset 0 2px 6px rgba(0,0,0,.4); }
.btn-ghost::after { opacity: 0.4; }
.btn .arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-cta { padding: 12px 24px; font-size: 14.5px; }

/* ─── Uiverse 3D button (From Uiverse.io by lenfear23) — pour Se connecter / Rejoindre ─── */
.btn-3d {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  outline: none; cursor: pointer;
  min-width: 132px; height: 46px; padding: 0 20px;
  background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
  border-radius: 30px; border: 1px solid #8F9092;
  transition: all 0.2s ease;
  font-family: "Hanken Grotesk", "Source Sans Pro", sans-serif;
  font-size: 14px; font-weight: 600; color: #606060; text-shadow: 0 1px #fff;
  white-space: nowrap;
}
.btn-3d .arrow { color: #606060; transition: transform 0.2s ease; }
.btn-3d:hover { box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 3px 3px #CECFD1; }
.btn-3d:hover .arrow { transform: translateX(3px); }
.btn-3d:active, .btn-3d:focus { box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa; }

/* ─── i18n FR/EN (toggle inline, comme le companion) ─── */
[data-lang] { display: inline; }
html[lang="fr"] [data-lang="en"], html[lang="en"] [data-lang="fr"] { display: none !important; }
h1 > [data-lang], h2 > [data-lang], h3 > [data-lang], p > [data-lang]:only-of-type { display: block; }

/* ─── Language switch (drapeaux FR / GB) ─── */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; }
.lang-switch a { padding: 2px; border-radius: 5px; line-height: 0; }
.lang-switch .flag { width: 24px; height: 16px; display: block; border-radius: 3px; filter: grayscale(0.6) brightness(0.82); opacity: 0.5; transition: filter 0.25s var(--ease), opacity 0.25s, transform 0.25s; }
.lang-switch a:hover .flag { filter: grayscale(0) brightness(1); opacity: 0.85; transform: translateY(-1px); }
.lang-switch a.active .flag { filter: none; opacity: 1; transform: scale(1.1); }

/* ─── HEADER (pill) ─── */
.header {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 1080px; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  padding: 8px 10px 8px 20px; background: rgba(13, 10, 22, 0.55);
  border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.scrolled { background: rgba(13, 10, 22, 0.85); border-color: var(--line-2); }
.brand {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-style: italic;
  font-size: 22px; color: var(--paper); letter-spacing: -0.02em; font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 1;
}
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; filter: drop-shadow(0 0 14px rgba(232,121,249,0.45)); }
footer .brand-logo { width: 36px; height: 36px; }
.brand-mark { font-family: var(--mono); font-style: normal; font-size: 9px; color: var(--cyan); letter-spacing: 0.18em; border: 1px solid var(--cyan); padding: 2px 6px; border-radius: 4px; margin-left: 2px; background: rgba(232,121,249,0.08); }
.nav-links { display: flex; gap: 6px; list-style: none; justify-self: center; }
.nav-links { flex-wrap: nowrap; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--paper-3); padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--cyan); background: rgba(232,121,249,0.08); }
/* anti-saut FR/EN : les 2 langues se superposent → largeur = max, la nav ne bouge plus */
.nav-links a:has([data-lang]) { display: inline-grid; place-items: center; }
.nav-links a > [data-lang] { grid-area: 1 / 1; text-align: center; white-space: nowrap; }
html[lang="fr"] .nav-links a > [data-lang="en"],
html[lang="en"] .nav-links a > [data-lang="fr"] { display: block !important; visibility: hidden; }
.header-cta { display: inline-flex; align-items: center; gap: 12px; justify-self: end; }
/* largeurs stables : la nav ne bouge plus au changement FR/EN */
.header-cta .lang-switch { min-width: 58px; justify-content: center; }
.header-cta .btn-3d { justify-content: center; }
.header-cta a.btn-3d:nth-of-type(1) { min-width: 150px; }
.header-cta a.btn-3d:nth-of-type(2) { min-width: 196px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: transparent; border-radius: 10px; cursor: pointer; color: var(--paper); position: relative; z-index: 210; transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.burger:hover { background: rgba(244,244,245,0.05); border-color: var(--paper-3); }
.burger-bars { position: absolute; inset: 0; }
.burger-bars::before, .burger-bars::after, .burger-bars span {
  content: ''; display: block; width: 18px; height: 1.5px; background: var(--paper); border-radius: 2px;
  position: absolute; left: 50%; margin-left: -9px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.burger-bars::before { top: 14px; }
.burger-bars span    { top: 19px; }
.burger-bars::after  { top: 24px; }
.burger[aria-expanded="true"] .burger-bars::before { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-bars::after  { top: 19px; transform: rotate(-45deg); }
.burger[aria-expanded="true"] .burger-bars span    { opacity: 0; transform: scaleX(0); }

/* ─── MOBILE DRAWER (plein écran) ─── */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13, 10, 22, 0.92);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex; flex-direction: column; padding: 92px 24px 32px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.mobile-drawer.open { opacity: 1; visibility: visible; }
.mobile-drawer nav ul { list-style: none; display: grid; gap: 4px; }
.mobile-drawer nav ul li { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.mobile-drawer.open nav ul li { opacity: 1; transform: translateY(0); }
.mobile-drawer.open nav ul li:nth-child(1) { transition-delay: 0.10s; }
.mobile-drawer.open nav ul li:nth-child(2) { transition-delay: 0.16s; }
.mobile-drawer.open nav ul li:nth-child(3) { transition-delay: 0.22s; }
.mobile-drawer.open nav ul li:nth-child(4) { transition-delay: 0.28s; }
.mobile-drawer.open nav ul li:nth-child(5) { transition-delay: 0.34s; }
.mobile-drawer nav ul li > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 28px; color: var(--paper);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  transition: color 0.2s var(--ease), padding 0.3s var(--ease);
}
.mobile-drawer nav ul li > a:hover { color: var(--cyan); padding-left: 8px; }
.mobile-drawer nav ul li > a::after { content: '→'; font-family: var(--sans); font-size: 18px; color: var(--paper-4); transition: transform 0.3s var(--ease), color 0.2s; }
.mobile-drawer nav ul li > a:hover::after { color: var(--cyan); transform: translateX(4px); }
.drawer-footer { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.drawer-login { font-family: var(--mono); font-size: 13px; color: var(--paper-3); letter-spacing: 0.06em; }
.drawer-login:hover { color: var(--cyan); }
.drawer-cta .btn { width: 100%; justify-content: center; padding: 18px 28px; font-size: 16px; border-radius: 999px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .header { gap: 12px; }
  .header-cta .btn-3d, .header-cta .lang-switch { display: none; }
  .burger { display: inline-flex; }
  .brand { font-size: 18px; }
}
@media (min-width: 1001px) { .mobile-drawer { display: none; } }

/* ─── HERO ─── */
.hero { position: relative; padding: 168px 0 110px; overflow: hidden; }
.hero-aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(232,121,249,0.18), transparent 70%),
    radial-gradient(ellipse 700px 500px at 80% 20%, rgba(167,139,250,0.16), transparent 70%),
    radial-gradient(ellipse 800px 400px at 50% 80%, rgba(251,191,36,0.06), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(20px,-20px,0) scale(1.05); } }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 56px; position: relative; z-index: 2; }
.hero-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(244,244,245,0.02); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--paper-2); }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulse 2s ease-in-out infinite; }
.status-pill .dot.cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 { max-width: 15ch; }
.hero-sub { margin-top: 30px; font-size: clamp(17px, 1.6vw, 21px); max-width: 54ch; color: var(--paper-2); line-height: 1.5; }
.hero-sub strong { color: var(--paper); font-weight: 500; border-bottom: 1px dashed var(--cyan); padding-bottom: 1px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; align-items: center; }
.hero-reass { margin-top: 24px; display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--paper-4); letter-spacing: 0.04em; }
.hero-reass span::before { content: '◆ '; color: var(--cyan); }

/* ─── TERMINAL MOCKUP ─── */
.terminal {
  margin-top: 72px; border: 1px solid var(--line-2); border-radius: 12px;
  background: linear-gradient(180deg, rgba(232,121,249,0.04), rgba(167,139,250,0.02)), var(--ink-2);
  box-shadow: var(--shadow-deep), 0 0 80px -20px rgba(232,121,249,0.25);
  overflow: hidden; position: relative;
}
.terminal-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-dots span:nth-child(1) { background: var(--rose); }
.term-dots span:nth-child(2) { background: var(--amber); }
.term-dots span:nth-child(3) { background: var(--emerald); }
.term-url { font-family: var(--mono); font-size: 12px; color: var(--paper-3); text-align: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,0.3); }
.term-url .lock { color: var(--emerald); }
.term-meta { font-family: var(--mono); font-size: 11px; color: var(--paper-4); }
.terminal-body { display: grid; grid-template-columns: 220px 1fr; min-height: 440px; }
@media (max-width: 720px) { .terminal-body { grid-template-columns: 1fr; } .term-side { display: none; } }
.term-side { border-right: 1px solid var(--line); padding: 20px 0; background: rgba(0,0,0,0.2); position: relative; }
.term-side-ind { position: absolute; left: 0; width: 2px; height: 38px; border-radius: 2px; background: linear-gradient(180deg, var(--cyan), var(--violet)); box-shadow: 0 0 12px var(--cyan); top: 46px; }
.term-side-item { cursor: default; }
.term-side-item .badge { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--paper-4); background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; transition: color 0.3s, border-color 0.3s; }
.term-side-item.active .badge { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.term-side-label { font-family: var(--mono); font-size: 10px; color: var(--paper-4); letter-spacing: 0.12em; padding: 8px 20px; text-transform: uppercase; }
.term-side-item { display: flex; align-items: center; gap: 10px; padding: 9px 20px; font-size: 13px; color: var(--paper-3); border-left: 2px solid transparent; transition: color 0.2s, background 0.2s; }
.term-side-item.active { color: var(--paper); background: linear-gradient(90deg, rgba(232,121,249,0.08), transparent); border-left-color: var(--cyan); }
.term-side-ico { width: 14px; height: 14px; color: var(--paper-4); }
.term-side-item.active .term-side-ico { color: var(--cyan); }
.term-main { padding: 24px 28px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--paper-2); }
.term-prompt { color: var(--paper-4); }
.term-prompt::before { content: '$ '; color: var(--cyan); }
.term-cmd { color: var(--paper); }
.term-cmd .flag { color: var(--violet); }
.term-cmd .str { color: var(--amber); }
.term-out { margin-left: 14px; color: var(--paper-3); }
.term-out .key { color: var(--cyan); white-space: pre; } /* pre : préserve le padding d'alignement des clés */
.term-out .val { color: var(--paper); }
.term-out .ok::before { content: '✓ '; color: var(--emerald); }
.term-out .sep { color: var(--paper-4); }
/* Curseur bloc du run animé (initTerminalRun, main.js). */
.term-cursor { display: inline-block; width: .58em; height: 1.05em; margin-left: 2px;
  background: var(--paper-2); vertical-align: text-bottom; animation: termBlink 1s steps(1) infinite; }
@keyframes termBlink { 50% { opacity: 0; } }
.typewriter { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--cyan); vertical-align: bottom; animation: type 2.4s steps(44, end) 0.5s 1 both, blink 0.9s step-end infinite; max-width: 0; }
.typewriter-2 { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: type 2s steps(36, end) 3.2s 1 both; max-width: 0; }
.typewriter-3 { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: type 1.6s steps(30, end) 5.2s 1 both; max-width: 0; }
@keyframes type { from { max-width: 0; } to { max-width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }
.fade-in { opacity: 0; animation: fadeIn 0.6s 7s var(--ease) forwards; }
.fade-in-late { opacity: 0; animation: fadeIn 0.6s 7.8s var(--ease) forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* ─── STATS ─── */
.stats { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stat { background: var(--ink); padding: 32px 28px; display: flex; flex-direction: column; gap: 8px; transition: background 0.3s var(--ease); }
.stat:hover { background: var(--ink-2); }
.stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--paper-4); text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.stat-label .num { color: var(--cyan); font-size: 10px; }
.stat-value { font-family: var(--display); font-size: clamp(38px, 4vw, 56px); color: var(--paper); line-height: 1; font-variation-settings: "opsz" 144, "SOFT" 30; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: 13px; color: var(--paper-3); line-height: 1.4; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stats-grid { grid-template-columns: 1fr; } }

/* Barre « en ce moment » : compteurs réels de la communauté (preuve par le produit) */
.live-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px;
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px;
  font-family: var(--mono); font-size: 12.5px; color: var(--paper-3); background: rgba(245,240,255,.02); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); } }
.live-label { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--paper-4); margin-right: 4px; }
.live-item b { color: var(--cyan); font-weight: 600; }
.live-sep { color: var(--paper-4); }
@media (max-width: 640px) { .live-strip { border-radius: 14px; } .live-sep { display: none; } .live-item { flex-basis: calc(50% - 12px); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Fil d'activité public (anonymisé), style terminal */
.pulse-public { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(245,240,255,.015); }
.pp-row { display: flex; align-items: center; gap: 11px; padding: 10px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--paper-3); }
.pp-row:last-child { border-bottom: 0; }
/* avatar du testeur (photo perso ou avatar par défaut) à la place du point ;
   l'anneau coloré conserve le repère de type (rejoint / check-in / validé) */
.pp-av { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--ink-3); font-size: 10px; color: var(--paper-3);
  box-shadow: 0 0 0 2px rgba(245,240,255,.06); }
.pp-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-av.plum { box-shadow: 0 0 0 2px rgba(240,166,255,.55); }
.pp-av.gold { box-shadow: 0 0 0 2px rgba(255,198,86,.55); }
.pp-av.green { box-shadow: 0 0 0 2px rgba(52,211,153,.55); }
.pp-txt { flex: 1 1 auto; min-width: 0; color: var(--paper-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-txt b { color: var(--paper); font-weight: 600; }

/* ═══ RÉCIPROCITÉ — carte animée (anti-resquille) ═══ */
.recip .wrap { }
.recip-card { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 24px;
  padding: 48px 52px; background: linear-gradient(180deg, var(--ink-2), var(--ink));
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04); }
.recip-glow { position: absolute; top: -50%; right: -12%; width: 60%; height: 180%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232,121,249,.20), transparent 72%); filter: blur(24px);
  animation: aurora 16s ease-in-out infinite alternate; }
.recip-top { position: relative; max-width: 620px; }
.recip-top p { margin-top: 14px; color: var(--paper-2); }

.recip-flow { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 40px 0 34px; }
.rf-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 180px; }
.rf-ico { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; color: var(--cyan);
  background: var(--ink-3); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px -12px rgba(0,0,0,.6); }
.rf-ico svg { width: 30px; height: 30px; }
.rf-lbl { display: flex; flex-direction: column; gap: 2px; }
.rf-lbl b { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--paper); }
.rf-lbl i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--paper-4); }

/* connecteur animé : une étincelle circule d'une étape à l'autre */
.rf-link { position: relative; flex: 1 1 40px; max-width: 92px; height: 2px; margin-top: 31px; border-radius: 2px;
  background: linear-gradient(90deg, var(--line-2), rgba(232,121,249,.45), var(--line-2)); }
.rf-spark { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px 2px rgba(240,166,255,.85); animation: rfSpark 2.6s var(--ease) infinite; }
.rf-link:last-of-type .rf-spark { animation-delay: 1.3s; }
@keyframes rfSpark { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes rfSparkY { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* cadenas qui s'ouvre (étape 2) */
.rf-unlock .rf-ico { color: var(--cyan-2); }
.rf-shackle { transform-box: fill-box; transform-origin: 88% 100%; animation: rfUnlock 3.4s var(--ease) infinite; }
@keyframes rfUnlock { 0%, 28% { transform: rotate(0) translateY(0); } 46%, 82% { transform: rotate(-34deg) translateY(-1px); } 100% { transform: rotate(0); } }

/* 12 testeurs qui se remplissent en cascade */
.rf-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; width: 92px; height: 62px; align-content: center; }
.rf-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line-2);
  animation: rfDot 3.2s var(--ease) infinite; }
@keyframes rfDot { 0%, 12%, 100% { background: var(--ink-3); box-shadow: none; } 55% { background: var(--cyan); border-color: transparent; box-shadow: 0 0 8px rgba(240,166,255,.6); } }
.rf-dots i:nth-child(1){animation-delay:0s}.rf-dots i:nth-child(2){animation-delay:.1s}.rf-dots i:nth-child(3){animation-delay:.2s}
.rf-dots i:nth-child(4){animation-delay:.3s}.rf-dots i:nth-child(5){animation-delay:.4s}.rf-dots i:nth-child(6){animation-delay:.5s}
.rf-dots i:nth-child(7){animation-delay:.6s}.rf-dots i:nth-child(8){animation-delay:.7s}.rf-dots i:nth-child(9){animation-delay:.8s}
.rf-dots i:nth-child(10){animation-delay:.9s}.rf-dots i:nth-child(11){animation-delay:1s}.rf-dots i:nth-child(12){animation-delay:1.1s}

/* ── File de priorité (solde de réciprocité) : Karim valide un test et dépasse Maya ── */
.recip-ladder { position: relative; margin: 0 0 34px; padding: 22px 24px 18px; border: 1px solid var(--line-2);
  border-radius: 18px; background: rgba(13,10,22,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.rl-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.rl-title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--paper-2); }
.rl-live { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px rgba(52,211,153,.8);
  animation: rlLive 2s ease-in-out infinite; }
@keyframes rlLive { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.rl-formula { font-family: var(--mono); font-size: 11.5px; color: var(--cyan); padding: 4px 10px;
  border: 1px dashed rgba(232,121,249,.35); border-radius: 999px; }

.rl-rows { position: relative; display: flex; flex-direction: column; gap: 8px; }
.rl-slot-glow { position: absolute; inset: 0 0 auto 0; height: 52px; border-radius: 12px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(232,121,249,.10), rgba(183,156,255,.05)); border: 1px solid rgba(232,121,249,.28); }
.rl-slot-glow::after { content: '№1 · prioritaire'; position: absolute; top: -9px; right: 12px; padding: 1px 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--cyan);
  background: var(--ink-2); border: 1px solid rgba(232,121,249,.35); border-radius: 999px; }
html[lang="en"] .rl-slot-glow::after { content: '#1 · first served'; }

.rl-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.rl-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); flex: none; }
.rl-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rl-who b { font-size: 14px; font-weight: 600; color: var(--paper); }
.rl-who i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--paper-4); white-space: nowrap; }
.rl-score { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--emerald);
  padding: 3px 10px; border-radius: 8px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.22); flex: none; }
.rl-score.rl-neg { color: var(--rose); background: rgba(251,113,133,.07); border-color: rgba(251,113,133,.2); }

/* ── Chorégraphie 9s : ✓ validé (2s) → compteurs +1→+2 (2.6s) → échange de places (3s) → reset fondu ── */
.rl-row-a { animation: rlRowA 9s var(--ease) infinite; }
.rl-row-b { animation: rlRowB 9s var(--ease) infinite; }
@keyframes rlRowA { 0%, 33% { transform: translateY(0); } 42%, 92% { transform: translateY(60px); } 100% { transform: translateY(0); } }
@keyframes rlRowB { 0%, 33% { transform: translateY(0); } 42%, 92% { transform: translateY(-60px); } 100% { transform: translateY(-0); } }
/* la ligne qui monte s'illumine pendant l'échange */
.rl-row-b { will-change: transform; }
.rl-row-b::before { content: ''; position: absolute; inset: -1px; border-radius: 12px; pointer-events: none; opacity: 0;
  border: 1px solid rgba(232,121,249,.55); box-shadow: 0 0 22px -6px rgba(232,121,249,.55); animation: rlUpGlow 9s var(--ease) infinite; }
@keyframes rlUpGlow { 0%, 20% { opacity: 0; } 30%, 60% { opacity: 1; } 78%, 100% { opacity: 0; } }

/* badge « ✓ test validé » qui surgit sur Karim */
.rl-pop { position: absolute; top: -11px; left: 52px; padding: 2px 9px; font-family: var(--mono); font-size: 10.5px;
  color: var(--ink); background: var(--emerald); border-radius: 999px; font-weight: 700; opacity: 0;
  transform: translateY(4px) scale(.9); animation: rlPop 9s var(--ease) infinite; box-shadow: 0 4px 14px -4px rgba(52,211,153,.7); }
@keyframes rlPop { 0%, 8% { opacity: 0; transform: translateY(4px) scale(.9); } 13%, 55% { opacity: 1; transform: translateY(0) scale(1); }
  63%, 100% { opacity: 0; transform: translateY(-4px) scale(.95); } }

/* compteurs : « 5 donnés » → « 6 donnés » et « +1 » → « +2 » (fondu croisé synchronisé) */
.rl-given { position: relative; display: inline-block; width: 1ch; }
.rl-given .g1, .rl-given .g2, .rl-row-b .rl-score .s1, .rl-row-b .rl-score .s2 { transition: none; }
.rl-given .g2, .rl-row-b .rl-score .s2 { position: absolute; left: 0; top: 0; }
.rl-row-b .rl-score { position: relative; }
.rl-row-b .rl-score .s2 { left: 10px; }
.rl-given .g1, .rl-row-b .rl-score .s1 { animation: rlNumOut 9s steps(1) infinite; }
.rl-given .g2, .rl-row-b .rl-score .s2 { animation: rlNumIn 9s steps(1) infinite; }
@keyframes rlNumOut { 0%, 21% { opacity: 1; } 22%, 97% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes rlNumIn  { 0%, 21% { opacity: 0; } 22%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }

.rl-caption { margin: 16px 2px 0; font-size: 13.5px; color: var(--paper-3); }
.rl-caption strong { color: var(--paper); }

.recip-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line); }
.rf-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--paper-3); }
.rf-badge svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

@media (max-width: 680px) {
  .recip-card { padding: 32px 22px; border-radius: 20px; }
  .recip-flow { flex-direction: column; gap: 2px; align-items: stretch; margin: 32px 0 28px; }
  .rf-node { flex-direction: row; align-items: center; gap: 14px; max-width: none; text-align: left; }
  .rf-lbl { align-items: flex-start; }
  .rf-link { width: 2px; height: 24px; max-width: none; flex: none; margin: 2px 0 2px 30px;
    background: linear-gradient(180deg, var(--line-2), rgba(232,121,249,.45), var(--line-2)); }
  .rf-spark { left: 50%; top: 0; margin-left: -4px; margin-top: 0; animation: rfSparkY 2.6s var(--ease) infinite; }
  .recip-foot { justify-content: flex-start; }
  .recip-foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .recip-glow, .rf-spark, .rf-shackle { animation: none; }
  .rf-dots i { animation: none; background: var(--cyan); border-color: transparent; }
  /* file de priorité : ordre final figé (Karim déjà passé devant), aucun mouvement */
  .rl-row-a, .rl-row-b, .rl-row-b::before, .rl-pop, .rl-live,
  .rl-given .g1, .rl-given .g2, .rl-row-b .rl-score .s1, .rl-row-b .rl-score .s2 { animation: none; }
  .rl-row-a { transform: translateY(60px); }
  .rl-row-b { transform: translateY(-60px); }
  .rl-given .g1, .rl-row-b .rl-score .s1 { opacity: 0; }
  .rl-given .g2, .rl-row-b .rl-score .s2 { opacity: 1; }
  .rl-pop { opacity: 0; }
}
@media (max-width: 680px) {
  .recip-ladder { padding: 18px 14px 14px; }
  .rl-head { margin-bottom: 14px; }
  .rl-who i { font-size: 9.5px; }
  .rl-pop { left: 44px; }
}

/* ═══ Bouton « remonter en haut » ═══ */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line-2); color: var(--paper);
  background: rgba(19,14,32,.72); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -10px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, border-color .25s var(--ease), background .25s var(--ease), color .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: transparent; background: var(--grad-brain); color: var(--ink); }
.to-top:active { transform: scale(.92); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s, visibility .2s; } }

/* ═══ E-MAIL « PRODUCTION ACCESS GRANTED » — la destination (fin de timeline) ═══ */
.mail-proof { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.mp-txt h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 14px 0 14px; }
.mp-txt p { color: var(--paper-2); font-size: 15.5px; line-height: 1.65; max-width: 460px; }

.mp-mail { position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  background: #fff; color: #202124; border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85), 0 0 60px -25px rgba(52,211,153,.35);
  transform: rotate(.6deg); }
.mp-head { font-family: var(--mono); font-size: 11px; color: #5f6368; background: #f6f8fc;
  border-bottom: 1px solid #e3e6ec; padding: 10px 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-head b { color: #202124; font-weight: 600; }
.mp-body { padding: 22px 24px 24px; }
.mp-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 16px; }
.mp-brand .g1 { color: #5f6368; font-weight: 500; }
.mp-brand .g2 { color: #4285F4; font-weight: 500; }
.mp-body h4 { display: flex; gap: 10px; align-items: flex-start; font-family: Arial, Helvetica, sans-serif;
  font-weight: 400; font-size: 19px; line-height: 1.3; color: #202124; margin-bottom: 14px; }
.mp-i { color: #1a73e8; font-size: 18px; line-height: 1.35; flex: none; }
.mp-body p { font-family: Arial, Helvetica, sans-serif; font-size: 13.5px; line-height: 1.6; color: #3c4043; margin-bottom: 20px; }
.mp-btn { display: inline-block; font-family: Arial, Helvetica, sans-serif; font-size: 13.5px; font-weight: 500;
  color: #fff; background: #1a73e8; padding: 10px 22px; border-radius: 4px; }
.mp-cap { font-family: var(--mono); font-size: 10.5px; color: var(--paper-4); background: var(--ink-2);
  border-top: 1px solid var(--line-2); padding: 9px 18px; }

/* Après l'atterrissage (classe posée par initMailProof, main.js) : halo qui respire. */
.mp-mail.mp-live { animation: mpGlow 4.2s ease-in-out infinite; }
@keyframes mpGlow {
  0%, 100% { box-shadow: 0 30px 70px -30px rgba(0,0,0,.85), 0 0 60px -25px rgba(52,211,153,.35); }
  50%      { box-shadow: 0 30px 70px -30px rgba(0,0,0,.85), 0 0 80px -20px rgba(52,211,153,.55); }
}
@media (prefers-reduced-motion: reduce) { .mp-mail.mp-live { animation: none; } }

@media (max-width: 860px) {
  .mail-proof { grid-template-columns: 1fr; gap: 30px; margin-top: 56px; padding-top: 44px; }
  .mp-mail { transform: none; max-width: 540px; }
}

/* ═══ MATCHING INTELLIGENT — carte animée (pertinence / rétention) ═══ */
.match-card { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 24px;
  padding: 48px 52px; background: linear-gradient(180deg, var(--ink-2), var(--ink));
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04); }
.match-glow { position: absolute; bottom: -55%; left: -12%; width: 62%; height: 190%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(183,156,255,.20), transparent 72%); filter: blur(26px);
  animation: aurora 18s ease-in-out infinite alternate; }
.match-top { position: relative; max-width: 640px; }
.match-top p { margin-top: 14px; color: var(--paper-2); }

.match-demo { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; margin-top: 40px; align-items: start; }
.mi-side { display: flex; flex-direction: column; gap: 12px; }
.mi-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-4); }

/* États de base (fallback sans JS + reduced-motion = look final, statique).
   Les mouvements sont pilotés par GSAP (voir initMatchingAnim dans main.js). */
.mi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mi-chip { font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--paper-4); background: var(--ink-3); }
.mi-chip.on { color: var(--ink); background: var(--grad-brain); border-color: transparent; font-weight: 600; }

.mi-apps { display: flex; flex-direction: column; gap: 10px; }

.mi-app { position: relative; display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--ink-2); }
.mi-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.mi-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mi-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mi-meta b { font-family: var(--mono); font-size: 13px; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-meta i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--paper-4); }

/* app matchée : un seul geste — un souffle lumineux lent (sobre). */
.mi-app.is-match { border-color: transparent; background: rgba(232,121,249,.06);
  animation: miBreathe 3.8s ease-in-out infinite; }
.mi-app.is-match .mi-ico { border-color: rgba(232,121,249,.5); }
@keyframes miBreathe {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(232,121,249,.42), 0 0 15px 0 rgba(240,166,255,.15); }
  50%      { box-shadow: 0 0 0 1.5px rgba(232,121,249,.68), 0 0 26px 2px rgba(240,166,255,.32); }
}
.mi-badge { margin-left: auto; flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 600; white-space: nowrap;
  color: var(--ink); background: var(--grad-brain); padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 14px -5px rgba(232,121,249,.55); }
/* Le badge n'existe visuellement QUE sur l'app matchée (les 3 cartes en ont un
   dans le HTML pour que la boucle GSAP puisse le faire apparaître partout). */
.mi-app:not(.is-match) .mi-badge { display: none; }

/* Trait de connexion chip → app (dessiné par initMatchingAnim, main.js). */
.mi-link { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }

@media (max-width: 720px) {
  .match-card { padding: 32px 22px; border-radius: 20px; }
  .match-demo { grid-template-columns: 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) { .match-glow, .mi-app.is-match { animation: none; } }
.pp-ago { color: var(--paper-4); font-size: 10.5px; white-space: nowrap; flex-shrink: 0; }

/* Timeline J0 → J14 (parcours d'une campagne) */
#timeline { padding: 96px 0; border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 46px 0 0; padding: 0; position: relative; }
.tl-step { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 26px; padding-bottom: 34px; }
.tl-step::before { content: ""; position: absolute; left: 51px; top: 30px; bottom: -2px; width: 2px; background: var(--line); }
.tl-step:last-child { padding-bottom: 0; }
.tl-step:last-child::before { display: none; }
.tl-day { position: relative; z-index: 1; align-self: start; justify-self: stretch; text-align: center;
  font-family: var(--mono); font-weight: 600; font-size: 12.5px; color: #0D0A16;
  background: var(--grad-brain); border-radius: 999px; padding: 7px 6px; white-space: nowrap; }
.tl-body { position: relative; }
.tl-body h3 { font-family: var(--display); font-size: 19px; color: var(--paper); margin: 2px 0 7px; }
.tl-body p { color: var(--paper-3); font-size: 14.5px; line-height: 1.6; max-width: 620px; }

/* === Choregraphie 8s : une COMETE a trainee descend la ligne ; chaque etape
   s'ALLUME a son passage (pastille + halo de carte autour du texte) et RESTE
   allumee ; a J14+ l'or explose en etincelles ; puis tout s'eteint en cascade
   (haut -> bas) et le cycle recommence. Passages : 5/15/26/37/48 % du cycle. === */

/* la comete : tete blanche + trainee qui s'evanouit vers le haut */
.timeline::before { content: ''; position: absolute; left: 46px; top: -2%; width: 12px; height: 64px;
  border-radius: 999px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(240,166,255,0), rgba(240,166,255,.55) 55%, #fff 92%);
  filter: drop-shadow(0 4px 12px rgba(240,166,255,.9));
  animation: tlBeam 8s cubic-bezier(.45,.1,.55,.9) infinite; }
@keyframes tlBeam {
  0%  { top: -2%; opacity: 0; }
  4%  { opacity: 1; }
  44% { opacity: 1; }
  48% { top: 92%; opacity: 0; }
  100%{ top: 92%; opacity: 0; }
}

/* segments : se remplissent dans le sillage de la comete, restent pleins, puis s'effacent */
.tl-step::after { content: ""; position: absolute; left: 50px; top: 30px; bottom: -2px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 12px rgba(240,166,255,.7);
  transform: scaleY(0); transform-origin: top center; }
.tl-step:last-child::after { display: none; }
.timeline .tl-step:nth-child(1)::after { animation: tlS1 8s linear infinite; }
.timeline .tl-step:nth-child(2)::after { animation: tlS2 8s linear infinite; }
.timeline .tl-step:nth-child(3)::after { animation: tlS3 8s linear infinite; }
.timeline .tl-step:nth-child(4)::after { background: linear-gradient(180deg, #eb80de 0%, #FF9E7A 48%, #FFC656 100%);
  box-shadow: 0 0 13px rgba(255,201,91,.6); animation: tlS4 8s linear infinite; }
@keyframes tlS1 { 0%,5%{transform:scaleY(0);opacity:1} 15%{transform:scaleY(1);opacity:1} 76%{transform:scaleY(1);opacity:1} 82%{transform:scaleY(1);opacity:0} 100%{transform:scaleY(0);opacity:0} }
@keyframes tlS2 { 0%,15%{transform:scaleY(0);opacity:1} 26%{transform:scaleY(1);opacity:1} 78%{transform:scaleY(1);opacity:1} 84%{transform:scaleY(1);opacity:0} 100%{transform:scaleY(0);opacity:0} }
@keyframes tlS3 { 0%,26%{transform:scaleY(0);opacity:1} 37%{transform:scaleY(1);opacity:1} 80%{transform:scaleY(1);opacity:1} 86%{transform:scaleY(1);opacity:0} 100%{transform:scaleY(0);opacity:0} }
@keyframes tlS4 { 0%,37%{transform:scaleY(0);opacity:1} 48%{transform:scaleY(1);opacity:1} 82%{transform:scaleY(1);opacity:1} 88%{transform:scaleY(1);opacity:0} 100%{transform:scaleY(0);opacity:0} }

/* pastilles : s'allument au passage (anneau + eclat) et RESTENT allumees jusqu'a la cascade */
.timeline .tl-step:nth-child(1) .tl-day { animation: tlChip1 8s var(--ease) infinite; }
.timeline .tl-step:nth-child(2) .tl-day { animation: tlChip2 8s var(--ease) infinite; }
.timeline .tl-step:nth-child(3) .tl-day { animation: tlChip3 8s var(--ease) infinite; }
.timeline .tl-step:nth-child(4) .tl-day { animation: tlChip4 8s var(--ease) infinite; }
@keyframes tlChip1 { 0%,4%{box-shadow:0 0 0 0 rgba(240,166,255,0);transform:scale(1)} 9%{box-shadow:0 0 0 3px rgba(240,166,255,.28),0 0 22px 3px rgba(240,166,255,.7);transform:scale(1.08)} 13%{transform:scale(1.04)} 76%{box-shadow:0 0 0 3px rgba(240,166,255,.22),0 0 14px 1px rgba(240,166,255,.4);transform:scale(1.04)} 82%,100%{box-shadow:0 0 0 0 rgba(240,166,255,0);transform:scale(1)} }
@keyframes tlChip2 { 0%,14%{box-shadow:0 0 0 0 rgba(240,166,255,0);transform:scale(1)} 19%{box-shadow:0 0 0 3px rgba(240,166,255,.28),0 0 22px 3px rgba(240,166,255,.7);transform:scale(1.08)} 23%{transform:scale(1.04)} 78%{box-shadow:0 0 0 3px rgba(240,166,255,.22),0 0 14px 1px rgba(240,166,255,.4);transform:scale(1.04)} 84%,100%{box-shadow:0 0 0 0 rgba(240,166,255,0);transform:scale(1)} }
@keyframes tlChip3 { 0%,25%{box-shadow:0 0 0 0 rgba(240,166,255,0);transform:scale(1)} 30%{box-shadow:0 0 0 3px rgba(240,166,255,.28),0 0 22px 3px rgba(240,166,255,.7);transform:scale(1.08)} 34%{transform:scale(1.04)} 80%{box-shadow:0 0 0 3px rgba(240,166,255,.22),0 0 14px 1px rgba(240,166,255,.4);transform:scale(1.04)} 86%,100%{box-shadow:0 0 0 0 rgba(240,166,255,0);transform:scale(1)} }
@keyframes tlChip4 { 0%,36%{box-shadow:0 0 0 0 rgba(240,166,255,0);transform:scale(1)} 41%{box-shadow:0 0 0 3px rgba(240,166,255,.28),0 0 22px 3px rgba(240,166,255,.7);transform:scale(1.08)} 45%{transform:scale(1.04)} 82%{box-shadow:0 0 0 3px rgba(240,166,255,.22),0 0 14px 1px rgba(240,166,255,.4);transform:scale(1.04)} 88%,100%{box-shadow:0 0 0 0 rgba(240,166,255,0);transform:scale(1)} }

/* J14+ : rose au repos -> OR a l'arrivee de la comete (48%), tenu, puis extinction */
.timeline .tl-step:last-child .tl-day { background: #eb80de; color: #2a0a25; animation: tlChip5 8s var(--ease) infinite; }
@keyframes tlChip5 {
  0%,47%    { background-color: #eb80de; color: #2a0a25; box-shadow: 0 0 0 0 rgba(255,201,91,0); transform: scale(1); }
  52%       { background-color: #FFC95B; color: #3a2a05; box-shadow: 0 0 36px 9px rgba(255,201,91,.95); transform: scale(1.14); }
  60%       { background-color: #FFC95B; color: #3a2a05; box-shadow: 0 0 16px 2px rgba(255,201,91,.5); transform: scale(1.06); }
  84%       { background-color: #FFC95B; color: #3a2a05; box-shadow: 0 0 16px 2px rgba(255,201,91,.45); transform: scale(1.06); }
  90%, 100% { background-color: #eb80de; color: #2a0a25; box-shadow: 0 0 0 0 rgba(255,201,91,0); transform: scale(1); }
}
/* etincelles dorees qui jaillissent de J14+ au moment de l'or */
.tl-step:last-child .tl-day::after { content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: transparent; pointer-events: none;
  animation: tlBurst 8s var(--ease) infinite; }
@keyframes tlBurst {
  0%, 48% { opacity: 0; box-shadow: 0 0 0 #FFC95B, 0 0 0 #FFC95B, 0 0 0 #FFC95B, 0 0 0 #FFC95B, 0 0 0 #FFD98A, 0 0 0 #FFD98A, 0 0 0 #FFD98A, 0 0 0 #FFD98A; }
  50%     { opacity: 1; box-shadow: 0 -6px 0 #FFC95B, 6px 0 0 #FFC95B, 0 6px 0 #FFC95B, -6px 0 0 #FFC95B, 5px -5px 0 #FFD98A, 5px 5px 0 #FFD98A, -5px 5px 0 #FFD98A, -5px -5px 0 #FFD98A; }
  58%     { opacity: 0; box-shadow: 0 -30px 0 transparent, 30px 0 0 transparent, 0 30px 0 transparent, -30px 0 0 transparent, 24px -24px 0 transparent, 24px 24px 0 transparent, -24px 24px 0 transparent, -24px -24px 0 transparent; }
  100%    { opacity: 0; box-shadow: 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent; }
}

/* halo de carte : le TEXTE de l'etape active s'encadre d'un verre lumineux, et reste actif */
.tl-body::before { content: ''; position: absolute; inset: -12px -16px; border-radius: 14px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(232,121,249,.07), rgba(183,156,255,.02));
  box-shadow: inset 0 0 0 1px rgba(232,121,249,.22); }
.timeline .tl-step:nth-child(1) .tl-body::before { animation: tlGlow1 8s var(--ease) infinite; }
.timeline .tl-step:nth-child(2) .tl-body::before { animation: tlGlow2 8s var(--ease) infinite; }
.timeline .tl-step:nth-child(3) .tl-body::before { animation: tlGlow3 8s var(--ease) infinite; }
.timeline .tl-step:nth-child(4) .tl-body::before { animation: tlGlow4 8s var(--ease) infinite; }
.timeline .tl-step:nth-child(5) .tl-body::before { animation: tlGlow5 8s var(--ease) infinite;
  background: linear-gradient(90deg, rgba(255,201,91,.08), rgba(255,158,122,.02)); box-shadow: inset 0 0 0 1px rgba(255,201,91,.26); }
@keyframes tlGlow1 { 0%,4%{opacity:0} 10%{opacity:1} 76%{opacity:1} 82%,100%{opacity:0} }
@keyframes tlGlow2 { 0%,14%{opacity:0} 20%{opacity:1} 78%{opacity:1} 84%,100%{opacity:0} }
@keyframes tlGlow3 { 0%,25%{opacity:0} 31%{opacity:1} 80%{opacity:1} 86%,100%{opacity:0} }
@keyframes tlGlow4 { 0%,36%{opacity:0} 42%{opacity:1} 82%{opacity:1} 88%,100%{opacity:0} }
@keyframes tlGlow5 { 0%,47%{opacity:0} 53%{opacity:1} 84%{opacity:1} 90%,100%{opacity:0} }

/* le titre de l'etape finale passe a l'or avec la pastille */
.timeline .tl-step:last-child .tl-body h3 { animation: tlHiGold 8s var(--ease) infinite; }
@keyframes tlHiGold {
  0%, 47%   { color: var(--paper); text-shadow: none; }
  53%       { color: #FFC95B; text-shadow: 0 0 26px rgba(255,201,91,.8); }
  84%       { color: #FFC95B; text-shadow: 0 0 10px rgba(255,201,91,.35); }
  90%, 100% { color: var(--paper); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline::before { display: none; }
  .tl-step::after { animation: none; transform: scaleY(1); opacity: .45; }
  .tl-day, .tl-body::before, .tl-step:last-child .tl-day::after,
  .timeline .tl-step:last-child .tl-body h3 { animation: none; }
  .timeline .tl-step:last-child .tl-day { background: #eb80de; }
}
@media (max-width: 560px) {
  #timeline { padding: 64px 0; }
  .tl-step { grid-template-columns: 78px 1fr; gap: 16px; }
  .tl-step::before { left: 38px; }
  .tl-step::after { left: 37px; }
  .tl-day { font-size: 11px; padding: 6px 4px; }
  .tl-body h3 { font-size: 17px; }
  .timeline::before { left: 33px; }
  .tl-body::before { inset: -8px -10px; }
}
}

/* ─── SECTION ─── */
section { padding: 132px 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 72px; }
.section-head h2 { max-width: 18ch; margin-top: 16px; }
.section-head-right { color: var(--paper-3); font-size: 17px; line-height: 1.6; max-width: 44ch; justify-self: end; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 24px; } .section-head-right { justify-self: start; } }

/* ─── BENTO ─── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.bento-card { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 32px; overflow: hidden; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.bento-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.bento-card .num { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 10px; color: var(--paper-4); letter-spacing: 0.12em; }
.bento-card h3 { margin: 18px 0 12px; max-width: 18ch; }
.bento-card p { color: var(--paper-3); font-size: 15px; max-width: 40ch; }
.bento-card .gain { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: 0.06em; padding: 6px 10px; border: 1px solid rgba(232,121,249,0.25); background: rgba(232,121,249,0.06); border-radius: 999px; }
.feat-a { grid-column: span 4; grid-row: span 2; }
.feat-b { grid-column: span 2; grid-row: span 2; }
.feat-c { grid-column: span 2; }
.feat-d { grid-column: span 4; }
.feat-vis { position: relative; border-radius: 10px; background: linear-gradient(135deg, rgba(232,121,249,0.05), rgba(167,139,250,0.05)); border: 1px solid var(--line); padding: 16px; font-family: var(--mono); font-size: 12px; margin-top: 24px; min-height: 140px; }
.feat-a .feat-vis { min-height: 200px; }
.vis-label { color: var(--paper-4); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.vis-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--paper-3); gap: 12px; }
.vis-row:last-child { border-bottom: none; }
.vis-row .v { color: var(--paper); }
.vis-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vis-tag { font-size: 10px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--paper-2); }
.vis-tag.hl { border-color: var(--cyan); color: var(--cyan); background: rgba(232,121,249,0.08); }
.vis-bar { position: relative; height: 8px; background: var(--ink-3); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.vis-bar i { display: block; height: 100%; background: var(--grad-brain); border-radius: 999px; box-shadow: 0 0 12px var(--cyan); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .feat-a, .feat-d, .feat-b, .feat-c { grid-column: span 2; grid-row: auto; } }

/* ─── HOW (steps) ─── */
.how { background: var(--ink); position: relative; }
.how::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent 60px, var(--line) 60px, var(--line) 61px); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 80%); mask-image: radial-gradient(ellipse at center, #000, transparent 80%); pointer-events: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; z-index: 2; }
.step { position: relative; padding: 32px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.step-num { font-family: var(--display); font-style: italic; font-size: 72px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--cyan); font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1; margin-bottom: 8px; text-shadow: 0 0 30px rgba(232,121,249,0.3); }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--paper-3); font-size: 15px; }
.step .cmd { display: block; margin-top: 20px; padding: 10px 14px; background: var(--ink); border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--cyan); overflow-wrap: anywhere; }
.step .cmd::before { content: '$ '; color: var(--paper-4); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ─── DÉMO INTERACTIVE ─── */
.demo { max-width: 720px; margin: 0 auto; }
.demo-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
/* Bouton animé (mécanique Uiverse.io / vinodjangid07) reteinté dans la palette
   Synthocode plum/aurora : anneau dégradé animé (lavande→magenta→orange) avec
   panneau « ink » en ::before. Libellé bilingue + avatar au-dessus ; onglet actif
   = dégradé aurora plein, texte ink. Même animation de glissement au survol. */
.demo-tab {
  flex: 1 1 0; max-width: 200px; height: 44px; border: none; border-radius: 10px; cursor: pointer;
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  font-family: var(--head); font-weight: 600; font-size: 13.5px; color: var(--cyan);
  background: linear-gradient(to right,#3d2568,#E879F9,#3d2568,#3d2568,#FFA45B,#3d2568);
  background-size: 250%; background-position: left;
  transition: background-position 1s var(--ease), background .4s var(--ease), color .4s var(--ease), transform .2s var(--ease);
}
.demo-tab::before {
  content: ""; position: absolute; inset: 5% 1.5%; border-radius: 8px;
  background: rgba(13,10,22,.86); transition: background .4s var(--ease); z-index: 0;
}
.demo-tab > * { position: relative; z-index: 1; }
.demo-tab .tab-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid rgba(245,240,255,.35); }
.demo-tab:hover { background-position: right; }
.demo-tab:active { transform: scale(.95); }
/* onglet sélectionné : le dégradé aurora plein ressort, texte ink, panneau effacé */
.demo-tab.active { background: var(--grad-brain); background-size: 100%; color: var(--ink); }
.demo-tab.active::before { background: rgba(13,10,22,0); }
.demo-tab.active .tab-ava { border-color: rgba(13,10,22,.35); }
@media (prefers-reduced-motion: reduce) { .demo-tab { transition: color .2s, transform .2s; } }

/* Les 2 scènes (testeur/dev) sont empilées dans la MÊME cellule → la scène cachée
   garde sa place : la hauteur = toujours la plus grande. Résultat : aucun saut ni au
   changement d'onglet, ni quand le texte s'affiche (le log a déjà sa hauteur réservée). */
.demo-stage { position: relative; display: grid; }
.demo-stage > .demo-scene { grid-area: 1 / 1; }
.demo-scene[hidden] { display: block; visibility: hidden; pointer-events: none; }
.demo-card {
  position: relative; background: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: 16px; padding: 26px; box-shadow: var(--shadow-deep), 0 0 60px -28px rgba(232,121,249,.4);
  overflow: hidden;
}
/* min-height = hauteur de l'en-tête quand le statut wrappe sur 2 lignes (mobile) → il
   ne bouge plus quand le texte de statut change de longueur. C'était la vraie cause. */
.demo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-height: 40px; }
.dchip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; background: rgba(0,0,0,.25); }
.dchip svg { width: 14px; height: 14px; }
.demo-status { font-family: var(--mono); font-size: 12px; color: var(--cyan); min-height: 16px; text-align: right; }
.demo-status.ok { color: var(--emerald); }
.demo-sub { color: var(--paper-3); font-size: 14px; margin-bottom: 20px; }

/* bande des 14 jours (testeur) */
.demo-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-bottom: 18px; }
.demo-day { aspect-ratio: 1; border-radius: 6px; background: var(--ink-3); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--paper-4); }
.demo-day.on { background: linear-gradient(135deg, var(--cyan), var(--violet)); color: var(--ink); border-color: transparent; box-shadow: 0 0 14px rgba(232,121,249,.5); }
.demo-day.current { background: linear-gradient(135deg, var(--amber), var(--rose)); color: var(--ink); box-shadow: 0 0 18px rgba(255,198,86,.7); animation: dayPulse 1.1s ease-in-out infinite; }
@keyframes dayPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (max-width: 560px) { .demo-days { grid-template-columns: repeat(7, 1fr); } }

/* avatars testeurs (dev) */
.demo-testers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.demo-tester { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line); object-fit: cover; flex: none; filter: grayscale(1) brightness(.55); opacity: .5; transition: filter .2s, opacity .2s, box-shadow .2s, border-color .2s; }
.demo-tester.on { filter: none; opacity: 1; border-color: transparent; box-shadow: 0 0 14px rgba(232,121,249,.45); }

.demo-meter { margin-bottom: 18px; }
.demo-meter-row { font-family: var(--mono); font-size: 12px; color: var(--paper-3); margin-bottom: 8px; }
.demo-meter-row b { color: var(--cyan); font-size: 16px; }
.demo-bar { height: 8px; background: var(--ink-3); border-radius: 999px; overflow: hidden; }
.demo-bar i { display: block; height: 100%; width: 0; background: var(--grad-brain); border-radius: 999px; box-shadow: 0 0 12px var(--cyan); }

/* min-height = hauteur des 4 lignes de log finales → la carte NE BOUGE PAS quand le
   texte s'affiche progressivement (place réservée d'avance). Mesuré : ~109px desktop. */
.demo-log { font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--paper-3); min-height: 112px; border-top: 1px dashed var(--line); padding-top: 14px; }
@media (max-width: 560px) { .demo-log { min-height: 190px; } }
.demo-log .l { opacity: 0; }
.demo-log .l.in { opacity: 1; }
.demo-log .l .k { color: var(--cyan); }
.demo-log .l.good { color: var(--emerald); }
.demo-log .l.good .k { color: var(--emerald); }

.demo-controls { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.demo-track { flex: 1; height: 4px; background: var(--ink-3); border-radius: 999px; overflow: hidden; }
.demo-track-fill { display: block; height: 100%; width: 0; background: var(--grad-brain); border-radius: 999px; }
.demo-play { white-space: nowrap; }
.demo-play .demo-play-ico { width: 14px; height: 14px; }
.demo-play.playing .demo-play-ico { opacity: .5; }

/* ─── ACCESS (waitlist) ─── */
.access { position: relative; border: 1px solid var(--line-2); border-radius: 18px; padding: 64px 48px; text-align: center; overflow: hidden; background: linear-gradient(180deg, rgba(232,121,249,0.05), rgba(167,139,250,0.03)), var(--ink-2); box-shadow: var(--shadow-deep), 0 0 80px -20px rgba(167,139,250,0.3); }
.access::after { content: ''; position: absolute; top: -50%; right: -20%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(232,121,249,0.16), transparent 70%); pointer-events: none; }
.access .eyebrow { justify-content: center; }
.access h2 { margin: 16px auto 0; max-width: 18ch; }
.access p { color: var(--paper-3); font-size: 17px; margin: 16px auto 0; max-width: 46ch; position: relative; }
.access .count { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 22px 0; font-family: var(--mono); font-size: 12px; color: var(--paper-3); }
.access .count b { color: var(--paper); }
.access .count .avs { display: inline-flex; align-items: center; }
.access .count .av { width: 26px; height: 26px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--ink-2); background: var(--ink-2); object-fit: cover; }
.access .count .avs .av:first-child { margin-left: 0; }
.waitlist { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 460px; margin: 0 auto; position: relative; }
.waitlist input { width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 15px 18px; color: var(--paper); font-family: var(--mono); font-size: 13.5px; outline: none; transition: border-color 0.2s; }
.waitlist input::placeholder { color: var(--paper-4); }
.waitlist input:focus { border-color: var(--cyan); }

/* ─── Bouton "Send/Sent" (From Uiverse.io by marcelodolza) — bouton Rejoindre ─── */
.button {
  --primary: #e879f9;
  --neutral-1: #f7f8f7;
  --neutral-2: #e7e7e7;
  --radius: 14px;
  cursor: pointer; border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0,0,0,.3); border: none;
  box-shadow: 0 .5px .5px 1px rgba(255,255,255,.2), 0 10px 20px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.05);
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: all .3s ease; min-width: 200px; padding: 20px; height: 62px;
  font-family: var(--head), Poppins, sans-serif; font-style: normal; font-size: 17px; font-weight: 600;
}
.button:hover { transform: scale(1.02); box-shadow: 0 0 1px 2px rgba(255,255,255,.3), 0 15px 30px rgba(0,0,0,.3), 0 10px 3px -3px rgba(0,0,0,.04); }
.button:active { transform: scale(1); box-shadow: 0 0 1px 2px rgba(255,255,255,.3), 0 10px 3px -3px rgba(0,0,0,.2); }
.button:after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); border: 2.5px solid transparent; background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box, linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.45)) border-box; z-index: 0; transition: all .4s ease; }
.button:hover::after { transform: scale(1.05, 1.1); box-shadow: inset 0 -1px 3px 0 rgba(255,255,255,1); }
.button::before { content: ""; inset: 7px 6px 6px 6px; position: absolute; background: linear-gradient(to top, var(--neutral-1), var(--neutral-2)); border-radius: 30px; filter: blur(.5px); z-index: 2; }
.button .state p { display: flex; align-items: center; justify-content: center; margin: 0; color: #1a1a1a; }
.button .state .icon { position: absolute; left: 0; top: 0; bottom: 0; margin: auto; transform: scale(1.25); transition: all .3s ease; display: flex; align-items: center; justify-content: center; color: #1a1a1a; }
.button .state .icon svg { overflow: visible; }
.button .outline { position: absolute; border-radius: inherit; overflow: hidden; z-index: 1; opacity: 0; transition: opacity .4s ease; inset: -2px -3.5px; }
.button .outline::before { content: ""; position: absolute; inset: -100%; background: conic-gradient(from 180deg, transparent 60%, white 80%, transparent 100%); animation: ub-spin 2s linear infinite; animation-play-state: paused; }
@keyframes ub-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.button:hover .outline { opacity: 1; }
.button:hover .outline::before { animation-play-state: running; }
.button .state p span { display: block; opacity: 0; animation: ub-slideDown .8s ease forwards calc(var(--i) * .03s); }
.button:hover p span { opacity: 1; animation: ub-wave .5s ease forwards calc(var(--i) * .02s); }
.button:focus p span { opacity: 1; animation: ub-disapear .6s ease forwards calc(var(--i) * .03s); }
@keyframes ub-wave { 30% { opacity: 1; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-3px); color: var(--primary); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes ub-slideDown { 0% { opacity: 0; transform: translateY(-20px) translateX(5px) rotate(-90deg); color: var(--primary); filter: blur(5px); } 30% { opacity: 1; transform: translateY(4px); filter: blur(0); } 50% { opacity: 1; transform: translateY(-3px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes ub-disapear { from { opacity: 1; } to { opacity: 0; transform: translateX(5px) translateY(20px); color: var(--primary); filter: blur(5px); } }
.button .state--default .icon svg { animation: ub-land .6s ease forwards; }
.button:hover .state--default .icon { transform: rotate(45deg) scale(1.25); }
.button:focus .state--default svg { animation: ub-takeOff .8s linear forwards; }
.button:focus .state--default .icon { transform: rotate(0) scale(1.25); }
@keyframes ub-takeOff { 0% { opacity: 1; } 60% { opacity: 1; transform: translateX(70px) rotate(45deg) scale(2); } 100% { opacity: 0; transform: translateX(160px) rotate(45deg) scale(0); } }
@keyframes ub-land { 0% { transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2); opacity: 0; filter: blur(3px); } 100% { transform: translateX(0) translateY(0) rotate(0); opacity: 1; filter: blur(0); } }
.button .state--default .icon:before { content: ""; position: absolute; top: 50%; height: 2px; width: 0; left: -5px; background: linear-gradient(to right, transparent, rgba(0,0,0,.5)); }
.button:focus .state--default .icon:before { animation: ub-contrail .8s linear forwards; }
@keyframes ub-contrail { 0% { width: 0; opacity: 1; } 8% { width: 15px; } 60% { opacity: .7; width: 80px; } 100% { opacity: 0; width: 160px; } }
.button .state { padding-left: 29px; z-index: 2; display: flex; position: relative; }
.button .state--sent { display: none; }
.button .state--sent svg { transform: scale(1.25); margin-right: 8px; }
.button:focus .state--default { position: absolute; }
.button:focus .state--sent { display: flex; }
.button:focus .state--sent span { opacity: 0; animation: ub-slideDown .8s ease forwards calc(var(--i) * .2s); }
.button:focus .state--sent .icon svg { opacity: 0; animation: ub-appear 1.2s ease forwards .8s; }
@keyframes ub-appear { 0% { opacity: 0; transform: scale(4) rotate(-40deg); color: var(--primary); filter: blur(4px); } 30% { opacity: 1; transform: scale(.6); filter: blur(1px); } 50% { opacity: 1; transform: scale(1.2); filter: blur(0); } 100% { opacity: 1; transform: scale(1); } }
.access .fine { font-family: var(--mono); font-size: 11px; color: var(--paper-4); margin-top: 16px; letter-spacing: 0.05em; position: relative; }
.sr-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--ink); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); display: flex; flex-direction: column; gap: 18px; transition: border-color 0.3s var(--ease); }
.testi:hover { border-color: var(--line-2); }
.testi-quote { font-family: var(--display); font-size: 19px; line-height: 1.4; color: var(--paper); font-variation-settings: "opsz" 36, "SOFT" 50; }
.testi-quote::before { content: '"'; font-family: var(--display); font-style: italic; font-size: 48px; color: var(--cyan); line-height: 0; vertical-align: -18px; margin-right: 4px; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-2); object-fit: cover; flex: none; }
.testi-name { font-size: 14px; color: var(--paper); font-weight: 500; }
.testi-role { font-size: 12px; color: var(--paper-4); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.pull { margin: 72px 0 0; padding: 64px 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.pull-quote { font-family: var(--display); font-style: italic; font-size: clamp(24px, 3vw, 38px); line-height: 1.3; color: var(--paper); max-width: 30ch; margin-inline: auto; font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1; }
.pull-quote .accent { color: var(--cyan); }
.pull-attrib { margin-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--paper-3); letter-spacing: 0.06em; }

/* ─── FAQ ─── */
.faq-list { max-width: 880px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 28px 0; display: grid; grid-template-columns: 32px 1fr 32px; gap: 24px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-num { font-family: var(--mono); font-size: 11px; color: var(--paper-4); letter-spacing: 0.1em; }
.faq-item[open] summary .faq-num { color: var(--cyan); }
.faq-item summary .faq-q { font-family: var(--display); font-size: clamp(18px, 1.8vw, 24px); color: var(--paper); font-variation-settings: "opsz" 36, "SOFT" 50; line-height: 1.3; }
.faq-item summary .faq-icon { font-family: var(--mono); color: var(--paper-3); font-size: 22px; text-align: center; transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); color: var(--cyan); }
.faq-item .faq-body { padding: 0 56px 28px; color: var(--paper-3); font-size: 15px; line-height: 1.65; max-width: 64ch; }
@media (max-width: 600px) { .faq-item .faq-body { padding: 0 0 28px; } }

/* ─── FINAL CTA ─── */
.final { padding: 150px 0; text-align: center; position: relative; overflow: hidden; }
.final-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle 600px at 30% 30%, rgba(232,121,249,0.15), transparent 60%), radial-gradient(circle 600px at 70% 70%, rgba(167,139,250,0.15), transparent 60%), radial-gradient(circle 400px at 50% 90%, rgba(251,191,36,0.08), transparent 60%); }
.final-inner { position: relative; z-index: 2; }
.final h2 { margin-bottom: 24px; max-width: 18ch; margin-inline: auto; }
.final p { font-size: 18px; color: var(--paper-3); max-width: 48ch; margin: 0 auto 36px; }

/* ─── FOOTER ─── */
footer { padding: 60px 0 32px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--paper-4); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .brand { font-size: 20px; margin-bottom: 12px; }
.footer-brand p { color: var(--paper-3); max-width: 32ch; font-family: var(--sans); font-size: 14px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-3); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--paper-2); font-family: var(--sans); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.status-foot { display: inline-flex; align-items: center; gap: 8px; }
.status-foot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; gap: 36px; text-align: center; justify-items: center; } .footer-bottom { flex-direction: column; text-align: center; gap: 12px; } }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── RÈGLES DU JEU ─── */
.rules { padding: 100px 0; }
.rule-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(251,113,133,.07), rgba(232,121,249,.05)), var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 20px; padding: 34px 38px; margin: 42px 0 28px;
  box-shadow: var(--shadow-deep), 0 0 80px -30px rgba(251,113,133,.45);
}
.streak { display: flex; gap: 6px; flex-wrap: wrap; max-width: 620px; }
.rk { width: 34px; height: 34px; border-radius: 8px; background: var(--ink-3); border: 1px solid var(--line); transform: scale(.3); opacity: 0; }
.streak.play .rk { animation: rkPop .45s cubic-bezier(.2,1.3,.4,1) forwards; }
.rk.on { background: linear-gradient(140deg, #6EE7B7, #10B981); border-color: transparent; box-shadow: 0 0 10px rgba(52,211,153,.5); }
.rk.miss { background: linear-gradient(140deg, #FB8475, #E11D48); border-color: transparent; box-shadow: 0 0 14px rgba(251,113,133,.7); }
.streak.play .rk.miss { animation: rkPop .45s cubic-bezier(.2,1.3,.4,1) forwards, missPulse 1.1s ease-in-out .9s infinite; }
@keyframes rkPop { to { transform: scale(1); opacity: 1; } }
@keyframes missPulse { 0%,100% { box-shadow: 0 0 14px rgba(251,113,133,.7); transform: scale(1); } 50% { box-shadow: 0 0 26px 2px rgba(251,113,133,1); transform: scale(1.15); } }
.rule-hero-txt { text-align: right; }
.rk-tag { font-family: var(--mono); font-size: 13px; color: var(--paper-3); }
.rk-verdict { font-family: var(--display); font-style: italic; font-size: clamp(22px, 3vw, 32px); color: var(--rose); margin-top: 6px; }
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rule-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.rule-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.rk-ico { font-size: 28px; margin-bottom: 10px; line-height: 1; }
.rk-ico img { width: 58px; height: 58px; object-fit: contain; display: block; }
.rule-card h3 { font-family: var(--head); font-size: 17px; margin-bottom: 8px; color: var(--paper); }
.rule-card p { color: var(--paper-3); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) { .rule-hero-txt { text-align: left; } }
@media (max-width: 820px) { .rule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rule-grid { grid-template-columns: 1fr; } .rk { width: 28px; height: 28px; } }

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

/* ─────────────────────────────────────────────────────────────
   MESSAGERIE INTÉGRÉE (dev ↔ testeur) — carte + fil animé
   ───────────────────────────────────────────────────────────── */
.msg { padding: 40px 0; }
.msg-card { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 24px;
  padding: 48px 52px; background: linear-gradient(180deg, var(--ink-2), var(--ink));
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04); }
.msg-glow { position: absolute; top: -50%; right: -12%; width: 60%; height: 180%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232,121,249,.20), transparent 72%); filter: blur(26px);
  animation: aurora 18s ease-in-out infinite alternate; }
.msg-top { position: relative; max-width: 640px; }
.msg-top p { margin-top: 14px; color: var(--paper-2); }

.msg-demo { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; margin-top: 40px; align-items: center; }

/* Fenêtre de chat */
.msg-win { position: relative; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(28,20,50,.7), rgba(19,14,32,.7));
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05); }
.msg-win-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(13,10,22,.5); }
.mw-app { font-family: var(--mono); font-size: 12px; color: var(--paper-3); display: inline-flex; align-items: center; gap: 8px; }
.mw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.mw-people { display: inline-flex; }
.mw-av { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink-2); object-fit: cover; }
.mw-av2 { margin-left: -9px; }

/* Hauteur FIXE + overflow hidden : quoi qu'il arrive à l'intérieur (bulles qui
   arrivent, indicateur de saisie), le cadre ne change JAMAIS de taille → la page
   en dessous ne bouge pas (crucial sur mobile). justify-content:flex-end = les
   messages s'empilent depuis le bas, comme un vrai fil de discussion. */
.msg-stream { position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 12px; padding: 22px 18px; height: 330px; overflow: hidden; }

/* Bulles : état de repos = déjà visibles (fallback sans JS / reduced-motion) */
.mb { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5;
  position: relative; }
.mb-meta { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .03em; color: var(--paper-4); }
.mb-them { align-self: flex-start; border-bottom-left-radius: 5px; color: var(--paper-2);
  background: rgba(245,240,255,.05); border: 1px solid var(--line-2); }
.mb-me { align-self: flex-end; border-bottom-right-radius: 5px; color: var(--paper);
  background: linear-gradient(180deg, rgba(232,121,249,.20), rgba(232,121,249,.10));
  border: 1px solid rgba(232,121,249,.34); }

/* État de repos = bulles visibles (fallback sans JS = les 3 messages affichés).
   Quand le script s'active, il pose .anim-on : les bulles sortent du flux
   (display:none) et reviennent une par une → effet « le message arrive », sans
   réserver l'espace donc sans faire grandir quoi que ce soit. */
[data-msg-demo].anim-on .mb { display: none; }
[data-msg-demo].anim-on .mb.in { display: block; animation: mbIn .5s var(--ease) both; }
@keyframes mbIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* Indicateur de saisie « … » */
.mb-typing { align-self: flex-start; display: none; gap: 4px; padding: 12px 15px; border-radius: 16px;
  border-bottom-left-radius: 5px; background: rgba(245,240,255,.05); border: 1px solid var(--line-2); width: max-content; }
.mb-typing.right { align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px;
  background: rgba(232,121,249,.14); border-color: rgba(232,121,249,.3); }
.mb-typing.show { display: inline-flex; }
.mb-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--paper-3); animation: mbBlink 1.1s infinite; }
.mb-typing span:nth-child(2) { animation-delay: .18s; }
.mb-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes mbBlink { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Barre de composition (décorative) */
.msg-compose { display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-top: 1px solid var(--line); background: rgba(13,10,22,.5); }
.mc-field { flex: 1; font-size: 13px; color: var(--paper-4); font-style: italic; }
.mc-send { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; }

/* Points forts à côté */
.msg-perks { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; }
.msg-perks li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--paper-2); line-height: 1.45; }
.msg-perks b { color: var(--paper); font-weight: 600; }
.mp-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; color: var(--emerald); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }

@media (max-width: 860px) {
  .msg-demo { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .msg-card { padding: 32px 22px; border-radius: 20px; }
  .mb { max-width: 88%; }
  .msg-stream { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Le JS n'active pas .anim-on en reduced-motion → les 3 bulles restent affichées.
     On neutralise juste l'aurora et l'indicateur de saisie. */
  .mb-typing { display: none !important; }
  .msg-glow { animation: none; }
}
