/* ------------------------------------------------------------------ *
 *  Page de résultat détaillée — rapport.html
 *  Jetons uniquement, aucune couleur nouvelle. Chargée EN DERNIER
 *  (après layout.css), comme legal.css et contact.css.
 * ------------------------------------------------------------------ */

.rapport {
  padding: clamp(30px, 5vw, 54px) 0 clamp(56px, 9vw, 104px);
  background:
    radial-gradient(88% 46% at 88% -8%, rgba(47, 111, 191, 0.08), transparent 62%),
    linear-gradient(180deg, var(--bg-tint), var(--bg) 58%);
}

.rapport__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 30px);
  color: var(--ink-400);
  font-size: 0.85rem;
}

.rapport__crumbs a {
  color: var(--azure-700);
  font-weight: 600;
}

.rapport__crumbs a:hover {
  text-decoration: underline;
}

/* --- En-tête : domaine + jauge ------------------------------------- */

.rapport__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.rapport__head-main {
  min-width: 0;
}

.rapport__domain {
  margin-top: 12px;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.rapport__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-400);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rapport__verdict {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--ink-500);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.62;
}

.rapport__score {
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}

.rapport__score .gauge {
  margin-top: 4px;
}

/* --- Titre de l'étape 1 (phase 21) --------------------------------- */

/* La page ouvrait directement sur les trois axes, sans dire ce qu'ils
   sont : une cartographie de surface. Le titre donne le cadre avant les
   enjeux, comme les étapes 2, 3 et 4 le font déjà. */
.rapport__step-title {
  max-width: 34ch;
  margin-top: clamp(30px, 4vw, 44px);
  font-size: clamp(1.4rem, 2.7vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.22;
  text-wrap: balance;
}

/* --- Les trois blocs d'analyse ------------------------------------- */

.rapport__blocks {
  display: grid;
  gap: clamp(20px, 2.6vw, 28px);
  margin-top: clamp(22px, 3vw, 30px);
}

.block {
  --block-tone: var(--ink-400);
  --block-tint: var(--bg-soft);
  position: relative;
  padding: clamp(20px, 2.8vw, 30px) clamp(20px, 2.8vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--block-tone);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.block--ok {
  --block-tone: var(--jade-700);
  --block-tint: var(--jade-50);
}

.block--watch {
  --block-tone: var(--amber-700);
  --block-tint: #fdf8ee;
}

.block--alert {
  --block-tone: var(--terracotta-700);
  --block-tint: var(--terracotta-50);
}

.block__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 16px;
}

.block__kicker {
  grid-column: 1 / -1;
  color: var(--ink-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.block__title {
  font-size: clamp(1.24rem, 2vw, 1.5rem);
  letter-spacing: -0.025em;
}

.block__state {
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--block-tint);
  color: var(--block-tone);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.block__stake {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--block-tint);
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.62;
}

.block__stake strong {
  color: var(--ink-800);
}

.block__advice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding-left: 18px;
  color: var(--ink-500);
  font-size: 0.93rem;
  line-height: 1.6;
}

.block__advice::before {
  content: "";
  position: absolute;
  margin-left: -18px;
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--block-tone);
}

.block__advice:empty {
  display: none;
}

/* --- Tableau de faits relevés -------------------------------------- */

