/* mandatia.eu : une seule feuille de style, aucune ressource chez un tiers.
   Parti pris : calme, clair, un seul message par écran.
   Couleurs : l'eau et la brume du lac, l'encre, un seul point de soleil. */

@font-face {
  font-family: "Lexend";
  src: url("/assets/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("/assets/fonts/ahm-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #ffffff;
  --brume: #f2f6f5;
  --encre: #0e2a2b;
  --texte: #274244;
  --doux: #4c6466;
  --lac: #0b6668;
  --lac-fonce: #084d4f;
  --nuit: #0b3436;
  --sur-nuit: #d7e7e5;
  --roseau: #1b6e44;
  --roseau-fond: #e6f3eb;
  --refus: #a0372a;
  --refus-fond: #faece8;
  --soleil: #e3b04b;
  --trait: #d5dfdd;
  --sans: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --page: 70rem;
  --mesure: 40rem;
  --rayon: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--encre); line-height: 1.14; margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.35rem + 3.4vw, 3.45rem); letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--lac); text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
a:hover { color: var(--lac-fonce); }
strong { color: var(--encre); font-weight: 600; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--brume); padding: 0.1em 0.35em; border-radius: 0.35em; color: var(--encre); overflow-wrap: anywhere; }
img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--lac); outline-offset: 3px; border-radius: 0.3em; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--encre); color: var(--blanc); padding: 0.6rem 1rem; border-radius: 0.6rem; z-index: 50; }
.skip:focus { top: 1rem; color: var(--blanc); }

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
.narrow { max-width: var(--mesure); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--encre); text-decoration: none; font-weight: 600; font-size: 1.2rem; letter-spacing: 0.03em; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand small { font-weight: 400; font-size: 0.85rem; letter-spacing: 0; color: var(--doux); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--texte); text-decoration: none; font-size: 1rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--encre); border-bottom-color: var(--trait); }
.nav a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--lac); }
.nav .lang { color: var(--doux); font-size: 0.95rem; }
.nav .btn { color: var(--blanc); border-bottom: 0; padding: 0.55rem 1.1rem; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 0.55rem 0.9rem; border: 1px solid var(--trait); border-radius: 0.75rem; color: var(--encre); font-size: 1rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--brume); }
.menu-list { position: absolute; right: 0; top: calc(100% + 0.5rem); background: var(--blanc); border: 1px solid var(--trait); border-radius: 1rem; padding: 0.5rem; min-width: 15rem; box-shadow: 0 1.2rem 2.5rem -1rem rgba(14, 42, 43, 0.35); display: grid; }
.menu-list a { padding: 0.8rem 0.9rem; border-radius: 0.6rem; color: var(--encre); text-decoration: none; }
.menu-list a:hover, .menu-list a[aria-current="page"] { background: var(--brume); }
@media (max-width: 56rem) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border-radius: 0.85rem; background: var(--lac); color: var(--blanc); text-decoration: none; font-weight: 500; font-size: 1rem; border: 2px solid var(--lac); transition: background-color 0.16s, border-color 0.16s, color 0.16s; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { background: var(--lac-fonce); border-color: var(--lac-fonce); color: var(--blanc); }
.btn-calme { background: transparent; color: var(--encre); border-color: var(--trait); }
.btn-calme:hover { background: var(--brume); color: var(--encre); border-color: var(--doux); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- Bandes ---------- */
.band { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.band-brume { background: var(--brume); }
.band-nuit { background: var(--nuit); color: var(--sur-nuit); }
.band-nuit h2, .band-nuit h3, .band-nuit strong { color: var(--blanc); }
.band-nuit a { color: var(--blanc); }
.band > .wrap > h2 + p, .lede { margin-top: 1.2rem; font-size: 1.2rem; font-weight: 300; line-height: 1.55; max-width: var(--mesure); color: var(--texte); }
.band-nuit .lede { color: var(--sur-nuit); }
.band p + p { margin-top: 1rem; }
.note { font-size: 0.98rem; color: var(--doux); }

/* ---------- Ouverture ---------- */
.hero { padding-block: clamp(2rem, min(1rem + 5vw, 9vh), 5.5rem) clamp(3rem, 2rem + 5vw, 6rem); background: linear-gradient(180deg, var(--blanc) 0%, var(--brume) 100%); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -3.2rem; height: 6rem; background: var(--blanc); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; position: relative; z-index: 1; }
/* Sur un écran haut, le texte descend un peu vers le milieu de la démonstration ; sur un portable, il reste en haut. */
.hero-in > div:first-child { padding-top: clamp(0rem, calc((100vh - 40rem) * 0.25), 4rem); }
.hero p.lede { margin-top: 1.5rem; font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.35rem); }
.hero .actions { margin-top: 2rem; }
.hero .sub { margin-top: 1.4rem; font-size: 1rem; color: var(--doux); }
.hero .sub a { color: var(--doux); }
@media (max-width: 56rem) { .hero-in { grid-template-columns: 1fr; } }

/* ---------- Le verrou en action ---------- */
.gate { background: var(--blanc); border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 0.35rem); padding: clamp(1.1rem, 0.8rem + 1vw, 1.75rem); box-shadow: 0 2.5rem 4rem -2.5rem rgba(11, 52, 54, 0.45); }
.gate-head { display: flex; gap: 0.9rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--trait); }
.gate-head svg { width: 2.6rem; height: 2.6rem; flex: none; }
.gate-head h2 { font-size: 1.1rem; letter-spacing: 0; line-height: 1.3; }
.gate-head p { font-size: 0.98rem; color: var(--doux); margin-top: 0.15rem; }
.tries { list-style: none; display: grid; gap: 0.5rem; margin-top: 1rem; }
.try { border-radius: 0.9rem; border: 1px solid transparent; }
.try summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.2rem 0.75rem; align-items: center; padding: 0.7rem 0.85rem; border-radius: 0.9rem; }
.try summary::-webkit-details-marker { display: none; }
.try .mark { width: 1.9rem; height: 1.9rem; grid-row: span 2; }
.try .what { color: var(--encre); font-weight: 500; line-height: 1.3; }
.try .verdict { font-size: 0.94rem; line-height: 1.4; }
.try-ok { background: var(--roseau-fond); }
.try-ok .verdict { color: var(--roseau); }
.try-no { background: var(--refus-fond); }
.try-no .verdict { color: var(--refus); }
.try[open] { border-color: var(--trait); }
.try pre { margin: 0 0.85rem 0.85rem 3.5rem; padding: 0.7rem 0.85rem; background: var(--blanc); border-radius: 0.6rem; font-size: 0.82rem; line-height: 1.5; overflow-x: auto; color: var(--encre); }
.gate-foot { margin-top: 0.9rem; font-size: 0.9rem; color: var(--doux); line-height: 1.45; }
@media (prefers-reduced-motion: no-preference) {
  .tries .try { animation: arrive 0.5s both ease-out; }
  .tries .try:nth-child(2) { animation-delay: 0.14s; }
  .tries .try:nth-child(3) { animation-delay: 0.28s; }
  .tries .try:nth-child(4) { animation-delay: 0.42s; }
  .tries .try:nth-child(5) { animation-delay: 0.56s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
}

/* ---------- Le chemin (quatre temps) ---------- */
.path { list-style: none; counter-reset: pas; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; position: relative; }
.path::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.35rem; height: 2px; background: linear-gradient(90deg, var(--lac), var(--soleil)); border-radius: 2px; }
.path li { counter-increment: pas; position: relative; padding-top: 4rem; }
.path li::before { content: counter(pas); position: absolute; top: 0; left: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--blanc); border: 2px solid var(--lac); color: var(--lac); font-weight: 600; display: grid; place-items: center; }
.band-brume .path li::before { background: var(--brume); }
.path p { margin-top: 0.5rem; font-size: 1.02rem; }
@media (max-width: 56rem) {
  .path { grid-template-columns: 1fr; gap: 1.6rem; }
  .path::before { left: 1.35rem; right: auto; top: 1.4rem; bottom: 1.4rem; width: 2px; height: auto; background: linear-gradient(180deg, var(--lac), var(--soleil)); }
  .path li { padding-top: 0.2rem; padding-left: 4rem; min-height: 2.8rem; }
}

