/* Jalona : feuille de style unique. La CSP n'autorise aucun style en ligne (style-src 'self').
   Direction : verre liquide sur une aube marine. Plaques translucides, capsules flottantes,
   lumière d’aurore lagon, ciel et orange signal derrière le verre.
   Règle d'or : le verre ne doit jamais coûter un point de contraste. Chaque surface de verre
   porte une teinte assez dense pour garantir 4,5:1 quel que soit le fond, et le verre disparaît
   quand le visiteur demande moins de transparence ou plus de contraste. */

@font-face {
  font-family: "Lexend Exa";
  src: url("polices/lexend-exa-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("polices/lexend-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("polices/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("polices/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  /* couleurs : thème clair */
  --fond: #edf3f2;            /* brume */
  --surface: #ffffff;         /* repli opaque du verre */
  --encre: #0d2230;
  --encre-douce: #3b505d;
  --lien: #095652;            /* 4,6:1 au pire de l'aurore */
  --lagon: #0b7c76;           /* action principale */
  --lagon-survol: #08625d;
  --sur-lagon: #ffffff;
  --lagon-vif: #2ed3c3;
  --signal: #c2410c;          /* signal orange : focus et repères */
  --signal-vif: #ff7a2e;
  --verre: rgba(255, 255, 255, 0.62);
  --verre-dense: rgba(255, 255, 255, 0.84);
  --verre-lustre: rgba(255, 255, 255, 0.55);
  --verre-bord: rgba(255, 255, 255, 0.8);
  --verre-reflet: rgba(255, 255, 255, 0.95);
  --verre-ombre-int: rgba(13, 34, 48, 0.06);
  --ombre: rgba(13, 34, 48, 0.22);
  --ombre-legere: rgba(13, 34, 48, 0.08);
  --trait: rgba(13, 34, 48, 0.14);
  --champ-fond: rgba(255, 255, 255, 0.9);
  --champ-bord: #5b6b75;
  --bande-fond: rgba(9, 26, 36, 0.88);
  --bande-texte: #eaf4f3;
  --bande-accent: #ff9a57;
  --code-fond: #0d2230;
  --code-texte: #eaf4f3;
  --succes: #166a3a;  --fond-succes: rgba(22, 163, 74, 0.14);
  --erreur: #b42318;  --fond-erreur: rgba(220, 38, 38, 0.11);
  --info: #1e4fa3;    --fond-info: rgba(37, 99, 235, 0.11);
  --attention: #8a5a00; --fond-attention: rgba(234, 179, 8, 0.2);
  --teinte-succes: #e5f4ea; --teinte-erreur: #fcecea; --teinte-info: #e8eefb; --teinte-attention: #fdf3d6;
  --etat-nc: #e2541a; --etat-av: #b45309; --etat-ok: #0b7c76; --etat-na: #7a8a93; --etat-nt: #5b6b75;
  --aurore-1: rgba(46, 211, 195, 0.42);
  --aurore-2: rgba(110, 160, 255, 0.34);
  --aurore-3: rgba(255, 138, 61, 0.26);
  /* matière */
  --flou: 22px;
  --saturation: 170%;
  --rayon-plaque: 28px;
  --rayon-moyen: 18px;
  --rayon-champ: 14px;
  --rayon-capsule: 999px;
  /* typographie */
  --police-titre: "Lexend Exa", "Lexend", system-ui, sans-serif;
  --police-sous-titre: "Lexend", system-ui, sans-serif;
  --police-texte: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-code: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #06141c;
    --surface: #0c1f29;
    --encre: #eaf4f3;
    --encre-douce: #c2d1d6;
    --lien: #5eead4;
    --lagon: #2ed3c3;
    --lagon-survol: #5ee6d8;
    --sur-lagon: #04211f;
    --lagon-vif: #2ed3c3;
    --signal: #ff8a3d;
    --signal-vif: #ff8a3d;
    --verre: rgba(14, 32, 44, 0.56);
    --verre-dense: rgba(10, 26, 36, 0.82);
    --verre-lustre: rgba(255, 255, 255, 0.07);
    --verre-bord: rgba(255, 255, 255, 0.14);
    --verre-reflet: rgba(255, 255, 255, 0.16);
    --verre-ombre-int: rgba(0, 0, 0, 0.3);
    --ombre: rgba(0, 0, 0, 0.55);
    --ombre-legere: rgba(0, 0, 0, 0.3);
    --trait: rgba(234, 244, 243, 0.14);
    --champ-fond: rgba(4, 18, 26, 0.7);
    --champ-bord: #7d97a1;
    --bande-fond: rgba(3, 14, 21, 0.62);
    --bande-texte: #eaf4f3;
    --bande-accent: #ff9a57;
    --code-fond: #03101a;
    --code-texte: #eaf4f3;
    --succes: #6ee7a0;  --fond-succes: rgba(34, 197, 94, 0.16);
    --erreur: #fca5a5;  --fond-erreur: rgba(239, 68, 68, 0.16);
    --info: #93c5fd;    --fond-info: rgba(59, 130, 246, 0.16);
    --attention: #fcd34d; --fond-attention: rgba(234, 179, 8, 0.14);
    --teinte-succes: #103a31; --teinte-erreur: #302529; --teinte-info: #142f4a; --teinte-attention: #2b3424;
    --etat-nc: #ff8a3d; --etat-av: #fbbf24; --etat-ok: #2ed3c3; --etat-na: #a9bec5; --etat-nt: #a9bec5;
    --aurore-1: rgba(20, 170, 158, 0.34);
    --aurore-2: rgba(70, 95, 210, 0.3);
    --aurore-3: rgba(240, 110, 40, 0.18);
    color-scheme: dark;
  }
}

/* --- base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
}
/* aurore fixe derrière le verre */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48rem 34rem at 8% -6%, var(--aurore-1), transparent 70%),
    radial-gradient(42rem 30rem at 96% 8%, var(--aurore-2), transparent 70%),
    radial-gradient(50rem 34rem at 72% 108%, var(--aurore-3), transparent 70%),
    var(--fond);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--lien); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lagon-vif); color: #04211f; }
