/* Clairpas : accessibilité maximale. Bleu nuit et vert doux sur blanc, contraste AAA, grands corps de texte. */
:root {
  --navy: #0a2540;
  --ink: #0a2540;
  --soft-ink: #243b53;
  --link: #0a3d91;
  --green: #0a4f2e;
  --green-soft: #e8f5ec;
  --green-mid: #bfe3cb;
  --white: #ffffff;
  --err: #8a1c1c;
  --radius: 16px;
  --line: 3px solid var(--navy);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; position: relative; background: var(--white); color: var(--ink); font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 1.125rem; line-height: 1.7; letter-spacing: 0.01em; overflow-x: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 0.75rem; font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); margin-top: 2.2rem; }
h2::before { content: ""; display: block; width: 3.5rem; height: 0.4rem; background: var(--green); border-radius: 4px; margin-bottom: 0.6rem; }
h3 { font-size: 1.3rem; margin-top: 1.5rem; }
p, ul, ol, dl { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 5px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white), 0 0 0 8px var(--green-mid); border-radius: 6px;
}
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { font-style: normal; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 50; background: var(--navy); color: var(--white); padding: 1rem 1.4rem; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* En-tête et navigation */
.top { background: var(--white); border-bottom: 6px solid var(--green); }
.top-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); font-size: 1.7rem; font-weight: 900; letter-spacing: 0; }
.logo em { font-style: normal; color: var(--green); }
.logo:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.mainnav li { margin: 0; }
.mainnav a, .mainnav summary { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.4rem 1rem; border: 2px solid transparent; border-radius: 12px; font-weight: 800; color: var(--navy); text-decoration: none; cursor: pointer; list-style: none; }
.mainnav summary::-webkit-details-marker { display: none; }
.mainnav summary::after { content: "▾"; margin-left: 0.4rem; }
.mainnav a:hover, .mainnav summary:hover, .mainnav details[open] > summary { background: var(--green-soft); border-color: var(--navy); }
.menu { display: block; }
.menu-panel { position: absolute; right: 1.25rem; top: calc(100% - 0.4rem); z-index: 20; min-width: 17rem; max-width: calc(100vw - 2.5rem); background: var(--white); border: var(--line); border-radius: var(--radius); padding: 0.5rem; display: flex; flex-direction: column; box-shadow: 0 6px 0 var(--green-mid); }
.menu-panel a { width: 100%; }

/* Fil d'Ariane et en-têtes de page */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0; padding: 0; margin: 0 0 1rem; font-size: 1rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 0.6rem; color: var(--soft-ink); }
.pagehead { background: var(--green-soft); border-bottom: 4px solid var(--navy); padding: 2rem 0 1.6rem; }
.pagehead h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.9rem; overflow-wrap: break-word; max-width: 100%; }
.h1ico { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--white); border: var(--line); font-size: 1.8rem; flex: none; }
.lead { font-size: 1.3rem; max-width: 46rem; color: var(--navy); }
.count { font-size: 1.2rem; font-weight: 700; }
.count b { font-size: 1.6rem; }
.byline { display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; color: var(--soft-ink); margin: 1rem 0 0; }
.byline img { border-radius: 50%; border: 2px solid var(--navy); flex: none; }
.portrait { border-radius: 50%; border: var(--line); display: block; margin-bottom: 1rem; }

/* Accueil */
.hero { position: relative; overflow: hidden; padding: 3rem 0 2.2rem; background: var(--white); }
.hero::after { content: ""; position: absolute; right: -6rem; top: -5rem; width: 22rem; height: 22rem; border-radius: 50%; background: var(--green-soft); z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { font-weight: 800; color: var(--green); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); max-width: 18ch; }
.mk { background: linear-gradient(transparent 60%, var(--green-mid) 60%); }
.bigbuttons { list-style: none; display: flex; flex-wrap: wrap; gap: 0.9rem; padding: 0; margin: 1.5rem 0; }
.bigbuttons li { margin: 0; }

