:root { --encre: #1d1a16; --doux: #4a443c; --trait: #e3ded6; --orange: #d4580f; --orange-fonce: #a9440a; --vert: #1f6b43; --fond: #f4f2ee; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--encre); background: var(--fond); }
a { color: var(--orange-fonce); }
h1 { font-size: 26px; margin: 0; }
h2 { font-size: 19px; margin: 0; }
small { color: var(--doux); }

.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 14px 40px; background: #fff; border-bottom: 1px solid var(--trait); }
.menu a { color: var(--encre); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 3px solid transparent; }
.menu a.actif { border-color: var(--orange); }
.menu .marque { font-size: 20px; font-weight: 800; margin-right: 14px; }
.menu .sortie { margin-left: auto; font-weight: 400; color: var(--doux); }

main { max-width: 1240px; margin: 0 auto; padding: 28px 40px 60px; }
.barre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 22px; }
.barre .actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.carte { background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: 20px 22px; margin-bottom: 20px; }
.carte > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 12px; }
.carte > header p { margin: 0; color: var(--doux); }
.carte.etroit { max-width: 420px; margin: 12vh auto 0; }
.carte.etroit h1 { margin-bottom: 18px; }

.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.chiffres .carte { margin: 0; }
.chiffres p { margin: 0 0 4px; color: var(--doux); }
.chiffres strong { font-size: 26px; }
.chiffres .accent { border-color: var(--orange); border-width: 2px; }
.chiffres.simple { margin: 0; }
.chiffres.simple strong { font-size: 21px; }

.defile { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 600; color: var(--doux); padding: 8px 10px; border-bottom: 2px solid var(--trait); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.pale td { color: #8a8379; }
tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--trait); }
.manque { color: #b3261e; font-weight: 600; white-space: nowrap; }
.vide, .info { color: var(--doux); }

label { display: block; font-weight: 600; font-size: 15px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; color: var(--encre); background: #fff; border: 1px solid #bdb6ab; border-radius: 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.barre select { width: auto; margin: 0; font-weight: 600; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 20px 0; }
.grille .large { grid-column: 1 / -1; }
.carte.etroit label { margin-bottom: 14px; }
.fiche { max-width: 820px; }

button, .bouton { display: inline-block; padding: 11px 20px; font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: var(--orange); border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; }
button:hover, .bouton:hover { background: var(--orange-fonce); }
button.danger { background: #fff; color: #b3261e; border: 1px solid #b3261e; margin-left: auto; }
p.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; }
button.etat { padding: 4px 12px; font-size: 14px; border-radius: 20px; white-space: nowrap; }
button.etat.fait { background: #e4f1e9; color: var(--vert); }
button.etat.afaire { background: #fff; color: var(--orange-fonce); border: 1px solid var(--orange); }
.erreur { color: #b3261e; font-weight: 600; }

@media (max-width: 800px) {
  .menu { padding: 12px 18px; }
  main { padding: 20px 18px 40px; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .grille { grid-template-columns: 1fr; }
  .barre .actions { margin-left: 0; }
}
@media (max-width: 460px) { .chiffres { grid-template-columns: 1fr; } }
