/* PaceBet — feuille de style partagée du site vitrine
   Identité alignée sur apps/mobile/constants/theme.ts (audit design 30/09/2026).
   Règles : or = argent uniquement · chiffres en tabular-nums · 11 px minimum. */

/* ─── Police (auto-hébergée, licence OFL : /assets/fonts/OFL.txt) ─────────── */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/space-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2'); }

/* ─── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg0: #07070F; --bg1: #0E0E1A; --bg2: #15152A; --bg3: #1C1C36; --bg4: #25254A;
  --text: #F2F2FA; --text-2: #A1A3BD; --text-3: #7B7F9E;
  --brand: #7C6FFF; --brand-text: #A39BFF; --brand-strong: #5B4DDB;
  --brand-soft: rgba(124,111,255,.12); --brand-border: rgba(124,111,255,.30);
  --money: #F5A623; --money-soft: rgba(245,166,35,.12); --money-border: rgba(245,166,35,.30);
  --success: #34D399; --success-soft: rgba(52,211,153,.12); --success-border: rgba(52,211,153,.30);
  --danger: #F87171; --danger-soft: rgba(248,113,113,.12);
  --hair: rgba(255,255,255,.08); --strong: rgba(255,255,255,.14); --hl: rgba(255,255,255,.06);
  --glass: rgba(14,14,26,.62);
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --ease: cubic-bezier(.2,0,0,1);
  --gutter: clamp(16px, 4vw, 32px);
  --container: 1160px;
  --header-h: 64px;
  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg0); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
strong, b { font-weight: 600; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(124,111,255,.4); color: #fff; }
.num, .amount { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.money { color: var(--money); }
.ok { color: var(--success); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }
summary:focus-visible { border-radius: var(--r-md); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand-strong); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: top .16s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ─── Typo ────────────────────────────────────────────────────────────────── */
.overline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-text);
}
.h-display { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.h-section { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.06; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.h-card { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.grad-text {
  background: linear-gradient(100deg, #F2F2FA 10%, #A39BFF 60%, #7C6FFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ─── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), box-shadow .24s var(--ease), color .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--brand-strong); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px -8px rgba(124,111,255,.65);
}
.btn-primary:hover { background: #6A5CF0; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 32px -8px rgba(124,111,255,.8); }
.btn-secondary { background: var(--bg3); color: var(--text); border-color: var(--hair); }
.btn-secondary:hover { background: var(--bg4); color: var(--text); border-color: var(--strong); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--hl); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 16px; }

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(7,7,15,.55);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .24s var(--ease), background-color .24s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--hair); background: rgba(7,7,15,.78); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--hl); }
.nav a[aria-current="true"], .nav a[aria-current="page"] { color: var(--text); background: var(--hl); }
.header-cta { margin-left: 8px; }
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  cursor: pointer; color: var(--text); border: 1px solid var(--hair); background: var(--bg1);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu .i-close { display: none; }
.menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  padding: 8px var(--gutter) 20px;
  background: rgba(10,10,20,.985);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hair);
  display: grid; gap: 2px;
}
.menu-panel a {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text); text-decoration: none; font-size: 17px; font-weight: 500;
  padding: 14px 4px; border-bottom: 1px solid var(--hair);
}
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a .icon { color: var(--text-3); }
@media (max-width: 899px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 400px) {
  .header-cta .label-long { display: none; }
  .site-header .container { gap: 10px; }
}
@media (min-width: 401px) { .header-cta .label-short { display: none; } }

/* ─── Sections ────────────────────────────────────────────────────────────── */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.hero + .section { padding-top: clamp(64px, 8vw, 104px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); display: grid; gap: 14px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--hair) 20%, var(--hair) 80%, transparent); }

.card {
  background: var(--bg2); border: 1px solid var(--hair); border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 28px); position: relative;
}
.card-raised { background: var(--bg3); border-color: var(--hl); box-shadow: inset 0 1px 0 var(--hl), 0 8px 24px rgba(0,0,0,.5); }
.icon-tile {
  width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-text); border: 1px solid var(--brand-border);
}
.icon-tile.money { background: var(--money-soft); color: var(--money); border-color: var(--money-border); }
.icon-tile.success { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.2;
  background: var(--bg3); border: 1px solid var(--hair); color: var(--text-2);
}
.chip-brand { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand-text); }
.chip-success { background: var(--success-soft); border-color: var(--success-border); color: var(--success); }
.chip-danger { background: var(--danger-soft); border-color: rgba(248,113,113,.3); color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
@media (prefers-reduced-motion: no-preference) {
  .dot.pulse { animation: pulse 2.4s var(--ease) infinite; }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(124,111,255,.18); } 50% { box-shadow: 0 0 0 7px rgba(124,111,255,0); } }
}

