/* Sentinelle PME — registre produit, personnalité « cabinet d'audit ».
   Signature : la matrice des 24 points de contrôle (8 domaines × 3 questions), qui traverse
   l'accueil (balayage), le questionnaire (bande de progression) et le rapport (carte des réponses).
   Palette OKLCH : graphite + vert signal (surfaces sombres uniquement), papier froid pour le rapport,
   statuts à part (vert d'eau / vert / ambre / rouge) — jamais la couleur de marque.
   Typo : Source Serif 4 (titres), Public Sans (interface), Geist Mono (codes, chiffres, touches). */

/* ---------- Polices hébergées (aucune requête vers Google) ---------- */
@font-face {
  font-family: "Public Sans";
  src: url(fonts/public-sans-latin.woff2) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(fonts/source-serif-4-latin.woff2) format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url(fonts/geist-mono-latin.woff2) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Permet d'animer le tracé de l'anneau de score */
@property --pct { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --graphite: oklch(0.19 0.012 262);
  --graphite-2: oklch(0.26 0.014 262);
  --papier: oklch(0.972 0.004 262);
  --carte: oklch(0.997 0.002 262);
  --encre: oklch(0.2 0.012 262);
  --encre-2: oklch(0.43 0.015 262);          /* AA sur papier et sur carte */
  --ligne: oklch(0.88 0.008 262);
  --ligne-forte: oklch(0.7 0.012 262);

  --signal: oklch(0.9 0.19 125);              /* vert signal — surfaces sombres et boutons */
  --signal-dur: oklch(0.72 0.17 125);         /* ombre « touche » du bouton */

  /* Statuts : remplissages (cases, barres) et textes (AA sur fond clair) */
  --f-oui: oklch(0.6 0.12 165);
  --f-part: oklch(0.76 0.15 78);
  --f-non: oklch(0.57 0.2 27);
  --f-correct: oklch(0.66 0.13 140);
  --t-solide: oklch(0.42 0.1 165);
  --t-correct: oklch(0.43 0.11 140);
  --t-fragile: oklch(0.46 0.11 62);
  --t-critique: oklch(0.45 0.18 27);
  --teinte-critique: oklch(0.965 0.02 25);

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);     /* ease-out expo : aucune courbe à rebond */
  --r: 6px;

  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; }

/* Le fond pleine largeur de l'accueil utilise 100vw (barre de défilement comprise) :
   on rogne sur html ET body pour qu'aucun défilement horizontal ne subsiste. */
html { overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--papier);
  color: var(--encre);
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Barre de lecture (fine ligne verte en haut de page) */
#barre-lecture {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 50;
  background: var(--signal); box-shadow: 0 0 10px var(--signal);
  pointer-events: none;
}

/* ---------- Barre du haut ---------- */
.topbar { background: var(--graphite); color: #fff; border-bottom: 1px solid var(--graphite-2); }
.topbar-inner {
  max-width: 1000px; margin: 0 auto; padding: 13px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; letter-spacing: .01em; }
.logo strong { font-weight: 700; }
.logo-marque { display: block; flex: none; }
.m-fond { fill: oklch(0.26 0.014 262); }
.m-cases rect { fill: oklch(0.5 0.015 262); }
.m-signal { fill: var(--signal); animation: marque 3.2s var(--ease) infinite; }
.m-signal-2 { animation-delay: 1.6s; }
@keyframes marque { 0%, 55%, 100% { opacity: 1; } 70% { opacity: .25; } }
.topbar-note { font-size: .78rem; color: oklch(0.82 0.01 262); max-width: 62ch; }

/* ---------- Structure ---------- */
main { max-width: 1000px; margin: 0 auto; padding: 40px 24px 72px; }
.ecran[hidden] { display: none; }

.carte {
  background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r);
  padding: 26px 28px;
}

/* ---------- Accueil : surface graphite pleine largeur, quadrillage de points, lueur au pointeur ---------- */
#ecran-accueil { position: relative; --mx: 72%; --my: 28%; }
#ecran-accueil::before {
  content: ""; position: absolute; inset: -40px calc(50% - 50vw) -24px; z-index: -1;
  background:
    radial-gradient(circle 360px at var(--mx) var(--my), oklch(0.9 0.19 125 / 0.13), transparent 70%),
    radial-gradient(oklch(1 0 0 / 0.09) 1px, transparent 1.6px) 0 0 / 22px 22px,
    var(--graphite);
}

.hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px;
  align-items: center; padding: 38px 0 12px;
}
.hero > * { min-width: 0; }
.hero-texte { color: #fff; }

.matrice-hero-bloc { margin-bottom: 30px; max-width: 400px; }
.matrice-hero { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.cellule {
  aspect-ratio: 1; border-radius: 3px; background: oklch(1 0 0 / 0.08);
  animation: balayage 7.5s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
.cellule.s-oui { --c: var(--f-oui); }
.cellule.s-part { --c: var(--f-part); }
.cellule.s-non { --c: var(--f-non); }
@keyframes balayage {
  0%   { background: oklch(1 0 0 / 0.08); box-shadow: 0 0 0 transparent; transform: none; }
  5%   { background: var(--signal); box-shadow: 0 0 16px var(--signal); transform: scale(1.14); }
  16%, 76% { background: var(--c); box-shadow: 0 0 0 transparent; transform: none; }
  92%, 100% { background: oklch(1 0 0 / 0.08); }
}
.matrice-legende { margin-top: 12px; font-family: var(--mono); font-size: .76rem; color: oklch(0.78 0.012 262); }

.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: 2.85rem; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero-sub { color: oklch(0.88 0.01 262); max-width: 54ch; margin-bottom: 24px; font-size: 1.04rem; }

.hero-preuves { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 58ch; }
.hero-preuves li { padding-left: 22px; position: relative; font-size: .92rem; color: oklch(0.86 0.01 262); }
.hero-preuves li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  background: var(--signal); border-radius: 2px;
}
.hero-preuves strong { color: #fff; }

.profil-carte { align-self: start; padding: 28px; border-color: transparent; }
.profil-carte h2 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 8px; }
.profil-carte label { display: block; font-size: .82rem; font-weight: 600; margin: 14px 0 5px; color: var(--encre-2); }
.profil-carte select, #profil-nom {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--ligne-forte); border-radius: var(--r);
  font-size: .95rem; font-family: inherit; background: #fff; color: var(--encre);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.profil-carte select:hover, #profil-nom:hover { border-color: var(--encre); }
.profil-carte select:focus-visible, #profil-nom:focus-visible { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px var(--signal); }
.optionnel { font-weight: 400; color: var(--encre-2); font-size: .8rem; }

/* Entrée de l'accueil : une montée courte, pas une chorégraphie */
.hero-texte > *, .profil-carte { animation: monter .6s var(--ease) both; }
.hero-texte > :nth-child(2) { animation-delay: .08s; }
.hero-texte > :nth-child(3) { animation-delay: .16s; }
.hero-texte > :nth-child(4) { animation-delay: .24s; }
.profil-carte { animation-delay: .2s; }
@keyframes monter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Boutons : « touches » à ombre dure ---------- */
.btn {
  display: inline-block; border: 1.5px solid var(--encre); border-radius: var(--r); cursor: pointer;
  font-family: inherit; font-size: .98rem; font-weight: 600; padding: 13px 22px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.btn-principal {
  background: var(--signal); color: var(--encre); width: 100%; margin-top: 22px;
  box-shadow: 0 3px 0 var(--encre);
}
.btn-principal:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--encre); }
.btn-principal:active { transform: translateY(3px); box-shadow: 0 0 0 var(--encre); }
.btn-secondaire { background: transparent; color: var(--encre); width: 100%; margin-top: 12px; }
.btn-secondaire:hover { background: var(--encre); color: #fff; }
.btn-secondaire:active { transform: translateY(1px); }
.btn.btn-auto { width: auto; }

/* ---------- Questionnaire ---------- */
#ecran-questions { max-width: 720px; margin: 0 auto; }

.progression { margin-bottom: 26px; }
.progression-texte { font-family: var(--mono); font-size: .82rem; color: var(--encre-2); margin-bottom: 14px; }
.progression-barre { display: none; }

.segments { display: flex; gap: 12px; }
.seg-groupe { flex: 1; min-width: 0; }
.seg-cases { display: flex; gap: 3px; }
.seg { flex: 1; height: 14px; border-radius: 2px; background: var(--ligne); transition: background-color .25s var(--ease); }
.seg.s-oui { background: var(--f-oui); }
.seg.s-part { background: var(--f-part); }
.seg.s-non { background: var(--f-non); }
.seg.courant { background: var(--encre); animation: courant 1.6s var(--ease) infinite; }
.seg.s-oui.courant, .seg.s-part.courant, .seg.s-non.courant { outline: 2px solid var(--encre); outline-offset: 2px; animation: none; }
.seg.neuf { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: scaleY(2.4); } to { transform: none; } }
@keyframes courant { 50% { opacity: .35; } }
.seg-code { display: block; margin-top: 6px; font-family: var(--mono); font-size: .68rem; color: var(--encre-2); transition: color .2s; }
.seg-groupe.actif .seg-code { color: var(--encre); font-weight: 700; }

#conteneur-question .carte { padding: 30px 32px; animation: entree-question .32s var(--ease); }
@keyframes entree-question { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }

.q-domaine { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--encre-2); margin-bottom: 14px; }
.q-code, .bd-code {
  font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  background: var(--graphite); color: var(--signal); padding: 3px 7px; border-radius: 3px;
}
.q-texte { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.25; margin-bottom: 14px; letter-spacing: -0.01em; }
.q-aide { color: var(--encre-2); font-size: .93rem; max-width: 62ch; margin-bottom: 24px; }
.q-aide-mot { font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--encre); margin-right: 8px; }
.q-aide-mot::after { content: " :"; }

