:root { --espace-s: 10px; --espace-m: 16px; --espace-l: 24px; --arrondi-controle: 10px; --arrondi-panneau: 20px; --police: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; --taille: 16px; --interligne: 1.5; --titre: 26px; --sous-titre: 19px; --densite: 1; --fond: #050816; --panneau: #0D1328; --carte: #131C38; --trait: #253357; --texte: #FFFFFF; --texte-second: #B7C2E3; --attenue: #7F8FB5; --prisme: #9C67FF; --info: #42A7FF; --action: #2DD4A7; --ok: #2DD4A7; --attention: #F5A524; --danger: #EF5350; --sur-action: #050816; color-scheme: dark; }
@media (prefers-color-scheme: light) { :root { --fond: #f4f4f8; --panneau: #ffffff; --carte: #f2f0f9; --trait: #c9c7d9; --texte: #292c40; --texte-second: #5b6074; --attenue: #5b6074; --prisme: #6a47ab; --info: #6a47ab; --action: #55318c; --ok: #17694f; --attention: #6f5626; --danger: #9a2740; --sur-action: #ffffff; color-scheme: light; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte);
       font: 500 var(--taille, 16px)/var(--interligne, 1.5) var(--police, system-ui, sans-serif); }
main { max-width: 760px; margin: 0 auto; padding: var(--espace-l) var(--espace-m); display: flex;
       flex-direction: column; gap: var(--espace-m); }
a { color: var(--info); }
h1 { font-size: var(--titre, 26px); font-weight: 800; margin: 4px 0; line-height: 1.25; }
h2 { font-size: var(--sous-titre, 19px); font-weight: 800; margin: 0 0 var(--espace-s); }
p { margin: 0 0 var(--espace-s); }
.bandeau { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-m); flex-wrap: wrap; }
.bandeau .marque { font-weight: 800; letter-spacing: .04em; color: var(--prisme); text-decoration: none; }
.second { color: var(--texte-second); }
.panneau, details { background: var(--panneau); border: 1px solid var(--trait); border-radius: var(--arrondi-panneau);
       padding: calc(var(--espace-l) * var(--densite)); }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--arrondi-controle);
       padding: var(--espace-m); display: flex; align-items: center; justify-content: space-between;
       gap: var(--espace-m); flex-wrap: wrap; }
.pile { display: flex; flex-direction: column; gap: var(--espace-s); list-style: none; margin: 0; padding: 0; }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700;
       color: var(--texte-second); }
dl { margin: 0; display: grid; grid-template-columns: minmax(7rem, 34%) 1fr; gap: 6px var(--espace-m); }
dt { color: var(--texte-second); overflow-wrap: anywhere; }
dd { margin: 0; overflow-wrap: anywhere; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--taille, 16px); }
pre { background: var(--fond); color: var(--texte); border: 1px solid var(--trait);
      border-radius: var(--arrondi-controle); padding: var(--espace-m); margin: 0; }
.long { white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--texte-second); font-weight: 700; }
th, td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--trait); vertical-align: top; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; padding: 2px 12px; border-radius: 999px; font-weight: 700;
         border: 1px solid currentColor; background: var(--carte); color: var(--texte-second); }
.badge.ok { color: var(--ok); } .badge.attention { color: var(--attention); } .badge.danger { color: var(--danger); }
.badge.info { color: var(--info); }
.avis { border: 1px solid var(--attention); border-radius: var(--arrondi-controle); padding: var(--espace-m);
        color: var(--texte); background: var(--carte); }
.avis.danger { border-color: var(--danger); } .avis.ok { border-color: var(--ok); }
form { display: flex; flex-direction: column; gap: var(--espace-m); margin: 0; }
form.ligne { flex-direction: row; flex-wrap: wrap; align-items: center; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
label.case { flex-direction: row; align-items: center; gap: var(--espace-s); min-height: 44px; }
input, textarea { max-width: 100%; min-height: 44px; padding: 8px 12px; background: var(--panneau); color: var(--texte);
       border: 1px solid var(--trait); border-radius: var(--arrondi-controle); font: inherit; }
input[type=checkbox] { min-height: 0; width: 22px; height: 22px; }
textarea { width: 100%; min-height: 6rem; }
.btn { min-height: 44px; min-width: 44px; padding: 10px 20px; border-radius: var(--arrondi-controle);
       border: 1px solid var(--trait); background: var(--carte); color: var(--texte); font: 700 16px var(--police);
       cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.primaire { background: var(--action); border-color: var(--action); color: var(--sur-action); }
.btn:disabled { color: var(--attenue); background: var(--carte); border-color: var(--trait); cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible
     { outline: 3px solid var(--info); outline-offset: 2px; }
@media (max-width: 640px) {
  main { padding: var(--espace-m) var(--espace-s); }
  dl { grid-template-columns: 1fr; gap: 0; }
  dd { margin-bottom: var(--espace-s); }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 1px solid var(--trait); border-radius: var(--arrondi-controle); padding: var(--espace-s);
       margin-bottom: var(--espace-s); background: var(--carte); }
  td { border: 0; padding: 2px 0; }
  td::before { content: attr(data-libelle); display: block; color: var(--texte-second); font-weight: 700; }
}