/* ─── Apparition au scroll (uniquement si JS actif et animations autorisées) ─ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-top: clamp(32px, 7vw, 96px); padding-bottom: 8px; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 50% at 72% 30%, rgba(124,111,255,.28), transparent 70%),
    radial-gradient(30% 40% at 15% 10%, rgba(91,77,219,.18), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--hl) 1px, transparent 1px), linear-gradient(90deg, var(--hl) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero-grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lead { max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { color: var(--text-3); }
@media (max-width: 959px) {
  .hero-copy { justify-items: center; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-note [aria-hidden="true"] { display: none; }
}
@media (max-width: 420px) { .hero-actions .btn { width: 100%; } }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *, .js .phone-stage { animation: rise .8s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .js .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .js .phone-stage { animation-delay: 160ms; animation-duration: 1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}

/* Stats */
.stats {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden;
  background: rgba(14,14,26,.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.stat { padding: 20px clamp(16px, 2.4vw, 28px); display: grid; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--hair); }
.stat:nth-child(3) { border-left: 0; }
.stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
.stat-value { order: -1; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.stat-label { font-size: 13px; color: var(--text-2); }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 1px solid var(--hair); }
  .stat:nth-child(n+3) { border-top: 0; }
}

/* ─── Mockup téléphone ────────────────────────────────────────────────────── */
.phone-stage { position: relative; display: grid; place-items: center; padding: 8px 0 24px; }
.phone-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(124,111,255,.35), transparent 65%); filter: blur(20px); z-index: -1; }
.phone {
  --u: min(15px, 3.7vw);
  font-size: var(--u); width: 20em; height: 42.5em; position: relative;
  border-radius: 3.1em; padding: .5em;
  background: linear-gradient(160deg, #2a2a44, #0c0c16 40%, #1a1a2c);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -20px rgba(0,0,0,.8), 0 24px 60px -30px rgba(124,111,255,.5);
  transform: rotate(-2deg);
}
.screen {
  position: relative; height: 100%; border-radius: 2.65em; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #15132e 0%, var(--bg0) 60%);
  padding: 2.6em 1.1em 0; display: flex; flex-direction: column; gap: 1em;
  font-variant-numeric: tabular-nums;
}
.island { position: absolute; top: .7em; left: 50%; transform: translateX(-50%); width: 6.4em; height: 1.75em; background: #000; border-radius: 999px; }
.status { position: absolute; top: .95em; left: 1.9em; right: 1.7em; display: flex; justify-content: space-between; align-items: center; font-size: .9em; font-weight: 600; }
.status-icons { display: flex; gap: .35em; align-items: center; }
.status-icons i { display: block; background: var(--text); border-radius: 2px; }
.sig { width: 1.1em; height: .7em; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bat { width: 1.5em; height: .72em; border-radius: .22em !important; box-shadow: 0 0 0 1px rgba(255,255,255,.5); background: linear-gradient(90deg, var(--text) 72%, transparent 72%) !important; }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-top: .6em; }
.app-top small { display: block; font-size: .8em; color: var(--text-3); line-height: 1.2; }
.app-top strong { font-size: 1.35em; letter-spacing: -.02em; line-height: 1.2; }
.app-top-right { display: flex; gap: .45em; align-items: center; }
.round-btn { width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--bg2); border: 1px solid var(--hair); display: grid; place-items: center; color: var(--text-2); }
.round-btn svg { width: 1.1em; height: 1.1em; }
.pill-balance { height: 2.3em; padding: 0 .9em; border-radius: 999px; background: var(--bg2); border: 1px solid var(--hair); display: flex; align-items: center; font-weight: 600; font-size: .92em; }
.ring-wrap { display: flex; align-items: center; gap: 1em; padding: .4em 0 .2em; }
.ring { position: relative; width: 8.4em; height: 8.4em; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { stroke: var(--bg3); }
.ring-bar { stroke: url(#ringGrad); stroke-dasharray: 326.73; stroke-dashoffset: 124.16; filter: drop-shadow(0 0 6px rgba(124,111,255,.55)); }
@media (prefers-reduced-motion: no-preference) {
  .ring-bar { animation: ringfill 1.6s .5s var(--ease) both; }
  @keyframes ringfill { from { stroke-dashoffset: 326.73; } }
}
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center b { font-size: 1.1em; color: var(--brand-text); font-weight: 700; }
.ring-meta { display: grid; gap: .3em; min-width: 0; }
.ring-meta .big { font-size: 2.2em; font-weight: 700; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.ring-meta .big span { font-size: .45em; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: .15em; }
.ring-meta .sub { font-size: .8em; color: var(--text-2); line-height: 1.35; }
.ring-meta .link { font-size: .8em; color: var(--brand-text); font-weight: 600; display: flex; align-items: center; gap: .2em; }
.ring-meta .link svg { width: 1em; height: 1em; }
.app-section { display: flex; justify-content: space-between; align-items: baseline; margin-top: .2em; }
.app-section b { font-size: 1.05em; letter-spacing: -.01em; }
.app-section span { font-size: .8em; color: var(--brand-text); font-weight: 600; }
.ch-card { background: var(--bg2); border: 1px solid var(--hair); border-radius: 1.2em; padding: .95em; display: grid; gap: .75em; }
.ch-row { display: flex; align-items: center; gap: .75em; }
.ch-ico { width: 2.5em; height: 2.5em; border-radius: .8em; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex-shrink: 0; }
.ch-ico svg { width: 1.25em; height: 1.25em; }
.ch-title { font-weight: 600; font-size: .95em; line-height: 1.25; }
.ch-sub { font-size: .76em; color: var(--text-3); line-height: 1.3; }
.ch-txt { min-width: 0; }
.ch-title, .ch-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-stake { margin-left: auto; line-height: 1.2; white-space: nowrap; }
.ch-stake small { font-size: .72em; color: var(--text-3); }
.ch-stake b { font-size: .95em; color: var(--money); }
.bar { height: .45em; border-radius: 999px; background: var(--bg3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-strong), var(--brand)); }
.avatars { display: flex; align-items: center; }
.avatars i { width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid var(--bg2); margin-left: -.45em; }
.avatars i:first-child { margin-left: 0; }
.avatars small { margin-left: .5em; font-size: .75em; color: var(--text-3); }
.ch-foot { display: flex; justify-content: space-between; align-items: center; }
.ch-foot .chip-mini { font-size: .72em; font-weight: 600; color: var(--success); background: var(--success-soft); border-radius: 999px; padding: .25em .7em; }
.tabbar {
  position: absolute; left: .8em; right: .8em; bottom: .8em; height: 4em; border-radius: 1.6em;
  background: rgba(20,20,38,.62); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  display: flex; justify-content: space-around; align-items: center; color: var(--text-3);
}
.tabbar svg { width: 1.4em; height: 1.4em; }
.tabbar .active { color: var(--brand-text); }
.tabbar .plus { width: 2.7em; height: 2.7em; border-radius: 50%; background: var(--brand-strong); color: #fff; display: grid; place-items: center; box-shadow: 0 0 16px rgba(124,111,255,.45); }
.phone-rico {
  position: absolute; left: max(-6%, calc(50% - 20em * .5 - 8.5em)); bottom: -2%; font-size: var(--u, 15px);
  width: 44%; max-width: 230px; z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.6));
}
.float-chip {
  position: absolute; left: calc(50% + 105px); bottom: 20%; z-index: 2;
  font-size: 13px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: rgba(21,21,42,.7); border: 1px solid var(--strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.7);
}
.float-chip .icon-tile { width: 32px; height: 32px; border-radius: 10px; }
.float-chip div { white-space: nowrap; }
.float-chip b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.float-chip small { display: block; font-size: 12px; color: var(--text-3); line-height: 1.2; }
@media (max-width: 520px) {
  .phone-rico { width: 36%; left: 0; }
}
@media (max-width: 1099px) { .float-chip { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .float-chip { animation: floaty 6s ease-in-out infinite; }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}

/* ─── Étapes ──────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { display: grid; gap: 16px; align-content: start; overflow: hidden; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--brand-border); font-variant-numeric: tabular-nums; }
.step p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.step::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(163,155,255,.45), transparent);
}

/* ─── Pot ─────────────────────────────────────────────────────────────────── */
.pot-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 980px) { .pot-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; } }
.pot-aside { display: grid; gap: 20px; }
.pot-aside p { color: var(--text-2); }
.rules { list-style: none; display: grid; gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.rules li .icon { color: var(--success); margin-top: 2px; }
.rules li strong { color: var(--text); }
.pot-rico { width: 170px; margin-top: 8px; }
@media (max-width: 979px) { .pot-rico { display: none; } }

.pot-card { padding: 0; overflow: hidden; background: linear-gradient(180deg, var(--bg2), #111124); }
.pot-card-head { padding: 22px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.pot-card-head h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pot-flow { list-style: none; display: grid; }
.pot-flow > li { padding: 22px clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; position: relative; }
.pot-flow > li + li { border-top: 1px dashed var(--hair); }
.flow-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg3); color: var(--text-2); border: 1px solid var(--hair); }
.flow-body { display: grid; gap: 12px; min-width: 0; }
.flow-title { font-size: 14px; font-weight: 600; color: var(--text-2); }
.players { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.player { border-radius: var(--r-md); padding: 12px 8px; text-align: center; display: grid; gap: 6px; justify-items: center; background: var(--bg3); border: 1px solid var(--hair); }
.player .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.player .amt { font-weight: 600; font-size: 14px; }
.player .st { font-size: 11px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; line-height: 1.2; }
.player .st .icon { width: 13px; height: 13px; stroke-width: 2.25; }
.player.held { border-color: var(--success-border); }
.player.held .st { color: var(--success); }
.player.miss { opacity: .75; border-style: dashed; }
.player.miss .st { color: var(--text-3); }
.player.miss .amt { text-decoration: line-through; text-decoration-color: var(--text-3); color: var(--text-2); }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.equation .tok { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg3); border: 1px solid var(--hair); font-weight: 600; }
.equation .tok small { font-size: 12px; font-weight: 500; color: var(--text-3); }
.equation .op { color: var(--text-3); font-weight: 500; }
.equation .tok.gold { background: var(--money-soft); border-color: var(--money-border); color: var(--money); }
.flow-note { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.split { display: grid; gap: 10px; }
.split-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; }
.split-bar .s-stake { flex: 1000 1 0; background: linear-gradient(90deg, var(--brand-strong), var(--brand)); border-radius: 999px 0 0 999px; }
.split-bar .s-share { flex: 306 1 0; background: var(--money); border-radius: 0 999px 999px 0; box-shadow: 0 0 14px rgba(245,166,35,.45); }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); }
.split-legend span { display: inline-flex; align-items: center; gap: 8px; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; }
.result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.result .big { font-size: clamp(40px, 6vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--money); text-shadow: 0 0 32px rgba(245,166,35,.25); }
.result span { color: var(--text-2); font-size: 15px; }
.pot-foot { padding: 16px clamp(20px, 3vw, 32px); background: rgba(7,7,15,.4); border-top: 1px solid var(--hair); font-size: 13px; color: var(--text-3); line-height: 1.55; }
@media (max-width: 400px) {
  .players { gap: 6px; }
  .player { padding: 10px 4px; }
  .player .amt { font-size: 13px; }
  .pot-flow > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ─── Sources ─────────────────────────────────────────────────────────────── */
.sources-grid { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .sources-grid { grid-template-columns: .9fr 1.1fr; } }
.sources-intro { display: grid; gap: 16px; align-content: start; }
.sources-intro p { color: var(--text-2); font-size: 16px; }
.source-list { list-style: none; display: grid; gap: 0; padding-block: 8px; }
.source { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.source + .source { border-top: 1px solid var(--hair); }
.source b { font-size: 16px; font-weight: 600; }
.source small { margin-left: auto; font-size: 14px; color: var(--text-2); text-align: right; }
.source .icon-tile { width: 38px; height: 38px; border-radius: 11px; }

/* ─── Fonctionnalités (bento) ─────────────────────────────────────────────── */
.bento { display: grid; gap: 16px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { display: grid; gap: 14px; align-content: start; transition: border-color .24s var(--ease), transform .24s var(--ease); }
.feature:hover { border-color: var(--strong); }
.feature p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ─── Sécurité ────────────────────────────────────────────────────────────── */
.secure-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .secure-grid { grid-template-columns: 1.2fr 1fr; } }
.secure-main { display: grid; gap: 16px; align-content: start; background: radial-gradient(120% 90% at 0% 0%, rgba(124,111,255,.14), transparent 55%), var(--bg2); }
.secure-main p { color: var(--text-2); font-size: 15px; }
.limits { display: grid; gap: 12px; }
.limit { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.limit .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.limit .l { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.caution { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--hair); background: var(--bg1); font-size: 14px; color: var(--text-2); }
.caution .icon { color: var(--text-3); margin-top: 1px; }
.trust { margin-top: 40px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.trust-label { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.trust-badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trust-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hair); background: var(--bg1); font-size: 14px; color: var(--text-2); }
.trust-badges .icon { color: var(--brand-text); width: 17px; height: 17px; }
.badge-18 { font-size: 10px; font-weight: 700; border: 1.5px solid var(--brand-text); color: var(--brand-text); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; letter-spacing: -.04em; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: start; } .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--bg2); border: 1px solid var(--hair); border-radius: var(--r-md); transition: border-color .24s var(--ease), background-color .24s var(--ease); }
.faq-list details[open] { border-color: var(--brand-border); background: var(--bg2); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-size: 16px; font-weight: 600; line-height: 1.4; min-height: 56px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .chev { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); color: var(--text-2); flex-shrink: 0; transition: transform .24s var(--ease), background-color .24s var(--ease), color .24s var(--ease); }
.faq-list details[open] summary .chev { transform: rotate(180deg); background: var(--brand-soft); color: var(--brand-text); }
.faq-list summary:hover .chev { color: var(--text); }
.faq-body { padding: 0 20px 20px; color: var(--text-2); font-size: 15px; line-height: 1.7; max-width: 68ch; }

/* ─── Waitlist ────────────────────────────────────────────────────────────── */
.waitlist {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(28px, 6vw, 64px);
  background: radial-gradient(80% 120% at 100% 0%, rgba(124,111,255,.35), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(91,77,219,.25), transparent 60%), var(--bg2);
  border: 1px solid var(--brand-border);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 860px) { .waitlist { grid-template-columns: 1fr auto; } }
.waitlist-copy { display: grid; gap: 16px; max-width: 560px; }
.waitlist-copy .lead { font-size: 17px; }
.counter { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text); }
.waitlist-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(7,7,15,.6); border: 1px solid var(--strong); max-width: 520px; }
.waitlist-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.waitlist-input { flex: 1 1 0; width: 0; min-width: 0; background: transparent; border: 0; outline: none; padding: 0 16px; font-size: 16px; color: var(--text); min-height: 48px; }
.waitlist-input::placeholder { color: var(--text-3); }
.waitlist-input:focus-visible { outline: none; }
.waitlist-note { font-size: 13px; color: var(--text-3); }
.waitlist-note a { color: var(--text-2); }
.waitlist-rico { width: clamp(160px, 20vw, 240px); filter: drop-shadow(0 24px 32px rgba(0,0,0,.55)); justify-self: center; }
@media (max-width: 859px) { .waitlist-rico { display: none; } }
@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; border-radius: var(--r-lg); padding: 8px; }
  .waitlist-form .btn { width: 100%; }
  .waitlist-input { padding: 0 12px; width: 100%; flex: none; }
}
.wl-success { display: grid; gap: 8px; justify-items: start; padding: 8px 0; }
.wl-success .icon-tile { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 4px; }
.success-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.success-sub { font-size: 15px; color: var(--text-2); }

