/* Mise en page : un manuel de révision clair — une colonne de lecture, les cinq thèmes officiels en couleurs, la réponse toujours en évidence */
@font-face{ font-family:"Fraunces"; font-weight:600; font-style:normal; font-display:swap; src:url("fonts/fraunces-600.woff2") format("woff2"); }
@font-face{ font-family:"Fraunces"; font-weight:700; font-style:normal; font-display:swap; src:url("fonts/fraunces-700.woff2") format("woff2"); }
@font-face{ font-family:"Fraunces"; font-weight:800; font-style:normal; font-display:swap; src:url("fonts/fraunces-800.woff2") format("woff2"); }
@font-face{ font-family:"Atkinson Hyperlegible"; font-weight:400; font-style:normal; font-display:swap; src:url("fonts/atkinson-400.woff2") format("woff2"); }
@font-face{ font-family:"Atkinson Hyperlegible"; font-weight:400; font-style:italic; font-display:swap; src:url("fonts/atkinson-400-italic.woff2") format("woff2"); }
@font-face{ font-family:"Atkinson Hyperlegible"; font-weight:700; font-style:normal; font-display:swap; src:url("fonts/atkinson-700.woff2") format("woff2"); }

:root{
  --paper:#F4F6FA; --surface:#FFFFFF; --sunk:#EDF0F6; --ink:#15203B; --muted:#56607A; --line:#DADFE9;
  --accent:#1F4E9C; --on-accent:#FFFFFF; --accent-weak:#E6EDF9; --red:#C8102E;
  --t1:#1F4E9C; --t2:#2B6B5E; --t3:#A8432F; --t4:#86621A; --t5:#5B3F8E;
  --good:#17744A; --good-weak:#E3F3EA;
  --display:"Fraunces", Georgia, "Times New Roman", serif;
  --body:"Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r:14px; color-scheme:light;
}
@media (prefers-color-scheme: dark){ :root{
  --paper:#0C1220; --surface:#141C2F; --sunk:#10182A; --ink:#E6EBF5; --muted:#9BA6BD; --line:#253049;
  --accent:#8FB1F5; --on-accent:#0C1220; --accent-weak:#1B2843; --red:#FF6F80;
  --t1:#8FB1F5; --t2:#6FC4AF; --t3:#F2937C; --t4:#E5BD62; --t5:#BBA0F2;
  --good:#5CCB92; --good-weak:#12301F; color-scheme:dark; } }

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--paper); color:var(--ink); font-family:var(--body); font-size:17px; line-height:1.55; -webkit-font-smoothing:antialiased; }
a{ color:var(--accent); text-underline-offset:3px; }
sup{ font-size:.66em; line-height:0; vertical-align:.45em; }
:focus-visible{ outline:2.5px solid var(--accent); outline-offset:2px; border-radius:6px; }
h1,h2,h3{ font-family:var(--display); line-height:1.12; text-wrap:balance; margin:0; }
.wrap{ max-width:760px; margin:0 auto; padding-left:max(18px, env(safe-area-inset-left, 0px)); padding-right:max(18px, env(safe-area-inset-right, 0px)); }
.skip{ position:absolute; left:-999px; } .skip:focus{ left:12px; top:12px; background:var(--surface); padding:8px 12px; z-index:20; }

