/* ===== Charte Break'List Bad ===== */
@font-face { font-family: 'Teko'; font-weight: 400; src: url(fonts/teko-400.woff2) format('woff2'); }
@font-face { font-family: 'Teko'; font-weight: 500; src: url(fonts/teko-500.woff2) format('woff2'); }
@font-face { font-family: 'Teko'; font-weight: 600; src: url(fonts/teko-600.woff2) format('woff2'); }

:root {
  --vert: #005528;
  --orange: #e69e27;
  --bleu: #469dd5;
  --brun: #92642b;
  --rouge: #d25e35;
  --jaune: #f4d70e;
  --brun-fonce: #743200;

  --fond: #0d1611;
  --carte: #15231b;
  --carte-2: #1c2e24;
  --trait: #2a4234;
  --texte: #eef2ec;
  --doux: #9fb3a6;
  --symboles: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', 'DejaVu Sans', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: 'Teko', 'Arial Narrow', sans-serif;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: 0.03em; }
button, input, select { font: inherit; color: inherit; }

.cache { display: none !important; }

/* ===== Boutons ===== */
.btn {
  background: var(--carte-2);
  border: 2px solid var(--trait);
  border-radius: 10px;
  padding: 10px 22px 6px;
  font-size: 24px;
  font-weight: 500;
  cursor: pointer;
  min-height: 52px;
  transition: transform .05s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--doux); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.principal { background: var(--vert); border-color: var(--vert); }
.btn.principal:hover { border-color: #fff; }
.btn.danger { background: var(--rouge); border-color: var(--rouge); }
.btn.actif { border-color: var(--jaune); box-shadow: 0 0 0 2px var(--jaune) inset; }

input[type=text], input[type=password] {
  background: var(--fond);
  border: 2px solid var(--trait);
  border-radius: 8px;
  padding: 10px 12px 6px;
  font-size: 24px;
  width: 100%;
}
input:focus { outline: none; border-color: var(--orange); }
label { color: var(--doux); font-size: 20px; display: block; margin-bottom: 4px; }

.carte {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 24px;
}

.tableau-elements { display: flex; gap: 10px; align-items: center; }
.element {
  background: var(--vert);
  color: #fff;
  width: 64px; height: 64px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 40px; font-weight: 600;
  line-height: 1; padding-top: 6px;
}

.erreur-msg { color: var(--rouge); min-height: 28px; margin-top: 10px; }

table.classement { width: 100%; border-collapse: collapse; font-size: 24px; }
table.classement th { color: var(--doux); font-weight: 400; text-align: left; border-bottom: 1px solid var(--trait); padding: 6px 10px; }
table.classement td { padding: 8px 10px 4px; border-bottom: 1px solid var(--trait); }
table.classement tr:nth-child(1) td { color: var(--jaune); }
table.classement td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== En-tête avec le logo de la liste (G3) ===== */
:root { color-scheme: only light; }
.entete-site { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.logo-site { width: 84px; height: 84px; flex: none; }
.entete-site h1 { margin: 0; }