/* ---------- Fait / ne fait pas ---------- */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 3vw, 4rem); margin-top: 2.5rem; }
.two h3 { padding-bottom: 0.8rem; border-bottom: 2px solid var(--trait); }
.two .yes h3 { border-color: var(--roseau); }
.two .no h3 { border-color: var(--refus); }
.ticks { list-style: none; margin-top: 1rem; display: grid; gap: 0.75rem; }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.7rem; align-items: start; }
.ticks svg { width: 1.5rem; height: 1.5rem; margin-top: 0.12rem; }
@media (max-width: 46rem) { .two { grid-template-columns: 1fr; } }

.two + .note { margin-top: 1.6rem; }
.define { margin-top: 3rem; padding: 1.4rem 1.6rem; border-left: 4px solid var(--soleil); background: var(--blanc); border-radius: 0 var(--rayon) var(--rayon) 0; max-width: 46rem; }
.band:not(.band-brume) .define { background: var(--brume); }
.define h3 { margin-bottom: 0.4rem; }

/* ---------- Listes de liens (gabarits) ---------- */
.rows { list-style: none; margin-top: 2.2rem; border-top: 1px solid var(--trait); }
.rows li { border-bottom: 1px solid var(--trait); }
.rows a { display: grid; grid-template-columns: minmax(0, 16rem) 1fr auto; gap: 0.4rem 1.5rem; align-items: baseline; padding: 1.05rem 0.25rem; text-decoration: none; color: var(--texte); }
.rows a:hover { background: var(--blanc); color: var(--texte); }
.band:not(.band-brume) .rows a:hover { background: var(--brume); }
.rows .name { color: var(--encre); font-weight: 500; }
.rows .go { color: var(--lac); font-size: 0.98rem; white-space: nowrap; }
@media (max-width: 46rem) { .rows a { grid-template-columns: 1fr; } .rows .go { display: none; } }