.facts {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.facts__row {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.facts__term {
  color: var(--ink-400);
  font-size: 0.85rem;
  font-weight: 600;
}

.facts__value {
  color: var(--ink-800);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.facts__value.is-missing {
  color: var(--amber-700);
  font-weight: 600;
}

/* --- Appel à l'action « Sécurisez vos accès » ---------------------- */

.cta {
  margin-top: clamp(30px, 4vw, 44px);
}

.cta--launch {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 92% 0%, rgba(47, 111, 191, 0.24), transparent 60%),
    linear-gradient(160deg, var(--ink-800), var(--ink-900));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta--launch .eyebrow {
  color: var(--terracotta-200);
}

.cta--launch .eyebrow::before {
  background: var(--terracotta-500);
}

.cta__title {
  margin-top: 12px;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.cta__text {
  margin-top: 14px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.62;
}

.cta__text em {
  color: #fff;
  font-style: normal;
  font-weight: 600;
}

.cta__action {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.cta__note {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --- Mention de méthode -------------------------------------------- */

.rapport__disclaimer {
  margin-top: clamp(26px, 3.4vw, 38px);
  padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.8vw, 28px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.rapport__disclaimer-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 92ch;
  color: var(--ink-400);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.6;
}

.rapport__disclaimer-text svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--jade-700);
}

/* Le détail du calcul de l'indice ne fait plus partie de l'avertissement
   (phase 21) : il reste affiché — c'est une information de transparence,
   pas un argument —, mais en note de service, aligné sur le texte
   au-dessus (17 px d'icône + 10 px d'écart). */
.rapport__disclaimer-note {
  max-width: 92ch;
  margin-top: 10px;
  padding-left: 27px;
  color: var(--ink-500);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* --- État « aucun rapport en mémoire » ----------------------------- */

.rapport__empty {
  max-width: 60ch;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.rapport__empty-title {
  margin-top: 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.rapport__empty-text {
  margin: 16px 0 24px;
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.62;
}

/* --- Audit approfondi (moteur actif, sous mandat) ------------------ */

.deep {
  margin-top: clamp(30px, 4vw, 44px);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(92% 58% at 100% 0%, rgba(47, 111, 191, 0.09), transparent 62%),
    var(--bg);
  box-shadow: var(--shadow-md);
  text-align: left;
}

/* Le moteur bascule des blocs entiers en grille : sans cette règle, le
   `display` de classe l'emporterait sur l'attribut `hidden`. */
.deep [hidden] {
  display: none !important;
}

/* Certains libellés de bouton sont longs (« Relancer l'audit approfondi »,
   « Déverrouiller par preuve de propriété », « Lancer un audit de surface »
   dans l'état « aucun rapport en mémoire ») : avec `white-space: nowrap` et
   un rembourrage latéral de 26 px, ils dépassent la largeur d'un écran de
   320 px. On autorise donc le retour à la ligne, le bouton se bornant à la
   largeur de son conteneur. */
.deep .btn,
.rapport__empty .btn {
  height: auto;
  min-height: var(--control-h);
  max-width: 100%;
  min-width: 0;
  padding-block: 10px;
  white-space: normal;
  text-align: center;
}

.deep__head {
  max-width: 80ch;
}

.deep__title {
  margin-top: 12px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
}

.deep__lede {
  margin-top: 14px;
  color: var(--ink-500);
  line-height: 1.64;
}

.deep__launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 22px;
}

.deep__launch-note {
  color: var(--ink-400);
  font-size: 0.85rem;
}

.deep__locked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: var(--bg-soft);
}

.deep__locked-text {
  flex: 1 1 280px;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Le libellé de ce bouton est long : il hérite de la règle `.deep .btn`
   ci-dessus, qui autorise le retour à la ligne sur écran étroit. */

/* --- Progression des trois étapes ---------------------------------- */

.deep__run {
  margin-top: clamp(22px, 3vw, 30px);
}

.deep__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deep__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.deep__step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-300);
  box-shadow: 0 0 0 4px rgba(143, 154, 173, 0.16);
}

.deep__step-body {
  min-width: 0;
}

.deep__step-title {
  display: block;
  color: var(--ink-800);
  font-size: 0.98rem;
}

.deep__step-hint {
  display: block;
  margin-top: 3px;
  color: var(--ink-400);
  font-size: 0.85rem;
  line-height: 1.55;
}

.deep__step-state {
  color: var(--ink-400);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deep__step[data-state="running"] {
  border-color: var(--azure-600);
  background: var(--azure-50);
}

.deep__step[data-state="running"] .deep__step-dot {
  background: var(--azure-600);
  animation: deep-pulse 1.5s var(--ease) infinite;
}

.deep__step[data-state="running"] .deep__step-state {
  color: var(--azure-700);
}

.deep__step[data-state="done"] {
  border-color: var(--jade-100);
  background: var(--jade-50);
}

.deep__step[data-state="done"] .deep__step-dot {
  background: var(--jade-600);
  box-shadow: 0 0 0 4px var(--jade-100);
}

.deep__step[data-state="done"] .deep__step-state {
  color: var(--jade-700);
}

.deep__step[data-state="error"] {
  border-color: var(--terracotta-200);
  background: var(--terracotta-50);
}

.deep__step[data-state="error"] .deep__step-dot {
  background: var(--terracotta-600);
  box-shadow: 0 0 0 4px var(--terracotta-100);
}

.deep__step[data-state="error"] .deep__step-state {
  color: var(--terracotta-700);
}

@keyframes deep-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(47, 111, 191, 0.2);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(47, 111, 191, 0.04);
  }
}

.deep__progress {
  margin-top: 12px;
  color: var(--ink-400);
  font-size: 0.85rem;
}

.deep__progress:empty {
  display: none;
}

/* --- Résultats : les deux volets se suivent, pleine largeur -------- */

/* Phase 17 : les deux volets étaient côte à côte. Le volet A (surface)
   étant court, la colonne de gauche restait vide dès qu'il se terminait.
   Ils se suivent désormais sur toute la largeur : la lecture est un fil
   continu de haut en bas, sans colonne fantôme. */

.deep__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2.6vw, 28px);
  margin-top: clamp(22px, 3vw, 30px);
}

.deep__block {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--azure-600);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

#deepTechnoBlock {
  border-top-color: var(--terracotta-600);
}

