.mto-ter-entete { background: linear-gradient(120deg, #173b66, #27669d); color: #fff; }
.mto-ter-entete p { margin: .35rem 0 0; }
.mto-ter-alertes { display: grid; gap: .6rem; margin: 1.25rem 0; }
.mto-ter-alertes h2 { margin: 0; color: #8a5200; }
.mto-ter-alertes p { margin: .35rem 0; }
.mto-ter-onglets { display: flex; gap: .5rem; margin: 1.5rem 0 1rem; border-bottom: 2px solid #d8e1ea; }
.mto-ter-onglets a { padding: .7rem 1.1rem; border-radius: .55rem .55rem 0 0; color: #29445e; font-weight: 700; text-decoration: none; }
.mto-ter-onglets a.actif { background: #173b66; color: #fff; }
.mto-ter-onglets--arrivees { border-bottom-color: #bcd9ca; }
.mto-ter-onglets--arrivees a { color: #22513d; }
.mto-ter-onglets--arrivees a.actif { background: #007a4d; color: #fff; }
.mto-ter-filtre { max-width: 38rem; margin: 0 0 1rem; }
.mto-ter-filtre label { display: block; margin-bottom: .3rem; font-size: .82rem; font-weight: 700; }
.mto-ter-filtre div { display: flex; gap: .4rem; }
.mto-ter-filtre input { flex: 1; min-width: 0; padding: .65rem .75rem; border: 1px solid #aab8c6; border-radius: .5rem; }
.mto-ter-filtre button { padding: .6rem .9rem; border: 0; border-radius: .5rem; background: #173b66; color: #fff; font-weight: 700; cursor: pointer; }
.mto-ter-panneau { overflow: hidden; border: 1px solid #b9c6d2; border-radius: .7rem; background: #fff; box-shadow: 0 5px 20px #173b6615; }
.mto-ter-panneau > header, .mto-ter-train { display: grid; grid-template-columns: 7rem minmax(13rem, 2fr) minmax(7rem, .8fr) 4rem minmax(9rem, 1fr); gap: .8rem; align-items: center; }
.mto-ter-panneau > header { padding: .7rem 1rem; background: #172d43; color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.mto-ter-train { padding: .85rem 1rem; border-top: 1px solid #dce4eb; }
.mto-ter-train:nth-of-type(even) { background: #f7f9fb; }
.mto-ter-panneau--arrivees { border-color: #b6d2c2; box-shadow: 0 5px 20px #007a4d15; }
.mto-ter-panneau--arrivees > header { background: #075c3c; }
.mto-ter-panneau--arrivees .mto-ter-train { border-top-color: #d5e6dc; }
.mto-ter-panneau--arrivees .mto-ter-train:nth-of-type(even) { background: #f4faf6; }
.mto-ter-panneau--arrivees .mto-ter-heure strong { color: #075c3c; }
.mto-ter-heure { display: flex; gap: .45rem; align-items: baseline; }
.mto-ter-heure strong { color: #102f50; font-size: 1.6rem; }
.mto-ter-heure del { color: #7b8792; font-size: .85rem; }
.mto-ter-direction, .mto-ter-numero { display: grid; min-width: 0; }
.mto-ter-direction strong { overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.mto-ter-direction small, .mto-ter-numero small { color: #667785; }
.mto-ter-quai { font-size: 1.1rem; font-weight: 800; text-align: center; }
.mto-ter-statut { display: inline-flex; padding: .3rem .55rem; border-radius: 99rem; font-size: .78rem; font-weight: 800; }
.mto-ter-statut--ponctuel { background: #d8f3e5; color: #11603d; }
.mto-ter-statut--retard { background: #fff0c2; color: #7a4a00; }
.mto-ter-statut--supprime { background: #ffe0e0; color: #9d1c1c; }
.mto-ter-statut--modifie { background: #e7ddff; color: #553495; }
.mto-ter-statut--inconnu { background: #e9edf1; color: #52616d; }
.mto-ter-theorique { display: block; margin-top: .25rem; color: #687784; font-size: .68rem; }
.mto-ter-arrets { grid-column: 1 / -1; width: 100%; margin-top: .25rem; padding: 0; border: 1px solid #d5e0e9; background: #fbfcfd; }
.mto-ter-arrets summary { padding: .6rem .75rem; color: #173b66; font-size: .82rem; font-weight: 750; cursor: pointer; }
.mto-ter-arrets summary small { color: #687784; font-weight: 600; }
.mto-ter-arrets[open] { padding: 0; }
.mto-ter-arrets[open] summary { border-bottom: 1px solid #d5e0e9; }
.mto-ter-arrets ol { display: grid; gap: 0; margin: 0; padding: .35rem .85rem .6rem; list-style: none; }
.mto-ter-arrets li { position: relative; display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; min-height: 2rem; margin: 0; }
.mto-ter-arrets li:not(:last-child)::after { position: absolute; top: 1.15rem; bottom: -.85rem; left: .34rem; width: 2px; background: #a9bfd1; content: ''; }
.mto-ter-arret-repere { z-index: 1; width: .7rem; height: .7rem; border: 2px solid #173b66; border-radius: 50%; background: #fff; }
.mto-ter-arrets time { color: #29445e; font-variant-numeric: tabular-nums; font-weight: 750; }
.mto-ter-panneau--arrivees .mto-ter-arrets { border-color: #c9dfd2; background: #fbfdfc; }
.mto-ter-panneau--arrivees .mto-ter-arrets summary { color: #075c3c; }
.mto-ter-panneau--arrivees .mto-ter-arrets[open] summary { border-bottom-color: #c9dfd2; }
.mto-ter-panneau--arrivees .mto-ter-arrets li:not(:last-child)::after { background: #a7cbb8; }
.mto-ter-panneau--arrivees .mto-ter-arret-repere { border-color: #007a4d; }
.mto-ter-panneau--arrivees .mto-ter-arrets time { color: #075c3c; }
.mto-ter-vide { padding: 2rem; text-align: center; }
.mto-ter-source { margin-top: 1.25rem; }
@media (max-width: 720px) {
  .mto-ter-panneau > header { display: none; }
  .mto-ter-train { grid-template-columns: 4.7rem minmax(0, 1fr) auto; gap: .45rem .7rem; }
  .mto-ter-heure strong { font-size: 1.3rem; }
  .mto-ter-direction { grid-column: 2 / 4; grid-row: 1; }
  .mto-ter-heure { grid-row: 1 / 3; }
  .mto-ter-numero { grid-column: 2; }
  .mto-ter-quai { grid-column: 3; grid-row: 2; }
  .mto-ter-etat { grid-column: 2 / 4; }
  .mto-ter-arrets { grid-column: 1 / -1; }
}