/* Bandes de contenu */
.band { padding: 1.5rem 0 2.2rem; }
.band.soft { background: var(--green-soft); border-top: 3px solid var(--green-mid); border-bottom: 3px solid var(--green-mid); }
.band h2:first-child { margin-top: 0.6rem; }
.note { color: var(--soft-ink); max-width: 52rem; }
.prose { max-width: 100%; }
.prose p, .prose li { max-width: 52rem; }
.prose ul, .prose ol { padding-left: 1.6rem; }
.band.prose h2:first-child { margin-top: 0.6rem; }
article.prose { max-width: 52rem; }

/* Avertissement */
.safety { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.3rem; border: var(--line); border-left-width: 14px; border-radius: var(--radius); background: var(--white); color: var(--navy); font-weight: 700; margin: 0.5rem 0; }
.safety p { margin: 0; }
.safety .ico { font-size: 1.8rem; line-height: 1.2; }
.safety-line { font-weight: 700; border: 2px solid var(--navy); border-radius: 12px; padding: 0.7rem 1rem; margin-top: 1rem; font-size: 1rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.6rem; padding: 0.8rem 1.7rem; background: var(--navy); color: var(--white); border: 3px solid var(--navy); border-radius: 14px; font: inherit; font-size: 1.15rem; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.3; }
.btn:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.btn.alt { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn.alt:hover { background: var(--green-soft); color: var(--navy); border-color: var(--navy); }
.btn.small { min-height: 3.1rem; padding: 0.5rem 1.2rem; font-size: 1.02rem; }
.btn:disabled { opacity: 1; background: #d5dde6; color: var(--navy); border-color: var(--navy); cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0.5rem 0.4rem; min-height: 2.75rem; color: var(--link); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; cursor: pointer; }
.linkbtn:hover { text-decoration-thickness: 4px; }

/* Cartes */
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.1rem; padding: 0; margin: 1rem 0; }
.cards > li { margin: 0; min-width: 0; display: flex; }
.card { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: 0.15rem; align-items: start; padding: 1.2rem; border: var(--line); border-radius: 18px; background: var(--white); color: var(--navy); text-decoration: none; }
.card:hover { background: var(--green-soft); }
.card .ico, .site .ico { grid-row: 1 / span 3; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--green-mid); font-size: 1.7rem; }
.card b { font-size: 1.2rem; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; overflow-wrap: break-word; min-width: 0; }
.card span { color: var(--soft-ink); font-size: 1rem; line-height: 1.5; min-width: 0; }
.band.soft .card { background: var(--white); }
.band.soft .card:hover { background: var(--green-soft); }