/* ---------- « Ne me croyez pas sur parole » ---------- */
.proofs { margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2.5rem; }
.proofs div { border-top: 2px solid var(--encre); padding-top: 0.9rem; }
.proofs dt { color: var(--encre); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.proofs dd { margin: 0.35rem 0 0; font-size: 1rem; }
@media (max-width: 56rem) { .proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .proofs { grid-template-columns: 1fr; } }

/* ---------- Programme pilote ---------- */
.pilot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.pilot ol { list-style: none; counter-reset: p; display: grid; gap: 1rem; }
.pilot ol li { counter-increment: p; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; }
.pilot ol li::before { content: counter(p); width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--soleil); color: var(--soleil); display: grid; place-items: center; font-weight: 600; font-size: 1rem; }
.pilot .btn { background: var(--blanc); color: var(--nuit); border-color: var(--blanc); margin-top: 1.8rem; }
.pilot .btn:hover { background: var(--sur-nuit); border-color: var(--sur-nuit); color: var(--nuit); }
@media (max-width: 56rem) { .pilot { grid-template-columns: 1fr; } }

/* ---------- Questions ---------- */
.faq { margin-top: 2.2rem; max-width: 50rem; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0.25rem; position: relative; color: var(--encre); font-weight: 500; font-size: 1.1rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.6rem; top: 50%; width: 0.7rem; height: 0.7rem; border-right: 2px solid var(--lac); border-bottom: 2px solid var(--lac); transform: translateY(-70%) rotate(45deg); transition: transform 0.16s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { background: var(--brume); }
.band-brume .faq summary:hover { background: var(--blanc); }
.faq .answer { padding: 0 0.25rem 1.4rem; max-width: var(--mesure); }
.faq .answer p + p { margin-top: 0.8rem; }

/* ---------- Le fondateur ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.founder .body p { font-size: 1.15rem; font-weight: 300; line-height: 1.65; }
.founder .sign { margin-top: 1.6rem; font-size: 1rem; color: var(--doux); }
.founder .sign strong { display: block; font-size: 1.1rem; }
@media (max-width: 56rem) { .founder { grid-template-columns: 1fr; } }

/* ---------- Pied ---------- */
.foot { background: var(--brume); border-top: 1px solid var(--trait); padding-block: 3rem 2.5rem; font-size: 1rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.7rem; }
.foot ul { list-style: none; display: grid; gap: 0.45rem; }
.foot a { color: var(--texte); text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--encre); }
.foot .legal { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--trait); color: var(--doux); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between; }
@media (max-width: 56rem) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); background: linear-gradient(180deg, var(--blanc), var(--brume)); }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.4rem); }
.page-head .lede { margin-top: 1.1rem; }
.page-body { padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(3.5rem, 2rem + 5vw, 6rem); }
.page-body h2 { margin-top: 3.2rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin-top: 2rem; }
.page-body p, .page-body ul, .page-body ol, .page-body pre, .page-body table { margin-top: 1rem; }
.page-body .prose { max-width: var(--mesure); }
.page-body ul.plain, .page-body ol.plain { padding-left: 1.3rem; display: grid; gap: 0.45rem; }

