/* ==========================================================================
   ekidtime.com — feuille de styles unique (aucun build, aucune dépendance)
   Palette parent : indigo #3C3489 / foncé #26215C / clair #EEEDFE /
   crème #F1EFE8 / teal #0F6E56. Couleurs matières : bleu, orange, violet, vert.
   ========================================================================== */

:root {
  --indigo: #3c3489;
  --indigo-dark: #26215c;
  --indigo-light: #eeedfe;
  --cream: #f1efe8;
  --teal: #0f6e56;

  --bg: #f1efe8;
  --bg-alt: #faf9f5;
  --surface: #ffffff;
  --text: #1d1a38;
  --muted: #514d6b;
  --border: #e0ddd0;
  --primary: #3c3489;
  --primary-strong: #26215c;
  --on-primary: #ffffff;
  --tint: #eeedfe;
  --accent: #0f6e56;
  --accent-bg: #e1f3ec;
  --todo-bg: #fff1b8;
  --todo-text: #5c4500;
  --shadow: 0 1px 2px rgba(38, 33, 92, .06), 0 12px 32px -12px rgba(38, 33, 92, .18);
  --shadow-lg: 0 30px 80px -30px rgba(38, 33, 92, .45);

  --maths: #1d4ed8;   --maths-bg: #e5edfe;
  --fr: #b93f0b;      --fr-bg: #fdebdf;
  --logic: #6d28d9;   --logic-bg: #efe7fd;
  --culture: #15803d; --culture-bg: #e2f4e8;

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12102a;
    --bg-alt: #17143a;
    --surface: #1d1a3f;
    --text: #efeefc;
    --muted: #b7b3d9;
    --border: #322d61;
    --primary: #aaa3f8;
    --primary-strong: #c9c4ff;
    --on-primary: #14112e;
    --tint: #27225a;
    --accent: #5fd0ac;
    --accent-bg: #14332b;
    --todo-bg: #4a3b00;
    --todo-text: #ffe68a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);

    --maths: #93b4ff;   --maths-bg: #1b2550;
    --fr: #ffaa7a;      --fr-bg: #3b2317;
    --logic: #c6a6ff;   --logic-bg: #2d1f52;
    --culture: #83dca0; --culture-bg: #163322;

    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; color: var(--primary); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 88px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -10px rgba(60, 52, 137, .7); }
