:root {
  --noir: #141414; --or: #FEC20D; --fond: #F5F4EF; --blanc: #fff;
  --gris: #6b6b66; --trait: #e3e1d8; --vert: #1F8A4C; --orange: #D9822B;
  --rouge: #C0392B; --bleu: #2F6FD1; --violet: #7B3FB5;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--fond); color: var(--noir); font-size: 15px; }
h1, h2, h3, .marque { font-family: "Space Grotesk", Inter, sans-serif; }
h1 { font-size: 26px; margin: 0 0 4px; }
h2 { font-size: 19px; margin: 28px 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
a { color: inherit; }
.sous { color: var(--gris); margin: 0 0 20px; }

header { background: var(--noir); color: var(--blanc); }
header .barre { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 0 20px; height: 58px; }
.marque { font-weight: 700; letter-spacing: .5px; text-decoration: none; font-size: 18px; white-space: nowrap; }
.marque span { color: var(--or); }
header nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
header nav a { text-decoration: none; padding: 7px 11px; border-radius: 6px; color: #d9d9d4; font-size: 14px; }
header nav a.actif, header nav a:hover { background: #2a2a2a; color: var(--blanc); }
header nav a.actif { box-shadow: inset 0 -2px 0 var(--or); }
.pastille-nb { background: var(--or); color: var(--noir); border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 700; margin-left: 4px; }
.pastille-nb.rouge { background: var(--rouge); color: #fff; }
.compte { font-size: 13px; color: #aaa; white-space: nowrap; }
main { max-width: 1240px; margin: 0 auto; padding: 26px 20px 60px; }
footer { text-align: center; color: var(--gris); font-size: 12px; padding: 20px; }

.flash { background: #fff7d6; border-left: 4px solid var(--or); padding: 10px 14px; border-radius: 6px; margin-bottom: 18px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: 12px; padding: 18px; }
.carte.etat-coupe, .carte.etat-abonnement { border-top: 4px solid var(--rouge); }
.carte.etat-degrade { border-top: 4px solid var(--orange); }
.carte.etat-ok { border-top: 4px solid var(--vert); }
.carte.etat-inconnu { border-top: 4px solid #bbb; }
.carte .entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.carte .acces { color: var(--gris); font-size: 13px; }
.etat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.etat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.etat.ok { color: var(--vert); background: #e7f4ec; }
.etat.degrade { color: var(--orange); background: #fbefe2; }
.etat.coupe, .etat.abonnement { color: var(--rouge); background: #f8e6e4; }
.etat.inconnu { color: var(--gris); background: #eee; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.chiffres div { background: var(--fond); border-radius: 8px; padding: 8px 10px; }
.chiffres b { display: block; font-size: 18px; font-family: "Space Grotesk", sans-serif; }
.chiffres small { color: var(--gris); font-size: 12px; }
.ruban { display: flex; gap: 1px; height: 22px; margin: 6px 0 2px; }
.ruban i { flex: 1; border-radius: 1px; }
.ruban .ok { background: var(--vert); } .ruban .degrade { background: var(--orange); }
.ruban .coupe, .ruban .abonnement { background: var(--rouge); } .ruban .vide { background: #e4e2da; }
.legende-ruban { display: flex; justify-content: space-between; font-size: 11px; color: var(--gris); }
.starlink { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f2f1eb; font-size: 13px; }
.starlink.probleme { background: #fdecea; border-left: 4px solid var(--rouge); }
.starlink b { font-weight: 600; }
.ligne-sonde { font-size: 12px; color: var(--gris); margin-top: 10px; }
.ligne-sonde.muette { color: var(--rouge); font-weight: 600; }

table { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1px solid var(--trait); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--trait); font-size: 14px; vertical-align: top; }
th { background: #faf9f5; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--gris); }
tr:last-child td { border-bottom: none; }
td.mono, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.point { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.point.on { background: var(--vert); } .point.off { background: #bbb; } .point.inconnu { background: var(--orange); }
.badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 10px; background: #eee; color: #444; font-weight: 600; }
.badge.critique { background: var(--rouge); color: #fff; }
.badge.attention { background: var(--orange); color: #fff; }
.badge.info { background: #e6edf9; color: var(--bleu); }
.badge.or { background: var(--or); color: var(--noir); }
.badge.mobile { background: #efe6f7; color: var(--violet); }
.vide-msg { color: var(--gris); padding: 24px; text-align: center; background: var(--blanc); border: 1px dashed var(--trait); border-radius: 10px; }

.btn { display: inline-block; border: 1px solid var(--noir); background: var(--noir); color: #fff; padding: 8px 14px; border-radius: 7px; font-size: 14px; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn.or { background: var(--or); border-color: var(--or); color: var(--noir); font-weight: 600; }
.btn.clair { background: transparent; color: var(--noir); }
.btn.petit { padding: 4px 9px; font-size: 12px; }
.btn.danger { background: var(--rouge); border-color: var(--rouge); }
form.enligne { display: inline; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=password], select, textarea { width: 100%; padding: 9px 10px; border: 1px solid #cfccc0; border-radius: 7px; font: inherit; background: #fff; }
textarea { min-height: 80px; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.case { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.filtres { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.filtres a { text-decoration: none; padding: 5px 11px; border-radius: 16px; background: #fff; border: 1px solid var(--trait); font-size: 13px; }
.filtres a.actif { background: var(--noir); color: #fff; border-color: var(--noir); }
.arbre { list-style: none; padding-left: 18px; margin: 4px 0; border-left: 2px solid var(--trait); }
.arbre li { margin: 5px 0; font-size: 14px; }
.arbre-racine { font-weight: 600; }
.jeton { background: var(--noir); color: var(--or); padding: 14px; border-radius: 8px; word-break: break-all; font-family: ui-monospace, monospace; }
.connexion { max-width: 380px; margin: 9vh auto; }
.connexion .marque { color: var(--noir); font-size: 28px; display: block; text-align: center; margin-bottom: 20px; }
.connexion .erreur { color: var(--rouge); font-size: 14px; }
@media (max-width: 720px) { .deux { grid-template-columns: 1fr; } header .barre { height: auto; flex-wrap: wrap; padding: 10px 14px; } .compte { display: none; } th:nth-child(n+5), td:nth-child(n+5) { display: none; } }