.q-choix { display: grid; gap: 10px; }
.q-choix button {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px;
  border: 1.5px solid var(--ligne-forte); border-radius: var(--r);
  background: #fff; font-family: inherit; font-size: 1rem; color: var(--encre); cursor: pointer;
  transition: transform .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.q-choix button:hover { transform: translateX(5px); border-color: var(--encre); background: oklch(0.985 0.004 262); }
.q-choix button:active { transform: translateX(5px) scale(.99); }
.q-choix button:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.q-choix button.choisi { border-color: var(--encre); background: oklch(0.96 0.006 262); }
.choix-marque { flex: none; width: 16px; height: 16px; border-radius: 3px; border: 2px solid var(--c); background: transparent; transition: background-color .16s var(--ease), transform .16s var(--ease); }
.choix-oui { --c: var(--f-oui); }
.choix-partiel { --c: var(--f-part); }
.choix-non { --c: var(--f-non); }
.q-choix button:hover .choix-marque, .q-choix button.choisi .choix-marque { background: var(--c); transform: scale(1.15); }
.choix-texte { flex: 1; min-width: 0; }
.choix-libelle { display: block; font-weight: 600; }
.choix-detail { display: block; font-size: .83rem; color: var(--encre-2); margin-top: 2px; }
.choix-touche {
  flex: none; font-family: var(--mono); font-size: .78rem; color: var(--encre-2);
  border: 1px solid var(--ligne-forte); border-bottom-width: 3px; border-radius: 4px; padding: 1px 8px;
}

.q-nav { margin-top: 22px; display: flex; justify-content: space-between; }
.q-retour {
  background: none; border: none; color: var(--encre-2); cursor: pointer;
  font-family: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; padding: 4px;
}
.q-retour:hover { color: var(--encre); }
.q-retour:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; border-radius: 4px; }

/* ---------- Rapport ---------- */
.rapport-entete { margin-bottom: 30px; padding-bottom: 18px; border-bottom: 2px solid var(--encre); }
.rapport-entete h1 { font-family: var(--serif); font-size: 2.2rem; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 8px; }
.rapport-nom { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 4px; }
.rapport-date { font-family: var(--mono); color: var(--encre-2); font-size: .82rem; }