/* Barre collante mobile */
.sticky-cta {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90;
  padding: 10px; border-radius: 22px; display: none; gap: 6px;
  background: rgba(14,14,26,.72); border: 1px solid var(--strong);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta-row { display: flex; gap: 8px; }
.sticky-cta { grid-template-columns: minmax(0, 1fr); }
.sticky-cta input { flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; border-radius: 999px; border: 1px solid var(--hair); background: var(--bg1); padding: 0 14px; font-size: 16px; color: var(--text); outline: none; }
.sticky-cta input:focus { border-color: var(--brand); }
.sticky-cta input::placeholder { color: var(--text-3); }
.sticky-cta .btn { min-height: 44px; padding: 8px 16px; white-space: nowrap; }
.sticky-cta-note { font-size: 11px; color: var(--text-3); text-align: center; }
.sticky-done { text-align: center; padding: 8px 0; font-size: 15px; font-weight: 600; color: var(--brand-text); display: flex; gap: 8px; justify-content: center; align-items: center; }
@media (max-width: 767px) { .js .sticky-cta { display: grid; } .js body.has-sticky .site-footer { padding-bottom: 120px; } }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hair); background: var(--bg1); margin-top: clamp(24px, 4vw, 48px); padding: 48px 0 32px; font-size: 14px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; max-width: 360px; }
@media (min-width: 820px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--text-3); font-size: 14px; line-height: 1.55; }
.footer-col h2 { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { color: var(--text-2); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-3); font-size: 13px; }

