/* Palette neutre : aucune couleur associée à un parti, pas de bleu-blanc-rouge (éviter l'air officiel). */
:root {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --ink: #14121f;
  --ink-2: #4a4659;
  --ink-3: #75708a;
  --line: #e4e1ee;
  --accent: #6b4dff;
  --accent-ink: #ffffff;
  --accent-soft: #ece8ff;
  --ok: #1f7a4d;
  --err: #b42318;
  --phone: #14121f;
  --screen: #1d1a2c;
  --screen-ink: #f2f0fa;
  --screen-ink-2: #a9a3c2;
  --bar: #6b4dff;
  --bar-muted: #4b4566;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100e19;
    --surface: #1a1727;
    --ink: #f2f0fa;
    --ink-2: #c4bfd8;
    --ink-3: #8d88a6;
    --line: #2c2840;
    --accent: #8f78ff;
    --accent-ink: #100e19;
    --accent-soft: #241f3d;
    --ok: #4ccb8a;
    --err: #ff8a7a;
    --phone: #000000;
    --screen: #1d1a2c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 18px; letter-spacing: -0.01em; }
.brand strong { color: var(--accent); }
.brand__mark { width: 26px; height: 26px; color: var(--accent); }
.top__cta { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.top__cta:hover { border-color: var(--accent); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } .hero { padding: 88px 0 104px; } }

.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: beat 2s infinite; }

h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 800; margin-top: 20px; }
.accent { color: var(--accent); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); margin-top: 20px; max-width: 34em; }

/* Boutons des stores */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 12px 20px;
  border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: 18px; line-height: 1.15; transition: transform .15s ease;
}
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.75; }
.store:not([aria-disabled="true"]):hover { transform: translateY(-2px); }
.store[aria-disabled="true"] { cursor: default; opacity: 0.55; }
@media (max-width: 480px) { .store { flex: 1 1 100%; } }
.stores__note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

.disclaimer { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* Maquette du téléphone */
.hero__visual { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { position: relative; width: min(300px, 82vw); aspect-ratio: 9 / 18.5; background: var(--phone); border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(40, 20, 120, 0.35); }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%); background: var(--phone); border-radius: 12px; z-index: 1; }
.screen { height: 100%; background: var(--screen); color: var(--screen-ink); border-radius: 34px; padding: 54px 18px 18px; display: flex; flex-direction: column; }
.screen__head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--screen-ink-2); }
.screen__live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--screen-ink); }
.screen__dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5d6c; animation: beat 1.6s infinite; }
.bars { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.bars li { position: relative; display: flex; justify-content: space-between; font-size: 13px; padding: 7px 10px; border-radius: 8px; overflow: hidden; isolation: isolate; }
.bars li::before { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 3.4%); background: var(--bar); opacity: 0.55; z-index: -1; border-radius: 8px; transform-origin: left; animation: grow 1.2s cubic-bezier(.2,.7,.2,1) both; }
.bars li.muted::before { background: var(--bar-muted); }
.bars b { font-variant-numeric: tabular-nums; }
.trend { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.trend__label { font-size: 11px; color: var(--screen-ink-2); }
.pulse { display: block; width: 100%; height: 64px; margin-top: 6px; color: #8f78ff; }
.screen__note { font-size: 10.5px; color: var(--screen-ink-2); text-align: center; margin-top: 8px; }
.visual__caption { font-size: 12px; color: var(--ink-3); }

/* Sections */
section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.how, .rules { padding: 64px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.steps h3 { font-size: 18px; margin-top: 14px; }
.steps p { color: var(--ink-2); margin-top: 6px; font-size: 15px; }

.rules__grid { display: grid; gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .rules__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .rules__grid { grid-template-columns: repeat(3, 1fr); } }
.rules article { background: var(--surface); padding: 22px; }
.rules h3 { font-size: 16px; }
.rules p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

.privacy { padding: 64px 0 80px; }
.privacy__inner { background: var(--accent-soft); border-radius: 22px; padding: 36px 28px; }
.privacy ul { margin: 18px 0 24px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.button-ghost { display: inline-block; font-weight: 700; text-decoration: none; padding: 12px 18px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-3); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Pages légales */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal .updated { color: var(--ink-3); font-size: 14px; }
.legal .todo { background: #fff3c4; color: #5c4400; padding: 0 4px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { .legal .todo { background: #4a3b00; color: #ffe08a; } }

/* Animations */
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(143, 120, 255, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(143, 120, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 120, 255, 0); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; }
  html { scroll-behavior: auto; }
}
