:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --border: #e6e8ef;
  --text: #121521;
  --muted: #5f6577;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-soft: #eef0ff;
  --ok: #12916b;
  --ok-soft: #e5f6ef;
  --warn: #b86e00;
  --warn-soft: #fff4e0;
  --shadow: 0 24px 60px -24px rgba(30, 27, 90, .28), 0 2px 6px rgba(20, 22, 40, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f17; --bg-alt: #121521; --surface: #171a27; --border: #262a3a; --text: #ebedf5; --muted: #9ba0b5;
    --primary: #7c74ff; --primary-600: #6a61f5; --primary-soft: #222448;
    --ok: #3cc99a; --ok-soft: #133328; --warn: #f0a83a; --warn-soft: #3a2a10;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f17; --bg-alt: #121521; --surface: #171a27; --border: #262a3a; --text: #ebedf5; --muted: #9ba0b5;
  --primary: #7c74ff; --primary-600: #6a61f5; --primary-soft: #222448;
  --ok: #3cc99a; --ok-soft: #133328; --warn: #f0a83a; --warn-soft: #3a2a10;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 11px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-light { background: #fff; color: #2d2696; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; }
.brand em { font-style: normal; color: var(--primary); font-weight: 600; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6d5dfc, #4f46e5); display: grid; place-items: center; }
.logo svg { stroke: #fff; width: 19px; height: 19px; stroke-width: 2.4; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--text); }

/* Accroche */
.eyebrow { color: var(--primary); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin-bottom: 14px; }
.hero { padding: 72px 0 64px; background: radial-gradient(900px 420px at 85% -10%, var(--primary-soft), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.hero h1 span { color: var(--primary); }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312916b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Maquette */
.mock { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar span { margin-left: 8px; font-weight: 500; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stats div { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.mock-stats small { display: block; color: var(--muted); font-size: 12px; }
.mock-stats b { font-size: 22px; letter-spacing: -.02em; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.mock-chart span { flex: 1; background: linear-gradient(var(--primary), color-mix(in srgb, var(--primary) 55%, transparent)); border-radius: 5px 5px 2px 2px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
.mock-row small { display: block; color: var(--muted); font-size: 12px; }
.mock-row em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.ok { background: var(--ok-soft); color: var(--ok); }
.warn { background: var(--warn-soft); color: var(--warn); }
.mock-float { position: absolute; left: -28px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; }
.mock-float svg { color: var(--primary); background: var(--primary-soft); border-radius: 9px; padding: 7px; width: 34px; height: 34px; }
.mock-float small { display: block; color: var(--muted); font-size: 12px; }

/* Bandeau sources */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 30px; padding: 20px 0; color: var(--muted); font-size: 15px; }
.strip-in span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.strip-in b { color: var(--text); font-weight: 600; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.head.left { text-align: left; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.sub { margin-top: 16px; color: var(--muted); font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); transform: translateY(-2px); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.list li { padding-left: 30px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--primary-soft); }
.list b { color: var(--text); font-weight: 600; }

.demo { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.demo small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.demo pre { margin: 0; font: 13.5px/1.7 ui-monospace, Consolas, monospace; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 14px; white-space: pre-wrap; word-break: break-word; }
.demo-arrow { display: grid; place-items: center; padding: 12px 0; color: var(--primary); }
.demo-out .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; font-size: 14px; }
.demo-out .row span { font-weight: 600; word-break: break-all; }
.demo-out .row em { font-style: normal; color: var(--muted); }
.demo-out .row.muted span { color: var(--muted); font-weight: 400; text-decoration: line-through; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 30px 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.steps .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 15px; }

/* Appel final */
.final { padding: 0 0 96px; }
.final-in { text-align: center; border-radius: 24px; padding: 64px 28px; color: #fff; background: radial-gradient(600px 300px at 80% 0%, #8b80ff, transparent 70%), linear-gradient(135deg, #4f46e5, #3b2fc4); }
.final h2 { color: #fff; }
.final p { margin: 14px auto 28px; max-width: 520px; color: rgba(255, 255, 255, .85); font-size: 17px; }

/* Pied de page */
.foot { border-top: 1px solid var(--border); padding: 30px 0; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; color: var(--muted); font-size: 14px; }
.foot nav a:hover { color: var(--text); }
.foot small { color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero-in, .split, .faq-wrap { grid-template-columns: 1fr; }
  .hero-in { gap: 64px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .mock-float { left: 12px; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .hero { padding: 48px 0 56px; }
  .lead { font-size: 16.5px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .head { margin-bottom: 36px; }
  .mock-stats b { font-size: 18px; }
  .mock-float { position: static; margin: 12px 18px 18px; box-shadow: none; }
  .foot nav { margin-left: 0; }
}

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan h3 { font-size: 22px; }
.plan-badge { position: absolute; top: -12px; left: 30px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 20px; }
.plan-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { display: block; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-desc { color: var(--muted); }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; font-size: 15px; }
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312916b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan-list li.no { color: var(--muted); }
.plan-list li.no::before { background: var(--bg-alt); }
.plan .btn { justify-content: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.brand { white-space: nowrap; }
@media (max-width: 900px) { .links { display: none; } .nav-in .btn { margin-left: auto; } }

/* Tarifs : mêmes fonctionnalités, limites et prix */
.plan-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.limits { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.limit-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.limit-row:last-child { border-bottom: 0; }
.plan.featured .limit-row strong { color: var(--primary); }
.price-list { display: flex; flex-direction: column; gap: 6px; }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--primary-soft); }
.price-list span { color: var(--muted); font-size: 14.5px; }
.price-list strong { font-size: 18px; letter-spacing: -.01em; }
.plan .plan-list { flex: none; }
.plan .btn { margin-top: auto; }

.pay-note { max-width: 720px; margin: 28px auto 0; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--primary); background: var(--primary-soft); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.nowrap { white-space: nowrap; }

.wa-btn { background: #25d366; color: #fff; border-color: #25d366; }
.wa-btn:hover { background: #1ebe5b; }

.optin [hidden] { display: none !important; }
