/* Attestable — mise en page du scan public.
   Toutes les valeurs viennent des jetons. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--encre-100);
}

.contenu {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* --- Évitement : critère 12.7, systématiquement absent chez nos prospects --- */

.lien-evitement {
  position: absolute;
  left: var(--space-4);
  top: calc(-1 * var(--space-8));
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--accent-100);
  color: var(--surface-000);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: top .15s ease;
}
.lien-evitement:focus { top: var(--space-4); }

.visuellement-cachee {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- En-tête et pied --- */

.entete {
  border-bottom: 1px solid var(--bordure-100);
  padding: var(--space-4) 0;
}
.entete .contenu {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.marque {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 32px;
}
.marque-note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--encre-300);
}

.pied {
  margin-top: var(--space-8);
  padding: var(--space-5) 0 var(--space-7);
  border-top: 1px solid var(--bordure-100);
  font-size: 13px;
  line-height: 20px;
  color: var(--encre-300);
}
.pied p { margin: 0 0 var(--space-1); }

/* --- Introduction --- */

.intro { padding: var(--space-8) 0 var(--space-6); }

.intro h1 { margin: 0 0 var(--space-4); }

.intro__texte {
  max-width: 58ch;
  margin: 0 0 var(--space-6);
  font-size: 17px;
  line-height: 26px;
  color: var(--encre-200);
}

.formulaire {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  flex-wrap: wrap;
}
.formulaire__champ { flex: 1 1 320px; }
.formulaire__envoi { margin-top: 26px; }

@media (max-width: 560px) {
  .formulaire__envoi { margin-top: 0; width: 100%; }
}

.erreur-globale {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gravite-critique);
  border-radius: var(--radius-md);
  color: var(--gravite-critique);
  font-size: 15px;
  line-height: 23px;
  font-weight: 500;
}

/* --- Blocs --- */

.bloc { margin-top: var(--space-5); }
.bloc__texte {
  margin: 0 0 var(--space-4);
  font-size: 15px;
  line-height: 23px;
  color: var(--encre-200);
}

.actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.progression__etat {
  margin: 0 0 var(--space-3);
  font-size: 15px;
  line-height: 23px;
  color: var(--encre-200);
}
.progression__piste { margin-bottom: var(--space-3); }
.progression__barre {
  width: 0;
  background: var(--accent-100);
  transition: width .4s ease;
}

/* --- Résultat --- */

.resultat { padding-top: var(--space-6); }
.resultat h2 { margin: 0 0 var(--space-1); }
.resultat__date {
  margin: 0 0 var(--space-5);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--encre-300);
}

.grille-scores {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.liste-faits {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--bordure-100);
  font-size: 13px;
  line-height: 20px;
}
.liste-faits div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-1) 0;
}
.liste-faits dt { color: var(--encre-200); }
.liste-faits dd { margin: 0; font-weight: 500; text-align: right; }

.percentile {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--bordure-100);
  font-size: 15px;
  line-height: 23px;
}
.percentile strong { font-family: var(--font-mono); }

.table-defilante { overflow-x: auto; }
.colonne-nombre { text-align: right; }

.encadre-suite {
  border-color: var(--accent-100);
  background: var(--accent-faible);
}

.rappel-portee {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  border-left: 3px solid var(--bordure-200);
  font-size: 13px;
  line-height: 20px;
  color: var(--encre-200);
  max-width: 68ch;
}

/* --- Respect des préférences système --- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- Navigation --- */

.entete .contenu { justify-content: space-between; }

.entete__marque { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }

.nav { display: flex; gap: var(--space-4); align-items: center; }

.nav a {
  color: var(--encre-200);
  text-decoration: none;
  font-size: 15px;
  line-height: 23px;
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--encre-100); border-bottom-color: var(--bordure-200); }
.nav a[aria-current="page"] { color: var(--encre-100); border-bottom-color: var(--accent-100); }

/* --- Pages de compte --- */

.colonne-etroite { max-width: 460px; margin: 0 auto; padding: var(--space-8) 0; }

.colonne-etroite h1 { margin: 0 0 var(--space-2); }
.colonne-etroite > p { color: var(--encre-200); margin: 0 0 var(--space-6); }

.pile { display: flex; flex-direction: column; gap: var(--space-5); }
.pile .at-bouton { width: 100%; }

.alternative {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--bordure-100);
  font-size: 15px;
  color: var(--encre-200);
}
.alternative a { color: var(--accent-100); }

/* --- Tarifs --- */

.grille-tarifs {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: var(--space-6) 0;
}

.tarif { display: flex; flex-direction: column; }
.tarif--mis-en-avant { border-color: var(--accent-100); }

.tarif__prix {
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 44px;
  font-weight: 500;
  margin: var(--space-3) 0 var(--space-1);
}
.tarif__periode { font-size: 13px; color: var(--encre-300); }

.tarif__liste {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  font-size: 15px;
  line-height: 23px;
  flex: 1;
}
.tarif__liste li {
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  position: relative;
  color: var(--encre-200);
}
.tarif__liste li::before {
  content: "";
  position: absolute;
  left: var(--space-2);
  top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-100);
}

.bascule {
  display: inline-flex;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--surface-200);
  border-radius: var(--radius-md);
}
.bascule button {
  border: 1px solid transparent;
  background: none;
  color: var(--encre-200);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.bascule button[aria-pressed="true"] {
  background: var(--surface-000);
  color: var(--encre-100);
  border-color: var(--bordure-100);
  font-weight: 500;
}

/* --- Tableau de bord --- */

.entete-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin: var(--space-7) 0 var(--space-4);
}
.entete-section h2 { margin: 0; }

.bandeau-abo {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.chiffre-cle {
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 32px;
  font-weight: 500;
}

.etiquette-statut {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.statut--actif { color: var(--note-a); }
.statut--essai { color: var(--note-c); }
.statut--impaye, .statut--resilie { color: var(--gravite-critique); }

.liste-sites { list-style: none; padding: 0; margin: 0; }
.liste-sites li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--bordure-100);
  flex-wrap: wrap;
}
.liste-sites li:last-child { border-bottom: none; }
.site__nom { font-weight: 500; }
.site__url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--encre-300);
  word-break: break-all;
}

.vide {
  padding: var(--space-6);
  text-align: center;
  color: var(--encre-300);
  font-size: 15px;
}
