/* Kaizmax — site vitrine. Tokens alignés sur le design system de l'app. */
:root {
  --bg: #0E1116;
  --surface: #161A22;
  --card: #1C212B;
  --card-high: #232936;
  --stroke: #2A3140;
  --accent: #4ADE80;
  --accent-dim: #16A34A;
  --on-accent: #06210F;
  --energy: #FB923C;
  --text: #F4F6FA;
  --muted: #9AA3B2;
  --faint: #868FA2; /* contraste AA ≥4.5:1 sur le fond sombre */
  --protein: #60A5FA;
  --carbs: #FBBF24;
  --fat: #F472B6;
  --gold: #D4B87A;
  --grad: linear-gradient(135deg, #A3E635, #4ADE80 55%, #2DD4BF);
  --grad-cta: linear-gradient(135deg, #4ADE80, #16A34A);
  --grad-energy: linear-gradient(135deg, #FB923C, #EA580C);
  --shadow-card: 0 10px 26px rgba(0, 0, 0, 0.38);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.2; }

a { color: var(--accent); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Sélecteur de langue + zone droite du header */
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 2px;
}
.lang-switch button {
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.lang-switch button.on {
  background: var(--card-high);
  color: var(--text);
}

/* Pages légales : bloc FR/EN basculé selon body[data-lang]. FR par
   défaut (avant que le JS ne s'exécute), EN masqué. */
.lang-en { display: none; }
body[data-lang="en"] .lang-en { display: revert; }
body[data-lang="en"] .lang-fr { display: none; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary {
  background: var(--grad-cta);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.28);
}
.btn-outline { border: 1px solid var(--stroke); color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 72px;
}

/* Fond « aurora » — halos doux, comme dans l'app. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 480px; height: 480px;
  top: -160px; left: -180px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.13), transparent 70%);
}
.hero::after {
  width: 420px; height: 420px;
  top: 40px; right: -160px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 70%);
}

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 18px; }
.hero h1 em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero p.lead { color: var(--muted); font-size: 1.12rem; margin-bottom: 28px; max-width: 480px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.store-note { color: var(--faint); font-size: 0.85rem; margin-top: 14px; }

.hero-badges { display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.hero-badge .dot { color: var(--accent); }

/* ── Mockup téléphone (pur CSS) ─────────────────────────────────────── */
.phone-wrap { display: flex; justify-content: center; }

.phone {
  width: 290px;
  border-radius: 38px;
  border: 1px solid var(--stroke);
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 8px #05070a;
  padding: 18px 14px;
}

.phone .notch {
  width: 90px; height: 22px;
  background: #05070a;
  border-radius: 12px;
  margin: 0 auto 14px;
}

.phone .p-date { font-family: 'Sora'; font-weight: 700; font-size: 0.95rem; }
.phone .p-sub { color: var(--muted); font-size: 0.72rem; margin-bottom: 12px; }

.p-card {
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Jauge du jour : anneau (donut conic-gradient) + barres macros. */
.p-gauge { display: flex; align-items: center; gap: 14px; }

.p-ring {
  width: 86px; height: 86px;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, #A3E635 0%, #4ADE80 30%, #2DD4BF 52%, var(--card-high) 52% 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.p-ring .hole {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  text-align: center;
}
.p-ring .hole .num { font-family: 'Sora'; font-weight: 700; font-size: 0.95rem; display: block; }
.p-ring .hole .sub { color: var(--muted); font-size: 0.55rem; display: block; }

.p-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.p-bar .lbl {
  display: flex; justify-content: space-between;
  font-size: 0.6rem; color: var(--muted); margin-bottom: 3px;
}
.p-bar .lbl b { font-weight: 700; }
.p-bar .track { height: 5px; border-radius: 3px; background: var(--card-high); overflow: hidden; }
.p-bar .fill { height: 100%; border-radius: 3px; }
.p-bar.protein .fill { width: 64%; background: var(--protein); }
.p-bar.protein .lbl b { color: var(--protein); }
.p-bar.carbs .fill { width: 48%; background: var(--carbs); }
.p-bar.carbs .lbl b { color: var(--carbs); }
.p-bar.fat .fill { width: 55%; background: var(--fat); }
.p-bar.fat .lbl b { color: var(--fat); }

.p-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.78rem; }
.p-row + .p-row { border-top: 1px solid var(--stroke); }
.p-check { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 0.6rem; }
.p-check.done { background: var(--accent); color: var(--on-accent); }
.p-check.todo { border: 1.5px solid var(--faint); }
.p-row .kc { margin-left: auto; color: var(--accent); font-size: 0.68rem; }
.p-row.muted-row { color: var(--muted); }

.p-workout { border-color: var(--energy); }
.p-workout .head { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; }
.p-workout .head .ic { color: var(--energy); }
.p-workout .ex { color: var(--muted); font-size: 0.72rem; padding: 2px 0; display: flex; }
.p-workout .ex span:last-child { margin-left: auto; color: var(--text); font-weight: 600; }

.p-btn {
  background: var(--grad-energy);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px;
  margin-top: 8px;
}

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding: 76px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.feature {
  background: var(--card);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.feature .icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--card);
  border-radius: 20px;
  padding: 26px 22px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: 'Sora';
  font-weight: 700;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: var(--on-accent);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* Sports */
.sports { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.sport-chip {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.92rem;
  color: var(--text);
}
.sport-chip span { margin-right: 6px; }

/* Moments signature */
.signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.signature {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.signature .big { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.signature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.signature p { color: var(--muted); font-size: 0.92rem; }
.signature .tonnage {
  font-family: 'Sora';
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 6px;
}

/* Privacy strip */
.privacy-strip {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 24px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.privacy-strip .lock { font-size: 1.6rem; }
.privacy-strip h3 { margin-bottom: 6px; font-size: 1.05rem; }
.privacy-strip p { color: var(--muted); font-size: 0.92rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 18px; justify-content: center; }
.plan {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.plan.premium { border-color: var(--gold); }
.plan .name { font-family: 'Sora'; font-weight: 700; font-size: 1.1rem; }
.plan .price { font-family: 'Sora'; font-size: 1.9rem; font-weight: 700; margin: 8px 0 18px; }
.plan .price small { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; }
.plan li { padding: 7px 0; color: var(--muted); font-size: 0.93rem; }
.plan li::before { content: '✓  '; color: var(--accent); font-weight: 700; }
.plan.premium li::before { color: var(--gold); }
.plan .tag {
  float: right;
  background: rgba(212, 184, 122, 0.14);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }

/* CTA finale */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; }
.cta-final p { color: var(--muted); margin-bottom: 26px; }

/* Footer */
footer { border-top: 1px solid var(--stroke); padding: 36px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.85rem;
}
.footer-inner a { color: var(--muted); margin-left: 18px; }
.footer-inner a:hover { color: var(--text); }

/* Pages légales */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 1.9rem; margin-bottom: 8px; }
.legal .updated { color: var(--faint); font-size: 0.85rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 0.95rem; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal strong { color: var(--text); }
.legal .notice {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ── V3 — Interactions vivantes ─────────────────────────────────────── */

/* Barre de progression de scroll */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 100;
}

/* Apparition au scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* Téléphone : flottement + tilt 3D */
.phone-wrap {
  perspective: 1100px;
  animation: float 5.5s ease-in-out infinite;
}
.phone {
  transition: transform 0.25s ease;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Anneau animable (la transition du conic-gradient passe par @property) */
@property --ringp {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 52%;
}
.p-ring {
  --ringp: 52%;
  background: conic-gradient(
    from -90deg,
    #A3E635 0%,
    #4ADE80 calc(var(--ringp) * 0.58),
    #2DD4BF var(--ringp),
    var(--card-high) var(--ringp) 100%
  );
  transition: --ringp 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.p-bar .fill { transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.p-check { transition: all 0.25s ease; }

/* Ticker défilant */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: var(--surface);
  padding: 14px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker 36s linear infinite;
}
.ticker span {
  display: inline-block;
  margin-right: 44px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.ticker b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Calculateur de besoins */
.calc-card {
  background: var(--card);
  border-radius: 24px;
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-fields .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  background: var(--card-high);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); }

.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1;
  background: var(--card-high);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.seg button.on {
  background: var(--grad-cta);
  color: var(--on-accent);
  border-color: transparent;
}

.calc-result {
  text-align: center;
  padding: 18px 10px;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.calc-result.show { opacity: 1; }
.calc-result .kcal {
  font-family: 'Sora';
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.calc-result .unit { color: var(--muted); margin-bottom: 18px; }
.calc-macros { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.calc-macro {
  background: var(--card-high);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 86px;
}
.calc-macro .v { font-family: 'Sora'; font-weight: 700; font-size: 1.05rem; display: block; }
.calc-macro .l { font-size: 0.7rem; color: var(--muted); }
.calc-macro.protein .v { color: var(--protein); }
.calc-macro.carbs .v { color: var(--carbs); }
.calc-macro.fat .v { color: var(--fat); }
#calc-note { color: var(--muted); font-size: 0.88rem; min-height: 2.6em; }
.calc-disclaimer { color: var(--faint); font-size: 0.75rem; margin-top: 12px; }

@media (max-width: 860px) {
  .calc-card { grid-template-columns: 1fr; }
}

/* ── V4 — Trois langages visuels distincts ──────────────────────────── */

/* Bento (fonctionnalités) */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  background: var(--card);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.tile.w2 { grid-column: span 2; }
.tile .icon { font-size: 1.5rem; display: block; margin-bottom: 12px; }
.tile h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 0.92rem; }
.tile.hero-tile {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-high);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
}
.mini-chip b { color: var(--accent); }
.mini-chip.energy b { color: var(--energy); }

.gear-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.gear-tags span {
  font-size: 0.72rem;
  background: var(--card-high);
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--muted);
}

/* Timeline (comment ça marche) */
.timeline { max-width: 620px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 19px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(#A3E635, #4ADE80, #2DD4BF);
  opacity: 0.45;
}
.t-step { position: relative; padding: 0 0 36px 66px; }
.t-step:last-child { padding-bottom: 0; }
.t-step .dot {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 13px;
  background: var(--grad);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-family: 'Sora';
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(74, 222, 128, 0.3);
}
.t-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.t-step p { color: var(--muted); font-size: 0.95rem; }

/* Moments signature (rangées alternées avec visuels CSS) */
.moment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 38px 0;
}
.moment + .moment { border-top: 1px solid var(--stroke); }
.moment .vis { display: flex; justify-content: center; position: relative; }
.moment.flip .txt { order: 2; }
.moment h3 { font-size: 1.3rem; margin-bottom: 10px; }
.moment p { color: var(--muted); }

/* Visuel 1 : mini carte de partage + confettis */
.mini-share {
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--card-high);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}
.mini-share .head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mini-share .mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--grad);
  color: var(--on-accent);
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
}
.mini-share .head span { font-family: 'Sora'; font-weight: 700; font-size: 0.9rem; }
.mini-share .big {
  font-family: 'Sora';
  font-weight: 700;
  font-size: 1.7rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mini-share .sub { color: var(--muted); font-size: 0.78rem; margin-bottom: 12px; }
.mini-share .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-share .meta span {
  background: var(--card);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.7rem;
}
.confetti-dot {
  position: absolute;
  width: 9px; height: 6px;
  border-radius: 2px;
  opacity: 0.9;
  animation: float 4s ease-in-out infinite;
}

/* Visuel 2 : mini heatmap */
.mini-heat {
  display: grid;
  grid-template-columns: repeat(10, 18px);
  grid-auto-rows: 18px;
  gap: 4px;
}
.mini-heat i { border-radius: 5px; background: var(--card-high); }
.mini-heat i.l1 { background: rgba(74, 222, 128, 0.32); }
.mini-heat i.l2 { background: rgba(74, 222, 128, 0.62); }
.mini-heat i.l3 { background: var(--accent); }

/* Visuel 3 : compteur tonnage */
.count-wrap { text-align: center; }
.count-big {
  font-family: 'Sora';
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  display: block;
}
.count-sub { color: var(--muted); font-size: 1.05rem; margin-top: 6px; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .tile.w2 { grid-column: auto; }
  .moment { grid-template-columns: 1fr; gap: 24px; }
  .moment.flip .txt { order: 0; }
  .moment .vis { order: 1; }
}

/* ── V5 — Polish : spotlight, sport interactif, CTA aurora ──────────── */

/* Halo qui suit le curseur sur les tuiles bento */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(74, 222, 128, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.tile:hover::after { opacity: 1; }

/* Reflet balayant sur les CTA */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg,
    transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 135%; }

/* Reflet d'écran sur le téléphone (suit le tilt via --shx) */
.phone { position: relative; }
.phone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 38px;
  background: linear-gradient(115deg,
    transparent calc(var(--shx, 42%) - 14%),
    rgba(255, 255, 255, 0.06) var(--shx, 42%),
    transparent calc(var(--shx, 42%) + 14%));
  pointer-events: none;
}

/* Ticker : fondu sur les bords + pause au survol */
.ticker {
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Scrollspy : le lien de nav de la section visible s'allume */
.nav-links a.active { color: var(--accent); }

/* Heatmap : cascade d'apparition + réaction au survol */
.mini-heat i {
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 9ms);
}
.mini-heat.go i { opacity: 1; transform: none; }
.mini-heat.go i:hover { transform: scale(1.3); transition-delay: 0s; }

/* Sélecteur de sport interactif */
.sports-label { text-align: center; color: var(--muted); margin: 52px 0 18px; }
.sport-chip {
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.sport-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.sport-chip.on {
  border-color: transparent;
  background:
    linear-gradient(var(--card-high), var(--card-high)) padding-box,
    var(--grad) border-box;
}

.sport-week-wrap { max-width: 720px; margin: 22px auto 0; overflow-x: auto; }
.sport-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-width: 540px;
}
.sw-day {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  animation: swIn 0.35s ease both;
}
.sw-day .d { display: block; font-size: 0.65rem; color: var(--faint); margin-bottom: 3px; }
.sw-day b { font-size: 0.78rem; font-weight: 600; }
.sw-day.rest { opacity: 0.45; }
.sw-day.rest b { color: var(--faint); font-weight: 400; }
.sw-day.club { background: transparent; border-color: var(--stroke); }
.sw-day.club b { color: var(--muted); }
.sw-day.prep { border-color: var(--energy); background: rgba(251, 146, 60, 0.09); }
.sw-day.prep b { color: var(--energy); }
@keyframes swIn {
  from { opacity: 0; transform: translateY(10px); }
}
.sport-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 16px auto 0;
  min-height: 2.8em;
  max-width: 560px;
}

/* FAQ : la réponse glisse en s'ouvrant */
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-5px); }
}
.faq details[open] p { animation: faqIn 0.28s ease; }

/* CTA finale en carte aurora */
.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 28px;
  border-radius: 28px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-card);
}
.cta-card::before {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  top: -400px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-card .store-note { margin-top: 18px; }

/* Accessibilité : motion réduite */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── V6 — Carrousel téléphone, menu mobile, liste d'attente ─────────── */

/* Carrousel d'écrans dans le téléphone. Le 1er écran reste dans le flux
   (il définit la hauteur), les suivants sont superposés en absolu. */
.p-screens { position: relative; }
.p-screen {
  opacity: 0;
  transform: translateX(14px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.p-screen + .p-screen { position: absolute; inset: 0; }
.p-screen.act { opacity: 1; transform: none; pointer-events: auto; }

.p-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.p-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--card-high);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.p-dots span.on { background: var(--accent); transform: scale(1.3); }

/* Écran 2 : séance en cours */
.p-rest { text-align: center; border: 1px solid var(--energy); }
.rest-num { font-family: 'Sora'; font-weight: 700; font-size: 1.8rem; color: var(--energy); }
.rest-lbl { color: var(--muted); font-size: 0.65rem; margin-bottom: 8px; }
.rest-bar { height: 5px; border-radius: 3px; background: var(--card-high); overflow: hidden; }
.rest-bar i {
  display: block; height: 100%;
  background: var(--grad-energy);
  border-radius: 3px;
  animation: restbar 8s linear infinite;
}
@keyframes restbar { from { width: 100%; } to { width: 0; } }
.kc.sugg { color: var(--energy); font-weight: 700; }
.p-tip { font-size: 0.7rem; color: var(--muted); }

/* Écran 3 : stats */
.p-stat { text-align: center; }
.p-stat-big {
  font-family: 'Sora'; font-weight: 700; font-size: 1.6rem;
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.p-stat-sub { color: var(--muted); font-size: 0.68rem; }
.p-mini-heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.p-mini-heat i { aspect-ratio: 1; border-radius: 3px; background: var(--card-high); }
.p-mini-heat i.l1 { background: rgba(74, 222, 128, 0.32); }
.p-mini-heat i.l2 { background: rgba(74, 222, 128, 0.62); }
.p-mini-heat i.l3 { background: var(--accent); }
.p-record { font-size: 0.72rem; border: 1px solid rgba(212, 184, 122, 0.5); }

/* Menu burger (mobile) */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tableau comparatif */
.compare-wrap { overflow-x: auto; max-width: 860px; margin: 0 auto; }
.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.compare th, .compare td { padding: 14px 18px; text-align: center; font-size: 0.92rem; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--muted); }
.compare thead th { font-family: 'Sora'; font-size: 0.95rem; border-bottom: 1px solid var(--stroke); }
.compare tbody tr + tr td { border-top: 1px solid rgba(42, 49, 64, 0.55); }
.compare .fp { background: rgba(74, 222, 128, 0.07); color: var(--text); font-weight: 600; }
.compare thead .fp { color: var(--accent); }
.compare .no { color: var(--faint); }
.compare .mid { color: var(--muted); }

/* Liste d'attente */
.waitlist {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.wl-email {
  width: min(320px, 100%);
  background: var(--card-high);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 13px 16px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}
.wl-email:focus { border-color: var(--accent); }
.wl-email::placeholder { color: var(--faint); }
/* Honeypot anti-bot : hors écran, jamais visible */
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.wl-note.ok { color: var(--accent); }
.wl-note.err { color: var(--energy); }

/* Barre CTA mobile */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--stroke);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  z-index: 60;
  display: none;
}
.mobile-cta .btn { display: block; text-align: center; }
.mobile-cta.show { transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 48px; text-align: center; }
  .hero p.lead { margin: 0 auto 28px; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .grid, .steps, .signatures { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .phone-wrap { margin-top: 16px; }

  /* Menu mobile : burger + panneau sous le header */
  .burger { display: block; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(14, 17, 22, 0.97);
    backdrop-filter: blur(12px);
    padding: 20px 24px 24px;
    border-bottom: 1px solid var(--stroke);
  }

  .mobile-cta { display: block; }
}
