/* YOU SERV — Audit d'alignement ISO/IEC 27001:2022
   Charte : marine #0A1F44, vert #00C896, ardoise #5B6B86, nuit #06101F.
   Aucune ressource externe (CSP : tout est servi par l'application). */

:root {
  --nuit: #06101f;
  --marine: #0a1f44;
  --vert: #00c896;
  --vert-texte: #007a5c;      /* vert lisible sur fond clair (contraste ≥ 4.5:1) */
  --vert-doux: #e3f8f1;
  --ardoise: #5b6b86;
  --fond: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --bordure: #dfe5ee;
  --texte: #0f1b2d;
  --texte-2: #4a5872;
  --rouge: #c93b3b;
  --rouge-doux: #fdecec;
  --orange: #b86e00;
  --orange-doux: #fff3e0;
  --gris-na: #6b7690;
  --gris-na-doux: #eef1f6;
  --ombre: 0 1px 2px rgba(10, 31, 68, .06), 0 4px 16px rgba(10, 31, 68, .06);
  --rayon: 12px;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --vert-texte: #2fd9aa;
    --vert-doux: #0b3328;
    --ardoise: #8d9cb8;
    --fond: #06101f;
    --surface: #0c1a30;
    --surface-2: #0f2039;
    --bordure: #1d2e4b;
    --texte: #e7edf6;
    --texte-2: #a9b6cc;
    --rouge: #ff7a7a;
    --rouge-doux: #3a1418;
    --orange: #ffb547;
    --orange-doux: #3a2a0c;
    --gris-na: #9aa6bd;
    --gris-na-doux: #172743;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--texte);
  background: var(--fond);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--vert-texte); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.conteneur { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.etroit { max-width: 760px; }

/* ── En-tête et pied ─────────────────────────────────────────────────────────── */
.entete { background: var(--nuit); color: #e7edf6; border-bottom: 1px solid #13233f; position: sticky; top: 0; z-index: 20; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.entete .marque img { display: block; height: 40px; width: auto; }
.entete nav { display: flex; gap: 18px; align-items: center; font-size: .9rem; }
.entete nav a { color: #b8c4d8; text-decoration: none; }
.entete nav a:hover { color: #fff; }
.etat-sauvegarde { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: #8d9cb8; white-space: nowrap; }
.etat-sauvegarde.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); margin-right: 6px; }
.etat-sauvegarde.erreur { color: #ff9b9b; }

.pied { margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--bordure); color: var(--texte-2); font-size: .85rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pied a { color: var(--texte-2); }

.surtitre { font-family: var(--mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--vert-texte); margin-bottom: .7em; display: block; }

/* ── Accueil ─────────────────────────────────────────────────────────────────── */
.bandeau { background: radial-gradient(1200px 400px at 85% -10%, rgba(0, 200, 150, .18), transparent 60%), var(--nuit); color: #e7edf6; padding: 56px 0 72px; }
.bandeau .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.bandeau h1 { color: #fff; }
.bandeau h1 em { font-style: normal; color: var(--vert); }
.bandeau .accroche { color: #b8c4d8; font-size: 1.08rem; max-width: 34em; }
.bandeau .surtitre { color: var(--vert); }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline; color: #c9d3e3; }
.points strong { font-family: var(--mono); color: var(--vert); font-size: 1.15rem; font-weight: 700; }
.mention-legere { font-size: .82rem; color: #8d9cb8; margin-top: 24px; }

.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 24px; color: var(--texte); }
.carte + .carte { margin-top: 16px; }
.bandeau .carte { margin-top: 4px; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -36px; }
.etape { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre); }
.etape .num { font-family: var(--mono); color: var(--vert-texte); font-size: .8rem; letter-spacing: .15em; }

/* ── Formulaires ─────────────────────────────────────────────────────────────── */
.champ { display: grid; gap: 6px; margin-bottom: 14px; }
.champ label { font-weight: 600; font-size: .9rem; }
.champ .facultatif { font-weight: 400; color: var(--texte-2); font-size: .8rem; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.presence { border: 1px dashed var(--bordure); border-radius: 10px; padding: 12px 14px 2px; margin: 0 0 14px; min-width: 0; }
.presence legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.presence .aide { font-size: .82rem; color: var(--texte-2); margin: 0 0 10px; }
.choix-normes { padding-bottom: 10px; }
.option-norme .explication { display: block; font-style: normal; font-size: .88rem; color: var(--texte); margin-top: 3px; }
.option-norme { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--bordure); border-radius: 10px; cursor: pointer; font-size: .92rem; }
.option-norme input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--vert); }
.option-norme small { display: block; color: var(--texte-2); font-size: .8rem; margin-top: 2px; }
.option-norme:has(input:checked) { border-color: var(--vert); background: var(--vert-doux); }
.sous-traitant { border-top: 1px solid var(--bordure); margin-top: 6px; padding-top: 10px; }
.sous-traitant .question-courte { font-size: .9rem; font-weight: 600; margin: 0 0 8px; }
.oui-non { display: flex; gap: 18px; margin: 0 0 6px; font-size: .92rem; }
.oui-non input { accent-color: var(--vert); margin-right: 4px; }
.badge-norme { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--vert-doux); color: var(--vert-texte); vertical-align: middle; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--texte);
  background: var(--surface-2);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--vert); outline: 2px solid color-mix(in srgb, var(--vert) 35%, transparent); outline-offset: 0; }
/* Téléphone : l'indicatif du pays choisi s'affiche devant le numéro. */
.tel-indicatif { display: flex; align-items: stretch; }
.tel-indicatif span { display: flex; align-items: center; padding: 0 10px; min-width: 56px; justify-content: center; font-family: var(--mono); font-size: .9rem; color: var(--texte-2); background: var(--surface); border: 1px solid var(--bordure); border-right: 0; border-radius: 8px 0 0 8px; }
.tel-indicatif input { border-radius: 0 8px 8px 0; min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.case { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .88rem; color: var(--texte-2); margin: 6px 0 16px; }
.case input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--vert); }
.code-mfa { font-family: var(--mono); letter-spacing: .4em; font-size: 1.3rem; text-align: center; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--vert); color: #04241b; border: 0; border-radius: 10px;
  padding: 12px 20px; min-height: 46px;
  transition: transform .08s ease, filter .15s ease;
}
.bouton:hover { filter: brightness(1.06); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.bouton.large { width: 100%; }
.bouton.secondaire { background: transparent; color: var(--texte); border: 1px solid var(--bordure); }
.bouton.danger { background: var(--rouge); color: #fff; }
.bouton.petit { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--vert-texte); text-decoration: underline; cursor: pointer; }

.message { border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin: 0 0 14px; border: 1px solid transparent; }
.message.erreur { background: var(--rouge-doux); color: var(--rouge); border-color: color-mix(in srgb, var(--rouge) 30%, transparent); }
.message.info { background: var(--vert-doux); color: var(--vert-texte); border-color: color-mix(in srgb, var(--vert) 30%, transparent); }
.reprise { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ── Questionnaire ───────────────────────────────────────────────────────────── */
.espace-audit { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-top: 28px; align-items: start; }
.sommaire { position: sticky; top: 84px; }
.sommaire .carte { padding: 18px; }
.progression-globale { margin-bottom: 16px; }
.progression-globale .chiffres { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .8rem; color: var(--texte-2); margin-bottom: 6px; }
.barre { height: 8px; background: var(--gris-na-doux); border-radius: 99px; overflow: hidden; }
.barre > span { display: block; height: 100%; background: var(--vert); border-radius: 99px; transition: width .3s ease; }
.domaines-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.domaines-nav button {
  width: 100%; text-align: left; font: inherit; font-size: .9rem; color: var(--texte); background: none;
  border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer; display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center;
}
.domaines-nav button:hover { background: var(--surface-2); }
.domaines-nav button[aria-current="true"] { background: var(--vert-doux); color: var(--vert-texte); font-weight: 700; }
.pastille { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .7rem; font-weight: 700; border: 2px solid var(--bordure); color: var(--texte-2); }
.pastille.partielle { border-color: var(--vert); color: var(--vert-texte); }
.pastille.complete { background: var(--vert); border-color: var(--vert); color: #04241b; }
.compte { font-family: var(--mono); font-size: .75rem; color: var(--texte-2); }

.entete-domaine { margin-bottom: 18px; }
.entete-domaine .reference { font-family: var(--mono); font-size: .78rem; color: var(--texte-2); letter-spacing: .08em; }
.question { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px; margin-bottom: 14px; scroll-margin-top: 90px; transition: border-color .2s ease; }
.question.repondue { border-left: 4px solid var(--vert); }
.question.cible { border-color: var(--vert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vert) 25%, transparent); }
.question .numero { font-family: var(--mono); font-size: .75rem; color: var(--texte-2); letter-spacing: .1em; }
.question .intitule { font-weight: 600; font-size: 1.02rem; margin: 6px 0 6px; }
.question .aide { font-size: .88rem; color: var(--texte-2); margin-bottom: 14px; }
.choix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.choix label { position: relative; }
.choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choix span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px;
  border: 1px solid var(--bordure); background: var(--surface-2); font-weight: 650; font-size: .92rem; cursor: pointer; user-select: none;
}
.choix input:focus-visible + span { outline: 3px solid var(--vert); outline-offset: 2px; }
.choix input:checked + span { color: #fff; border-color: transparent; }
.choix .oui input:checked + span { background: #00a37a; }
.choix .partiel input:checked + span { background: #c27a00; }
.choix .non input:checked + span { background: var(--rouge); }
.choix .na input:checked + span { background: var(--gris-na); }
@media (prefers-color-scheme: dark) { .choix .non input:checked + span { background: #c93b3b; } }
.commentaire-bascule { margin-top: 10px; font-size: .85rem; }
.commentaire { margin-top: 8px; }
.navigation-domaines { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 8px; flex-wrap: wrap; }
.zone-fin { margin-top: 20px; }

/* ── Résultat ────────────────────────────────────────────────────────────────── */
.synthese-score { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; }
.jauge { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.jauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jauge .piste { stroke: var(--gris-na-doux); }
.jauge .valeur { stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.jauge .texte { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.jauge .texte strong { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.jauge .texte span { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--texte-2); margin-top: 6px; }
.c-vert { color: #00a37a; stroke: #00a37a; }
.c-orange { color: var(--orange); stroke: #e08a00; }
.c-rouge { color: var(--rouge); stroke: #d64545; }
.c-gris { color: var(--gris-na); stroke: var(--gris-na); }
.legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--texte-2); margin-top: 10px; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.legende .l-vert { background: #00a37a; } .legende .l-orange { background: #e08a00; } .legende .l-rouge { background: #d64545; }
.liste-domaines { display: grid; gap: 12px; }
.ligne-domaine { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 6px 14px; align-items: center; }
.ligne-domaine .nom { font-weight: 600; font-size: .93rem; }
.ligne-domaine .pct { font-family: var(--mono); font-weight: 700; text-align: right; }
.ligne-domaine .barre { grid-column: 1 / -1; height: 10px; }
.ligne-domaine .barre > span.vert { background: #00a37a; } .ligne-domaine .barre > span.orange { background: #e08a00; }
.ligne-domaine .barre > span.rouge { background: #d64545; } .ligne-domaine .barre > span.gris { background: var(--gris-na); }
.ecart { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--bordure); }
.ecart:first-child { border-top: 0; }
.badge { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; white-space: nowrap; height: fit-content; }
.badge.non { background: var(--rouge-doux); color: var(--rouge); }
.badge.partiel { background: var(--orange-doux); color: var(--orange); }
.badge.critique { background: var(--nuit); color: var(--vert); }
.badge.neutre { background: var(--gris-na-doux); color: var(--texte-2); }
.badge.ok { background: var(--vert-doux); color: var(--vert-texte); }
.rapport-cta { background: var(--nuit); color: #e7edf6; border-color: #13233f; }
.rapport-cta h2 { color: #fff; }
.rapport-cta p { color: #b8c4d8; }
.attente { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.rond { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(0, 200, 150, .3); border-top-color: var(--vert); animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rond { animation: none; } .jauge .valeur, .barre > span { transition: none; } }

.rapport h2 { border-bottom: 2px solid var(--vert); padding-bottom: 6px; margin-top: 28px; }
.rapport .bloc { margin-bottom: 14px; }
.rapport ul { padding-left: 20px; }
.rapport li { margin-bottom: 8px; }
.rapport .meta { font-size: .85rem; color: var(--texte-2); }
.avertissement { font-size: .82rem; color: var(--texte-2); border-top: 1px solid var(--bordure); padding-top: 14px; margin-top: 24px; }

/* ── Pages légales ───────────────────────────────────────────────────────────── */
.texte-legal { padding-top: 36px; }
.texte-legal h2 { margin-top: 30px; font-size: 1.15rem; }
.texte-legal li { margin-bottom: 6px; }
.encadre { background: var(--surface-2); border: 1px solid var(--bordure); border-radius: 10px; padding: 14px 18px; margin: 12px 0; }
table.simple { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.simple th, table.simple td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--bordure); vertical-align: top; }
table.simple th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); }

/* ── Admin ───────────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px; }
.stat .v { font-size: 1.8rem; font-weight: 800; font-family: var(--mono); }
.stat .l { font-size: .82rem; color: var(--texte-2); }
.filtres { display: grid; grid-template-columns: 1fr 180px 200px auto; gap: 10px; margin-bottom: 14px; }
.tableau-defile { overflow-x: auto; }
.tableau-defile table { min-width: 860px; }
tr.cliquable { cursor: pointer; }
tr.cliquable:hover td { background: var(--surface-2); }
.panneau { position: fixed; inset: 0 0 0 auto; width: min(760px, 100%); background: var(--surface); border-left: 1px solid var(--bordure); box-shadow: -10px 0 30px rgba(0, 0, 0, .2); overflow-y: auto; z-index: 40; padding: 24px; }
.panneau .fermer { position: sticky; top: 0; float: right; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.secret-mfa { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .12em; word-break: break-all; background: var(--surface-2); border: 1px dashed var(--bordure); border-radius: 8px; padding: 12px; text-align: center; }
.qr-mfa { display: block; width: 240px; height: 240px; margin: 12px auto 16px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--bordure); image-rendering: pixelated; }
dl.fiche { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: .9rem; }
dl.fiche dt { color: var(--texte-2); }
dl.fiche dd { margin: 0; word-break: break-word; }
.q-admin { padding: 8px 0; border-top: 1px solid var(--bordure); font-size: .88rem; display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* ── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .bandeau .conteneur, .synthese-score { grid-template-columns: 1fr; }
  .espace-audit { grid-template-columns: 1fr; }
  .sommaire { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .filtres { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .etapes, .grille-2 { grid-template-columns: 1fr; }
  .etapes { margin-top: 20px; }
  .choix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entete nav .masquer-mobile { display: none; }
  .entete .marque img { height: 32px; }
  .bandeau { padding: 32px 0 40px; }
  dl.fiche { grid-template-columns: 1fr; }
  .carte { padding: 18px; }
}

/* ── Impression du rapport ───────────────────────────────────────────────────── */
@media print {
  :root { --fond: #fff; --surface: #fff; --texte: #000; --texte-2: #333; --bordure: #ccc; }
  .entete, .pied, .rapport-cta, .bouton, .sans-impression { display: none !important; }
  body { background: #fff; }
  .carte { box-shadow: none; border: 0; padding: 0; }
  .rapport h2 { break-after: avoid; }
}

/* Utilitaires (la CSP interdit les attributs style dans le HTML) */
.mt { margin-top: 28px; }
.centre { margin-left: auto; margin-right: auto; }
.note-sommaire { color: var(--texte-2); font-size: .8rem; margin-top: 12px; }
.muet { color: var(--texte-2); font-size: .88rem; }
.ligne-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.entete-domaine h1 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.entete .bouton.secondaire { color: #e7edf6; border-color: #2a3b5a; }

/* Rapport gratuit et offre payante */
.domaine-gratuit { margin-top: 22px; }
.domaine-gratuit h3 { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--bordure); padding-bottom: 6px; }
.pratique { margin: 8px 0 0; padding: 10px 12px; background: var(--vert-doux); border-radius: 8px; font-size: .93rem; }
.pratique strong { color: var(--vert-texte); }
.refs { font-family: var(--mono); font-size: .72rem; color: var(--texte-2); letter-spacing: .02em; }
.offre-liste { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; color: #c9d3e3; }
.offre-liste li::before { content: "✓"; color: var(--vert); font-weight: 700; margin-right: 10px; }
.prix { font-family: var(--mono); color: var(--vert); font-size: 1.1rem; font-weight: 700; }
.rapport-cta h3 { color: #fff; margin: 18px 0 8px; font-size: 1rem; }
.sommaire-offre { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; columns: 2; column-gap: 24px; color: #c9d3e3; font-size: .9rem; }
.sommaire-offre li { counter-increment: s; break-inside: avoid; padding: 4px 0; border-bottom: 1px dashed #1d2e4b; }
.sommaire-offre li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); color: var(--vert); font-weight: 700; margin-right: 10px; }
@media (max-width: 600px) { .sommaire-offre { columns: 1; } }
.form-commande { background: var(--surface); color: var(--texte); border-radius: 10px; padding: 18px; margin-top: 16px; }
.form-commande h3 { margin-top: 0; }
.comparatif { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .9rem; }
.comparatif th, .comparatif td { padding: 8px 10px; border-bottom: 1px solid #1d2e4b; text-align: left; color: #c9d3e3; }
.comparatif th { color: #fff; }
.comparatif td:not(:first-child), .comparatif th:not(:first-child) { text-align: center; }
.domaine-gratuit summary { display: grid; grid-template-columns: 1fr auto 70px; gap: 12px; align-items: center; cursor: pointer; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--bordure); list-style: none; }
.domaine-gratuit summary::-webkit-details-marker { display: none; }
.domaine-gratuit summary::before { content: "▸"; color: var(--vert-texte); position: absolute; margin-left: -18px; transition: transform .15s; }
.domaine-gratuit[open] summary::before { transform: rotate(90deg); }
.domaine-gratuit { padding-left: 18px; position: relative; margin-top: 0; }
.domaine-gratuit summary .pct { font-family: var(--mono); text-align: right; }
@media print { .domaine-gratuit:not([open]) > :not(summary) { display: block !important; } }

/* ── Langue (FR / EN) ────────────────────────────────────────────────────────── */
/* Page anglaise : masquée le temps de la traduction (au plus 0,8 s, même si un script échoue). */
html[data-langue="en"]:not(.traduit) body { opacity: 0; animation: ys-apparaitre 0s .8s forwards; }
@keyframes ys-apparaitre { to { opacity: 1; } }
.choix-langue {
  font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  min-height: 36px; min-width: 44px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  background: transparent; color: #e7edf6; border: 1px solid #2a3b5a;
}
.choix-langue:hover { border-color: var(--vert); color: #fff; }
.choix-langue:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
.entete .actions-entete { display: flex; align-items: center; gap: 12px; }

/* ── Questionnaire : une question par écran ──────────────────────────────────── */
.quiz { max-width: 860px; margin: 0 auto; padding: 24px 0 8px; }
.quiz-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.quiz-fil { font-size: .9rem; color: var(--texte-2); }
.quiz-fil strong { color: var(--texte); }
.quiz-compteur { font-family: var(--mono); font-size: .8rem; color: var(--texte-2); background: var(--vert-doux); border-radius: 99px; padding: 5px 12px; white-space: nowrap; }
.quiz-compteur b { color: var(--vert-texte); }
.quiz-barre { height: 6px; border-radius: 99px; background: var(--gris-na-doux); overflow: hidden; margin-bottom: 16px; }
.quiz-barre > span { display: block; height: 100%; width: 0; background: var(--vert); transition: width .3s ease; }
.pilules { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pilule {
  font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--bordure); background: var(--surface); color: var(--texte-2); min-height: 34px;
}
.pilule:hover { border-color: var(--vert); }
.pilule.active { background: var(--vert); border-color: var(--vert); color: #04241b; }
.pilule.faite { border-color: var(--vert); color: var(--vert-texte); }
.pilule.faite::before { content: "✓ "; }
.pilule:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
.carte-question { background: var(--surface); border: 1px solid var(--bordure); border-radius: 16px; padding: clamp(18px, 4vw, 32px); box-shadow: var(--ombre); }
.carte-question .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.etiquette { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--bordure); color: var(--texte-2); }
.etiquette.secteur { background: var(--orange-doux); border-color: transparent; color: var(--orange); }
.carte-question .intitule { font-size: clamp(1.08rem, 2.4vw, 1.3rem); font-weight: 650; line-height: 1.45; margin: 0 0 12px; }
.carte-question .aide { font-size: .92rem; color: var(--texte-2); background: var(--surface-2); border-left: 3px solid var(--vert); border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 0 0 18px; }
.reponses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0 0 16px; }
.reponses button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  min-height: 58px; padding: 10px 14px; border-radius: 10px; cursor: pointer; font: inherit;
  border: 2px solid var(--bordure); background: var(--surface-2); color: var(--texte);
}
.reponses button strong { font-size: 1rem; }
.reponses button span { font-size: .8rem; color: var(--texte-2); }
.reponses button:hover { border-color: var(--vert); }
.reponses button:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
.reponses button[aria-pressed="true"] { color: #fff; border-color: transparent; }
.reponses button[aria-pressed="true"] span { color: rgba(255, 255, 255, .88); }
.reponses .oui[aria-pressed="true"] { background: #00a37a; }
.reponses .partiel[aria-pressed="true"] { background: #c27a00; }
.reponses .non[aria-pressed="true"] { background: #c93b3b; }
.reponses .na[aria-pressed="true"] { background: var(--gris-na); }
.carte-question textarea { width: 100%; }
.alerte-reponse { margin: 0 0 12px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.quiz-nav .droite { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.quiz-note { font-size: .82rem; color: var(--texte-2); margin-top: 14px; text-align: center; }
.raccourcis { font-family: var(--mono); font-size: .72rem; color: var(--texte-2); text-align: center; margin-top: 8px; }
@media (max-width: 560px) {
  .reponses { grid-template-columns: 1fr; }
  .quiz-nav .bouton { flex: 1; }
  .raccourcis { display: none; }
}

/* ── Rapport d'audit : fiche de constat ─────────────────────────────────────── */
.fiche-constat { display: grid; grid-template-columns: 150px 1fr; gap: 4px 14px; margin: 6px 0 0; font-size: .92rem; }
.fiche-constat dt { font-weight: 700; color: var(--texte-2); }
.fiche-constat dd { margin: 0; }
.bloc.constat { border-left: 4px solid var(--bordure); padding-left: 14px; }
.badge.ok { background: var(--vert-doux); color: var(--vert-texte); }
@media (max-width: 560px) { .fiche-constat { grid-template-columns: 1fr; } .fiche-constat dt { margin-top: 6px; } }
.pilules .badge-norme { align-self: center; margin: 0 2px 0 6px; }

/* Résultat sur deux normes : une jauge par norme, domaines regroupés par norme */
.synthese-score.double { grid-template-columns: 360px 1fr; }
.jauge.double { width: auto; height: auto; display: flex; gap: 14px; justify-content: center; }
.jauge.double > .jauge { width: 160px; height: 160px; margin: 0; }
.jauge.double .texte strong { font-size: 1.9rem; }
.titre-norme { margin: 18px 0 6px; font-weight: 700; font-size: .92rem; }
.titre-norme:first-child { margin-top: 0; }
.petit-texte { font-size: .82rem; font-weight: 400; }
@media (max-width: 960px) { .synthese-score.double { grid-template-columns: 1fr; } .jauge.double > .jauge { width: 140px; height: 140px; } }
.synthese-score.double h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ── Accueil : FAQ et présentation ───────────────────────────────────────────── */
.faq, .apropos { margin-top: 48px; max-width: 860px; }
.faq h2, .apropos h2 { margin-bottom: 16px; }
.faq details { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: outside; }
.faq summary:focus-visible { outline: 2px solid var(--vert); outline-offset: 4px; border-radius: 4px; }
.faq details p { margin: 0 0 16px; color: var(--texte-2); }
.apropos { margin-bottom: 48px; }
.apropos p { color: var(--texte-2); }
.apropos a { color: var(--vert-texte); font-weight: 600; }
