* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #1a1a2e; color: #eee; padding: 20px; }
h1 { color: #4fc3f7; margin-bottom: 5px; }
.date { color: #aaa; font-size: 0.85em; margin-bottom: 20px; }
.surveillance { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding: 12px 16px; background: #16213e; border-radius: 8px; }
.surveillance label { font-weight: bold; }
.badge { padding: 4px 12px; border-radius: 20px; font-size: 0.85em; font-weight: bold; }
.badge-on { background: #e53935; color: #fff; }
.badge-off { background: #388e3c; color: #fff; }
table { width: 100%; border-collapse: collapse; background: #16213e; border-radius: 8px; overflow: hidden; margin-bottom: 25px; }
th { background: #0f3460; padding: 10px 12px; text-align: left; font-size: 0.85em; color: #4fc3f7; }
td { padding: 10px 12px; border-bottom: 1px solid #0f3460; font-size: 0.9em; }
tr:last-child td { border-bottom: none; }
.alerte { color: #ef5350; font-weight: bold; }
.ok { color: #66bb6a; }
input[type=number] { width: 80px; padding: 4px 6px; background: #0f3460; border: 1px solid #4fc3f7; color: #eee; border-radius: 4px; }
input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }
.btn { padding: 10px 24px; background: #4fc3f7; color: #1a1a2e; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1em; }
.btn:hover { background: #81d4fa; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-pub { background: #6D1B3E; color: #fff; }
.btn-pub:hover { background: #9c1d55; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal.open { display: flex; }
.modal-box { background: #16213e; border: 1px solid #4fc3f7; border-radius: 8px; padding: 20px; width: 100%; max-width: 600px; max-height: 90vh; display: flex; flex-direction: column; gap: 15px; }
.modal-box h2 { color: #4fc3f7; font-size: 1.1em; }
.modal-box pre { background: #0f3460; padding: 12px; border-radius: 6px; overflow: auto; white-space: pre-wrap; font-size: 0.85em; flex: 1; }
.modal-box .btn { align-self: flex-end; }
.modal-box .btn:disabled { opacity: 0.5; cursor: wait; }
.btn-refresh { background: #0f3460; color: #4fc3f7; border: 1px solid #4fc3f7; }
.btn-refresh:hover { background: #16213e; }
.timer { margin-left: auto; color: #aaa; font-size: 0.9em; }
.surveillance { flex-wrap: wrap; }
select { padding: 4px 6px; background: #0f3460; border: 1px solid #4fc3f7; color: #eee; border-radius: 4px; }

/* Notifications par mode (admin) */
.notifs { display: flex; flex-direction: column; gap: 6px; margin: -10px 0 25px; padding: 12px 16px; background: #16213e; border-radius: 8px; font-size: 0.9em; }
.notifs-titre { font-weight: bold; }
.notifs-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.notifs-ligne b { min-width: 100px; color: #4fc3f7; }
.notifs label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.notifs-note { color: #aaa; font-size: 0.85em; }

/* En-têtes de colonnes : version courte seulement sur mobile */
.court { display: none; }

/* Mobile : le même tableau, compacté pour tenir dans la largeur (stations les unes sous les autres) */
@media (max-width: 700px) {
    body { padding: 10px; }
    h1 { font-size: 1.2em; }
    .lien { padding: 4px 8px; font-size: 0.75em; }
    .date { font-size: 0.75em; margin-bottom: 10px; }
    .date .detail { display: none; }
    .surveillance { gap: 6px 10px; padding: 8px 10px; margin-bottom: 10px; font-size: 0.85em; }
    .timer { margin-left: 0; width: 100%; }
    .notifs { margin: -4px 0 10px; padding: 8px 10px; font-size: 0.82em; }
    .aide { font-size: 0.75em; margin: -4px 0 10px; }
    table { margin-bottom: 12px; }
    th, td { padding: 6px 3px; font-size: 0.78em; }
    th { white-space: nowrap; }
    th:first-child, td:first-child { padding-left: 8px; }
    .long, .unite, .heure.mention { display: none; }
    .court { display: inline; }
    .heure { display: block; font-size: 0.85em; }
    /* 16px : sous cette taille, l'iPhone zoome sur le champ à la saisie */
    input[type=number] { width: 52px; padding: 3px; font-size: 16px; }
    input[type=checkbox] { width: 20px; height: 20px; }
    .actions .btn { flex: 1 1 auto; padding: 10px 12px; font-size: 0.9em; }
}

.badge-arret { background: #555; color: #fff; }
.heure { color: #aaa; font-size: 0.8em; font-weight: normal; }
.ancienne { opacity: 0.55; }
.entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.liens { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lien-aide { background: #4fc3f7; color: #1a1a2e; font-weight: bold; }
.lien { color: #4fc3f7; font-size: 0.85em; text-decoration: none; border: 1px solid #4fc3f7; padding: 6px 12px; border-radius: 6px; white-space: nowrap; }
.aide { color: #aaa; font-size: 0.85em; margin: -10px 0 20px; }
.alerte-api { background: #4a1c00; border: 1px solid #e65100; color: #ffb74d; padding: 10px 16px; border-radius: 6px; font-size: 0.9em; margin-bottom: 20px; }
