k/* === Reset léger === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* === Base === */
body {
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
}

/* === Header & Footer (ultra lisibles) === */
header {
  background: linear-gradient(180deg,#00142a 0%, #001a36 100%);
  color: #fff;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  border-bottom: 2px solid #0aa84f;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header h1 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 26px;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
header nav a:hover, header nav a:focus { border-bottom-color: #0aa84f; outline: none; }

footer {
  background: #00142a;
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  border-top: 2px solid #0aa84f;
}

/* === Contenu === */
main {
  max-width: 1000px;
  margin: 28px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 22px;
}
h2, h3 { color: #002c60; margin-top: 0; }

/* === Listes avec (logo OU texte) + statut === */
.section { margin: 28px 0; }
.list { list-style: none; margin: 0; padding: 0; }

.list li {
  display: flex;
  align-items: center;
  gap: 10px;              /* espace global entre les éléments */
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f5;
}

.row-left {
  display: flex;
  align-items: center;
  gap: 8px;               /* espace logo <-> (éventuel) texte */
  flex: 0 0 auto;         /* ⬅️ IMPORTANT : ne plus pousser le badge à droite */
  min-width: 0;
}

/* Liens texte (utilisés pour SNCF) */
.list li a.text-link {
  color: #003366;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.list li a.text-link:hover { text-decoration: underline; }

/* Icônes (images RATP) — plus petites */
.icon-img { width: 42px; height: 42px; object-fit: contain; display: block; }

/* Badges statut (espacés) */
/* Badges statut (collés aux logos) */
/* Badges statut (plus proche du logo) */
.badge {
  margin-left: 8px;       /* ⬅️ rapproché (tu peux mettre 4px si tu veux encore + proche) */
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.badge.ok    { background: #e7f8f0; color: #0a6; }  /* ✅ Normal */
.badge.warn  { background: #fff4cc; color: #a60; }  /* 🟡 Retard */
.badge.bad   { background: #ffe3e3; color: #b00; }  /* 🔴 Incident */
.badge.muted { background: #eee;     color: #333; } /* ⚫ Inconnu */

/* Accessibilité (si besoin d'un texte masqué visuellement) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  header nav a { margin: 0 8px; }
  .badge { margin-left: 14px; }
  .icon-img { width: 18px; height: 18px; }
}
.logo-link {
  text-decoration: none;
  color: white;   /* bien visible sur fond bleu */
}
.logo-link:hover {
  text-decoration: underline;
}

