:root {
  --bg: #faf8ff;
  --surface: #ffffff;
  --text: #1c1830;
  --muted: #625b78;
  --brand: #6b46c1;
  --brand-strong: #553397;
  --brand-soft: #efe9fb;
  --border: #e6e0f2;
  --whatsapp: #1fa855;
  --telegram: #229ed9;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(28 24 48 / 6%), 0 8px 24px rgb(28 24 48 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12101a;
    --surface: #1c1926;
    --text: #f2eff9;
    --muted: #a59fb8;
    --brand: #a684f0;
    --brand-strong: #c1a8ff;
    --brand-soft: #2a2340;
    --border: #2f2a3d;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav.links { display: flex; gap: 22px; font-size: .95rem; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--text); }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: .85rem; font-weight: 700; }
.lang-switch a { padding: 5px 11px; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }
header.top nav.links { margin-left: auto; margin-right: 22px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; transition: transform .15s, background .15s; }
.btn:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn.whatsapp { background: var(--whatsapp); }
.btn.whatsapp:hover { background: #178a45; }
.btn.telegram { background: var(--telegram); }
.btn.telegram:hover { background: #1a86ba; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn svg { width: 20px; height: 20px; }

/* Héros */
.hero { padding: 72px 0 56px; text-align: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand); font-weight: 700; font-size: .85rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.1; margin: 0 auto 18px; max-width: 14ch; letter-spacing: -.02em; }
.hero h1 span { color: var(--brand); }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero small { display: block; color: var(--muted); margin-top: 16px; font-size: .9rem; }

section { padding: 56px 0; }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 8px; letter-spacing: -.01em; text-align: center; }
section .sub { color: var(--muted); text-align: center; margin: 0 auto 36px; max-width: 560px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Personnages */
.characters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.character { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 14px; }
.character h3 { margin: 0; font-size: 1.2rem; }
.character .role { color: var(--brand); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.character p { color: var(--muted); font-size: .97rem; margin: 0 0 20px; flex: 1; }
.character .btn { width: 100%; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff;
  font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0 0 4px; font-size: 1.1rem; }
.plan .price { font-size: 2rem; font-weight: 800; margin: 6px 0 2px; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan ul { padding: 0; margin: 14px 0 0; list-style: none; color: var(--muted); font-size: .95rem; }
.plan li { padding: 4px 0 4px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.plans-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 22px; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Appel final */
.cta { background: var(--brand); color: #fff; border-radius: 28px; padding: 48px 24px; text-align: center; margin: 24px 0 64px; }
.cta h2 { color: #fff; }
.cta p { color: rgb(255 255 255 / 85%); margin: 0 0 24px; }
.cta .btn { background: #fff; color: var(--brand-strong); }

/* Pied de page */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

/* Pages légales */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.legal h1 { font-size: 2rem; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 8px; text-align: left; }
.legal p, .legal li { color: var(--text); }
.legal .todo { background: #fff4d6; color: #6b4e00; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .legal .todo { background: #4a3a10; color: #ffe08a; } }

@media (max-width: 640px) {
  nav.links { display: none; }
  .hero { padding-top: 48px; }
}