.deep__block-kicker {
  color: var(--ink-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deep__block-title {
  margin-top: 8px;
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  letter-spacing: -0.025em;
}

.deep__block-stake {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--azure-50);
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

#deepTechnoBlock .deep__block-stake {
  background: var(--terracotta-50);
}

.deep__block-intro {
  margin: 16px 0 0;
  color: var(--ink-500);
  font-size: 0.93rem;
  line-height: 1.62;
}

/* La carte occupe toute la largeur : sans cette limite, une ligne de
   texte dépasserait 130 caractères et l'œil perdrait la ligne suivante.
   Les tableaux de faits, eux, gardent leur colonne de valeurs — c'est
   leur structure qui tient la largeur. */
.deep__block-intro,
.deep__block-note,
.deep__finding-detail {
  max-width: 92ch;
}

.facts__value {
  max-width: 92ch;
}

.deep__block-intro:empty {
  display: none;
}

.deep__block-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-400);
  font-size: 0.82rem;
  line-height: 1.6;
}

.deep__block-note:empty {
  display: none;
}

/* --- Sous-domaines : groupes classés par tonalité ------------------ */

.deep__list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.deep__group-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-300);
  background: var(--bg-soft);
}

.deep__group-item--alert {
  border-left-color: var(--terracotta-600);
  background: var(--terracotta-50);
}

.deep__group-item--watch {
  border-left-color: var(--amber-600);
  background: #fdf8ee;
}

.deep__group-item--info {
  border-left-color: var(--azure-600);
  background: var(--azure-50);
}

.deep__group-item--ok {
  border-left-color: var(--jade-600);
  background: var(--jade-50);
}

.deep__group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--ink-800);
  font-size: 0.92rem;
}

