/* =======================================
   Styles pour le Panneau de Gare SNCF
   ======================================= */
.sncf-horaires-wrapper h3 {
    margin: 10px 0 20px 0;
    text-align: center;
    color: #003366;
    font-weight: 700;
}

/* --- Boutons de filtrage --- */
.sncf-filter-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    gap: 10px;
}
.sncf-filter-buttons button {
    background-color: #e0e0e0;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.sncf-filter-buttons button:hover:not(:disabled) {
    background-color: #d0d0d0;
}
.sncf-filter-buttons button.active {
    background-color: #1048a3; /* Bleu SNCF */
    color: white;
    font-weight: bold;
    border-color: #1048a3;
}


/* --- Le Panneau de Gare --- */
.sncf-board-container {
    --blue1: #1048a3;
    --blue2: #0b2f7a;
    --text: #f2f6ff;
    --muted: #c7d6ff;
    --yellow: #ffd000;
    --rowGap: 8px;
    --rad: 10px;
    
    background: linear-gradient(180deg, var(--blue1), var(--blue2));
    color: var(--text);
    border-radius: 14px;
    padding: 15px 15px 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: 'Arial', sans-serif;
    font-variant-numeric: tabular-nums;
    margin-top: 15px;
}

.sncf-list {
    display: flex;
    flex-direction: column;
    gap: var(--rowGap);
}

.sncf-row {
    display: grid;
    /* Colonnes : Statut | Heure | Destination | Voie */
    grid-template-columns: 150px 80px 1fr 60px; 
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--rad);
    background: rgba(0, 0, 0, 0.08);
}
.sncf-row:nth-child(even) {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.10), rgba(255, 255, 255, 0.02));
}

/* Statut (à l'heure, retard) */
.sncf-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85rem;
}
.sncf-logo {
    background: #fff;
    color: #0b1f47;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-bottom: 2px;
}
.sncf-left .is-late { 
    color: #ff9999; 
    font-weight: 900;
    text-shadow: 0 0 5px rgba(255, 153, 153, 0.4);
}
.sncf-left .is-early { color: #ddffea; }
.sncf-left .is-ontime { color: #e9f1ff; opacity: 0.85; }

/* Heure */
.sncf-time {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--yellow);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

/* Destination et Ligne */
.sncf-dest {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sncf-dest-main {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex; 
    align-items: center;
}
.sncf-dest-sub {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Pastilles (Pill) Ligne H / TER */
.sncf-pill {
    display: inline-block;
    min-width: 2.1rem;
    text-align: center;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 800;
    margin-right: 8px;
    line-height: 1.2;
}
.sncf-pill--transilien-h {
    background: #5A5A5A; /* Gris Transilien */
    color: white;
    border: 1px solid #777;
}
.sncf-pill--ter {
    background: #CC0000; /* Rouge TER */
    color: white;
    border: 1px solid #DD0000;
}
.sncf-pill--train {
    background: #003366;
    color: white;
}

/* Badge Court/Long */
.sncf-badge {
    background-color: #3e8e41; /* Vert foncé pour le badge */
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 8px;
    white-space: nowrap;
}

/* Voie (Quai) */
.sncf-platform {
    width: 48px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 6px;
    font-weight: 900;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
}
.sncf-platform--confirmed {
    border: 2px solid #55ff55; /* Vert pour confirmé */
    color: #55ff55;
}
.sncf-platform--likely {
    border: 2px dashed var(--yellow); /* Jaune pointillé pour indicatif */
    color: var(--yellow);
    opacity: 0.9;
}
.sncf-platform--none {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--muted);
    opacity: 0.6;
}

/* Messages de service */
.sncf-loading, .sncf-error-message {
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: bold;
}
.sncf-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.sncf-loading {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}