/* ─── Pages légales / lecture ─────────────────────────────────────────────── */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: -40% -20% auto; height: 500px; background: radial-gradient(40% 60% at 30% 30%, rgba(124,111,255,.2), transparent 70%); z-index: -1; pointer-events: none; }
.page-hero .container, .prose-wrap { max-width: calc(72ch + var(--gutter) * 2); }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; margin: 12px 0 14px; text-wrap: balance; }
.meta { font-size: 13px; color: var(--text-3); }
.prose-wrap { margin-inline: auto; padding-inline: var(--gutter); padding-bottom: 32px; }
.legal-intro { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: var(--brand-soft); border: 1px solid var(--brand-border); margin-bottom: 28px; }
.legal-intro .icon-tile { flex-shrink: 0; }
.intro-text { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.toc { border: 1px solid var(--hair); background: var(--bg2); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 40px; }
.toc h2 { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 0 24px; }
@media (min-width: 700px) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc a { display: block; padding: 7px 0; color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.4; border-bottom: 1px solid var(--hl); }
.toc a:hover { color: var(--brand-text); }
.legal-section { padding: 28px 0; border-top: 1px solid var(--hair); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section .section-title { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; margin-bottom: 14px; }
.section-body { font-size: 16.5px; line-height: 1.75; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; max-width: 68ch; }
.section-body strong { color: var(--text); }
.back-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--text-3); text-decoration: none; }
.back-top:hover { color: var(--brand-text); }

