/* ==========================================================================
   osteopathe-femme-enceinte.com — feuille de style du site
   Palette Pôle Ostéo (jamais de noir : le texte est navy #003153).
   Typographies : Fraunces (titres) + Source Sans 3 (texte), via Google Fonts.
   Mobile d'abord : colonne de lecture 720 px, gouttières 16 px minimum.
   Partagée entre le build statique et le thème WordPress.
   ========================================================================== */

:root {
  --bg: #FAF8F8;
  --surface: #FFFFFF;
  --fg: #003153;
  --muted: #4F6577;
  --primary: #026BB4;
  --primary-dark: #02599A;
  --accent: #3AA9C2;
  --sage: #A7C2B6;
  --sage-soft: #EEF4F1;
  --blue-soft: #E8F2F9;
  --line: #D8E2E9;
  --ok: #3F7D62;
  --warn-soft: #FFF4E8;
  --warn: #C9772B;
  --shadow: 0 6px 24px rgba(0, 49, 83, 0.08);
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --wrap: 720px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
  padding-bottom: 92px; /* place pour la barre collante mobile */
}
body.no-sticky { padding-bottom: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; color: var(--fg); }
h1 { font-size: clamp(1.85rem, 5.5vw, 2.7rem); margin: 1rem 0 .8rem; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.7rem); margin: 2.4rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
h4 { font-size: 1.02rem; margin: 1.2rem 0 .3rem; }
h2 + h3, h3 + p, h2 + p { margin-top: .4rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: .35rem; }
li > ul, li > ol { margin-top: .35rem; }
strong { font-weight: 700; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--sage); color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main.wrap { padding-top: .5rem; }
.eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
th { background: var(--blue-soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* ---------- Lexique (dl) ---------- */
dl { margin: 0 0 1.2rem; }
dt { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-top: 1rem; color: var(--primary); scroll-margin-top: 1rem; }
dd { margin: .25rem 0 0; padding-left: 0; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
dl .masque { display: none; }

/* ---------- En-tête de site ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: flex; flex-direction: column; line-height: 1.12; text-decoration: none; color: var(--fg); min-width: 0; }
.brand strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; white-space: nowrap; }
.brand span { font-size: .72rem; color: var(--primary); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.burger { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .8rem; cursor: pointer; }
.burger i { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.burger i::before { top: -6px; } .burger i::after { top: 6px; }
.site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: .1rem; padding: .4rem 0 .2rem; border-top: 1px solid var(--line); margin-top: .3rem; }
.site-header.open .site-nav { display: flex; }
.site-nav a { color: var(--fg); text-decoration: none; padding: .5rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
.site-nav a:last-child { border-bottom: 0; }
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--primary); font-weight: 700; }
.site-nav a.btn { margin-top: .5rem; align-self: flex-start; border-bottom: 2px solid var(--primary); color: #FFFFFF; padding: .55rem 1rem; }
.site-nav a.btn:hover { color: #FFFFFF; }
.header-cta { display: none; }
@media (min-width: 980px) {
  :root { --wrap: 720px; }
  .site-header .wrap { max-width: 1100px; flex-wrap: nowrap; }
  .burger { display: none; }
  .site-nav { display: flex; flex-basis: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .15rem .85rem; border-top: 0; padding: 0; margin: 0; font-size: .9rem; }
  .site-nav a { border-bottom: 0; padding: .2rem 0; color: var(--muted); font-size: .9rem; white-space: nowrap; }
  .site-nav a:hover { color: var(--primary); }
  .site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--fg); }
  .site-nav a.btn { margin: 0 0 0 .3rem; padding: .45rem .9rem; font-size: .88rem; border-bottom-width: 2px; align-self: center; }
}

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .35rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--fg); }

/* ---------- Chapô, repères ---------- */
.chapo { font-size: 1.15rem; line-height: 1.5; color: var(--fg); margin-bottom: 1rem; }
.reperes { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.2rem; font-size: .88rem; }
.reperes .chip { font-weight: 600; padding: .22rem .7rem; border-radius: 999px; background: var(--blue-soft); color: var(--fg); font-variant-numeric: tabular-nums; }
.reperes .chip:nth-child(n+3) { background: var(--sage-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chip { font-size: .85rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: var(--blue-soft); color: var(--fg); }
.chip.sage { background: var(--sage-soft); }

/* ---------- Encadrés ---------- */
.essentiel, .encart-osteo, .encart-semaine, .alerte, .mot-semaine, .contact-pro, .rgpd, .outil-box {
  border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.4rem 0;
}
.essentiel { background: var(--sage-soft); border-left: 5px solid var(--sage); }
.essentiel h2 { margin-top: 0; font-size: 1.25rem; }
.essentiel ol, .essentiel ul { margin-bottom: 0; }
.encart-osteo { background: var(--blue-soft); border-left: 5px solid var(--primary); }
.encart-osteo h2, .encart-osteo h3 { margin-top: 0; font-size: 1.3rem; }
.encart-osteo > :last-child { margin-bottom: 0; }
.encart-semaine { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.encart-semaine h2 { margin-top: 0; font-size: 1.3rem; }
.encart-semaine > :last-child { margin-bottom: 0; }
.alerte { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); }
.alerte h2, .alerte h3 { margin-top: 0; font-size: 1.2rem; }
.alerte > p:first-of-type { color: var(--muted); margin: .3rem 0 .6rem; }
.alerte ul { margin-bottom: .6rem; }
.alerte li { break-inside: avoid; }
.alerte > :last-child { margin-bottom: 0; font-size: .95rem; }
@media (min-width: 640px) { .alerte ul { columns: 2; column-gap: 1.5rem; } }
.mot-semaine { background: var(--surface); border: 1px solid var(--line); }
.mot-semaine .eyebrow { margin-bottom: .3rem; }
.mot-semaine .word { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--primary); }
.mot-semaine .pron { color: var(--muted); font-size: .95rem; }
.mot-semaine > :last-child { margin-bottom: 0; }
.cas { border-left: 3px solid var(--sage); padding-left: 1rem; color: var(--muted); font-style: italic; margin: 1.2rem 0; }
.cas strong, .cas b { font-style: normal; color: var(--fg); }
.contact-pro { background: var(--blue-soft); border: 1px solid var(--line); }
.contact-pro h2 { margin-top: 0; font-size: 1.3rem; }
.contact-pro > :last-child { margin-bottom: 0; }
.rgpd { background: var(--sage-soft); font-size: .92rem; margin: 1.6rem 0; }
.rgpd > :last-child { margin-bottom: 0; }

/* ---------- Mots les plus cherchés ---------- */
.mots { display: flex; flex-wrap: wrap; gap: .45rem .5rem; align-items: baseline; margin: .4rem 0 1.2rem; }
.mots a { text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-weight: 600; line-height: 1.3; }
.mots a:hover, .mots a:focus-visible { border-color: var(--primary); color: var(--primary); }
.mots a.m1 { font-size: 1.15rem; } .mots a.m2 { font-size: 1rem; } .mots a.m3 { font-size: .88rem; }

/* ---------- Cartes symptômes ---------- */
.freq { display: grid; grid-template-columns: 1fr; gap: .8rem; margin: 1rem 0 .4rem; }
@media (min-width: 560px) { .freq { grid-template-columns: 1fr 1fr; } }
.fcard { display: flex; flex-direction: column; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1rem; min-width: 0; scroll-margin-top: 1rem; }
.fcard h3 { font-size: 1.08rem; margin: 0; display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.fcard h3 a { color: var(--fg); text-decoration: none; }
.fcard h3 a:hover { color: var(--primary); }
.fcard .freq-n { font-family: var(--font-body); font-weight: 600; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fcard p { margin: 0; font-size: .93rem; line-height: 1.4; }
.fcard .ok strong, .fcard .ok b { color: var(--ok); }
.fcard .ko strong, .fcard .ko b { color: var(--warn); }
.fcard-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .3rem; font-size: .9rem; }
.fcard-foot a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.fcard.cible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-soft); }
.lvl { display: inline-block; font-size: .76rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.lvl-coeur { background: var(--primary); color: #FFFFFF; }
.lvl-confort { background: var(--sage-soft); color: var(--fg); border: 1px solid var(--sage); }
.lvl-conseil { background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.lvl-med { background: var(--surface); border: 1px solid var(--accent); color: var(--fg); }
.freq-more { font-size: .95rem; margin: .4rem 0 1rem; }

/* ---------- Preuve ---------- */
.preuve { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 6px; background: var(--sage-soft); color: var(--fg); margin-right: .4rem; vertical-align: 1px; }

/* ---------- Selon votre semaine (pages symptôme) ---------- */
h3[id="1er-trimestre"], h3[id="2e-trimestre"], h3[id="3e-trimestre"], h3[id="apres-la-naissance"] { scroll-margin-top: 1rem; padding: .3rem .6rem; margin-left: -.6rem; border-radius: 8px; }
h3.actif { background: var(--blue-soft); border-left: 4px solid var(--primary); }

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--line); padding: .7rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
details + details { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-weight: 700; flex: none; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: .6rem 0 0; }
details ul, details ol { margin-top: .5rem; }
@media (prefers-reduced-motion: no-preference) { details[open] > *:not(summary) { animation: fade .25s ease; } @keyframes fade { from { opacity: .4; } to { opacity: 1; } } }

/* ---------- Navigation entre semaines (3 conventions) ---------- */
.nav-semaines, .semaines-nav, .semaine-nav { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1rem; margin: 1.6rem 0; }
.nav-semaines a, .semaines-nav a, .semaine-nav a { font-weight: 600; text-decoration: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; padding: .7rem 1.2rem; border-radius: 999px; border: 2px solid var(--primary); background: var(--primary); color: #FFFFFF; cursor: pointer; text-decoration: none; text-align: center; margin: .2rem .3rem .2rem 0; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #FFFFFF; }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--blue-soft); color: var(--primary-dark); }
.btn.sage { background: var(--sage); border-color: var(--sage); color: var(--fg); }
.btn.sage:hover { background: #93B3A5; border-color: #93B3A5; }
.btn.small { padding: .45rem .9rem; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- CTA ---------- */
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.3rem 1.1rem; box-shadow: var(--shadow); margin-top: 2.4rem; scroll-margin-top: 1rem; }
.cta h2 { margin-top: 0; font-size: 1.4rem; }
.cta h3 { margin-top: 1.2rem; }
.cta .meta { font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }
.cta > :last-child { margin-bottom: 0; }
.meta { font-size: .9rem; color: var(--muted); }

/* ---------- Auteur, sources, disclaimer ---------- */
.auteur { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1rem; align-items: start; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .95rem; }
.auteur::before { content: "AR"; grid-column: 1; grid-row: 1 / span 9; width: 56px; height: 56px; border-radius: 50%; background: var(--sage); color: var(--fg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.auteur > * { grid-column: 2; min-width: 0; }
.auteur p { margin: 0 0 .4rem; }
.auteur p:last-child { color: var(--muted); margin-bottom: 0; }
.sources { font-size: .88rem; color: var(--muted); margin-top: 1.4rem; }
.sources > strong { display: block; margin-bottom: .3rem; color: var(--fg); }
.sources ul { padding-left: 1.1rem; margin-bottom: 0; }
.sources a { word-break: break-all; }
.disclaimer { font-size: .85rem; color: var(--muted); margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Checklist ---------- */
ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li { margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--line); }
ul.checklist label { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
ul.checklist input[type="checkbox"] { flex: none; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--primary); }
ul.checklist li.fait label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--sage); }
.check-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0; box-shadow: var(--shadow); }
.check-bar .jauge { height: 10px; border-radius: 999px; background: var(--blue-soft); overflow: hidden; margin: .5rem 0 .8rem; }
.check-bar .jauge i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .3s ease; }
.check-bar .tri { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .9rem; color: var(--muted); margin: 0 0 .6rem; }
.check-bar .tri a { text-decoration: none; font-weight: 600; }

/* ---------- Outils (bloc générique) ---------- */
.outil { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.2rem 1.3rem; margin: 1.6rem 0; }
.outil:empty { display: none; }
.outil h2, .outil h3 { margin-top: 0; }
.outil h2 { font-size: 1.35rem; }
.outil .aide { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }
.outil form { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: .9rem; align-items: end; }
@media (min-width: 520px) { .outil form.deux { grid-template-columns: 1fr 1fr; } .outil form.deux .btn, .outil form.deux .pleine { grid-column: 1 / -1; } }
.outil label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; font-weight: 600; min-width: 0; }
.outil label.ligne { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; font-size: .95rem; }
.outil input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .outil select, .outil textarea { font: inherit; font-size: 1rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); min-width: 0; width: 100%; }
.outil textarea { min-height: 7rem; resize: vertical; }
.outil input[type="checkbox"], .outil input[type="radio"] { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); flex: none; margin: .15rem 0 0; }
.outil input[type="range"] { width: 100%; accent-color: var(--primary); }
.outil .btn { justify-self: start; }
.outil fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem .3rem; margin: 0; }
.outil legend { font-weight: 700; padding: 0 .3rem; }
.outil .choix { display: grid; gap: .3rem; }
.outil .sortie { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--blue-soft); font-size: 1rem; }
.outil .sortie strong.grand, .calc-out strong.grand { font-size: 1.25rem; font-family: var(--font-display); }
.outil .sortie ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.outil .sortie > :last-child { margin-bottom: 0; }
.outil .sortie.alerte-med { background: var(--surface); border: 1px solid var(--accent); }
.outil .sortie.erreur { background: var(--warn-soft); }
.outil .note { font-size: .82rem; color: var(--muted); margin: .7rem 0 0; }
.outil .boutons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.outil .etapes { font-size: .85rem; color: var(--muted); margin: 0 0 .6rem; }
.outil .fcard { margin-top: 1rem; }
.outil .fcard p { font-size: .95rem; }
.outil .explo-osteo { font-size: .93rem; }