pre { background: var(--nuit); color: #e8f1f0; padding: 1.1rem 1.25rem; border-radius: 0.9rem; overflow-x: auto; line-height: 1.55; font-size: 0.92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
pre .c { color: #9fc4c1; }

.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; margin-top: 1.4rem; }
.cells > div { background: var(--blanc); padding: 1.2rem 1.35rem; }
.cells h4 { margin: 0 0 0.6rem; font-size: 1rem; color: var(--encre); display: flex; align-items: center; gap: 0.5rem; }
.cells h4 svg { width: 1.3rem; height: 1.3rem; }
.cells ul { list-style: none; margin: 0; display: grid; gap: 0.35rem; font-size: 1.02rem; }
.cells p { margin: 0; font-size: 1.02rem; }
.cells p + p { margin-top: 0.5rem; }
@media (max-width: 46rem) { .cells { grid-template-columns: 1fr; } }
.gabarit { padding-top: 2.8rem; margin-top: 2.8rem; border-top: 1px solid var(--trait); }
.gabarit:first-of-type { border-top: 0; margin-top: 3rem; padding-top: 0; }
.gabarit h2 { margin-top: 0; }
.gabarit .id { margin-top: 0.4rem; font-size: 1rem; color: var(--doux); }

.toolgroup { margin-top: 2.5rem; }
.tools { list-style: none; margin-top: 0.8rem; border-top: 1px solid var(--trait); }
.tools li { display: grid; grid-template-columns: minmax(0, 17rem) 1fr; gap: 0.3rem 2rem; padding: 1rem 0.25rem; border-bottom: 1px solid var(--trait); }
.tools .tool { font-family: var(--mono); font-size: 0.95rem; color: var(--encre); font-weight: 600; overflow-wrap: anywhere; }
.tools p { margin: 0; font-size: 1.02rem; }
.tools p + p { margin-top: 0.5rem; }
@media (max-width: 46rem) { .tools li { grid-template-columns: 1fr; } }

table { border-collapse: collapse; width: 100%; font-size: 1.02rem; }
th, td { text-align: left; padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { color: var(--encre); font-weight: 600; }
.scroll { overflow-x: auto; }

/* ---------- Vérifier ---------- */
.checker { background: var(--blanc); border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 0.35rem); padding: clamp(1.1rem, 0.8rem + 1.2vw, 2rem); box-shadow: 0 2.5rem 4rem -2.8rem rgba(11, 52, 54, 0.45); max-width: 52rem; }
.checker label { display: block; color: var(--encre); font-weight: 600; }
.checker .field { display: flex; gap: 0.7rem; margin-top: 0.6rem; flex-wrap: wrap; }
.checker input[type="text"] { flex: 1 1 20rem; min-width: 0; font: inherit; font-family: var(--mono); font-size: 0.95rem; padding: 0.8rem 0.9rem; border: 2px solid var(--trait); border-radius: 0.8rem; color: var(--encre); background: var(--blanc); }
.checker input[type="text"]:focus { border-color: var(--lac); outline: none; }
.checker + .prose { margin-top: 3.5rem; }
.picks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; align-items: center; font-size: 0.98rem; color: var(--doux); }
.pick { font: inherit; font-size: 0.95rem; padding: 0.4rem 0.8rem; border-radius: 2rem; border: 1px solid var(--trait); background: var(--brume); color: var(--encre); cursor: pointer; }
.pick:hover { border-color: var(--lac); }
.tamper { margin-top: 1.1rem; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 1rem; }
.tamper input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; accent-color: var(--lac); }
.tamper label { font-weight: 400; color: var(--texte); }
.outcome { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.step { border-radius: 1rem; padding: 1rem 1.1rem; display: grid; grid-template-columns: 2rem 1fr; gap: 0.8rem; align-items: start; background: var(--brume); }
.step svg { width: 2rem; height: 2rem; }
.page-body .step h2, .step h2 { font-size: 1.08rem; margin-top: 0.2rem; letter-spacing: -0.01em; line-height: 1.3; }
.step p, .step dl { margin: 0.25rem 0 0; font-size: 1rem; }
.step-ok { background: var(--roseau-fond); }
.step-ok h2 { color: var(--roseau); }
.step-no { background: var(--refus-fond); }
.step-no h2 { color: var(--refus); }
.step dl { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: 0.25rem 1rem; margin-top: 0.6rem; }
.step dt { color: var(--doux); }
.step dd { margin: 0; color: var(--encre); overflow-wrap: anywhere; }
.step ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.step ul li { font-family: var(--mono); font-size: 0.85rem; padding: 0.1rem 0.5rem; border-radius: 0.4rem; background: var(--blanc); }
@media (max-width: 34rem) { .step dl { grid-template-columns: 1fr; } .step dt { margin-top: 0.4rem; } }

/* ---------- Articles repris ---------- */
.article-header { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) 1.5rem; max-width: var(--mesure); margin-inline: auto; }
.article-eyebrow { color: var(--doux); font-size: 1rem; margin-bottom: 0.9rem; }
.article-title { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.4rem); }
.article-subtitle { margin-top: 1rem; font-size: 1.2rem; font-weight: 300; line-height: 1.55; }
.article-body { max-width: var(--mesure); margin-inline: auto; padding-bottom: clamp(3.5rem, 2rem + 5vw, 6rem); }
.article-body p { margin-top: 1.1rem; }
.article-body h2 { margin-top: 2.8rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.article-body ul { margin-top: 1rem; padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.article-body .lead { font-size: 1.2rem; font-weight: 300; line-height: 1.55; color: var(--encre); }
.article-body .callout, .article-body .legal-quote { margin-top: 1.5rem; padding: 1.2rem 1.4rem; background: var(--brume); border-left: 4px solid var(--lac); border-radius: 0 1rem 1rem 0; }
.article-body .callout p:first-child, .article-body .legal-quote p:first-child { margin-top: 0; }
.article-body .pull-quote { margin: 2rem 0; padding-left: 1.4rem; border-left: 4px solid var(--soleil); font-size: 1.3rem; line-height: 1.45; color: var(--encre); font-weight: 500; }
.article-body .sep { height: 1px; background: var(--trait); margin: 2.8rem 0 0; }
.article-body .cta-block { margin-top: 2.5rem; padding: 1.5rem; background: var(--brume); border-radius: var(--rayon); }
.article-body .cta-block p:first-child { margin-top: 0; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }
.btn-primary { display: inline-flex; padding: 0.8rem 1.3rem; border-radius: 0.85rem; background: var(--lac); color: var(--blanc); text-decoration: none; font-weight: 600; border: 2px solid var(--lac); }
.btn-primary:hover { background: var(--lac-fonce); border-color: var(--lac-fonce); color: var(--blanc); }
.btn-secondary { display: inline-flex; padding: 0.8rem 1.3rem; border-radius: 0.85rem; color: var(--encre); text-decoration: none; font-weight: 600; border: 2px solid var(--trait); }
.btn-secondary:hover { background: var(--blanc); border-color: var(--doux); color: var(--encre); }

/* ---------- L'essentiel en une page ---------- */
.sheet { max-width: 50rem; margin-inline: auto; }
.sheet h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.sheet .cells { margin-top: 1rem; }
.sheet-meta { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--trait); font-size: 0.98rem; color: var(--doux); }
.print-btn { margin-top: 1.5rem; }

.notfound { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 9rem); }
.notfound .actions { justify-content: center; margin-top: 2rem; }
.notfound .lede { margin-inline: auto; }

