:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --alt: #f2f6f4;
  --text: #16201d;
  --muted: #55625d;
  --border: #e2e8e5;
  --primary: #0f6e56;
  --primary-dark: #0a5241;
  --on-primary: #ffffff;
  --gold: #f5b700;
  --gold-soft: #fff6d6;
  --good: #0f7b4f;
  --bad: #b42318;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 40, 32, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412;
    --surface: #161e1b;
    --alt: #121a17;
    --text: #eef3f1;
    --muted: #a7b5af;
    --border: #26322e;
    --primary: #3ddc97;
    --primary-dark: #2bb57a;
    --on-primary: #06281b;
    --gold-soft: rgba(245, 183, 0, 0.14);
    --good: #3ddc97;
    --bad: #ff8a80;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
       background: var(--bg); color: var(--text); line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 760px; }
.center.sub { margin-inline: auto; }
.accent { color: var(--primary); }
.note { color: var(--muted); font-size: 14px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
       border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
       transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-gold { background: var(--gold); color: #3a2a00; }
.btn-whatsapp { background: var(--wa); color: #fff; margin-top: 8px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--alt); color: var(--primary);
        font-size: 14px; font-weight: 500; margin-bottom: 14px; border: 1px solid var(--border); }
.pill.gold { background: var(--gold-soft); color: #8a6400; border-color: transparent; }
@media (prefers-color-scheme: dark) { .pill.gold { color: var(--gold); } }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 20px; margin-inline-start: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.links a:hover { color: var(--text); }
.lang { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }
.lang:hover { color: var(--text); }
@media (max-width: 860px) { .links { display: none; } .nav-inner > .lang { margin-inline-start: auto; } }

/* Accroche */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 18px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; }
.checks li::before { content: '✓ '; color: var(--good); font-weight: 700; }
.hero-shot { margin: 0; }
.hero-shot img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* Chiffres */
.facts { padding: 8px 0 36px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts-grid div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.facts-grid strong { display: block; font-size: 26px; color: var(--primary); }
.facts-grid span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: 1fr 1fr; } }

/* Bandeau fondateurs */
.founders-strip { background: var(--gold-soft); border-block: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-block: 14px; }
.strip-inner p { margin: 0; }
.seats { font-weight: 700; margin-inline-start: auto !important; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--alt); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.compare ul { margin: 0; padding-inline-start: 0; list-style: none; }
.compare li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.compare li:last-child { border-bottom: 0; }
.bad li::before { content: '✕  '; color: var(--bad); font-weight: 700; }
.good { border: 2px solid var(--primary); }
.good li::before { content: '✓  '; color: var(--good); font-weight: 700; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.tool .ic { font-size: 26px; display: inline-grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 12px; background: var(--alt); margin-bottom: 10px; }
.tool p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } }

.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.reel { position: relative; }
.reel .slide { margin: 0; display: none; animation: fade .5s ease; }
.reel .slide.on { display: block; }
.reel img { inline-size: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; object-position: top; border-radius: var(--radius);
            border: 1px solid var(--border); box-shadow: var(--shadow); }
