:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1b22;
  --muted: #5d5b69;
  --line: #e6e3ec;
  --brand: #3b2fd1;
  --brand-ink: #ffffff;
  --accent: #d6006b;
  --ok: #1f8a5b;
  --warn-bg: #fff4d6;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(28, 27, 34, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14131a;
    --surface: #1d1c26;
    --text: #f1f0f6;
    --muted: #a9a7b8;
    --line: #2f2d3d;
    --brand: #8a82ff;
    --brand-ink: #14131a;
    --warn-bg: #3a3216;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="fr"] [data-l="en"], html[lang="en"] [data-l="fr"] { display: none !important; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.lang { font: inherit; font-size: 14px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
@media (max-width: 720px) { .nav a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 12px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Illustration */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.mock-bar { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.mock-bar b { color: var(--text); }
.pill { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; background: linear-gradient(160deg, var(--line), var(--bg)); }
.card i { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 8px; border-radius: 4px; background: var(--line); }
.badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; color: #fff; font: 600 12px/1.5 system-ui, sans-serif; white-space: nowrap; }
.l0 { background: #6b7075; font-weight: 500; }
.l1 { background: #4f7ea8; }
.l2 { background: #1f8a5b; }
.l3 { background: #b45f06; }
.l4 { background: #d9480f; }
.l5 { background: #d6006b; font-weight: 800; font-size: 13px; border: 2px solid #fff; box-shadow: 0 0 0 2px #d6006b; }
.caption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step, .feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .step, section.alt .feature { background: var(--bg); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 10px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .steps, .features { grid-template-columns: 1fr; } }
.feature p, .step p { margin: 0; color: var(--muted); font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legend .badge { position: static; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin-inline: auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan h3 { font-size: 20px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan .btn { text-align: center; }

/* Notice */
.notice { background: var(--warn-bg); border-radius: var(--radius); padding: 16px 18px; font-size: 15px; }

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

/* Legal pages */
.legal { padding: 48px 0 70px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); font-size: 14px; }
mark { background: #ffe58a; color: #1c1b22; padding: 0 4px; border-radius: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.disclaimer { margin-top: 18px; max-width: 760px; }
.legend > span { display: flex; flex-wrap: wrap; gap: 8px; }