/* Frise */
.frise-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1rem; padding-bottom: .3rem; }
.frise { min-width: 640px; width: 100%; display: block; }
.frise a { cursor: pointer; }
.frise a:hover .jalon, .frise a:focus-visible .jalon { opacity: .75; }
.frise a:focus-visible { outline: 2px solid var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.frise-ctrl { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.frise-ctrl label { flex: 1 1 140px; }
.frise-jalon { margin-top: .8rem; font-size: .95rem; }
.frise-jalon:empty { display: none; }

/* Fresque des mots */
.fresque-sa { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.fresque-sa output { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--primary); min-width: 4.5rem; }
.fresque-sa .btn { margin: 0; }
.fresque .mots { margin-top: 1rem; min-height: 3rem; }
.fresque .mots a.med { border-color: var(--accent); }
.fresque .vide { color: var(--muted); }

/* Quiz */
.quiz .question { display: none; }
.quiz .question.active { display: block; }
.quiz .question h3 { margin-top: 0; }
.quiz .boutons { margin-top: 1rem; }
.quiz .reponse h3 { margin-top: 0; }
.quiz .reponse .lvl { margin-bottom: .6rem; }

/* Annuaire (bientôt) */
.annuaire-bientot .regions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.annuaire-bientot .regions li { margin: 0; }
.annuaire-bientot .regions a { display: inline-block; text-decoration: none; font-size: .9rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: var(--blue-soft); color: var(--fg); }
.annuaire-bientot .regions a:hover { background: var(--sage-soft); }
.annuaire-bientot .nice { background: var(--sage-soft); border-radius: 12px; padding: .9rem 1rem; margin-top: 1rem; }
.annuaire-bientot .nice > :last-child { margin-bottom: 0; }

/* Lexique : recherche */
.lexique-recherche label { font-weight: 600; }
.lexique-recherche .compte { font-size: .88rem; color: var(--muted); margin: .5rem 0 0; }

/* Hub outils, régions */
.grille { display: grid; grid-template-columns: 1fr; gap: .8rem; margin: 1rem 0; }
@media (min-width: 560px) { .grille { grid-template-columns: 1fr 1fr; } }
.carte { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--fg); }
.carte:hover { border-color: var(--primary); }
.carte strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .3rem; color: var(--primary); }
.carte span { font-size: .93rem; color: var(--muted); }

/* ---------- Barre collante mobile ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: .6rem; background: var(--surface); border-top: 1px solid var(--line); padding: .6rem max(16px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -4px 18px rgba(0, 49, 83, .08); }
.sticky .btn { flex: 1; margin: 0; padding: .6rem .6rem; font-size: .92rem; white-space: nowrap; }
@media (min-width: 760px) { .sticky { display: none; } body { padding-bottom: 0; } }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 3rem; background: var(--surface); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer .wrap { padding-top: 1.6rem; padding-bottom: 1.6rem; display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; color: var(--fg); margin: 0 0 .4rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .8rem; font-size: .85rem; }
.site-footer .brand { margin-bottom: .6rem; }
.site-footer .brand strong { font-size: 1rem; }

/* ---------- Impression ---------- */
@media print {
  .site-header, .sticky, .site-footer, .burger, .outil form { display: none !important; }
  body { padding: 0; background: #FFFFFF; }
  a { color: var(--fg); text-decoration: none; }
  details { page-break-inside: avoid; }
  details > *:not(summary) { display: block; }
}