/* En-tête */
.flag{ display:flex; height:4px; } .flag i{ flex:1; } .flag i:nth-child(1){ background:var(--t1); } .flag i:nth-child(2){ background:var(--line); } .flag i:nth-child(3){ background:var(--red); }
.top{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding-block:14px; }
.brand{ display:inline-flex; align-items:center; gap:9px; font-family:var(--display); font-weight:800; font-size:20px; color:var(--ink); text-decoration:none; letter-spacing:-.01em; }
.brand img{ width:32px; height:32px; border-radius:8px; flex:none; }
.nav{ display:flex; align-items:center; gap:16px; font-size:15px; }
.nav a{ color:var(--ink); text-decoration:none; font-weight:700; }
.nav a:hover{ color:var(--accent); }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:10px 18px; border-radius:12px; font-weight:700; font-size:16px; text-decoration:none; border:1.5px solid var(--line); background:var(--surface); color:var(--ink); }
.btn.primary{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.btn.small{ min-height:38px; padding:6px 14px; font-size:15px; }
.nav .btn.primary{ color:var(--on-accent); }

/* Fil d'Ariane */
.crumbs{ font-size:14px; color:var(--muted); margin:6px 0 18px; }
.crumbs ol{ list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; }
.crumbs li:not(:last-child)::after{ content:"›"; margin-left:6px; color:var(--muted); }
.crumbs a{ color:var(--muted); }

/* Accueil */
.hero{ padding:26px 0 8px; }
.eyebrow{ font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; font-weight:700; color:var(--red); }
.hero h1{ font-weight:800; font-size:clamp(32px, 7.4vw, 50px); letter-spacing:-.015em; margin-top:10px; }
.lead{ font-size:19px; color:var(--muted); margin:16px 0 22px; max-width:60ch; }
.ctas{ display:flex; flex-wrap:wrap; gap:10px; }
@media (max-width:560px){
  .hero-text .ctas{ display:grid; grid-template-columns:1fr 1fr; }
  .hero-text .ctas .btn.primary{ grid-column:1/-1; }
  .hero-text .ctas .btn:not(.primary){ font-size:15.5px; padding:10px 10px; }
}
.facts{ display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin:30px 0 0; }
.fact{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
.fact b{ display:block; font-family:var(--display); font-weight:800; font-size:26px; line-height:1.05; font-variant-numeric:tabular-nums; }
.fact span{ font-size:13.5px; color:var(--muted); }
section.block{ margin-top:44px; }
section.block > h2{ font-size:26px; margin-bottom:14px; }
.themes{ display:grid; gap:10px; }
.theme-row{ display:grid; grid-template-columns:44px 1fr auto; gap:12px; align-items:center; background:var(--surface); border:1.5px solid var(--line); border-radius:var(--r); padding:14px 16px; text-decoration:none; color:var(--ink); }
.theme-row:hover{ border-color:var(--c); }
.theme-row .num{ font-family:var(--display); font-weight:800; font-size:24px; color:var(--c); }
.theme-row .tt{ font-weight:700; font-size:18px; }
.theme-row .ex{ display:block; font-size:14.5px; color:var(--muted); margin-top:2px; }
.theme-row .ct{ font-size:14px; color:var(--muted); white-space:nowrap; }
.modes{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.modes div{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:16px; }
.modes h3{ font-size:18px; margin-bottom:6px; }
.modes p{ margin:0; font-size:15px; color:var(--muted); }
.faq details{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:8px; }
.faq summary{ font-weight:700; cursor:pointer; }
.faq details p{ margin:10px 0 0; color:var(--muted); }

/* Page question */
.qhead .eyebrow{ color:var(--c); }
.qhead h1{ font-weight:800; font-size:clamp(27px, 6vw, 38px); margin-top:8px; letter-spacing:-.01em; }
.answer{ margin-top:22px; background:var(--surface); border:1px solid var(--line); border-left:5px solid var(--c); border-radius:var(--r); padding:18px 20px; }
.answer .lbl{ font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; color:var(--muted); }
.answer .a{ font-size:21px; font-weight:700; color:var(--ink); margin-top:4px; line-height:1.4; }
.answer .d{ margin-top:10px; color:var(--muted); }
.answer .src{ margin-top:12px; font-size:14px; color:var(--muted); }
.tag{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--red); border:1px solid var(--red); border-radius:5px; padding:0 5px; margin:0 3px; vertical-align:1px; white-space:nowrap; }
.cta{ margin-top:22px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; background:var(--accent-weak); border-radius:var(--r); padding:16px 18px; }
.cta p{ margin:0; font-weight:700; max-width:44ch; }
.pager{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; }
.pager a{ display:block; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 14px; text-decoration:none; color:var(--ink); min-width:0; }
.pager a span{ display:block; font-size:13px; color:var(--muted); }
.pager a b{ display:block; font-weight:700; font-size:15px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.pager .next{ text-align:right; }
.related{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.related a{ display:block; padding:9px 0; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink); }
.related a:hover{ color:var(--accent); }

/* Page thème */
.essentiel{ background:var(--surface); border:1px solid var(--line); border-top:5px solid var(--c); border-radius:var(--r); padding:16px 18px; margin-top:20px; }
.essentiel h2{ font-size:19px; color:var(--c); margin-bottom:6px; }
.essentiel ul{ margin:0; padding-left:20px; }
.essentiel li{ margin:6px 0; }
.qlist{ list-style:none; margin:0; padding:0; counter-reset:q; }
.qlist li{ display:grid; grid-template-columns:38px 1fr; gap:8px; padding:14px 0; border-bottom:1px solid var(--line); }
.qlist .n{ font-family:var(--display); font-weight:800; color:var(--c); font-size:18px; font-variant-numeric:tabular-nums; }
.qlist a{ font-weight:700; color:var(--ink); text-decoration:none; }
.qlist a:hover{ color:var(--accent); text-decoration:underline; }
.qlist .r{ display:block; color:var(--muted); margin-top:2px; }
.toc{ display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0; }
.toc a{ font-size:14.5px; padding:6px 12px; border-radius:999px; background:var(--surface); border:1px solid var(--line); text-decoration:none; color:var(--ink); font-weight:700; }
.toc a span{ color:var(--c); }

/* Texte courant (mentions légales) */
.prose h2{ font-size:22px; margin:28px 0 8px; }
.prose h3{ font-size:18px; margin:18px 0 4px; }
.prose p, .prose li{ color:var(--ink); }

/* Pied de page */
footer{ margin-top:56px; border-top:1px solid var(--line); padding-block:22px 34px; font-size:14px; color:var(--muted); }
footer .links{ display:flex; flex-wrap:wrap; gap:16px; margin-bottom:10px; }
footer a{ color:var(--muted); }

@media (max-width:640px){
  body{ font-size:16.5px; }
  .facts{ grid-template-columns:repeat(2, 1fr); }
  .modes{ grid-template-columns:1fr; }
  .nav .hide-sm{ display:none; }
  .theme-row{ grid-template-columns:36px 1fr; } .theme-row .ct{ grid-column:2; }
  .pager{ grid-template-columns:1fr; } .pager .next{ text-align:left; }
}
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }

/* Livret PDF */
.pdf{ display:grid; grid-template-columns:150px 1fr; gap:22px; align-items:start; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:20px; }
.pdf[hidden]{ display:none; }
.pdf img{ width:100%; height:auto; border-radius:6px; box-shadow:0 1px 0 var(--line), 0 6px 18px rgba(21,32,59,.12); background:#fff; }
.pdf h2{ font-size:24px; margin-bottom:6px; }
.pdf .pdf-lead{ margin:0 0 14px; color:var(--muted); }
.pdf-form label[for]{ display:block; font-weight:700; font-size:15px; margin-bottom:6px; }
.pdf-row{ display:flex; gap:8px; flex-wrap:wrap; }
.pdf-row input{ flex:1 1 220px; min-width:0; min-height:46px; padding:10px 12px; border-radius:12px; border:1.5px solid var(--line); background:var(--paper); color:var(--ink); font:inherit; }
.pdf-row input:focus{ outline:2.5px solid var(--accent); outline-offset:1px; border-color:var(--accent); }
.pdf-check{ display:flex; gap:10px; align-items:flex-start; margin-top:12px; font-size:14.5px; color:var(--ink); }
.pdf-check input{ margin-top:4px; width:18px; height:18px; flex:none; accent-color:var(--accent); }
.pdf-note{ font-size:13.5px; color:var(--muted); margin:10px 0 0; }
.pdf-err{ color:var(--red); font-weight:700; font-size:14.5px; margin:10px 0 0; }
.pdf-ok{ font-weight:700; margin:0 0 12px; }
@media (max-width:640px){ .pdf{ grid-template-columns:1fr; } .pdf img{ max-width:150px; } }

/* ---------- Mascotte (accueil) ---------- */
.hero-m{ display:grid; gap:18px 40px; }
.hero-m .facts{ grid-column:1/-1; margin-top:12px; }
.mascot{ justify-self:center; width:min(250px, 66vw); aspect-ratio:1; background:#fff; border:1px solid var(--line); border-radius:28px; overflow:hidden; box-shadow:0 10px 30px rgba(21,32,59,.10); }
.mascot video{ display:block; width:100%; height:100%; object-fit:cover; }
@media (min-width:820px){ .hero-m{ grid-template-columns:minmax(0,1fr) 290px; align-items:center; } .mascot{ width:290px; } }
.pdf .pdf-note{ margin:8px 0 0; font-size:14px; color:var(--muted); }

/* ---------- Listes officielles ---------- */
.sub{ color:var(--muted); margin:-4px 0 14px; }
.lists{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin:14px 0 6px; }
.list-card{ display:grid; gap:2px; padding:16px 18px; border-radius:var(--r); background:var(--surface); border:1.5px solid var(--line); color:var(--ink); text-decoration:none; }
.list-card:hover{ border-color:var(--accent); }
.list-card.on{ border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
.list-card b{ font-family:var(--display); font-size:19px; line-height:1.2; }
.list-card span{ font-weight:700; color:var(--accent); }
.list-card small{ color:var(--muted); font-size:13.5px; }
.sr-title{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
h2 .count{ font-family:var(--body, inherit); font-size:14px; font-weight:700; color:var(--muted); margin-left:6px; }
.lbadges{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-top:12px; font-size:13.5px; color:var(--muted); }
.lbadge{ display:inline-flex; gap:5px; align-items:center; padding:4px 10px; border-radius:999px; background:var(--surface); border:1px solid var(--line); color:var(--ink); text-decoration:none; }
.lbadge:hover{ border-color:var(--accent); }
.lbadge b{ color:var(--accent); font-weight:700; }
/* Question : propositions du QCM et aide en anglais */
.qcm-block{ margin-top:22px; }
.qcm-block h2{ font-size:19px; margin:0 0 10px; }
.qopts{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.qopts li{ display:flex; align-items:flex-start; gap:10px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:10px 14px; line-height:1.45; }
.qopts .L{ flex:none; width:1.3em; font-weight:800; color:var(--muted); }
.qopts li.ok{ border-color:var(--good); background:var(--good-weak); }
.qopts li.ok .L{ color:var(--good); }
.qopts .okl{ margin-left:auto; padding-left:10px; font-size:13px; font-weight:700; color:var(--good); white-space:nowrap; }
.qcm-block .note{ margin:8px 0 0; font-size:14px; color:var(--muted); }
.en-help{ margin-top:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); padding:0 16px; }
.en-help summary{ cursor:pointer; padding:12px 0; font-weight:700; color:var(--accent); }
.en-help summary b{ font-size:12px; letter-spacing:.04em; border-radius:5px; padding:1px 5px; margin-right:6px; background:var(--accent); color:var(--on-accent); }
.en-help p{ margin:0 0 10px; }
.en-help .end{ color:var(--muted); }
/* Livret du citoyen : sommaire et questions par chapitre */
.toc-table{ width:100%; border-collapse:collapse; font-size:15.5px; margin:14px 0 6px; }
.toc-table th, .toc-table td{ text-align:left; padding:9px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.toc-table th{ font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.toc-table td.n{ white-space:nowrap; font-variant-numeric:tabular-nums; }
.chap{ margin:22px 0 0; padding:16px 18px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); }
.chap h3{ font-size:19px; }
.chap .pg{ font-family:var(--body); font-size:14px; font-weight:400; color:var(--muted); }
.chap p{ margin:8px 0 0; }
.chap ul{ margin:10px 0 0; padding-left:20px; columns:2 300px; column-gap:28px; }
.chap li{ break-inside:avoid; margin-bottom:5px; font-size:15.5px; }
.offbtn{ display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.variants{ margin-top:16px; padding:14px 18px; border-radius:var(--r); border:1px dashed var(--line); }
.variants h2{ font-size:16px; margin:0 0 6px; }
.variants ul{ margin:0; padding-left:18px; }
.variants small{ color:var(--muted); }
/* ---------- Histoire et plan ---------- */
.story{ display:grid; grid-template-columns:150px 1fr; gap:22px; align-items:start; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:22px; }
.story-img{ width:100%; height:auto; border-radius:22px; background:#fff; border:1px solid var(--line); }
.story h2{ margin-top:0; }
.story p{ margin:0 0 10px; }
.sign{ font-style:italic; color:var(--muted); }
.plan7{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:10px; }
.plan7 li{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
.plan7 b{ display:block; color:var(--red); font-size:13px; letter-spacing:.06em; text-transform:uppercase; }
.guides{ list-style:none; padding:0; display:grid; gap:12px; }
.guides a{ display:grid; gap:4px; padding:16px 18px; border-radius:var(--r); background:var(--surface); border:1px solid var(--line); color:var(--ink); text-decoration:none; }
.guides a:hover{ border-color:var(--accent); }
.guides b{ font-family:var(--display); font-size:19px; }
.guides span{ color:var(--muted); }
.band .guides{ grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); margin:0; }
.prose table{ width:100%; border-collapse:collapse; margin:12px 0 18px; font-size:15px; }
.prose th, .prose td{ text-align:left; vertical-align:top; padding:9px 10px; border-bottom:1px solid var(--line); }
.prose thead th{ font-size:13.5px; color:var(--muted); }
.prose .example{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin:10px 0; }
.prose .example p{ margin:4px 0; }
.prose .src{ margin-top:26px; font-size:14px; color:var(--muted); }
.table-scroll{ overflow-x:auto; }
@media (max-width:640px){
  .lists{ grid-template-columns:1fr; }
  .story{ grid-template-columns:1fr; } .story-img{ max-width:150px; }
  .prose table{ display:block; overflow-x:auto; font-size:14px; } .prose th, .prose td{ padding:7px 6px; }
}

/* =====================================================================
   Mise en page par sections (accueil) — bandes pleine largeur alternées
   ===================================================================== */
:root{ --band:#E9EEF6; --head:#FFFFFF; --foot-bg:#14203A; --foot-ink:#B9C4D8; --foot-head:#FFFFFF;
  --shadow:0 1px 2px rgba(21,32,59,.05), 0 10px 28px rgba(21,32,59,.07); }
@media (prefers-color-scheme: dark){ :root{ --band:#111A2C; --head:#0F1626; --foot-bg:#070B14; --foot-ink:#93A0BA; --foot-head:#E6EBF5;
  --shadow:0 1px 2px rgba(0,0,0,.35), 0 10px 28px rgba(0,0,0,.28); } }

.wrap.wide{ max-width:1120px; }
.site-head{ background:var(--head); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:30; }
.site-head .top{ padding-block:12px; }

/* Bandes : le fond déborde sur toute la largeur sans créer de défilement horizontal */
.band{ padding-block:clamp(44px, 7vw, 84px); }
.band.alt, .band-hero{ background:var(--bg); box-shadow:0 0 0 100vmax var(--bg); clip-path:inset(0 -100vmax); }
.band.alt{ --bg:var(--band); }
.band-hero{ --bg:var(--head); padding-top:clamp(28px, 5vw, 56px); }
.home main{ padding-bottom:0; }
.home .site-foot{ margin-top:0; }

.shead{ max-width:680px; margin:0 0 28px; }
.shead h2{ font-size:clamp(27px, 4.4vw, 40px); font-weight:800; letter-spacing:-.015em; margin-top:8px; }
.shead p{ font-size:18px; color:var(--muted); margin:12px 0 0; }
.band .more{ margin:26px 0 0; }

/* Hero */
.band-hero .hero{ padding:0; }
.band-hero .hero h1{ font-size:clamp(34px, 6.2vw, 58px); line-height:1.05; }
.band-hero .lead{ font-size:clamp(18px, 2.2vw, 20px); }
.btn.big{ min-height:52px; padding:12px 22px; font-size:17px; border-radius:14px; }
.trust{ list-style:none; display:flex; flex-wrap:wrap; gap:8px 18px; padding:0; margin:20px 0 0; font-size:15px; color:var(--muted); font-weight:700; }
.trust li{ display:inline-flex; align-items:center; gap:6px; }
.trust svg{ color:var(--t2); }
.band-hero .facts{ margin-top:clamp(28px, 4vw, 44px); gap:12px; }
.band-hero .fact{ background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:16px 18px; }
.band-hero .fact b{ font-size:clamp(26px, 3.4vw, 34px); }
@media (min-width:860px){ .hero-m{ grid-template-columns:minmax(0,1fr) 340px; gap:56px; } .mascot{ width:340px; } }

/* Cartes des listes */
.lists{ gap:16px; margin:0; }
.list-card{ position:relative; overflow:hidden; display:flex; flex-direction:column; gap:6px; padding:24px 22px 20px; border-radius:16px; background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); color:var(--ink); text-decoration:none; transition:transform .15s ease, border-color .15s ease; }
.list-card::before{ content:""; position:absolute; inset:0 0 auto 0; height:5px; background:var(--lc, var(--accent)); }
.list-card:hover{ transform:translateY(-2px); border-color:var(--lc, var(--accent)); }
.list-card .lk{ font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; color:var(--muted); }
.list-card b{ font-family:var(--display); font-size:22px; line-height:1.15; }
.list-card .num{ font-family:var(--display); font-weight:800; font-size:42px; line-height:1; color:var(--lc, var(--accent)); margin-top:6px; }
.list-card .num small{ font-family:var(--body); font-size:15px; font-weight:700; color:var(--muted); margin-left:4px; }
.list-card > small{ color:var(--muted); font-size:14.5px; }
.list-card .go{ margin-top:auto; padding-top:14px; font-weight:700; color:var(--accent); font-size:15px; }
.list-card.on{ border-color:var(--lc); box-shadow:var(--shadow), inset 0 0 0 1px var(--lc); }
main.wrap:not(.wide) .lists{ margin:18px 0 6px; }
main.wrap:not(.wide) .list-card{ padding:18px 16px 14px; }
main.wrap:not(.wide) .list-card .num{ font-size:32px; }

/* Histoire */
.story{ display:grid; grid-template-columns:300px minmax(0,1fr); gap:clamp(24px, 5vw, 64px); align-items:center; background:none; border:0; padding:0; }
.story-img{ width:100%; height:auto; border-radius:28px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.story h2{ font-size:clamp(27px, 4.4vw, 40px); font-weight:800; letter-spacing:-.015em; margin:8px 0 16px; }
.story p{ font-size:18.5px; line-height:1.65; margin:0 0 14px; max-width:60ch; }
.story .sign{ font-style:italic; color:var(--muted); margin-bottom:18px; }

/* Plan en 7 jours */
.plan7{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; }
.plan7 li{ background:none; border:0; padding:0; }
.plan7 a{ display:flex; flex-direction:column; gap:6px; height:100%; padding:18px 16px; border-radius:14px; background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); color:var(--ink); text-decoration:none; transition:transform .15s ease, border-color .15s ease; }
.plan7 a:hover{ transform:translateY(-2px); border-color:var(--accent); }
.plan7 .d{ font-family:var(--display); font-weight:800; font-size:22px; color:var(--red); }
.plan7 .t{ font-weight:700; font-size:15.5px; line-height:1.35; }
.plan7 li:nth-child(n+6) .d{ color:var(--accent); }
@media (min-width:1000px){ .plan7{ grid-template-columns:repeat(7, minmax(0,1fr)); } }

/* Thèmes, modes, PDF, FAQ */
.band .themes{ gap:12px; }
.band .theme-row{ border:1px solid var(--line); box-shadow:var(--shadow); padding:18px 20px; border-radius:16px; }
.modes{ gap:16px; }
.modes > div{ padding:24px 22px; border-radius:16px; box-shadow:var(--shadow); }
.modes .ic{ display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:var(--accent-weak); color:var(--accent); margin-bottom:14px; }
.modes h3{ font-size:20px; }
.band .pdf{ grid-template-columns:200px minmax(0,1fr); gap:clamp(20px, 4vw, 48px); padding:clamp(20px, 4vw, 36px); border-radius:18px; box-shadow:var(--shadow); align-items:center; }
.band .pdf h2{ font-size:clamp(25px, 3.6vw, 34px); margin:8px 0 10px; }
.faq-list{ max-width:860px; }
.band .faq-list details{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 20px; margin-bottom:10px; box-shadow:var(--shadow); }
.band .faq-list summary{ font-size:17px; }

/* Pied de page */
.site-foot{ background:var(--foot-bg); color:var(--foot-ink); border:0; margin-top:64px; padding-block:48px 40px; font-size:15px; }
.site-foot a{ color:var(--foot-ink); text-decoration:none; }
.site-foot a:hover{ color:var(--foot-head); text-decoration:underline; }
.site-foot .brand{ color:var(--foot-head); }
.fcols{ display:grid; grid-template-columns:1.4fr repeat(4, 1fr); gap:28px; }
.fcols > div{ display:flex; flex-direction:column; gap:9px; }
.fcols h3{ font-family:var(--body); font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--foot-head); margin-bottom:4px; }
.fbrand p{ margin:6px 0 0; max-width:34ch; line-height:1.5; }
.fnote{ margin:36px 0 0; padding-top:20px; border-top:1px solid rgba(255,255,255,.12); font-size:13.5px; line-height:1.55; max-width:none; }

@media (max-width:860px){
  .story{ grid-template-columns:200px minmax(0,1fr); }
  .fcols{ grid-template-columns:1fr 1fr; }
  .fbrand{ grid-column:1/-1; }
}
@media (max-width:640px){
  .lists{ grid-template-columns:1fr; }
  .list-card{ padding:20px 18px 16px; }
  .list-card .num{ font-size:36px; }
  .story{ grid-template-columns:1fr; gap:18px; }
  .story-img{ max-width:150px; border-radius:22px; }
  .story p{ font-size:17px; }
  .plan7{ grid-template-columns:1fr 1fr; gap:10px; }
  .plan7 a{ padding:14px 14px; }
  .plan7 li:last-child{ grid-column:1/-1; }
  .band .pdf{ grid-template-columns:1fr; } .band .pdf img{ max-width:140px; }
  .band-hero .facts{ grid-template-columns:1fr 1fr; gap:10px; }
  .site-foot{ padding-block:40px 32px; }
  .shead p{ font-size:17px; }
}

/* Page « Installer l'application » */
.steps{ list-style:none; padding:0; margin:14px 0; display:grid; gap:10px; }
.steps li{ display:grid; grid-template-columns:36px minmax(0,1fr); gap:12px; align-items:start; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px 16px; box-shadow:var(--shadow); }
.steps .n{ display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--accent); color:var(--on-accent); font-weight:800; font-family:var(--display); }
.steps .ico{ vertical-align:-5px; color:var(--accent); margin:0 2px; }
.prose .tip{ font-size:15px; color:var(--muted); background:var(--accent-weak); border-radius:12px; padding:12px 14px; }
.is-app .site-head{ padding-top:env(safe-area-inset-top); }

/* Mises en situation */
.sit-item{ background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--c); border-radius:14px; padding:16px 18px; margin:12px 0; }
.sit-meta{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; color:var(--c); }
.sit-s{ margin:6px 0 4px; }
.sit-q{ margin:0 0 6px; font-weight:700; }
.sit-opts{ margin:6px 0 8px; padding-left:24px; color:var(--muted); }
.sit-opts li{ margin:3px 0; }
.sit-item summary{ cursor:pointer; font-weight:700; color:var(--accent); }
.sit-a{ margin:8px 0 2px; font-weight:700; }
.sit-a::before{ content:"✓ "; color:var(--t2); }
.sit-d{ margin:0; color:var(--muted); }
.modes{ grid-template-columns:repeat(4, minmax(0,1fr)); }
@media (max-width:980px){ .modes{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){ .modes{ grid-template-columns:1fr; } }

/* Livrets PDF */
.livrets{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; }
.livret{ display:grid; grid-template-columns:96px minmax(0,1fr); gap:16px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px; box-shadow:var(--shadow); }
.livret img{ width:100%; height:auto; border-radius:4px; box-shadow:0 1px 0 var(--line), 0 6px 16px rgba(21,32,59,.14); background:#fff; }
.livret > div{ display:grid; gap:6px; justify-items:start; }
.livret b{ font-family:var(--display); font-size:19px; line-height:1.2; }
.livret span{ font-size:14px; color:var(--muted); }
.livret .btn{ margin-top:6px; min-height:42px; padding:8px 14px; font-size:15px; }
@media (max-width:980px){ .livrets{ grid-template-columns:1fr; max-width:520px; } }

/* Ancres : ne pas passer sous l’en-tête fixe */
[id]{ scroll-margin-top:84px; }

/* Preuve sociale (chiffres réels) et témoignages */
.proof{ margin:14px 0 0; font-size:15px; font-weight:700; color:var(--accent); }
.temoignages{ margin-top:clamp(28px, 5vw, 48px); }
.temoignages h3{ font-size:22px; margin-bottom:14px; }
.tlist{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:14px; }
.tcard{ margin:0; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:18px 20px; box-shadow:var(--shadow); }
.tcard blockquote{ margin:0 0 10px; font-size:16.5px; line-height:1.55; }
.tcard figcaption{ font-size:14px; color:var(--muted); }
.tnote{ font-size:13px; color:var(--muted); margin:10px 0 0; }

/* Pages en arabe : écriture de droite à gauche */
[lang="ar"], [lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3{ font-family:"Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif; }
.prose[dir="rtl"]{ line-height:1.8; }
.prose[dir="rtl"] h1{ line-height:1.35; }
.prose[dir="rtl"] th, .prose[dir="rtl"] td{ text-align:right; }
.prose[dir="rtl"] .eyebrow{ letter-spacing:0; }

/* Générateur de sujets PDF (40 questions) */
.muted{ color:var(--muted); }
.gen40{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:18px; margin:20px 0 8px; box-shadow:var(--shadow); }
.gen40 fieldset{ border:0; padding:0; margin:0 0 12px; display:grid; gap:8px; }
.gen40 legend{ font-weight:700; padding:0; margin-bottom:8px; }
.gen40 .opt{ display:flex; align-items:center; gap:10px; min-height:48px; padding:8px 14px; border:1.5px solid var(--line); border-radius:12px; cursor:pointer; font-weight:600; }
.gen40 .opt input{ width:20px; height:20px; accent-color:var(--accent); margin:0; }
.gen40 .opt small{ margin-left:auto; color:var(--muted); font-weight:400; }
.gen40 .opt:has(input:checked){ border-color:var(--accent); background:var(--accent-weak); }
.gen40 .chk{ display:flex; align-items:center; gap:10px; margin:2px 0 14px; }
.gen40 .chk input{ width:20px; height:20px; accent-color:var(--accent); margin:0; }
.gen40 .btn{ width:100%; }
.gen40 .btn[disabled]{ opacity:.6; cursor:progress; }
.gen-status{ min-height:1.4em; margin:12px 0 0; }
.gen-status:empty{ margin:0; min-height:0; }

/* Questions de l'entretien : questions dépliables */
.note{ background:var(--sunk); border-left:4px solid var(--accent); border-radius:10px; padding:12px 16px; margin:16px 0; }
.note p{ margin:0; }
.qa{ display:grid; gap:8px; margin:12px 0 8px; }
.qa details{ background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.qa summary{ cursor:pointer; padding:12px 14px; font-weight:700; display:flex; gap:10px; align-items:baseline; list-style:none; }
.qa summary::-webkit-details-marker{ display:none; }
.qa summary::after{ content:"+"; margin-left:auto; color:var(--muted); font-weight:400; font-size:20px; line-height:1; }
.qa details[open] summary::after{ content:"–"; }
.qa .qn{ flex:none; min-width:26px; color:var(--accent); font-variant-numeric:tabular-nums; }
.qa details > div{ padding:0 14px 12px 50px; }
.qa details > div p{ margin:6px 0; }

/* Fiches : questions officielles liées */
.fq{ list-style:none; padding:0; display:grid; gap:8px; }
.fq li{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:10px 14px; }
.fq a{ font-weight:700; display:block; }
.fq span{ display:block; color:var(--muted); margin-top:2px; }

/* Quiz de l'accueil (5 questions) */
.hq{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:16px; box-shadow:var(--shadow); align-self:start; }
.hq-head{ display:flex; gap:12px; align-items:center; margin-bottom:10px; }
.hq-head video{ width:56px; height:56px; border-radius:14px; background:#fff; flex:none; object-fit:cover; }
.hq-head h2{ font-family:var(--display); font-size:19px; line-height:1.2; margin:0; }
.hq-n{ margin:2px 0 0; font-size:13.5px; color:var(--muted); }
.hq-s{ font-style:italic; margin:4px 0 6px; }
.hq-q{ font-weight:700; margin:4px 0 10px; }
.hq-opts{ display:grid; gap:8px; }
.hq-o{ text-align:left; min-height:46px; padding:10px 12px; border-radius:12px; border:1.5px solid var(--line); background:var(--surface); color:var(--ink); font:inherit; cursor:pointer; }
.hq-o:hover:not([disabled]){ border-color:var(--accent); }
.hq-o[disabled]{ cursor:default; }
.hq-o.ok{ border-color:var(--good); background:var(--good-weak); }
.hq-o.ko{ border-color:var(--red); }
.hq-fb{ margin:12px 0 0; padding:10px 12px; border-radius:12px; background:var(--sunk); font-size:15px; }
.hq-fb.ok{ background:var(--good-weak); }
.hq-next{ margin-top:12px; width:100%; }
.hq-score{ font-family:var(--display); font-size:44px; font-weight:800; margin:4px 0; text-align:center; }
.hq-msg{ text-align:center; margin:0 0 12px; }
.hq-go{ width:100%; }
.hq-again{ display:block; margin:10px auto 0; background:none; border:0; color:var(--muted); text-decoration:underline; font:inherit; cursor:pointer; }
@media (min-width:820px){ .hero-m{ grid-template-columns:minmax(0,1fr) 380px; } }

/* Outil « Quelle liste pour moi ? » */
.ql{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:6px 18px 16px; margin:18px 0 24px; box-shadow:var(--shadow); }
.ql h2{ margin-top:14px; }
.ql fieldset{ border:0; padding:0; margin:0 0 14px; display:grid; gap:8px; }
.ql fieldset[hidden]{ display:none; }
.ql legend{ font-weight:700; margin-bottom:8px; padding:0; }
.ql label{ display:flex; align-items:center; gap:10px; min-height:44px; padding:6px 12px; border:1.5px solid var(--line); border-radius:12px; cursor:pointer; }
.ql label:has(input:checked){ border-color:var(--accent); background:var(--accent-weak); }
.ql input{ width:20px; height:20px; margin:0; accent-color:var(--accent); flex:none; }
.ql-res{ background:var(--accent-weak); border-radius:12px; padding:12px 14px; }
.ql-res p{ margin:0 0 8px; }
.ql-links{ display:flex; flex-wrap:wrap; gap:8px; }
.ql-note{ font-size:14px; color:var(--muted); }