h1, h2, h3 { font-family: var(--police-sous-titre); font-weight: 600; line-height: 1.2; margin: 1.6em 0 0.5em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-family: var(--police-titre); font-size: clamp(1.55rem, 0.9rem + 3.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin-top: 0.4em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
code, pre { font-family: var(--police-code); font-size: 0.92em; }
strong { font-weight: 700; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Lien d'évitement : visible dès qu'il reçoit le focus */
.evitement {
  position: absolute; left: 1rem; top: -10rem; z-index: 20; padding: 0.75rem 1.1rem;
  background: var(--surface); color: var(--encre); font-weight: 700;
  border: 3px solid var(--signal); border-radius: var(--rayon-capsule);
}
.evitement:focus { top: 1rem; }

.conteneur {
  width: 100%; max-width: 74rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* --- matière : verre ----------------------------------------------------- */
.capsule, .vitrine, .offre, .etapes > li, .bande, .carte, .etroit, .tableau-defilant, .pied-plaque {
  -webkit-backdrop-filter: blur(var(--flou)) saturate(var(--saturation));
  backdrop-filter: blur(var(--flou)) saturate(var(--saturation));
  border: 1px solid var(--verre-bord);
  /* lustre en ombre intérieure : aucun dégradé derrière le texte, le contraste reste mesurable */
  box-shadow:
    inset 0 1px 0 var(--verre-reflet),
    inset 0 30px 36px -30px var(--verre-lustre),
    inset 0 -1px 0 var(--verre-ombre-int),
    0 22px 44px -24px var(--ombre),
    0 2px 8px -3px var(--ombre-legere);
}
.capsule, .vitrine, .offre, .etapes > li, .pied-plaque { background-color: var(--verre); }
/* contenus denses (formulaires, tableaux, textes longs) : verre plus opaque */
.carte, .etroit, .tableau-defilant { background-color: var(--verre-dense); }

/* --- en-tête : capsule flottante ----------------------------------------- */
.entete {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  padding-top: 14px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.capsule {
  max-width: 72rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 0.5rem 0.6rem 0.5rem 1.1rem;
  border-radius: var(--rayon-capsule);
}
.marque { display: inline-flex; align-items: center; padding: 0.3rem 0; border-radius: 10px; }
.marque img { display: block; height: 34px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav a, .lien-bouton {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 0.9rem;
  border-radius: var(--rayon-capsule); color: var(--encre); text-decoration: none; font-weight: 600;
}
.nav a:hover, .lien-bouton:hover { background: var(--verre-lustre); text-decoration: underline; }
.nav a[aria-current="page"] { background: var(--verre-dense); box-shadow: inset 0 0 0 1px var(--trait); }
.nav a.bouton-clair { background: var(--lagon); color: var(--sur-lagon); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.nav a.bouton-clair:hover { background: var(--lagon-survol); }
.nav-form { margin: 0; }
.lien-bouton { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }

/* --- contenu --------------------------------------------------------------- */
main { display: block; padding-top: 2rem; padding-bottom: 4rem; }
main:focus { outline: none; }
.etroit { max-width: 38rem; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--rayon-plaque); margin-top: 1rem; }
.etroit > h1:first-child { margin-top: 0; }
.texte-long { max-width: 48rem; }
.contexte { color: var(--encre-douce); }
.retour { margin: 0 0 0.5rem; }

/* --- boutons : capsules de verre teinté ---------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem;
  padding: 0.65rem 1.35rem; border: 1px solid transparent; border-radius: var(--rayon-capsule);
  background: var(--lagon);
  color: var(--sur-lagon); font: inherit; font-weight: 700; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 14px 18px -14px rgba(255, 255, 255, 0.5), 0 10px 22px -12px var(--lagon);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.bouton:hover { background: var(--lagon-survol); text-decoration: underline; }
.bouton:active { transform: translateY(1px) scale(0.99); }
.bouton-secondaire {
  background: var(--verre-dense); color: var(--encre); border-color: var(--verre-bord);
  box-shadow: inset 0 1px 0 var(--verre-reflet), inset 0 14px 18px -14px var(--verre-lustre), 0 8px 18px -12px var(--ombre);
}
.bouton-secondaire:hover { background: var(--verre-dense); color: var(--encre); }
.bouton-danger { background: var(--erreur); color: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.bouton-danger:hover { background: var(--erreur); filter: brightness(0.92); }
.bouton-petit { min-height: 2.3rem; padding: 0.35rem 0.95rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- formulaires ----------------------------------------------------------- */
form { margin: 0 0 1rem; }
.champ { margin-bottom: 1.3rem; }
.champ label, .jauge label, .jauge-titre { display: block; margin-bottom: 0.3rem; font-weight: 700; }
.obligatoire { font-weight: 400; color: var(--encre-douce); }
.aide { margin: 0 0 0.4rem; color: var(--encre-douce); font-size: 0.95rem; }
.erreur { margin: 0 0 0.4rem; color: var(--erreur); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], select {
  display: block; width: 100%; max-width: 32rem; min-height: 3rem; padding: 0.55rem 0.95rem;
  border: 2px solid var(--champ-bord); border-radius: var(--rayon-champ);
  background: var(--champ-fond); color: var(--encre); font: inherit;
}
input[aria-invalid="true"] { border-color: var(--erreur); border-width: 3px; }
.champ-case { margin-bottom: 1.1rem; }
.case { display: flex; align-items: flex-start; gap: 0.65rem; }
.case input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.12rem 0 0; accent-color: var(--lagon); }
.case label { margin: 0; font-weight: 400; }

/* --- messages ---------------------------------------------------------------- */
.alerte {
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--rayon-moyen);
  border: 1px solid var(--trait); border-left: 5px solid var(--encre-douce); background: var(--verre-dense);
}
.alerte > :last-child { margin-bottom: 0; }
.alerte ul { margin: 0; padding-left: 1.25rem; }
.alerte-titre { margin: 0 0 0.5rem; font-size: 1.08rem; }
.alerte-erreur { border-left-color: var(--erreur); background: var(--teinte-erreur); }
.alerte-succes { border-left-color: var(--succes); background: var(--teinte-succes); }
.alerte-info { border-left-color: var(--info); background: var(--teinte-info); }
.alerte:focus { outline: 3px solid var(--signal); outline-offset: 3px; }
.a-completer {
  padding: 0.8rem 1.1rem; border-radius: var(--rayon-champ); border-left: 5px solid var(--attention);
  background: var(--teinte-attention);
}

/* --- plaques ----------------------------------------------------------------- */
.carte { margin: 0 0 1.5rem; padding: clamp(1.1rem, 2.5vw, 1.75rem); border-radius: var(--rayon-plaque); }
.carte > h2:first-child { margin-top: 0; }
.carte-danger { border-color: var(--erreur); }

/* accueil */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-top: 1.5rem; padding-bottom: 2.5rem;
}
.hero-texte > * { max-width: 34rem; }
.chapo { color: var(--encre-douce); font-size: 1.2rem; }
.referentiels { color: var(--encre-douce); font-size: 0.95rem; margin-top: 1.25rem; }
.vitrine { padding: 1.4rem 1.5rem 1.2rem; border-radius: var(--rayon-plaque); }
.vitrine-tete { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.vitrine-tete img { width: 36px; height: 36px; flex: none; }
.vitrine-titre { margin: 0; font-family: var(--police-sous-titre); font-weight: 600; line-height: 1.25; }
.vitrine-sous { margin: 0; color: var(--encre-douce); font-size: 0.92rem; }
.grille { display: flex; flex-wrap: wrap; gap: 0.75rem 0.9rem; margin: 0 0 1.1rem; padding: 0; }
.grille-theme { display: flex; flex-direction: column; gap: 0.3rem; }
.grille-num { font-family: var(--police-sous-titre); font-size: 0.78rem; font-weight: 600; color: var(--encre-douce); line-height: 1; }
.barres { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.barre { display: block; width: 7px; height: 100%; border-radius: 3px; transform-origin: bottom; animation: pousse 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.barre-non_conforme { background: var(--etat-nc); }
.barre-a_verifier { background: repeating-linear-gradient(135deg, var(--etat-av) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px var(--etat-av); }
.barre-sans_defaut_detecte { background: var(--etat-ok); }
.barre-non_applicable { background: var(--etat-na); height: 40%; }
.barre-non_teste { box-shadow: inset 0 0 0 1.5px var(--etat-nt); }
.grille-theme:nth-child(2) .barre { animation-delay: 50ms; }
.grille-theme:nth-child(3) .barre { animation-delay: 100ms; }
.grille-theme:nth-child(4) .barre { animation-delay: 150ms; }
.grille-theme:nth-child(5) .barre { animation-delay: 200ms; }
.grille-theme:nth-child(6) .barre { animation-delay: 250ms; }
.grille-theme:nth-child(7) .barre { animation-delay: 300ms; }
.grille-theme:nth-child(8) .barre { animation-delay: 350ms; }
.grille-theme:nth-child(9) .barre { animation-delay: 400ms; }
.grille-theme:nth-child(10) .barre { animation-delay: 450ms; }
.grille-theme:nth-child(11) .barre { animation-delay: 500ms; }
.grille-theme:nth-child(12) .barre { animation-delay: 550ms; }
.grille-theme:nth-child(13) .barre { animation-delay: 600ms; }
@keyframes pousse { from { transform: scaleY(0.2); opacity: 0.45; } to { transform: none; opacity: 1; } }
.legende { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin: 0 0 0.6rem; padding: 0; list-style: none; font-size: 0.95rem; }
.legende li { display: inline-flex; align-items: center; gap: 0.45rem; }
.pastille { display: inline-block; width: 12px; height: 16px; border-radius: 3px; flex: none; }
.vitrine-note { margin: 0; color: var(--encre-douce); font-size: 0.9rem; }

.bande { margin: 2.5rem 0; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--rayon-plaque); background: var(--bande-fond); color: var(--bande-texte); border-color: var(--verre-bord); }
.bande h2 { margin-top: 0; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.chiffres strong { display: block; margin-bottom: 0.3rem; color: var(--bande-accent); font-family: var(--police-titre); font-size: 1.55rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; padding: 0; list-style: none; counter-reset: etape; }
.etapes > li { padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--rayon-moyen); counter-increment: etape; }
.etapes > li::before {
  content: counter(etape); display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--lagon); color: var(--sur-lagon);
  font-family: var(--police-titre); font-weight: 600; font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.etapes h3 { margin: 0.7rem 0 0.35rem; }
.etapes p { margin: 0; }
.liste { padding-left: 1.2rem; }
.liste li { margin-bottom: 0.45rem; }
.chiffres-simples { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding: 0; list-style: none; }
.chiffres-simples strong { font-family: var(--police-titre); font-size: 1.3rem; }

/* offres */
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.offre { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.4rem; border-radius: var(--rayon-plaque); }
.offre h3 { margin: 0; }
.offre form { margin: 0; }
.offre form .bouton { width: 100%; }
.offre-mise-en-avant { border: 2px solid var(--lagon); box-shadow: inset 0 1px 0 var(--verre-reflet), 0 24px 48px -22px var(--lagon); }
.prix { margin: 0; font-family: var(--police-titre); font-size: 1.55rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.prix-unite { color: var(--encre-douce); font-family: var(--police-texte); font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.offre-limites { flex: 1; margin: 0 0 0.5rem; padding-left: 1.2rem; }

/* tableaux (position: relative : le texte masqué des cellules reste dans la zone défilante) */
.tableau-defilant { position: relative; margin: 0 0 1.5rem; overflow-x: auto; border-radius: var(--rayon-moyen); }
.tableau { width: 100%; border-collapse: collapse; }
.tableau th, .tableau td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau thead th { font-family: var(--police-sous-titre); font-weight: 600; background: var(--verre-lustre); }
.tableau td form { margin: 0; }
.form-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.form-ligne select { width: auto; min-width: 9rem; }
.etiquette {
  display: inline-block; padding: 0.15rem 0.7rem; border-radius: var(--rayon-capsule);
  background: var(--verre-dense); box-shadow: inset 0 0 0 1px var(--trait);
  color: var(--encre); font-size: 0.9rem; font-weight: 700; white-space: nowrap;
}
.etiquette-done { background: var(--teinte-succes); color: var(--succes); }
.etiquette-error { background: var(--teinte-erreur); color: var(--erreur); }

/* détails, jauges, résultats */
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.85rem 1.5rem; }
.details dt { font-weight: 700; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.jauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2rem; align-items: start; }
.jauge p { margin: 0.3rem 0 0; }
meter { width: 100%; max-width: 24rem; height: 1.25rem; accent-color: var(--lagon); }
.resultats { padding-left: 1.2rem; }
.liens-rapport { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding: 0; list-style: none; }
.cle {
  display: inline-block; padding: 0.45rem 0.7rem; border-radius: 10px; border: 1px solid var(--champ-bord);
  background: var(--champ-fond); font-size: 1rem; overflow-wrap: anywhere; word-break: break-all;
}
.copie { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.code {
  position: relative; padding: 1.1rem 1.2rem; border-radius: var(--rayon-moyen);
  background: var(--code-fond); color: var(--code-texte); overflow-x: auto; white-space: pre;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* pied de page */
.pied { padding-bottom: 2rem; font-size: 0.95rem; }
.pied-plaque { display: grid; gap: 0.9rem; padding: 1.3rem 1.5rem; border-radius: var(--rayon-plaque); }
.pied-plaque img { display: block; height: 28px; width: auto; }
.pied-plaque p { margin: 0; color: var(--encre-douce); }
.pied a { color: var(--encre); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }

@media (max-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .capsule { border-radius: var(--rayon-plaque); padding: 0.6rem 0.75rem; }
}

/* --- accessibilité : préférences du visiteur ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* moins de transparence : surfaces opaques, aurore retirée */
@media (prefers-reduced-transparency: reduce) {
  :root { --verre: var(--surface); --verre-dense: var(--surface); --verre-lustre: transparent; --bande-fond: var(--code-fond); }
  .capsule, .vitrine, .offre, .etapes > li, .bande, .carte, .etroit, .tableau-defilant, .pied-plaque {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  body::before { display: none; }
}
/* plus de contraste : surfaces opaques et contours francs */
@media (prefers-contrast: more) {
  :root { --verre: var(--surface); --verre-dense: var(--surface); --verre-lustre: transparent; --verre-bord: var(--encre); --trait: var(--encre); --encre-douce: var(--encre); --bande-fond: var(--code-fond); }
  .capsule, .vitrine, .offre, .etapes > li, .bande, .carte, .etroit, .tableau-defilant, .pied-plaque {
    -webkit-backdrop-filter: none; backdrop-filter: none; border-width: 2px; box-shadow: none;
  }
  body::before { display: none; }
}
/* navigateurs sans flou d'arrière-plan : verre plus dense pour garder le contraste */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --verre: var(--verre-dense); }
}
/* couleurs forcées (contraste élevé de Windows) */
@media (forced-colors: active) {
  .capsule, .vitrine, .offre, .etapes > li, .bande, .carte, .etroit, .tableau-defilant, .pied-plaque, .bouton, .etiquette, .alerte {
    border: 1px solid CanvasText; box-shadow: none;
  }
  body::before { display: none; }
  .barre, .pastille { forced-color-adjust: none; }
}
