/* ==========================================================================
   Diagnostic cyber · SF2i
   Charte des sites du groupe SF2i (reprise de Domain Check, allégée) :
   Montserrat (titres) + Lato (texte), bleu #18568d, cyan #14b9d4, navy #0e3455.
   Aucun style inline : compatible avec une CSP stricte (style-src 'self').
   ========================================================================== */

/* --- Polices auto-hébergées (SIL Open Font License) ---------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Jetons ---------------------------------------------------------------- */
:root {
  --blue: #18568d;
  --blue-700: #134571;
  --navy: #0e3455;
  --navy-900: #0a2740;
  --cyan: #14b9d4;
  --cyan-ink: #0b7489;      /* cyan lisible sur fond clair */
  --cyan-light: #a5e9f4;    /* cyan lisible sur fond bleu */
  --ice: #eef6fc;
  --mist: #d1e1ee;
  --ink: #13263a;
  --ink-2: #44566b;
  --white: #fff;

  --ok: #047857;   --ok-bg: #e7f6ef;
  --ko: #b91c1c;   --ko-bg: #fdecec;
  --warn: #a14a06; --warn-bg: #fdf3e3;
  --info: #1d4ed8; --info-bg: #eaf0fd;

  --font-title: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-text: "Lato", "Segoe UI", system-ui, sans-serif;
  /* Échelle typographique : 7 tailles, 14 px minimum */
  --step--1: 0.875rem;
  --step-s: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.3rem + 3vw, 3.375rem);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-s: 4px;
  --radius: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --shadow: 0 1px 2px rgb(14 52 85 / 0.06), 0 6px 20px rgb(14 52 85 / 0.07);
  --shadow-l: 0 2px 6px rgb(10 39 64 / 0.14), 0 30px 70px rgb(10 39 64 / 0.32);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* --- Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main:focus { outline: none; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  text-wrap: balance;
}
h2 { font-size: var(--step-3); letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); line-height: 1.3; }
h4 { font-size: var(--step-0); line-height: 1.35; }
/* Titres ciblés par programme à chaque écran (tabindex=-1), non atteignables au clavier */
[tabindex="-1"]:focus { outline: none; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--cyan); color: var(--navy-900); }

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

.skip-link {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--white); }

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* --- Boutons ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-title);
  font-size: var(--step-s);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: progress; opacity: 0.65; }
.btn--primary { color: var(--navy-900); background: var(--cyan); }
.btn--primary:hover { color: var(--navy-900); background: #4fcde1; }
.btn--blue { color: var(--white); background: var(--blue); }
.btn--blue:hover { color: var(--white); background: var(--navy); }
.btn--outline { color: var(--blue); border-color: var(--blue); background: var(--white); }
.btn--outline:hover { color: var(--white); background: var(--blue); }
.btn--large { min-height: 3.5rem; padding: 0.9rem 1.75rem; font-size: var(--step-0); }
.btn--back { padding-inline: 0.5rem; color: var(--blue); background: transparent; }
.btn--back:hover { color: var(--navy); background: var(--ice); }
.btn .icon { width: 1.15rem; height: 1.15rem; }

/* --- En-tête foncé ------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(14 52 85 / 0.94);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }

/* Marque : « Diagnostic cyber » en grand, « by SF2i » en petit */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-shrink: 0;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand__product {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand__product span { color: var(--cyan); }
.brand__by {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-text);
  font-size: 0.8rem;
  color: #b9cde0;
  white-space: nowrap;
}
.brand__by img { width: 2.6rem; height: auto; transform: translateY(0.1rem); }

.event-pill {
  margin-left: auto;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-title);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.3;
  color: #d6e4f1;
  white-space: nowrap;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
}
@media (max-width: 40rem) { .event-pill { display: none; } }
@media (max-width: 23rem) { .brand__product { font-size: 1.05rem; } .brand__by img { width: 2.1rem; } }