/* Support */
.contact-card { display: grid; gap: 14px; justify-items: start; margin-bottom: 48px; background: radial-gradient(120% 100% at 100% 0%, rgba(124,111,255,.18), transparent 60%), var(--bg2); border-color: var(--brand-border); }
.contact-card h2 { font-size: 22px; letter-spacing: -.02em; }
.contact-card p { color: var(--text-2); font-size: 15px; }
.contact-card .note { font-size: 13px; color: var(--text-3); }
.topic-list { display: grid; gap: 12px; }
.topic { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.topic h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.topic p { font-size: 15px; color: var(--text-2); line-height: 1.7; }
@media (max-width: 420px) { .topic { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.h-sub { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 16px; }

/* Pages courtes (merci, 404, connect) */
.center-page { display: grid; place-items: center; padding: clamp(40px, 8vw, 96px) var(--gutter); position: relative; overflow: hidden; }
.center-page::before { content: ''; position: absolute; left: 50%; top: 0; width: 700px; height: 700px; transform: translateX(-50%); background: radial-gradient(circle, rgba(124,111,255,.18), transparent 65%); z-index: -1; pointer-events: none; }
.center-card { max-width: 460px; width: 100%; text-align: center; display: grid; gap: 16px; justify-items: center; }
.center-card h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.center-card p { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.center-card .help { font-size: 14px; color: var(--text-3); margin-top: 8px; }
.center-card .note { font-size: 13px; color: var(--text-3); }
.center-rico { width: 170px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.55)); margin-bottom: 4px; }
.status-icon { width: 64px; height: 64px; border-radius: 20px; }
.status-icon .icon { width: 30px; height: 30px; }
.mini-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; font-size: 13px; margin-top: 12px; }
.mini-legal a { color: var(--text-3); }
.mini-legal a:hover { color: var(--text); }
.header-min .container { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .sticky-cta, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .section-body, .intro-text { color: #000; }
}
