:root { --vert: #16a34a; --orange: #f59e0b; --rouge: #dc2626; --gris: #9ca3af; --fond: #f3f4f6; --texte: #111827; --bordure: #e5e7eb; --primaire: #1d4ed8; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--fond); color: var(--texte); }
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--bordure); }
.entete h1 { margin: 0; font-size: 1.3rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.inline { display: inline; margin: 0; }
.lu { color: #6b7280; font-size: .9rem; }
main { padding: 24px; }
.bouton { display: inline-block; padding: 8px 14px; border: 0; border-radius: 6px; background: var(--primaire); color: #fff; text-decoration: none; font: inherit; cursor: pointer; }
.bouton.secondaire { background: #6b7280; }
table.etablissements { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bordure); }
.etablissements td { overflow-wrap: anywhere; }
.etablissements th, .etablissements td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bordure); }
.etablissements th { background: #f9fafb; font-weight: 600; }
.pastille { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--gris); vertical-align: middle; margin-right: 4px; }
.etat-vert .pastille { background: var(--vert); }
.etat-orange .pastille { background: var(--orange); }
.etat-rouge .pastille { background: var(--rouge); }
.etat-rouge td:first-child { color: var(--rouge); font-weight: 600; }
.alerte { color: var(--rouge); font-weight: 600; }
.message { color: #6b7280; font-style: italic; }
.vide { background: #fff; padding: 24px; border: 1px solid var(--bordure); }
body.connexion { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.boite { background: #fff; padding: 32px; border-radius: 8px; border: 1px solid var(--bordure); width: min(400px, calc(100vw - 32px)); }
.boite h1 { margin-top: 0; }
.boite label { display: block; margin: 12px 0 4px; }
.boite input { width: 100%; padding: 8px; border: 1px solid #d1d5db; border-radius: 6px; font: inherit; }
.boite button { margin-top: 16px; width: 100%; padding: 10px; border: 0; border-radius: 6px; background: var(--primaire); color: #fff; font: inherit; cursor: pointer; }
.erreur { background: #fef2f2; color: var(--rouge); padding: 10px; border-radius: 6px; }
@media (max-width: 700px) {
    .etablissements thead { display: none; }
    .etablissements tr { display: block; margin-bottom: 16px; border: 1px solid var(--bordure); }
    .etablissements td { display: block; border: 0; }
    .etablissements td[data-titre]:not([data-titre=""])::before { content: attr(data-titre) " : "; font-weight: 600; }
}