.deep__group-count {
  color: var(--ink-400);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.deep__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.deep__chip {
  display: inline-block;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.deep__chip--more,
.deep__chip--none {
  border-style: dashed;
  background: transparent;
  color: var(--ink-400);
  font-family: var(--font-sans);
  font-style: italic;
}

/* --- Empreinte technologique : composants relevés ------------------ */

.deep__components {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

/* Les volets occupent toute la largeur : les groupes de composants se
   répartissent donc sur la largeur disponible plutôt que de s'empiler
   en laissant la moitié droite vide. `auto-fit` reste à une colonne
   dès que la place manque. */
@media (min-width: 720px) {
  .deep__components {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.deep__comp {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.deep__comp--watch {
  border-color: var(--amber-100);
  background: #fdf8ee;
}

.deep__comp--info {
  border-color: var(--azure-100);
  background: var(--azure-50);
}

.deep__comp--ok {
  border-color: var(--jade-100);
  background: var(--jade-50);
}

.deep__comp-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--ink-800);
  font-size: 0.88rem;
  font-weight: 600;
}

.deep__comp-count {
  color: var(--ink-400);
  font-size: 0.76rem;
  font-weight: 700;
}

.deep__comp .deep__chips {
  margin-top: 8px;
}

/* --- Constats classés par gravité + points conformes --------------- */

.deep__group {
  margin-top: 20px;
}

.deep__sub-title {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.deep__list--findings {
  gap: 10px;
  margin-top: 12px;
}

.deep__list--ok {
  gap: 8px;
  margin-top: 12px;
}

.deep__finding {
  --finding-tone: var(--azure-600);
  --finding-tint: var(--azure-50);
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  border-left: 3px solid var(--finding-tone);
  background: var(--finding-tint);
}

.deep__finding--high {
  --finding-tone: var(--terracotta-800);
  --finding-tint: var(--terracotta-50);
}

.deep__finding--medium {
  --finding-tone: var(--terracotta-600);
  --finding-tint: #fdf7f4;
}

.deep__finding--low {
  --finding-tone: var(--amber-600);
  --finding-tint: #fdf8ee;
}

.deep__finding--info {
  --finding-tone: var(--azure-600);
  --finding-tint: var(--azure-50);
}

.deep__finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-800);
  font-size: 0.92rem;
}

.deep__badge {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--finding-tone);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deep__finding-detail {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 0.88rem;
  line-height: 1.58;
}

.deep__list--ok li {
  position: relative;
  padding-left: 22px;
  color: var(--jade-700);
  font-size: 0.88rem;
  line-height: 1.56;
}

.deep__list--ok li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade-600);
}

.deep__status {
  margin-top: 18px;
  flex-wrap: wrap;
}

.deep__disclaimer {
  margin: 18px 0 0;
  color: var(--ink-400);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* --- Étape 4 : corriger les failles (bloc de conversion) ------------ */

.fix {
  margin-top: clamp(30px, 4vw, 44px);
  padding: clamp(24px, 3.2vw, 38px) clamp(22px, 3vw, 38px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 130% at 6% 0%, rgba(194, 84, 43, 0.26), transparent 58%),
    linear-gradient(160deg, var(--ink-800), var(--ink-900));
  color: #fff;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

/* Le bloc est masqué au chargement et révélé par js/rapport.js : sans
   cette règle, le `display` de classe l'emporterait sur `hidden`. */
.fix [hidden] {
  display: none !important;
}

.fix .step {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.fix .step__label {
  color: #fff;
}

.fix .step__hint {
  border-left-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.62);
}

.fix .term__btn {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

/* Sur un fond sombre, la bulle se distingue mal du panneau : elle passe
   au bleu intermédiaire, flèche comprise. */
.fix .term__tip,
.fix .term__tip::before {
  background: var(--ink-700);
}

.fix__title {
  max-width: 34ch;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(1.5rem, 2.9vw, 2rem);
  letter-spacing: -0.03em;
}

/* Le paragraphe de l'étape 4 est désormais le seul bloc de texte du
   panneau : il occupe toute la largeur de lecture confortable. */
.fix__text {
  max-width: 66ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.62;
}

.fix__action {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 26px;
}

/* Le libellé du bouton est une phrase entière : il doit pouvoir passer
   sur deux lignes plutôt que déborder sur un écran de 320 px. */
.fix .btn {
  height: auto;
  min-height: var(--control-h);
  max-width: 100%;
  padding-block: 12px;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}

/* Le libellé est une phrase : sur deux lignes, il se répartit également
   au lieu de laisser un mot seul en fin de compte. */
.fix .btn .btn__label {
  text-wrap: balance;
}

.fix .btn--primary {
  --btn-shadow: 0 0 0 6px rgba(194, 84, 43, 0.16), var(--shadow-cta);
}

.fix .btn--primary:hover {
  --btn-shadow: 0 0 0 6px rgba(194, 84, 43, 0.24), 0 20px 38px -14px rgba(168, 69, 31, 0.58);
}

/* La note de l'étape 4 est un ENGAGEMENT (« service 100 % gratuit et
   bénévole ») : elle mérite d'être lue, pas seulement aperçue. D'où sa
   largeur de lecture (celle du paragraphe de l'étape 4) et sa teinte plus
   franche que les autres notes. La phase 21 a supprimé la mention
   commerciale que cette note accompagnait : le filet qui la distinguait n'a
   plus d'objet. */
.fix__note {
  max-width: 66ch;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* L'étape 4 remplace l'appel à l'action générique : les deux ne parlent
   pas au même moment du parcours. Sans cette règle, le `display: grid`
   de `.cta--launch` l'emporterait sur l'attribut `hidden`. */
.cta--launch[hidden] {
  display: none !important;
}

/* --- Repère de défilement ------------------------------------------ */

/* Le rapport est long, et rien n'indiquait qu'il continuait. Ce repère
   dit où va la suite et y mène d'un clic ; le chevron est décoratif
   (`aria-hidden`), c'est le lien qui porte le texte. L'animation est
   arrêtée par la règle `prefers-reduced-motion` de css/layout.css. */

.scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: clamp(26px, 3.4vw, 38px);
}

.scroll-cue__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink-500);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.scroll-cue__link:hover,
.scroll-cue__link:focus-visible {
  border-color: var(--azure-600);
  color: var(--azure-700);
  box-shadow: var(--shadow-sm);
}

.scroll-cue__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--azure-50);
  color: var(--azure-600);
  animation: cue-bob 1.9s var(--ease) infinite;
}

.scroll-cue__chevron svg {
  width: 16px;
  height: 16px;
}

@keyframes cue-bob {
  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(2px);
  }
}

/* --- Export du rapport (PDF par l'impression du navigateur) -------- */