.btn-primary:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: none; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nav a:hover { color: var(--primary); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none;
}
.hero::before { width: 620px; height: 620px; right: -160px; top: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 68%); }
.hero::after { width: 460px; height: 460px; left: -200px; bottom: -160px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; } .hero { padding: 80px 0 110px; } }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: 24px; box-shadow: var(--shadow);
}
.badge-soon .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-bg); display: grid; place-items: center; }
.badge-soon .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
.hero h1 .serif { display: block; font-size: 1.04em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Mockup téléphone ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  position: relative; width: 300px; max-width: 78vw; aspect-ratio: 300 / 620;
  border-radius: 46px; padding: 12px; background: #1a1733;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a3566;
  transform: rotate(-2deg);
}
.phone::before { /* îlot caméra */
  content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%);
  background: #0b0a18; border-radius: 20px; z-index: 2;
}
.screen {
  height: 100%; border-radius: 35px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #f5f3ff 0%, #fbfaf7 55%);
  color: #1d1a38; display: flex; flex-direction: column; padding: 52px 18px 18px;
  font-size: 13px; line-height: 1.35;
}
.scr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.scr-hello { font-weight: 800; font-size: 15px; }
.scr-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-weight: 700; font-size: 11.5px; }
.scr-chip svg { width: 13px; height: 13px; }
.chip-streak { background: #fff1e6; color: #b93f0b; }
.scr-subject { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; color: #4b4769; }
.scr-tag { background: #e5edfe; color: #1d4ed8; padding: 4px 10px; border-radius: 999px; }
.scr-progress { height: 6px; border-radius: 6px; background: #e6e3f5; overflow: hidden; margin-bottom: 16px; }
.scr-progress span { display: block; height: 100%; width: 60%; border-radius: 6px; background: linear-gradient(90deg, #3c3489, #6a60d6); }
.scr-card { background: #fff; border-radius: 20px; padding: 18px 14px; text-align: center; box-shadow: 0 8px 22px -12px rgba(38,33,92,.35); margin-bottom: 14px; }
.scr-card small { display: block; color: #6b6787; font-weight: 600; margin-bottom: 6px; }
.scr-q { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #26215c; }
.scr-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.scr-answers span { display: grid; place-items: center; height: 50px; border-radius: 14px; background: #fff; border: 2px solid #e6e3f5; font-weight: 800; font-size: 18px; color: #26215c; }
.scr-answers .is-right { background: #e1f3ec; border-color: #0f6e56; color: #0f6e56; }
.scr-time { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 22px -14px rgba(38,33,92,.35); }
.scr-time-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 600; color: #4b4769; margin-bottom: 8px; }
.scr-time-row b { color: #26215c; font-size: 13px; }
.scr-time-bar { display: flex; height: 8px; border-radius: 8px; background: #e6e3f5; overflow: hidden; gap: 2px; }
.scr-time-bar .base { width: 68%; background: #3c3489; }
.scr-time-bar .bonus { width: 16%; background: #0f6e56; }
.scr-time-legend { display: flex; gap: 12px; margin-top: 8px; font-size: 10.5px; color: #6b6787; font-weight: 600; }
.scr-time-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.lg-base { background: #3c3489; }
.lg-bonus { background: #0f6e56; }
.scr-feedback { margin-top: auto; background: #0f6e56; color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.scr-feedback svg { width: 22px; height: 22px; flex: none; }
.scr-feedback small { display: block; font-weight: 500; opacity: .9; font-size: 11.5px; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .875rem; font-weight: 600; line-height: 1.3;
  animation: floaty 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 18px; height: 18px; }
.fc-lock { top: 0; left: 2%; }
.fc-lock .ic { background: var(--tint); color: var(--primary); }
.fc-gain { bottom: 0; left: 2%; animation-delay: -3s; }
.phone-stage { padding-top: 52px; padding-bottom: 60px; }
.fc-gain .ic { background: var(--accent-bg); color: var(--accent); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 520px) {
  .fc-lock { left: -4px; top: 0; }
  .fc-gain { left: -4px; bottom: 8px; }
  .float-card { font-size: .8rem; padding: 8px 10px; }
}

/* ---------- Étapes ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.step { position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 22px; right: 24px; font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: var(--tint); letter-spacing: -0.04em;
}
.step-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--primary); margin-bottom: 18px; position: relative; }
.step-icon svg { width: 26px; height: 26px; }
.step p, .card p { color: var(--muted); margin: 0; }

/* ---------- Parents / Enfants ---------- */
.duo { display: grid; gap: 24px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card { padding: 36px; }
.duo-card.parent { background: var(--indigo-dark); color: #f1efe8; border-color: transparent; }
.duo-card.parent h3, .duo-card.parent .eyebrow { color: #ffffff; }
.duo-card.parent .eyebrow { opacity: .85; }
.duo-card.parent li { color: #dcd9f5; }
.duo-card.parent li svg { color: #8fe0c3; }
.duo-card.child { background: var(--surface); }
.duo-card h3 { font-size: 1.6rem; margin-bottom: 20px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checklist li strong { color: inherit; font-weight: 700; }
.duo-card.parent .checklist li strong { color: #ffffff; }
.duo-card.child .checklist li strong { color: var(--text); }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }
.gamif { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
@media (min-width: 520px) { .gamif { grid-template-columns: repeat(4, 1fr); } }
.gamif div { background: var(--tint); border-radius: 14px; padding: 12px 10px; text-align: center; font-size: .8125rem; font-weight: 700; color: var(--text); }
.gamif svg { width: 22px; height: 22px; margin: 0 auto 6px; color: var(--primary); }

/* ---------- Matières ---------- */
.subjects { display: grid; gap: 18px; }
@media (min-width: 640px) { .subjects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .subjects { grid-template-columns: repeat(4, 1fr); } }
.subject { border-top: 6px solid var(--c); display: flex; flex-direction: column; }
.subject .s-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--c-bg); color: var(--c); margin-bottom: 16px; font-weight: 800; font-size: 1.35rem; }
.subject h3 { color: var(--c); }
.subject .example { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--c-bg); font-size: .9375rem; color: var(--text); }
.subject .example b { color: var(--c); display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.s-maths { --c: var(--maths); --c-bg: var(--maths-bg); }
.s-fr { --c: var(--fr); --c-bg: var(--fr-bg); }
.s-logic { --c: var(--logic); --c-bg: var(--logic-bg); }
.s-culture { --c: var(--culture); --c-bg: var(--culture-bg); }

/* ---------- Modes par âge ---------- */
.modes { display: grid; gap: 20px; }
@media (min-width: 900px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { display: flex; flex-direction: column; }
.mode-age { display: inline-block; align-self: flex-start; font-weight: 800; font-size: .875rem; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--primary); margin-bottom: 14px; }
.mode h3 { font-size: 1.5rem; margin-bottom: 4px; }
.mode .level { color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.mode ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.mode-demo { margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--border); text-align: center; }
.mode-demo .q { font-weight: 800; color: var(--text); }
.mode-small .q { font-size: 1.6rem; }
.mode-medium .q { font-size: 1.2rem; }
.mode-large .q { font-size: 1rem; }
.mode-demo .opts { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.mode-demo .opts span { min-width: 44px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .9rem; }
.mode-small .opts span { font-size: 1.2rem; min-width: 56px; padding: 10px 12px; }
.mode-demo .input { margin-top: 10px; border: 2px solid var(--border); border-radius: 10px; padding: 8px 12px; color: var(--muted); font-size: .9rem; text-align: left; background: var(--surface); }
.voice { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .8125rem; font-weight: 700; color: var(--primary); }
.voice svg { width: 16px; height: 16px; }

.reassure { margin-top: 36px; display: flex; gap: 18px; align-items: flex-start; background: var(--accent-bg); border-radius: var(--radius); padding: 24px 28px; }
.reassure svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.reassure p { margin: 0; color: var(--text); }
.reassure strong { color: var(--accent); }

/* ---------- Tarifs ---------- */
.billing { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin-top: 8px; }
.billing button { font: inherit; font-weight: 700; font-size: .9375rem; border: 0; background: transparent; color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.billing button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.billing .save { font-size: .75rem; font-weight: 800; margin-left: 6px; color: var(--accent); }
.billing button[aria-pressed="true"] .save { color: inherit; opacity: .9; }
.plans { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan .desc { color: var(--muted); margin-bottom: 20px; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.price .per { color: var(--muted); font-weight: 600; }
.plan .price-note { color: var(--muted); font-size: .875rem; min-height: 1.5em; margin-bottom: 22px; }
.plan .checklist { margin-bottom: 28px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -14px; left: 28px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.pricing-foot { text-align: center; color: var(--muted); margin-top: 28px; font-size: .9375rem; }

/* ---------- Confiance ---------- */
.trust { background: var(--indigo-dark); color: #e9e7fb; position: relative; overflow: hidden; }
.trust h2, .trust h3 { color: #ffffff; }
.trust .eyebrow { color: #b9b3ff; }
.trust .section-head p { color: #cfcbef; }
.trust-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px; }
.trust-item svg { width: 28px; height: 28px; color: #8fe0c3; margin-bottom: 14px; }
.trust-item p { color: #cfcbef; margin: 0; }
.trust a { color: #ffffff; }
.trust a:hover { color: #c9c4ff; }
.trust :focus-visible { outline-color: #ffffff; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 700; font-size: 1.0625rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 16px; }
.faq .answer { padding: 0 22px 22px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA lancement ---------- */
.launch { text-align: center; }
.launch-card {
  max-width: 820px; margin: 0 auto; padding: 48px 28px; border-radius: 28px;
  background: linear-gradient(135deg, #3c3489, #26215c); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.launch-card::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -160px; background: rgba(255,255,255,.07); pointer-events: none; }
.launch-card h2 { color: #fff; }
.launch-card p { color: #dcd9f5; max-width: 560px; margin-left: auto; margin-right: auto; }
.launch-form { display: grid; gap: 18px; justify-items: center; margin-top: 28px; position: relative; z-index: 1; }
.launch-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.launch-form legend { width: 100%; text-align: center; font-weight: 700; margin-bottom: 12px; color: #fff; }
.pill-radio { position: relative; }
.pill-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.pill-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.35); font-weight: 600; color: #fff; }
.pill-radio input:checked + span { background: #fff; color: #26215c; border-color: #fff; }
.pill-radio input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.launch-form .btn-light { background: #fff; color: #26215c; }
.launch-form .btn-light:hover { background: #eeedfe; color: #26215c; }
.launch-form .btn-light:focus-visible { outline-color: #fff; }
.launch-note { font-size: .875rem; color: #c9c5ee !important; margin: 4px auto 0 !important; }
.launch-note a { color: #fff; }
.launch-note a:focus-visible { outline-color: #fff; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); background: var(--bg-alt); font-size: .9375rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.site-footer p { color: var(--muted); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .875rem; }

/* ---------- Pages légales ---------- */
.legal { padding: 48px 0 80px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 28px; }
.legal h2 { font-size: 1.45rem; margin-top: 44px; padding-top: 8px; }
.legal h3 { font-size: 1.1rem; margin-top: 24px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 1em; }
.legal-notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px;
  background: var(--todo-bg); color: var(--todo-text); margin-bottom: 32px; font-weight: 600;
}
.legal-notice svg { width: 24px; height: 24px; flex: none; }
.legal-notice p { color: inherit; margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin-bottom: 12px; }
.toc h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; padding: 0; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
th { background: var(--surface); color: var(--text); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.todo {
  display: inline; background: var(--todo-bg); color: var(--todo-text); font-weight: 700;
  padding: 1px 6px; border-radius: 6px; border: 1px dashed currentColor;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 24px; text-decoration: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--primary); margin-bottom: 8px; }
.notfound p { color: var(--muted); max-width: 480px; margin-left: auto; margin-right: auto; }
.notfound .hero-cta { justify-content: center; margin-top: 24px; }