.score-global { display: flex; align-items: center; gap: 40px; margin: 8px 0 30px; flex-wrap: wrap; }
.score-anneau {
  --pct: 0; --col: var(--f-oui);
  width: 176px; height: 176px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--col) calc(var(--pct) * 1%), var(--ligne) 0);
  display: grid; place-items: center;
  transition: --pct 1.5s var(--ease) .2s;
}
.score-coeur {
  width: 144px; height: 144px; border-radius: 50%; background: var(--papier);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-coeur .pct { font-family: var(--mono); font-size: 2.7rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.score-coeur .sur { font-size: .74rem; color: var(--encre-2); margin-top: 6px; }

.score-verdict { max-width: 420px; }
.score-verdict p { margin-top: 16px; }

/* Le tampon d'audit */
.tampon {
  --col: var(--t-fragile);
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  border: 3px double var(--col); border-radius: 4px; padding: 7px 20px 8px; color: var(--col);
  font-family: var(--mono); text-transform: uppercase; transform: rotate(-3deg);
  animation: tampon .55s var(--ease) 1.05s both;
}
.tampon-mot { font-size: .7rem; letter-spacing: .24em; font-weight: 600; }
.tampon-niveau { font-size: 1.85rem; font-weight: 700; letter-spacing: .1em; line-height: 1.05; }
.tampon-solide { --col: var(--t-solide); }
.tampon-correct { --col: var(--t-correct); }
.tampon-fragile { --col: var(--t-fragile); }
.tampon-critique { --col: var(--t-critique); }
@keyframes tampon {
  from { opacity: 0; transform: rotate(-9deg) scale(1.9); }
  to   { opacity: 1; transform: rotate(-3deg) scale(1); }
}

/* Carte des 24 réponses */
.matrice-rapport { margin: 0 0 40px; }
.mr-grille { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.mr-cases { display: grid; gap: 6px; }
.cell { display: block; border-radius: 3px; background: var(--ligne); }
.mr-cases .cell { height: 40px; animation: case-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 32ms + 150ms); }
@keyframes case-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.cell.s-oui { background: var(--f-oui); }
.cell.s-part { background: var(--f-part); }
.cell.s-non { background: var(--f-non); }
.mr-code { margin-top: 8px; text-align: center; font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--encre-2); }
.mr-legende { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-size: .86rem; color: var(--encre-2); }
.leg { display: inline-flex; align-items: center; gap: 8px; }
.leg .cell { width: 14px; height: 14px; display: inline-block; }
.leg b { font-family: var(--mono); color: var(--encre); }

.rapport-section { margin-bottom: 40px; }
.rapport-section h2 {
  font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.01em; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1.5px solid var(--encre);
}

.evolution-titre { font-weight: 600; margin-bottom: .6rem; }
.evolution-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.evolution-liste li { display: flex; justify-content: space-between; gap: 1rem; }
.evolution-liste strong { font-family: var(--mono); }

.barres-domaines { display: grid; gap: 12px; }
.barre-domaine { display: grid; grid-template-columns: minmax(190px, 250px) 1fr 56px; gap: 16px; align-items: center; font-size: .93rem; }
.bd-nom { display: flex; align-items: center; gap: 10px; }
.bd-code { flex: none; }
.barre-fond { height: 10px; background: var(--ligne); border-radius: 2px; overflow: hidden; }
.barre-remplie { height: 100%; width: 0; border-radius: 2px; transition: width .95s var(--ease) calc(var(--i, 0) * 70ms + .45s); }
.barre-pct { text-align: right; font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }

.niveau-solide   { background: var(--f-oui); }
.niveau-correct  { background: var(--f-correct); }
.niveau-fragile  { background: var(--f-part); }
.niveau-critique { background: var(--f-non); }
.anneau-solide   { --col: var(--f-oui); }
.anneau-correct  { --col: var(--f-correct); }
.anneau-fragile  { --col: var(--f-part); }
.anneau-critique { --col: var(--f-non); }
.texte-solide   { color: var(--t-solide); }
.texte-correct  { color: var(--t-correct); }
.texte-fragile  { color: var(--t-fragile); }
.texte-critique { color: var(--t-critique); }

/* Risques : lignes réglées numérotées (le rang est une vraie information) */
.risque {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start;
  padding: 18px 8px 18px 0; border-top: 1px solid var(--ligne-forte);
  transition: background-color .2s var(--ease), padding-left .2s var(--ease);
}
.risque:last-of-type { border-bottom: 1px solid var(--ligne-forte); }
.risque:hover { background: var(--teinte-critique); padding-left: 10px; }
.r-rang { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--t-critique); }
.r-domaine { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; color: var(--encre-2); margin-bottom: 6px; }
.r-question { font-weight: 600; font-size: 1.04rem; }

