/* Mes Traces — feuille de style unique, aucune police ni ressource externe. */
:root {
  --fond: #0d1117;
  --fond-carte: #151b23;
  --fond-carte-2: #1b222c;
  --trait: #2a323d;
  --texte: #e8edf4;
  --texte-doux: #a7b2c0;
  --vert: #3fb950;
  --orange: #d29922;
  --rouge: #f85149;
  --accent: #58a6ff;
  --rayon: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.enveloppe { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 18px; }

header.site {
  border-bottom: 1px solid var(--trait);
  padding: 14px 0;
  background: #0b0f14;
}
header.site .enveloppe { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
header.site a.marque {
  color: var(--texte);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: .2px;
}
header.site nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
header.site nav a { color: var(--texte-doux); text-decoration: none; font-size: .95rem; padding: 4px 2px; }
header.site nav a:hover, header.site nav a:focus { color: var(--texte); text-decoration: underline; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 28px 0 10px; }
h2 { font-size: 1.35rem; margin: 34px 0 10px; }
h3 { font-size: 1.1rem; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--accent); }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }
code { background: #0b0f14; border: 1px solid var(--trait); border-radius: 5px; padding: 1px 5px; font-size: .92em; }

.chapeau { color: var(--texte-doux); font-size: 1.1rem; }

.carte {
  background: var(--fond-carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 18px;
  margin: 16px 0;
}

.promesse { border-left: 3px solid var(--vert); }
.promesse strong { color: var(--vert); }

.bouton {
  display: inline-block;
  background: var(--accent);
  color: #06121f;
  font-weight: 700;
  font-size: 1.08rem;
  border: 0;
  border-radius: 10px;
  padding: 15px 24px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.bouton:hover, .bouton:focus { background: #79b8ff; }
.bouton.secondaire {
  background: transparent;
  color: var(--texte);
  border: 1px solid var(--trait);
}
.bouton.secondaire:hover, .bouton.secondaire:focus { border-color: var(--accent); background: #10161e; }
.bouton[disabled] { opacity: .55; cursor: progress; }

.avancement { height: 8px; background: #0b0f14; border: 1px solid var(--trait); border-radius: 99px; overflow: hidden; margin: 14px 0 6px; }
.avancement > div { height: 100%; width: 0; background: var(--accent); transition: width .18s linear; }
.avancement-texte { color: var(--texte-doux); font-size: .92rem; min-height: 1.4em; }

.score { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.score .chiffre { font-size: 3.4rem; font-weight: 800; line-height: 1; }
.score .sur { color: var(--texte-doux); font-size: 1.1rem; font-weight: 600; }
.score .mention { font-size: 1.2rem; font-weight: 700; }
.score.bon .chiffre, .score.bon .mention { color: var(--vert); }
.score.moyen .chiffre, .score.moyen .mention { color: var(--orange); }
.score.faible .chiffre, .score.faible .mention { color: var(--rouge); }

.jauge { height: 12px; background: #0b0f14; border: 1px solid var(--trait); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.jauge > div { height: 100%; }
.jauge.bon > div { background: var(--vert); }
.jauge.moyen > div { background: var(--orange); }
.jauge.faible > div { background: var(--rouge); }

.resultat { border: 1px solid var(--trait); border-radius: var(--rayon); margin: 12px 0; background: var(--fond-carte); overflow: hidden; }
.resultat > summary {
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  list-style: none;
  min-height: 48px;
}
.resultat > summary::-webkit-details-marker { display: none; }
.resultat > summary .titre { font-weight: 700; flex: 1 1 200px; }
.resultat > summary .points { color: var(--texte-doux); font-size: .92rem; white-space: nowrap; }
.resultat .corps { padding: 0 16px 16px; border-top: 1px solid var(--trait); }
.resultat .corps p:first-child { margin-top: 14px; }

.pastille { font-size: .82rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pastille.ok { background: rgba(63, 185, 80, .14); color: var(--vert); border: 1px solid rgba(63, 185, 80, .4); }
.pastille.attention { background: rgba(210, 153, 34, .14); color: var(--orange); border: 1px solid rgba(210, 153, 34, .4); }
.pastille.expose { background: rgba(248, 81, 73, .14); color: var(--rouge); border: 1px solid rgba(248, 81, 73, .4); }
.pastille.inconnu { background: #1b222c; color: var(--texte-doux); border: 1px solid var(--trait); }

table.mesures { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 10px 0 14px; }
table.mesures th, table.mesures td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
table.mesures th { color: var(--texte-doux); font-weight: 600; width: 44%; }
table.mesures td.v { font-family: Consolas, "Courier New", monospace; word-break: break-word; }
table.mesures tr.expose td.v { color: var(--rouge); }
table.mesures tr.attention td.v { color: var(--orange); }
table.mesures tr.ok td.v { color: var(--vert); }

.liste-actions { list-style: none; padding: 0; counter-reset: a; }
.liste-actions li {
  counter-increment: a;
  background: var(--fond-carte-2);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 14px 16px 14px 52px;
  margin-bottom: 10px;
  position: relative;
}
.liste-actions li::before {
  content: counter(a);
  position: absolute;
  left: 16px;
  top: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #06121f;
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.liste-actions .cout { color: var(--vert); font-weight: 700; font-size: .9rem; }

.etape { background: var(--fond-carte-2); border: 1px solid var(--trait); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.etape .duree { color: var(--texte-doux); font-size: .9rem; }

.paye { border-left: 3px solid var(--orange); }
.paye h3 { margin-top: 0; }
.mention-affiliation { font-size: .88rem; color: var(--texte-doux); border-top: 1px dashed var(--trait); padding-top: 10px; margin-top: 12px; }

.alerte { background: rgba(248, 81, 73, .08); border: 1px solid rgba(248, 81, 73, .35); border-radius: 10px; padding: 12px 14px; }
.info { background: rgba(88, 166, 255, .07); border: 1px solid rgba(88, 166, 255, .3); border-radius: 10px; padding: 12px 14px; }

.champ { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.champ input[type="password"], .champ input[type="text"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--texte);
  background: #0b0f14;
  border: 1px solid var(--trait);
  border-radius: 10px;
}
.champ input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

footer.site { border-top: 1px solid var(--trait); margin-top: 44px; padding: 22px 0 36px; color: var(--texte-doux); font-size: .92rem; }
footer.site a { color: var(--texte-doux); }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Appâts du test de bloqueur : volontairement nommés comme des blocs publicitaires.
   Ils ne contiennent aucune publicité et ne contactent personne. */
#mt-appats { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
#mt-appats div { width: 300px; height: 90px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .score .chiffre { font-size: 2.8rem; }
  table.mesures th { width: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .avancement > div { transition: none; }
}