@media print {
  .top, .foot, .skip, .print-btn, .menu, .hero::after { display: none !important; }
  body { font-size: 10.5pt; color: #000; }
  .band, .page-head, .page-body, .hero { padding-block: 0.6cm; background: none !important; }
  a { color: #000; text-decoration: none; }
  .gate, .checker { box-shadow: none; }
  h1, .sheet h1 { font-size: 19pt; }
  .page-body h2, .sheet h2 { margin-top: 0.34cm; font-size: 11pt; }
  .sheet { font-size: 9.4pt; line-height: 1.38; max-width: none; }
  .sheet ul.plain, .sheet ol.plain { gap: 0.06cm; }
  .sheet .lede { font-size: 11pt; margin-top: 0.2cm; }
  .sheet p, .sheet ul, .sheet ol, .sheet .cells { margin-top: 0.2cm; }
  .sheet .cells > div { padding: 0.25cm 0.35cm; }
  .sheet .cells ul, .sheet .cells p, .sheet .ticks li { font-size: 9.4pt; }
  .sheet .ticks svg, .sheet .cells h4 svg { width: 0.38cm; height: 0.38cm; }
  .sheet .ticks li { grid-template-columns: 0.38cm 1fr; gap: 0.2cm; }
  .sheet .ticks { gap: 0.1cm; margin-top: 0.2cm; }
  .sheet-meta { margin-top: 0.4cm; font-size: 8.5pt; }
  @page { margin: 1.2cm 1.5cm; }
  .cells { break-inside: avoid; }
  pre { background: #f2f2f2; color: #000; }
}