/* Annuaire */
.sitelist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; padding: 0; margin: 1rem 0; }
.sitelist > li { position: relative; margin: 0; min-width: 0; display: flex; }
.site { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: 0.15rem; align-items: start; padding: 1.1rem 4.6rem 1.1rem 1.1rem; border: var(--line); border-radius: 18px; background: var(--white); color: var(--navy); text-decoration: none; }
.site:hover { background: var(--green-soft); }
.site b { font-size: 1.15rem; overflow-wrap: anywhere; min-width: 0; line-height: 1.35; }
.site span { color: var(--soft-ink); font-size: 1rem; min-width: 0; }
.site .go { font-style: normal; font-weight: 700; color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; font-size: 0.98rem; line-height: 1.4; min-width: 0; grid-column: 2; }
.fav { position: absolute; top: 0.8rem; right: 0.8rem; width: 3.2rem; height: 3.2rem; padding: 0; border: var(--line); border-radius: 50%; background: var(--white); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.fav:hover, .fav[aria-pressed="true"] { background: var(--green-mid); }
.has-fav { position: relative; }
.finder { margin-bottom: 1.2rem; }
.finder-row label { display: block; font-weight: 800; margin-bottom: 0.4rem; }
.finder-box { display: flex; gap: 0.6rem; }
.finder-box input { flex: 1; min-width: 0; }
.finder-clear { min-height: 3.5rem; padding: 0 1.1rem; border: var(--line); border-radius: 12px; background: var(--white); color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
.finder-count { font-weight: 700; margin: 0.8rem 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1rem 0; }
.chips li { margin: 0; }
.chips button { min-height: 3rem; padding: 0.3rem 1rem; border: var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.favbox { border: var(--line); border-radius: var(--radius); background: var(--green-soft); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.favbox-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.empty { border: var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.directory .sitelist { margin-top: 0.5rem; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; border: var(--line); border-left-width: 14px; border-radius: var(--radius); background: var(--green-soft); margin: 1.5rem 0; }
.callout p { margin: 0; font-weight: 700; flex: 1 1 16rem; min-width: 0; }

/* Formulaires */
.field { margin: 0 0 1.2rem; min-width: 0; }
label { display: block; font-weight: 800; margin-bottom: 0.4rem; }
input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  display: block; width: 100%; max-width: 100%; min-height: 3.6rem; padding: 0.6rem 0.9rem; border: var(--line); border-radius: 12px; background: var(--white); color: var(--navy); font: inherit; font-size: 1.2rem;
}
textarea { min-height: 8rem; line-height: 1.5; resize: vertical; }
select { appearance: auto; }
input[type="checkbox"] { width: 1.9rem; height: 1.9rem; min-height: 0; accent-color: var(--green); flex: none; margin: 0; }
.hint { font-weight: 700; color: var(--soft-ink); border-left: 6px solid var(--green); padding-left: 0.8rem; margin-bottom: 1.2rem; }
.status { font-weight: 700; min-height: 1.7rem; margin: 0.8rem 0; }
.toolbox { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
.toolbox > * { min-width: 0; }
.resultcol h2 { margin-top: 0; }
.result { border: 3px solid var(--green); border-left-width: 14px; border-radius: var(--radius); background: var(--white); padding: 1.2rem 1.3rem; min-width: 0; }
.result:empty { display: none; }
.res { margin: 0; }
.res > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1.2rem; padding: 0.7rem 0.4rem; border-bottom: 2px solid var(--green-mid); min-width: 0; }
.res > div:last-child { border-bottom: 0; }
.res dt { font-weight: 700; flex: 1 1 11rem; min-width: 0; }
.res dd { margin: 0; flex: 1 1 11rem; text-align: right; font-weight: 800; min-width: 0; overflow-wrap: break-word; }
.res .main { background: var(--green-soft); border-radius: 10px; border-bottom: 0; font-size: 1.25rem; }
.rnote { color: var(--soft-ink); font-size: 1rem; margin: 0.8rem 0 0; }
.err { color: var(--err); font-weight: 800; margin: 0; }
.conv-main { font-size: 1.5rem; font-weight: 900; margin: 0 0 0.6rem; overflow-wrap: break-word; }
.result-sub h3 { margin-top: 1rem; }
.swap { min-height: 3.2rem; margin: 0 0 1.2rem; padding: 0.4rem 1.2rem; border: var(--line); border-radius: 12px; background: var(--white); color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
.swap:hover { background: var(--green-soft); }
.example { border: 3px dashed var(--navy); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.example .result { margin-top: 1rem; }
.embedbox { border: var(--line); border-radius: var(--radius); padding: 1.2rem; background: var(--green-soft); }
.embedbox textarea { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1rem; margin-bottom: 1rem; }
.fallback { border: var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; font-weight: 700; background: var(--white); }

/* Listes, questions, listes de vérification */
.chiplist { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 0; }
.chiplist li { margin: 0; max-width: 100%; }
.chiplist a { display: inline-block; max-width: 100%; padding: 0.6rem 1.1rem; border: var(--line); border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--white); color: var(--navy); }
.chiplist a:hover { background: var(--green-soft); text-decoration: underline; }
.faq details { border: var(--line); border-radius: var(--radius); margin: 0 0 0.8rem; background: var(--white); max-width: 52rem; }
.faq summary { padding: 1rem 1.2rem; font-weight: 800; cursor: pointer; min-height: 3.5rem; }
.faq details[open] { background: var(--green-soft); }
.faq details p { padding: 0 1.2rem 1rem; margin: 0; }
.checklist { border: var(--line); border-left-width: 14px; border-radius: var(--radius); background: var(--green-soft); padding: 1rem 1.3rem; margin-bottom: 1.2rem; max-width: 52rem; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 2.2rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 900; color: var(--green); font-size: 1.3rem; }
.guide-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-nav a { display: block; min-width: 0; padding: 1rem 1.2rem; border: var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 800; }
.guide-nav a:hover { background: var(--green-soft); }
.guide-nav span { display: block; font-weight: 700; color: var(--soft-ink); font-size: 0.95rem; }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: 0.5rem; }
.links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.8rem; }
.links li { margin: 0; min-width: 0; }
.links a { display: block; padding: 0.9rem 1.1rem; border: var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); overflow-wrap: anywhere; }
.links a:hover { background: var(--green-soft); }
.links b, .links span { display: block; }
.facts { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.4rem 1.5rem; max-width: 52rem; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0 0 0.6rem; overflow-wrap: break-word; min-width: 0; }

/* Feuilles à remplir */
.modele-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.modele-grid > * { min-width: 0; }
.paper { background: var(--white); border: var(--line); border-radius: 6px; padding: 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.55; overflow-x: auto; max-width: 100%; position: relative; }
.paper p { margin: 0 0 0.35rem; overflow-wrap: break-word; }
.modele-side { min-width: 0; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }

/* Aide au choix */
.matrix { min-width: 0; }
.matrix-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.5rem; }
.matrix-top > * { min-width: 0; }
.help { color: var(--soft-ink); }
.names { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1rem; }
.names > * { min-width: 0; }
.crit { border: var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.1rem; background: var(--white); min-width: 0; }
.crit legend { font-weight: 900; padding: 0 0.5rem; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 1rem; }
.scores > * { min-width: 0; }
.ranking { list-style: none; padding: 0; margin: 0 0 1rem; }
.ranking li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.3rem 0.9rem; align-items: center; padding: 0.7rem 0; border-bottom: 2px solid var(--green-mid); }
.ranking li:last-child { border-bottom: 0; }
.ranking b { overflow-wrap: break-word; min-width: 0; }
.rk { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.4rem; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 900; }
.sc { font-weight: 900; white-space: nowrap; }
.bar { grid-column: 1 / -1; display: block; height: 1.1rem; background: var(--green-soft); border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); }
.verdict { font-weight: 800; font-size: 1.15rem; margin: 0; }
.crit-list { max-width: 52rem; }