/* Plan d'action : trois horizons */
.horizon-bloc { margin-bottom: 28px; }
.horizon-titre {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem;
  margin-bottom: 8px;
}
.horizon-titre::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--hc); }
.h-30j { --hc: var(--f-non); }
.h-60j { --hc: var(--f-part); }
.h-90j { --hc: var(--f-correct); }
.action {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start;
  padding: 13px 8px 13px 0; border-top: 1px solid var(--ligne);
  transition: background-color .2s var(--ease), padding-left .2s var(--ease);
}
.action:hover { background: oklch(0.955 0.006 262); padding-left: 10px; }
.a-code { font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--encre-2); padding-top: 3px; }
.a-label { font-weight: 600; }
.a-meta { font-size: .8rem; color: var(--encre-2); margin-top: 3px; }
.rien-a-signaler { font-weight: 600; color: var(--t-solide); }

.consultant-carte p { max-width: 68ch; }
.consultant-carte p + p { margin-top: 12px; }
.consultant-attente { color: var(--encre-2); font-family: var(--mono); font-size: .88rem; }
.consultant-attente::after { content: "▍"; margin-left: 2px; animation: curseur 1s steps(2) infinite; }
@keyframes curseur { 50% { opacity: 0; } }
.consultant-note { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ligne); font-size: .78rem; color: var(--encre-2); font-style: italic; }

.nis2-carte { border: 1.5px solid var(--encre); }
.nis2-statut { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.nis2-statut::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--ns); flex: none; }
.nis2-probable { --ns: var(--f-non); }
.nis2-possible { --ns: var(--f-part); }
.nis2-hors { --ns: var(--f-oui); }
.nis2-avertissement { font-size: .8rem; color: var(--encre-2); margin-top: 12px; font-style: italic; }

.rapport-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rapport-actions .btn { width: auto; margin: 0; }

/* Apparition au défilement (la classe .rv n'est posée que par le JS : sans JS, tout reste visible) */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Pied ---------- */
.pied { max-width: 1000px; margin: 0 auto; padding: 24px; text-align: center; font-size: .8rem; color: var(--encre-2); border-top: 1px solid var(--ligne); }
.pied a { color: var(--encre); text-underline-offset: 3px; }
.pied-avertissement { margin-top: 6px; font-style: italic; }

/* ---------- Mouvement réduit : l'état final, sans animation ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cellule { background: var(--c); }
  .rv { opacity: 1; transform: none; }
  #ecran-accueil::before { background: radial-gradient(oklch(1 0 0 / 0.09) 1px, transparent 1.6px) 0 0 / 22px 22px, var(--graphite); }
}

/* ---------- Impression (Ctrl+P → PDF) : états finaux, couleurs conservées ---------- */
@media print {
  .topbar, .pied, .rapport-actions, .progression, #barre-lecture { display: none; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .carte, .action, .risque { break-inside: avoid; }
  .rapport-section, .matrice-rapport { break-inside: avoid; }
  .score-anneau, .cell, .barre-remplie, .tampon, .bd-code, .q-code { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .risque:hover, .action:hover { background: none; padding-left: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 640px) {
  main { padding: 28px 16px 56px; }
  .carte, #conteneur-question .carte { padding: 22px 18px; }
  .q-texte { font-size: 1.35rem; }
  .barre-domaine { grid-template-columns: 1fr 48px; gap: 6px 12px; }
  .barre-domaine .barre-fond { grid-column: 1 / -1; order: 3; }
  .score-global { gap: 24px; }
  .score-anneau { width: 150px; height: 150px; }
  .score-coeur { width: 122px; height: 122px; }
  .segments { gap: 7px; }
  .seg-code { font-size: .6rem; }
  .mr-grille { gap: 6px; }
  .mr-cases .cell { height: 30px; }
  .risque, .action { grid-template-columns: 48px 1fr; }
  .choix-touche { display: none; }
  .topbar-inner { justify-content: center; text-align: center; }
}
