/* Landing VizioBox — page d'accueil (rendue côté serveur) */
:root {
  --navy: #082040;
  --navy-deep: #061a35;
  --gold: #c89818;
  --gold-light: #e9c55a;
  --gold-dark: #805808;
  --gold-tint: #f4ecd6;
  --cream: #f7f5f0;
  --line: #ece7dc;
  --ink: #0b1b33;
  --muted: #4a5568;
  --muted-2: #556070;
  --success: #2e7d32;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #b9b2a2 var(--cream); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--gold-light); color: var(--navy-deep); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.section-title { max-width: 760px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.lead { margin-top: 18px; max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 12px 16px; border-radius: 8px; z-index: 30; }
.skip-link:focus { left: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; transition: transform .2s cubic-bezier(.16,1,.3,1), background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); font-weight: 600; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── En-tête et héros ───────────────────────────────────────── */
.hero-band { background: var(--navy-deep); color: #fff; overflow: hidden; }
.nav { display: flex; align-items: center; gap: 32px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--navy-deep); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 8px; flex: 1; justify-content: center; font-size: 14px; font-weight: 500; }
.nav-links a { color: rgba(255,255,255,.8); text-decoration: none; padding: 12px 12px; border-radius: 10px; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-cta:hover { background: var(--gold-light); color: var(--navy-deep); }

.hero { display: flex; align-items: center; gap: 64px; padding-block: 56px 112px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.hero h1 em, .final-panel h2 em { font-style: normal; color: var(--gold); }
.hero-lead { margin-top: 24px; max-width: 34em; font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.76); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 32px; max-width: 34em; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.7); }
.hero-meta svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold-light); }
.hero-meta strong { color: #fff; font-weight: 600; }

.hero-visual { flex: 0 1 460px; min-width: 0; position: relative; display: flex; justify-content: center; padding-block: 20px; }
.ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.ring-1 { width: 420px; height: 420px; border: 1px solid rgba(200,152,24,.25); }
.ring-2 { width: 540px; height: 540px; border: 1px solid rgba(255,255,255,.06); }
.phone { position: relative; width: 300px; height: 610px; border-radius: 46px; background: #0b0f17; padding: 11px; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #f4f7fa; color: var(--ink); display: flex; flex-direction: column; }
.phone-head { background: var(--navy); padding: 34px 16px 20px; color: #fff; }
.phone-hello { font-size: 12px; color: rgba(255,255,255,.7); }
.phone-label { margin-top: 14px; font-size: 11px; color: rgba(255,255,255,.65); }
.phone-total { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.phone-total span { font-size: 14px; color: var(--gold); }
.phone-split { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.phone-split div { padding: 8px 8px; border-radius: 12px; background: rgba(255,255,255,.09); }
.phone-split small { display: block; font-size: 10px; color: rgba(255,255,255,.65); }
.phone-split strong { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.phone-card { background: #fff; border-radius: 16px; padding: 12px 14px; }
.phone-tontine { display: flex; align-items: center; gap: 12px; padding: 14px; }
.donut { width: 46px; height: 46px; border-radius: 50%; border: 5px solid #efe6cc; border-top-color: var(--gold); border-right-color: var(--gold); flex: 0 0 auto; }
.phone-tontine div { flex: 1; }
.phone-tontine strong { display: block; font-size: 12px; font-weight: 700; }
.phone-tontine small { font-size: 11px; color: var(--muted-2); }
.phone-tontine b { font-size: 12px; color: var(--gold-dark); }
.phone-section { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--muted-2); }
.goal-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.goal-row span:last-child { color: var(--navy); }
.bar { margin-top: 8px; height: 7px; border-radius: 9px; background: #e8edf5; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: var(--navy); }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.float-deposit { left: -30px; top: 268px; display: flex; align-items: center; gap: 10px; }
.float-deposit .tick { width: 34px; height: 34px; border-radius: 10px; background: #e6f3e8; color: var(--success); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.float-deposit strong { display: block; font-size: 12px; font-weight: 700; }
.float-deposit small { display: block; font-size: 11px; color: var(--muted-2); }
.float-bonus { right: -6px; bottom: 120px; }
.float-bonus small { display: block; font-size: 11px; color: var(--muted-2); }
.float-bonus strong { display: block; font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--gold-dark); }

/* ── Étapes ─────────────────────────────────────────────────── */
.steps { padding-block: 112px 40px; }
.steps-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.step { position: relative; background: #fff; border-radius: 28px; padding: 32px; border: 1px solid var(--line); }
.step h3 { margin-top: 24px; font-size: 22px; font-weight: 700; }
.step p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-tint); color: var(--gold-dark); font-family: var(--display); font-weight: 800; font-size: 18px; }
.step-final { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-final p { color: rgba(255,255,255,.76); }
.step-final .step-num { background: var(--gold); color: var(--navy-deep); }

/* ── Pourquoi la tontine ────────────────────────────────────── */
.why { padding-block: 72px; }
.why-panel { background: #fff; border-radius: 36px; border: 1px solid var(--line); padding: 56px; display: flex; gap: 56px; align-items: center; }
.why-copy { flex: 1 1 440px; min-width: 0; }
.why-copy .section-title { font-size: clamp(30px, 3.2vw, 44px); }
.benefits { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit h3 { font-size: 18px; font-weight: 700; }
.benefit p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.icon-tile { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; }
.growth { flex: 1 1 420px; min-width: 0; background: var(--navy); border-radius: 28px; padding: 32px; color: #fff; }
.growth-label { font-size: 13px; color: rgba(255,255,255,.72); }
.growth-amount { margin-top: 6px; font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.growth-amount span { font-size: 18px; color: var(--gold); }
.growth-sub { font-size: 14px; color: rgba(255,255,255,.72); }
.growth-bars { margin-top: 28px; height: 180px; display: flex; align-items: flex-end; gap: 4px; }
.growth-bars i { flex: 1; border-radius: 4px 4px 2px 2px; }
.growth-axis { margin-top: 10px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.65); }

/* ── Qui garde votre argent ─────────────────────────────────── */
.trust-band { background: var(--navy-deep); color: #fff; }
.trust-inner { padding-block: 104px; display: flex; gap: 64px; align-items: flex-start; }
.trust-copy { flex: 1 1 420px; min-width: 0; }
.trust-band .lead { color: rgba(255,255,255,.76); }
.trust-band .lead strong { color: #fff; }
.identity { margin: 28px 0 0; display: grid; gap: 14px; padding: 22px 24px; border-radius: 20px; border: 1px solid rgba(255,255,255,.14); }
.identity div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.identity dt { font-size: 13px; color: rgba(255,255,255,.65); }
.identity dd { margin: 0; font-size: 15px; font-weight: 600; }
.identity dd span { font-weight: 400; color: rgba(255,255,255,.7); font-size: 13px; }
.identity a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-light); }
.proof-list { flex: 1 1 460px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.proof-list li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); }
.proof-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.proof-list svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold-light); }
.proof-list h3 { font-size: 18px; font-weight: 700; }
.proof-list p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); }

/* ── Fonctionnalités ────────────────────────────────────────── */
.features { padding-block: 112px 104px; }
.feature-hero { margin-top: 48px; background: var(--navy); border-radius: 28px; padding: 36px; color: #fff; display: flex; gap: 32px; align-items: center; overflow: hidden; }
.feature-hero > div:first-child { flex: 1; min-width: 0; }
.feature-hero h3 { font-size: 26px; font-weight: 800; }
.feature-hero p { margin-top: 12px; max-width: 46ch; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.76); }
.feature-goals { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; }
.feature-goal { background: rgba(255,255,255,.08); border-radius: 16px; padding: 14px; }
.feature-goal .goal-row span:last-child { color: var(--gold); }
.feature-goal .bar { background: rgba(255,255,255,.12); }
.feature-goal .bar i { background: var(--gold); }
.feature-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.feature-list li { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.feature-list svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold-dark); }
.feature-list h3 { font-size: 18px; font-weight: 700; }
.feature-list p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ── Cotiser ────────────────────────────────────────────────── */
.pay { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pay-inner { padding-block: 104px; display: flex; gap: 64px; align-items: center; }
.pay-inner > div { flex: 1 1 460px; min-width: 0; }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pay-tile { padding: 24px; border-radius: 22px; background: var(--cream); }
.pay-tile small { font-size: 13px; color: var(--muted-2); }
.pay-tile strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 20px; font-weight: 800; }
.pay-tile.dark { background: var(--navy); color: #fff; }
.pay-tile.dark small { color: rgba(255,255,255,.72); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { max-width: 880px; margin: 0 auto; padding: 112px 32px; }
.faq .section-title { text-align: center; margin-inline: auto; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.faq summary { cursor: pointer; list-style: none; min-height: 64px; padding: 20px 26px; font-family: var(--display); font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-dark); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 26px 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ── Appel final ────────────────────────────────────────────── */
.final { padding-bottom: 96px; }
.final-panel { background: var(--navy); border-radius: 40px; padding: 72px; display: flex; gap: 48px; align-items: center; color: #fff; }
.final-panel > div:first-child { flex: 1 1 520px; min-width: 0; }
.final-panel h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.final-panel .hero-lead { font-size: 18px; margin-top: 18px; }
.final-meta { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.65); }
.qr { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 180px; text-align: center; }
.qr-box { width: 168px; height: 168px; border-radius: 24px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; }
.qr small { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.72); }

/* ── Pied de page ───────────────────────────────────────────── */
.footer { border-top: 1px solid #e3ded2; }
.footer-inner { padding-block: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: var(--gold); font-size: 16px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-brand p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted-2); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; font-size: 14px; }
.footer-cols div { display: flex; flex-direction: column; }
.footer-cols strong { font-weight: 700; padding-bottom: 6px; }
.footer-cols a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
.footer-cols a:hover { color: var(--gold-dark); text-decoration: underline; }
.copyright { padding-bottom: 40px; font-size: 13px; color: var(--muted-2); }

/* ── Bouton fixe (mobile) ───────────────────────────────────── */
.mobile-cta { display: none; }

/* ── Guide d'installation (dialog) ──────────────────────────── */
.guide { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 28px; padding: 28px 24px 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(6,26,53,.35); overflow-y: auto; }
.guide::backdrop { background: rgba(6,26,53,.6); }
.guide-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--cream); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.guide-close:hover { background: var(--line); }
.guide-variant { display: none; }
.guide[data-variant="android"] .guide-android,
.guide[data-variant="ios"] .guide-ios,
.guide[data-variant="other"] .guide-other { display: block; }
.guide h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; padding-right: 44px; }
.guide-lead { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.guide-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.guide-steps li { display: flex; gap: 12px; align-items: flex-start; }
.guide-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--display); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.guide-steps h3 { font-size: 16px; font-weight: 700; }
.guide-steps p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.guide-qr { margin: 20px auto 0; width: 200px; height: 200px; border-radius: 16px; border: 1px solid var(--line); padding: 10px; }
.guide-actions { margin-top: 22px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.guide-actions .btn { justify-content: center; border: 0; cursor: pointer; font-family: var(--body); margin-bottom: 6px; }
.guide-link, .guide-help { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--gold-dark); }
.guide-help { color: var(--success); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero, .why-panel, .pay-inner, .final-panel, .trust-inner { flex-direction: column; align-items: stretch; }
  .hero { padding-block: 32px 72px; gap: 40px; }
  .hero-visual { align-self: center; }
  .feature-hero { flex-direction: column; align-items: stretch; }
  .feature-goals { flex-basis: auto; }
  .final-panel .qr { align-self: flex-start; }
}
@media (max-width: 680px) {
  .container, .faq { padding-inline: 20px; }
  .nav { padding-block: 12px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  /* Visuel compact : le téléphone ne doit pas repousser le contenu de plusieurs écrans. */
  .ring-2 { display: none; }
  .ring-1 { width: 300px; height: 300px; }
  .phone { width: 250px; height: 430px; border-radius: 40px; padding: 9px; }
  .phone-screen { border-radius: 32px; }
  .phone-head { padding: 24px 14px 16px; }
  .phone-total { font-size: 26px; }
  .phone-card-extra { display: none; }
  .float-deposit { left: -6px; top: 210px; }
  .float-bonus { display: none; }
  .steps-list, .feature-list { grid-template-columns: minmax(0, 1fr); }
  .steps-list { margin-top: 36px; gap: 12px; }
  .step { padding: 24px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .step h3 { margin-top: 0; align-self: center; }
  .step p { grid-column: 2; margin-top: 4px; }
  .why-panel, .final-panel { padding: 28px 22px; border-radius: 28px; }
  .steps { padding-block: 72px 24px; }
  .why { padding-block: 40px; }
  .trust-inner, .pay-inner { padding-block: 72px; gap: 36px; }
  .features, .faq { padding-block: 72px; }
  .identity div { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; justify-content: center; }
  .final-panel .qr { display: none; }
  .growth-amount { font-size: 34px; }
  /* Guide d'installation : tient dans un écran de téléphone. */
  .guide { padding: 20px 18px 16px; border-radius: 24px; }
  .guide h2 { font-size: 20px; }
  .guide-lead { font-size: 14px; }
  .guide-steps { margin-top: 14px; gap: 10px; }
  .guide-steps p { font-size: 13.5px; }
  .guide-actions { margin-top: 16px; gap: 0; }
  /* Bouton de téléchargement toujours à portée de pouce. */
  body:has(.mobile-cta) { padding-bottom: 84px; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(247,245,240,.94); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