/* Carnet local et agenda */
.items { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; padding: 1rem 1.2rem; border: var(--line); border-radius: var(--radius); margin: 0 0 0.8rem; background: var(--white); }
.item-body { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; overflow-wrap: break-word; }
.item select { width: auto; max-width: 100%; min-height: 3rem; font-size: 1.05rem; }
.item.done { background: var(--green-soft); }
.item.done b { text-decoration: line-through; }
.muted { color: var(--soft-ink); font-size: 1rem; }
.alertbox { border: var(--line); border-left-width: 14px; border-left-color: var(--green); border-radius: var(--radius); background: var(--white); padding: 1rem 1.3rem; margin-bottom: 1.2rem; }
.alertbox h2 { margin-top: 0; font-size: 1.4rem; }
.alertbox h2::before { display: none; }
.timer-display { font-size: clamp(3.5rem, 15vw, 6.5rem); font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; border: var(--line); border-radius: 22px; padding: 0.8rem; margin: 0 0 1.2rem; background: var(--white); line-height: 1.1; }
.monthview { margin: 1rem 0; }
.monthnav { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1rem; }
.tablewrap { overflow-x: auto; max-width: 100%; position: relative; border: var(--line); border-radius: var(--radius); background: var(--white); }
.mois { width: 100%; min-width: 38rem; border-collapse: collapse; table-layout: fixed; }
.mois caption { padding: 0.8rem; font-weight: 900; font-size: 1.3rem; text-transform: capitalize; }
.mois th { padding: 0.5rem; background: var(--green-soft); border: 2px solid var(--navy); text-align: center; }
.mois td { height: 5.5rem; vertical-align: top; padding: 0.3rem; border: 2px solid var(--navy); }
.mois .num { font-weight: 900; display: block; }
.mois .vide { background: #f1f4f7; }
.mois .aujourdhui { background: var(--green-mid); }
.mois .avec { background: var(--green-soft); }
.ev { display: block; margin-top: 0.2rem; padding: 0.1rem 0.3rem; font-size: 0.85rem; line-height: 1.3; background: var(--white); border-left: 4px solid var(--green); overflow-wrap: anywhere; }

/* Pied de page */
.foot { background: var(--green-soft); border-top: 6px solid var(--navy); padding: 2rem 0 1.5rem; margin-top: 2rem; }
.foot-safety { display: flex; align-items: flex-start; gap: 0.9rem; padding: 1rem 1.3rem; border: var(--line); border-left-width: 14px; border-radius: var(--radius); background: var(--white); font-weight: 800; margin-bottom: 2rem; }
.foot-safety .ico { font-size: 1.6rem; line-height: 1.3; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem 2rem; }
.foot-grid > * { min-width: 0; }
.foot h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.foot h2::before { display: none; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.4rem; }
.foot a { color: var(--navy); }
.foot-about p { font-size: 1rem; }
.foot-bottom { margin: 2rem 0 0; padding-top: 1rem; border-top: 2px solid var(--green-mid); font-size: 0.95rem; color: var(--soft-ink); }

/* Pages intégrables */
body.embed { background: var(--white); font-size: 1.05rem; }
.embed-wrap { max-width: 44rem; margin: 0 auto; padding: 1rem; }
.embed-wrap h1 { font-size: 1.6rem; }
.embed-credit { margin: 1rem 0 0; font-weight: 700; }

@media (min-width: 62rem) {
  .toolbox { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .modele-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .matrix-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .embed .toolbox { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  html { font-size: 106.25%; }
  .menu-panel { position: static; box-shadow: none; max-width: 100%; margin-top: 0.4rem; }
  .mainnav ul { flex-direction: column; align-items: stretch; width: 100%; }
  .mainnav a, .mainnav summary { width: 100%; }
  .mainnav { width: 100%; }
  .guide-nav { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .res dd { text-align: left; }
  .hero::after { width: 12rem; height: 12rem; right: -4rem; top: -3rem; }
  .btn { width: 100%; }
  .bigbuttons { flex-direction: column; }
  .bigbuttons li { width: 100%; }
  .btn.small { width: auto; }
}
@media print {
  .top, .foot, .skip { display: none !important; }
  body { font-size: 12pt; color: #000; }
  body.modele .safety, body.modele .modele-form, body.modele .dl-actions, body.modele .crumbs, body.modele .byline, body.modele .pagehead, body.modele .band.prose { display: none !important; }
  body.modele .band, body.modele .band.soft { background: #fff; border: 0; padding: 0; }
  body.modele .modele-grid { display: block; }
  body.modele .paper { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .site, .btn, .chiplist a { transition: background-color 0.15s ease; }
}
@media (forced-colors: active) {
  .btn, .card, .site, .result, .safety { border: 3px solid CanvasText; }
}

/* correctif mobile : l'adresse de la page intégrable (lien long) passe à la ligne */
a[href^="/embed/"] { overflow-wrap: anywhere; word-break: break-all; }