.reel figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; text-align: center; min-block-size: 3em; }
.reel .dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.reel .dots button { inline-size: 10px; block-size: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--border); cursor: pointer; }
.reel .dots button[aria-selected=true] { background: var(--primary); inline-size: 26px; border-radius: 999px; }
@keyframes fade { from { opacity: 0; } }
.video video { inline-size: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 920px) { .demo-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 30px 0 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 50%;
                    background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Prix */
.period { display: flex; justify-content: center; gap: 4px; margin: 22px auto 28px; padding: 4px; inline-size: fit-content;
          background: var(--alt); border: 1px solid var(--border); border-radius: 999px; }
.period button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; }
.period button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.period em { font-style: normal; font-size: 12px; color: var(--good); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.plan ul { padding-inline-start: 0; list-style: none; margin: 6px 0 22px; flex: 1; }
.plan li { padding: 6px 0; color: var(--muted); }
.plan li::before { content: '✓  '; color: var(--good); font-weight: 700; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan.founder { border: 2px solid var(--gold); background: linear-gradient(var(--surface), var(--surface)) padding-box; }
.price { font-size: 40px; font-weight: 700; margin: 4px 0; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.was { color: var(--muted); font-size: 14px; }
.ribbon { position: absolute; top: -13px; inset-inline-start: 20px; padding: 2px 12px; border-radius: 8px; background: var(--primary);
          color: var(--on-primary); font-size: 13px; font-weight: 700; }
.ribbon.gold { background: var(--gold); color: #3a2a00; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Fondateurs */
.founders { background: linear-gradient(180deg, var(--gold-soft), transparent 60%); }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.perks { padding-inline-start: 0; list-style: none; }
.perks li { padding: 8px 0; }
.perks li::before { content: '★  '; color: var(--gold); }
.seat-meter { margin: 18px 0 8px; }
.seat-meter .bar { block-size: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.seat-meter .bar span { display: block; block-size: 100%; background: var(--gold); border-radius: inherit; transition: inline-size .6s ease; }
.seat-meter p { margin: 8px 0 0; }
.signup { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.signup label { display: block; margin-bottom: 14px; font-weight: 500; font-size: 15px; }
.signup small { color: var(--muted); font-weight: 400; }
.signup input:not([type=checkbox]), .signup select { display: block; inline-size: 100%; margin-top: 6px; min-height: 46px; padding: 0 12px;
       border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.signup input:focus, .signup select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.signup .consent input { margin-top: 6px; accent-color: var(--primary); }
.signup .btn { inline-size: 100%; }
.signup .hp { position: absolute; inset-inline-start: -9999px; }
.form-error { color: var(--bad); }
.form-ok { color: var(--good); font-weight: 700; margin-top: 12px; }
@media (max-width: 920px) { .founders-grid { grid-template-columns: 1fr; } }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--muted); }

/* Pages légales */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 22px; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }

/* Vidéos des outils : grille de téléphones */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-top: 32px; }
.clips figure { margin: 0; text-align: center; }
.clips video { display: block; inline-size: 100%; aspect-ratio: 10 / 19; border-radius: 22px; background: var(--border);
               border: 6px solid #111; box-shadow: 0 12px 30px rgba(0, 0, 0, .14); }
.clips figcaption { margin-top: 10px; font-weight: 700; }
@media (max-width: 480px) { .clips { grid-template-columns: repeat(2, 1fr); gap: 12px; } .clips video { border-width: 4px; border-radius: 16px; } }

/* ===== Version « conversion » : énergie, mouvement, preuves ===== */
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-primary { box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-gold { box-shadow: 0 8px 22px rgba(245, 183, 0, .35); }
.btn:hover { transform: translateY(-2px); }

/* Hero sombre avec halo */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; color: #eef7f3;
        background: radial-gradient(1200px 500px at 85% -10%, #1f9f7c 0%, transparent 60%),
                    radial-gradient(800px 400px at 0% 110%, #0b5b47 0%, transparent 60%), #08261e; }
.hero .lead { color: #c5ddd4; }
.hero .accent { color: #6ff0bd; }
.hero .checks { color: #b9d3c9; }
.hero .checks li::before { color: #6ff0bd; }
.hero .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.hero .btn-primary { background: #3ddc97; color: #06281b; }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); }
.pill.live { background: rgba(245, 183, 0, .14); color: #ffd760; border-color: rgba(245, 183, 0, .35); }
.pill.live i { display: inline-block; inline-size: 8px; block-size: 8px; border-radius: 50%; background: #ffd760; margin-inline-end: 4px;
               animation: pulse 1.6s infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 215, 96, .7); } 100% { box-shadow: 0 0 0 10px rgba(255, 215, 96, 0); } }

.hero-stage { position: relative; display: grid; place-items: center; min-block-size: 520px; }
.hero-stage .glow { position: absolute; inline-size: 380px; block-size: 380px; border-radius: 50%;
                    background: radial-gradient(circle, rgba(61, 220, 151, .45), transparent 65%); filter: blur(10px); }
.phone { position: relative; inline-size: 250px; aspect-ratio: 10 / 19; border-radius: 34px; padding: 9px; background: #0b0f0e;
         box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px #2b3633; animation: float 6s ease-in-out infinite; }
.phone video { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 26px; background: #1a2421; display: block; }
.phone.big { inline-size: 290px; animation: none; }
@keyframes float { 50% { transform: translateY(-10px); } }
.chip { position: absolute; padding: 10px 14px; border-radius: 14px; background: #fff; color: #16201d; font-size: 14px; font-weight: 500;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .3); white-space: nowrap; opacity: 0; animation: pop 12s infinite; }
.chip b { color: #0f7b4f; }
.c1 { top: 14%; inset-inline-start: -2%; animation-delay: 0s; }
.c2 { top: 40%; inset-inline-end: -4%; animation-delay: 3s; }
.c3 { bottom: 22%; inset-inline-start: -6%; animation-delay: 6s; }
.c4 { bottom: 6%; inset-inline-end: 2%; animation-delay: 9s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(14px) scale(.92); } 4%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 920px) { .hero-stage { min-block-size: 460px; } .chip { font-size: 12px; } .c1, .c3 { inset-inline-start: 0; } .c2, .c4 { inset-inline-end: 0; } }

/* Chiffres */
.facts { margin-top: -28px; position: relative; z-index: 1; }
.facts-grid div { box-shadow: var(--shadow); }
.facts-grid strong { font-size: 32px; }

/* Avant / après */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bars { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.bar-row { display: grid; grid-template-columns: 130px 1fr 80px; gap: 12px; align-items: center; margin-bottom: 16px; }
.bar-row span { color: var(--muted); font-size: 15px; }
.bar-row .bar { block-size: 26px; border-radius: 8px; background: var(--alt); overflow: hidden; }
.bar-row .bar i { display: block; block-size: 100%; inline-size: 0; background: #9fb3ab; border-radius: inherit; transition: inline-size 1.2s cubic-bezier(.2,.8,.2,1); }
.bar-row.win .bar i { background: linear-gradient(90deg, var(--primary), #3ddc97); }
.bar-row.win b { color: var(--primary); font-size: 18px; }
.bars.in .bar i { inline-size: var(--w); }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 100px 1fr 70px; } }

/* Vitrine interactive */
.showcase { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; margin-top: 32px; }
.tool-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-tabs button { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 2px 12px; text-align: start; padding: 14px;
                    border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
                    transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; }
.tool-tabs button:hover { transform: translateY(-2px); }
.tool-tabs .ic { grid-row: span 2; font-size: 22px; display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 12px; background: var(--alt); }
.tool-tabs strong { font-size: 16px; }
.tool-tabs span:not(.ic) { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.tool-tabs em { position: absolute; top: -9px; inset-inline-end: 12px; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px;
                border-radius: 6px; background: var(--gold); color: #3a2a00; }
.tool-tabs button[aria-selected=true] { border-color: var(--primary); box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 22%, transparent); }
.tool-tabs button[aria-selected=true] .ic { background: var(--primary); }
.showcase-stage { position: sticky; top: 90px; display: grid; justify-items: center; gap: 16px; }
@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-stage { position: static; order: -1; }
  .tool-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px; }
  .tool-tabs button { scroll-snap-align: center; }
}

/* Calculateur */
.calc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.range { display: block; margin: 22px 0; font-weight: 700; }
.range output { color: var(--primary); font-size: 20px; }
.range input { display: block; inline-size: 100%; margin-top: 10px; accent-color: var(--primary); }
.calc-result { text-align: center; padding: 34px 26px; border-radius: 22px; color: #eef7f3;
               background: radial-gradient(500px 220px at 80% 0%, #1f9f7c, transparent 70%), #08261e; box-shadow: var(--shadow); }
.calc-result strong { display: block; font-size: clamp(38px, 6vw, 56px); color: #6ff0bd; line-height: 1.2; margin: 6px 0; }
.calc-result p { margin: 0 0 10px; color: #c5ddd4; }
.calc-result small { display: block; margin-top: 14px; color: #9fbcb1; font-size: 12.5px; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }

/* Garantie, dernier appel */
.guarantee { display: flex; gap: 14px; align-items: center; max-inline-size: 640px; margin: 26px auto 0; padding: 16px 20px; border-radius: 14px;
             background: var(--alt); border: 1px dashed var(--primary); }
.guarantee span { font-size: 30px; }
.guarantee p { margin: 0; }
.final-cta { padding: 72px 0; color: #eef7f3; background: radial-gradient(900px 300px at 50% 0%, #1f9f7c, transparent 70%), #08261e; }
.final-cta p { color: #c5ddd4; margin-bottom: 22px; }

/* Barre d'achat mobile */
.mobile-cta { position: fixed; inset-inline: 10px; bottom: 10px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px;
              padding: 10px 12px; border-radius: 16px; background: #08261e; color: #eef7f3; box-shadow: 0 12px 30px rgba(0,0,0,.35);
              transform: translateY(140%); transition: transform .3s; font-size: 14px; }
.mobile-cta.show { transform: none; }
@media (min-width: 861px) { .mobile-cta { display: none !important; } }

/* Apparition au défilement */
/* Masqué seulement si le script tourne (classe « js » posée par main.js) : sans script, tout reste visible. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chip { opacity: 1; position: static; margin: 4px; }
}