/* --- Pied de page (adapté : marque et coordonnées, liens) ---------------------------------- */
.site-footer { padding-block: 2.5rem 2rem; font-size: var(--step-s); color: #b9cde0; background: var(--navy-900); border-top: 1px solid rgb(255 255 255 / 0.08); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 2rem 3rem; }
.footer__brand img { width: 4.5rem; }
.footer__brand p { max-width: 26rem; margin-top: 1rem; }
.footer__contact { margin-top: 0.75rem; font-style: normal; line-height: 1.7; }
.footer__links { display: grid; gap: 0.5rem; list-style: none; }
.footer__pending {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.3rem 0.85rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: #ffd9a8;
  background: rgb(161 74 6 / 0.25);
  border: 1px solid rgb(255 217 168 / 0.35);
  border-radius: 999px;
}
.is-kiosk .footer__pending { position: fixed; right: .75rem; bottom: .75rem; z-index: 200; }
.is-kiosk .btn { min-height: 3.5rem; }
.footer__pending::before { content: ""; width: 0.55rem; height: 0.55rem; background: #f59e0b; border-radius: 50%; }
@media (max-width: 36rem) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* --- États : borne (classe posée sur <body> par app.js) ----------------------------------- */
.is-kiosk [data-web-only],
.is-kiosk .footer__links,
body:not(.is-kiosk) [data-kiosk-only] { display: none !important; }
/* Borne : le visiteur ne quitte pas l'application (coordonnées affichées, non cliquables) */
.is-kiosk a[href^="tel:"],
.is-kiosk a[href^="mailto:"] { color: inherit; text-decoration: none; pointer-events: none; }

/* --- Écrans ------------------------------------------------------------------------------- */
/* Fond navy et bleu commun aux quatre écrans, dans l'esprit de Domain Check et Sentinel */
.screen {
  position: relative;
  flex: 1 0 auto;
  padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  color: #d6e4f1;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 45%, var(--blue) 100%);
}
.screen::before,
.screen::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.screen::before { left: -25%; top: 45%; width: 150%; height: 130%; background: rgb(255 255 255 / 0.045); transform: rotate(-7deg); }
.screen::after { right: -28%; top: -45%; width: 85%; aspect-ratio: 1; background: radial-gradient(circle, rgb(20 185 212 / 0.24), transparent 66%); }

.noscript {
  padding: 1rem var(--gutter);
  font-weight: 700;
  text-align: center;
  color: var(--navy-900);
  background: #ffe7c2;
}

/* --- Accueil ------------------------------------------------------------------------------ */
.screen--home { display: flex; align-items: center; }
.home { text-align: center; }
.home__event {
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-family: var(--font-title);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-light);
}
.home__event::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.65rem;
  vertical-align: 0.1em;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(20 185 212 / 0.25);
}
.home__event { text-wrap: balance; }
@media (max-width: 36rem) { .home__event { font-size: 0.78rem; letter-spacing: 0.03em; } }
.home__title {
  max-width: 50rem;
  margin-inline: auto;
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
}
.home__lead { max-width: 40rem; margin: 1.25rem auto 0; font-size: var(--step-1); line-height: 1.5; color: #d6e4f1; }
.home__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 0;
  margin: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem) auto 0;
  list-style: none;
}
.home__points li { display: flex; align-items: center; gap: 0.55rem; padding-inline: 1.15rem; font-family: var(--font-title); font-size: var(--step-s); font-weight: 600; color: var(--white); }
.home__points li + li { border-left: 1px solid rgb(255 255 255 / 0.22); }
.home__points .icon { color: var(--cyan); }
.home__actions { margin-top: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.home__actions .btn { box-shadow: 0 12px 30px rgb(20 185 212 / 0.28); }
@media (max-width: 36rem) {
  .home__title { font-size: 2rem; }
  .home__points { flex-direction: column; align-items: center; gap: 0.6rem; }
  .home__points li { min-width: 15rem; padding: 0; }
  .home__points li + li { border-left: 0; }
  .home__actions .btn { width: 100%; }
}

/* QR code (borne) : fond blanc pour la lecture par l'appareil photo */
.qr { display: inline-flex; align-items: center; gap: 1.25rem; padding: 1rem 1.5rem 1rem 1rem; text-align: left; background: var(--white); border-radius: var(--radius-l); }
.qr img { width: 9rem; height: 9rem; }
.qr p { max-width: 12rem; font-family: var(--font-title); font-weight: 700; line-height: 1.3; color: var(--navy); }
.qr--home { margin-top: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem); box-shadow: var(--shadow-l); }
.qr--result { display: flex; justify-content: center; margin-top: 1.5rem; background: var(--ice); }