.rapport__export {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(26px, 4vw, 40px);
  padding: clamp(20px, 2.6vw, 28px) clamp(20px, 2.8vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  text-align: left;
}

.rapport__export-title {
  color: var(--ink-800);
  font-size: 1.02rem;
  font-weight: 700;
}

.rapport__export-note {
  max-width: 68ch;
  margin-top: 6px;
  color: var(--ink-400);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- Version imprimée --------------------------------------------- */

/* La bannière et le rappel de pied n'existent que sur papier : à
   l'écran, l'en-tête du rapport porte déjà le domaine et la date. */
.print-banner,
.print-footnote {
  display: none;
}

@media (max-width: 640px) {
  .rapport__export {
    grid-template-columns: minmax(0, 1fr);
  }

  .rapport__export .btn {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  @page {
    margin: 14mm 12mm;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  /* Tout ce qui n'est pas le rapport : navigation, pied de page,
     défilé du parcours, commandes d'audit, infobulles, boutons. Les
     mots restent — seuls les ronds « ? » et les intitulés disparaissent. */
  .skip-link,
  .site-header,
  .site-footer,
  .rapport__crumbs,
  .scroll-cue,
  .rapport__export,
  .sas__tabs,
  .sas__panels,
  .sas__unlocked,
  .deep__launch,
  .deep__locked,
  .deep__run,
  .deep__status,
  .deep__disclaimer,
  .term__btn,
  .term__tip,
  .btn__icon,
  .nav-toggle {
    display: none !important;
  }

  /* Un fond sombre à l'encre mange la page : la mise en page du bloc
     d'action passe au filet, et le texte au noir. */
  .fix,
  .cta--launch {
    background: #fff !important;
    border: 1pt solid #8a8a8a;
    color: #000 !important;
    box-shadow: none !important;
  }

  .fix .step,
  .fix .step__label,
  .fix .step__hint,
  .fix__text,
  .fix__note,
  .cta__title,
  .cta__text,
  .cta__note,
  .cta--launch .eyebrow,
  .rapport__meta,
  .block__state,
  .deep__block-stake {
    color: #000 !important;
  }

  .fix .step {
    border-color: #c9c9c9 !important;
    background: none !important;
  }

  .fix__note,
  .cta__note {
    font-size: 9pt;
  }

  .block,
  .deep__block {
    box-shadow: none !important;
    border-color: #c9c9c9;
  }

  /* Un encadré coupé par un saut de page se relit mal. */
  .block,
  .deep__block,
  .deep__finding,
  .deep__group-item,
  .deep__comp,
  .facts__row,
  .fix,
  .cta--launch {
    break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }

  .print-banner {
    display: block;
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 1.5pt solid #000;
  }

  .print-banner__brand {
    font-size: 13pt;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .print-banner__meta {
    margin-top: 3px;
    font-size: 9pt;
  }

  /* La note de pied du PAPIER. Le texte vit dans `rapport.html` (un texte
     n'a rien à faire dans une feuille de style) ; c'est ici, et ici
     seulement, qu'il devient visible : à l'écran, l'en-tête du rapport porte
     déjà le domaine et la date.

     Phase 18 (demande de la Direction, §30.2) : la mention qui s'imprime est
     la signature commerciale « Généré par RADAR CYBER — Intelligence &
     Prévention Cyber pour TPE/PME · https://radar-cyber.fr », suivie du lien
     de contact, et non plus « rapport d'audit consultable sur
     …/rapport.html » : l'outil n'a AUCUN état côté serveur, donc cette
     adresse ne montrerait rien à un tiers à qui le PDF serait transmis. Sur
     papier, une adresse relative ne mène nulle part : l'absolue s'imprime. */
  .print-footnote {
    display: block !important;
    margin-top: 14px;
    padding-top: 8px;
    border-top: 1px solid #c9c9c9;
    font-size: 9pt;
  }
}

/* --- Responsive ---------------------------------------------------- */

@media (max-width: 1020px) {
  .rapport__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .rapport__score {
    width: min(100%, 360px);
  }

  .cta--launch {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .facts__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .block__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .block__state {
    justify-self: start;
  }

  .deep__step {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .deep__step-state {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .deep__group-head,
  .deep__comp-label {
    flex-wrap: wrap;
  }

  .fix .btn {
    width: 100%;
    padding-inline: 16px;
    gap: 8px;
    font-size: 0.95rem;
  }

  /* À cette largeur, la phrase ne tient plus à côté de la flèche : la
     flèche retirée, le libellé se répartit sur deux lignes au lieu de
     trois, sans orphelin en fin de compte. */
  .fix .btn__icon {
    display: none;
  }
}