/* --- Cartes (question, coordonnées) ------------------------------------------------------- */
.card {
  margin-inline: auto;
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
}
.card__title { font-size: var(--step-3); }
.card__lead { margin-top: 0.75rem; color: var(--ink-2); }

/* --- Question ----------------------------------------------------------------------------- */
.qcard { max-width: 40rem; }
.qcard__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.qcard__theme { font-family: var(--font-title); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-ink); }
.qcard__count { font-size: var(--step--1); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.qcard__title { margin-top: 1.5rem; font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.01em; text-wrap: pretty; }
.qcard__help { margin-top: 0.75rem; font-size: var(--step-s); line-height: 1.55; color: var(--ink-2); }
.qcard__help:empty { display: none; }
.qcard__nav { min-height: 2.875rem; margin-top: 1.25rem; }

/* Barre de progression */
.progress {
  display: block;
  width: 100%;
  height: 0.5rem;
  margin-top: 0.75rem;
  overflow: hidden;
  color: var(--cyan);
  background: var(--ice);
  border: 0;
  border-radius: 999px;
  appearance: none;
}
.progress::-webkit-progress-bar { background: var(--ice); border-radius: 999px; }
.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 999px; transition: width 0.35s var(--ease); }
.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 999px; }

/* Réponses : de vrais <button role="radio"> dans un groupe role="radiogroup" */
.answers { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.answers > button {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem 1.15rem;
  font-family: var(--font-title);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
  background: var(--white);
  border: 2px solid var(--mist);
  border-radius: var(--radius-m);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.answers > button::before {
  content: "";
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--white);
  border: 2px solid #9db6cc;
  border-radius: 50%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.answers > button:hover { border-color: var(--blue); background: var(--ice); }
.answers > button:hover::before { border-color: var(--blue); }
.answers > button:active { transform: scale(0.99); }
.answers > button[aria-checked="true"] { color: var(--navy-900); background: var(--cyan); border-color: var(--cyan); }
.answers > button[aria-checked="true"]::before { background: var(--navy-900); border-color: var(--white); box-shadow: 0 0 0 2px var(--navy-900); }

/* --- Coordonnées -------------------------------------------------------------------------- */
.card--form { max-width: 50rem; }
.contact { margin-top: 1.75rem; }
.contact__trap { display: none; }
.contact__required { margin-bottom: 1rem; font-size: var(--step--1); color: var(--ink-2); }
.contact__grid { display: grid; gap: 1.1rem; }
@media (min-width: 45rem) { .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; } }

.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-title); font-size: var(--step-s); font-weight: 700; color: var(--navy); }
.field input,
.field select {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.65rem 0.9rem;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--mist);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:hover,
.field select:hover { border-color: #9db6cc; }
.field input:focus,
.field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(20 185 212 / 0.45); }
.field input:user-invalid,
.field select:user-invalid { border-color: var(--ko); }

/* Liste déroulante : flèche dessinée en CSS (pas d'image data:, interdite par la CSP) */
.select { position: relative; }
.select select { padding-right: 2.75rem; appearance: none; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  pointer-events: none;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
}

.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; margin-top: 1.5rem; }
.consent input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--blue); cursor: pointer; }
.consent label { font-size: var(--step-s); line-height: 1.5; cursor: pointer; }

.privacy { margin-top: 1rem; font-size: var(--step-s); background: var(--ice); border-radius: var(--radius-m); }
.privacy summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease);
}
.privacy[open] summary::before { transform: rotate(45deg); }
.privacy ul { display: grid; gap: 0.4rem; padding: 0 1rem 0 2.1rem; color: var(--ink-2); }
.privacy strong { color: var(--ink); }
.privacy p { padding: 0.75rem 1rem 1rem 2.1rem; }

.contact__actions { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
@media (max-width: 36rem) { .contact__actions .btn--large { width: 100%; } }

/* --- Résultat : une « feuille » posée sur le fond ----------------------------------------- */
.sheet {
  max-width: 60rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
}

/* Couleur d'un niveau : la classe peut être posée sur l'élément ou sur un parent */
.level--critique { --level: var(--ko); --level-bg: var(--ko-bg); }
.level--fragile { --level: var(--warn); --level-bg: var(--warn-bg); }
.level--correct { --level: var(--info); --level-bg: var(--info-bg); }
.level--solide { --level: var(--ok); --level-bg: var(--ok-bg); }

.result-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 1rem + 2vw, 2.75rem); }
.gauge { position: relative; width: clamp(9rem, 7.5rem + 4vw, 10.5rem); }
.gauge__svg { width: 100%; height: auto; }
.gauge__track { stroke: var(--ice); }
.gauge__arc { stroke: var(--level, var(--blue)); transition: stroke-dashoffset 1.2s var(--ease); }
.gauge__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__label strong { font-family: var(--font-title); font-size: clamp(2.6rem, 2.2rem + 1.5vw, 3.2rem); font-weight: 800; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.gauge__label small { margin-top: 0.25rem; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); }

.result-head__eyebrow { font-family: var(--font-title); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-ink); }
.result-head__title { margin-top: 0.3rem; font-size: var(--step-2); overflow-wrap: anywhere; }
.result-head__level { margin-top: 0.85rem; }
.level-badge {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  font-family: var(--font-title);
  font-size: var(--step-s);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--level, var(--blue));
  background: var(--level-bg, var(--ice));
  border: 1px solid currentColor;
  border-radius: 999px;
}
.level-badge:empty { display: none; }
.result-head__summary { max-width: 38rem; margin-top: 0.85rem; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 36rem) {
  .result-head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}

.result-block { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.result-block__title { margin-bottom: 1.1rem; font-size: var(--step-2); }

/* Barres par thème : largeur par classe .w-0 à .w-100 (aucun style inline) */
.themes { display: grid; gap: 1.1rem 2.5rem; list-style: none; }
@media (min-width: 45rem) { .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.4rem 1rem; }
.theme__label { font-family: var(--font-title); font-size: var(--step-s); font-weight: 700; color: var(--navy); }
.theme__pct { font-family: var(--font-title); font-weight: 800; color: var(--level, var(--navy)); font-variant-numeric: tabular-nums; }
.theme__bar { grid-column: 1 / -1; height: 0.6rem; overflow: hidden; background: var(--ice); border-radius: 999px; }
.theme__fill { display: block; height: 100%; background: var(--level, var(--blue)); border-radius: inherit; transition: width 0.8s var(--ease); }

.w-0 { width: 0%; } .w-1 { width: 1%; } .w-2 { width: 2%; } .w-3 { width: 3%; } .w-4 { width: 4%; } .w-5 { width: 5%; } .w-6 { width: 6%; } .w-7 { width: 7%; } .w-8 { width: 8%; } .w-9 { width: 9%; }
.w-10 { width: 10%; } .w-11 { width: 11%; } .w-12 { width: 12%; } .w-13 { width: 13%; } .w-14 { width: 14%; } .w-15 { width: 15%; } .w-16 { width: 16%; } .w-17 { width: 17%; } .w-18 { width: 18%; } .w-19 { width: 19%; }
.w-20 { width: 20%; } .w-21 { width: 21%; } .w-22 { width: 22%; } .w-23 { width: 23%; } .w-24 { width: 24%; } .w-25 { width: 25%; } .w-26 { width: 26%; } .w-27 { width: 27%; } .w-28 { width: 28%; } .w-29 { width: 29%; }
.w-30 { width: 30%; } .w-31 { width: 31%; } .w-32 { width: 32%; } .w-33 { width: 33%; } .w-34 { width: 34%; } .w-35 { width: 35%; } .w-36 { width: 36%; } .w-37 { width: 37%; } .w-38 { width: 38%; } .w-39 { width: 39%; }
.w-40 { width: 40%; } .w-41 { width: 41%; } .w-42 { width: 42%; } .w-43 { width: 43%; } .w-44 { width: 44%; } .w-45 { width: 45%; } .w-46 { width: 46%; } .w-47 { width: 47%; } .w-48 { width: 48%; } .w-49 { width: 49%; }
.w-50 { width: 50%; } .w-51 { width: 51%; } .w-52 { width: 52%; } .w-53 { width: 53%; } .w-54 { width: 54%; } .w-55 { width: 55%; } .w-56 { width: 56%; } .w-57 { width: 57%; } .w-58 { width: 58%; } .w-59 { width: 59%; }
.w-60 { width: 60%; } .w-61 { width: 61%; } .w-62 { width: 62%; } .w-63 { width: 63%; } .w-64 { width: 64%; } .w-65 { width: 65%; } .w-66 { width: 66%; } .w-67 { width: 67%; } .w-68 { width: 68%; } .w-69 { width: 69%; }
.w-70 { width: 70%; } .w-71 { width: 71%; } .w-72 { width: 72%; } .w-73 { width: 73%; } .w-74 { width: 74%; } .w-75 { width: 75%; } .w-76 { width: 76%; } .w-77 { width: 77%; } .w-78 { width: 78%; } .w-79 { width: 79%; }
.w-80 { width: 80%; } .w-81 { width: 81%; } .w-82 { width: 82%; } .w-83 { width: 83%; } .w-84 { width: 84%; } .w-85 { width: 85%; } .w-86 { width: 86%; } .w-87 { width: 87%; } .w-88 { width: 88%; } .w-89 { width: 89%; }
.w-90 { width: 90%; } .w-91 { width: 91%; } .w-92 { width: 92%; } .w-93 { width: 93%; } .w-94 { width: 94%; } .w-95 { width: 95%; } .w-96 { width: 96%; } .w-97 { width: 97%; } .w-98 { width: 98%; } .w-99 { width: 99%; }
.w-100 { width: 100%; }

/* Cartes de priorité, numérotées */
.priorities { display: grid; gap: 0.85rem; list-style: none; counter-reset: priority; }
.priority {
  position: relative;
  padding: 1.1rem 1.25rem 1.15rem 4rem;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  counter-increment: priority;
}
.priority::before {
  content: counter(priority);
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-title);
  font-size: var(--step-s);
  font-weight: 800;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
}
.priority__title { font-size: var(--step-0); color: var(--navy); }
.priority__text { margin-top: 0.35rem; font-size: var(--step-s); line-height: 1.6; color: var(--ink-2); }

/* Encarts */
.notice {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  font-size: var(--step-s);
  line-height: 1.6;
  color: var(--ink);
  background: var(--info-bg);
  border-radius: var(--radius-m);
}

.promo {
  position: relative;
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-l);
}
.promo__eyebrow { font-family: var(--font-title); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.promo__text { margin-top: 0.5rem; font-size: var(--step-0); line-height: 1.6; }
.promo__text a { color: inherit; font-weight: 700; text-decoration: underline; }
.promo__link { margin-top: 1.1rem; }
.promo__address { font-family: var(--font-title); font-size: var(--step-1); font-weight: 800; }
/* Sentinel : bande sombre, accent cyan, quart de cercle du flyer */
.promo--sentinel { color: #e8f1f9; background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--blue) 100%); }
.promo--sentinel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4.5rem;
  top: -4.5rem;
  width: 11rem;
  height: 11rem;
  border: 1.75rem solid rgb(20 185 212 / 0.85);
  border-radius: 50%;
}
.promo--sentinel .promo__eyebrow { color: var(--cyan-light); }
.promo--sentinel .promo__text { padding-right: 4rem; }
@media (max-width: 36rem) {
  .promo--sentinel::after { right: -3.25rem; top: -3.25rem; width: 6.5rem; height: 6.5rem; border-width: 1.1rem; }
  .promo--sentinel .promo__text { padding-right: 1.5rem; }
  .priority { padding-left: 3.4rem; }
  .priority::before { left: 0.8rem; width: 1.75rem; height: 1.75rem; }
}
.promo--sentinel .promo__address { color: var(--white); }
.promo--domaincheck { background: var(--ice); border: 1px solid var(--mist); }
.promo--domaincheck .promo__eyebrow { color: var(--cyan-ink); }
.promo--domaincheck .promo__address { color: var(--blue); }

/* Appel à l'action et boutons */
.callback {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  text-align: center;
  border: 2px solid var(--cyan);
  border-radius: var(--radius-l);
}
.callback__title { font-size: var(--step-2); }
.callback p { max-width: 38rem; margin: 0.75rem auto 0; color: var(--ink-2); }
.callback__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; margin-top: 1.25rem; list-style: none; }
.callback__contact li { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-title); font-size: var(--step-1); font-weight: 800; color: var(--navy); white-space: nowrap; }
.callback__contact a { color: var(--navy); text-decoration: none; }
.callback__contact a:hover { color: var(--blue); text-decoration: underline; }
.callback__contact .icon { color: var(--cyan-ink); }

.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 36rem) { .result-actions .btn { width: 100%; } }
.disclaimer { margin-top: 1.75rem; padding-top: 1.25rem; font-size: var(--step--1); text-align: center; color: var(--ink-2); border-top: 1px solid var(--mist); }

/* --- Pages de contenu (mentions légales, 404) : une feuille blanche sur le fond des écrans -- */
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.75rem; font-size: var(--step-2); }
.prose h3 { margin-top: 1.75rem; }
.prose h2 + *,
.prose h3 + * { margin-top: 0.6rem; }
.prose p,
.prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 1.4rem; }
.prose ul > li + li { margin-top: 0.4rem; }
.prose ul > li::before { content: ""; position: absolute; left: 0.2rem; top: 0.65em; width: 0.45rem; height: 0.45rem; background: var(--cyan); border-radius: 1px; }
.prose code { padding: 0.1em 0.35em; font-size: 0.9em; background: var(--ice); border-radius: var(--radius-s); }

.page .sheet { max-width: 52rem; }
.page--center { display: flex; align-items: center; }
.page__title { font-size: var(--step-3); letter-spacing: -0.015em; }
.prose .page__lead,
.page__lead { margin-top: 0.75rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.prose .page__updated { margin-top: 2.5rem; padding-top: 1.25rem; font-size: var(--step--1); border-top: 1px solid var(--mist); }

.table-wrap { overflow-x: auto; border: 1px solid var(--mist); border-radius: var(--radius-m); }
.table { width: 100%; font-size: var(--step-s); border-collapse: collapse; }
.table th,
.table td { padding: 0.75rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ice); }
.table tr:last-child > * { border-bottom: 0; }
.table th { font-family: var(--font-title); color: var(--navy); }
.table td { color: var(--ink-2); }

.page .not-found { max-width: 36rem; text-align: center; }
.not-found__code { font-family: var(--font-title); font-size: var(--step-4); font-weight: 800; line-height: 1; color: var(--cyan-ink); }
.not-found .page__title { margin-top: 0.5rem; }
.not-found__actions { margin-top: 1.75rem; }

/* --- Fenêtre d'inactivité (borne) --------------------------------------------------------- */
.idle {
  width: min(calc(100% - 2rem), 28rem);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  text-align: center;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}
.idle::backdrop { background: rgb(10 39 64 / 0.72); backdrop-filter: blur(3px); }
.idle__title { font-size: var(--step-2); }
.idle__count {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 1.25rem auto 0;
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  border: 5px solid var(--cyan);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}
.idle__text { margin-top: 1rem; font-size: var(--step-s); color: var(--ink-2); }
.idle .btn { width: 100%; margin-top: 1.5rem; }

/* --- Mouvement réduit --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Contraste renforcé (Windows) --------------------------------------------------------- */
@media (forced-colors: active) {
  .field input:focus, .field select:focus, .consent input:focus { outline: 2px solid Highlight; outline-offset: 2px; }
  .btn, .answers > button, .level-badge, .progress, .theme__bar { border: 2px solid CanvasText; }
  .answers > button[aria-checked="true"] { border: 4px solid Highlight; }
  .answers > button[aria-checked="true"]::before { background: Highlight; }
  .screen::before, .screen::after, .promo--sentinel::after { display: none; }
  .theme__fill, .gauge__svg { forced-color-adjust: none; }
  .theme__fill { background: Highlight; }
  .gauge__track { stroke: GrayText; }
  .gauge__arc { stroke: Highlight; }
}

/* Rapport PDF : jamais visible à l'écran (print.css le met en page à l'impression) */
@media screen { #print-report { display: none; } }
