* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #262626;
    color: #fff;
    overflow: hidden;
    height: 1080px;
}

.container {
    max-width: 1920px;
    margin: 0;
    padding: 15px 30px;
    height: 1080px;
    overflow-y: auto;
}

.header {
    text-align: center;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 3px;
}

.header .address {
    font-size: 1.2em;
    opacity: 0.9;
}

.header .subtitle {
    font-size: 1em;
    opacity: 0.8;
}

.time-display {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 10px;
    opacity: 0.8;
}

.alerts-section {
    margin-bottom: 15px;
}

.alert-banner {
    background: rgba(255, 107, 107, 0.95);
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 5px solid #ff3333;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-icon {
    font-size: 1.3em;
}

.alert-title {
    font-size: 1.1em;
    font-weight: bold;
}

.stations-container {
    display: grid;
    margin-top:30px;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.station-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
}

.station-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.station-name {
    font-size: 1.6em;
    font-weight: bold;
}

.walk-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.9em;
}

.station-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
}

.station-info {
    display: flex;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
}

.status-dot.alert {
    background: #ef4444;
}

.departures-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.departure-card {
    background: rgba(255, 255, 255, 0.0);
    border-radius: 10px;
    padding: 12px;
}

.line-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.line-number {
    background: #fff;
    color: #333;
    font-size: 1.3em;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    margin-right: 10px;
    min-width: 60px;
    text-align: center;
}

.line-number.line-1 {
    background: #0055A4;
    color: #fff;
}

.line-number.line-2 {
    background: #F28E00;
    color: #fff;
}

.line-number.line-3 {
    background: #B5BD00;
    color: #333;
}

.line-number.line-4 {
    background: #8D5B3B;
    color: #fff;
}

.destination-name {
    font-size: 1.1em;
    font-weight: 500;
}

.departure-times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-item {
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
    border: 3px solid transparent; /* <-- AJOUTE CETTE LIGNE */
}

.time-main {
    font-size: 1.5em;
    display: block;
    margin-bottom: 2px;
    color: #FFFFFF;
}

.time-with-walk {
    font-size: 0.7em;
    opacity: 0.95;
    color: #FFFFFF;
}

.time-item.imminent {
    /* background: #FF6B6B;  (On n'utilise plus) */
}

.time-item.soon {
    /* background: #FFA726; (Remplacé par .at-platform) */
}

/* 1. À quai: fond orange */
.time-item.at-platform {
    background: #FFA726; /* Orange (couleur "soon" existante) */
}

/* 2. Temps > marche: bordure verte */
.time-item.time-ok {
    border: 1px solid #4ade80; /* Vert (couleur "status-dot" existante) */
}

/* 3. Temps <= marche: bordure orange */
.time-item.time-tight {
    border: 1px solid #FFA726; /* Orange */
}

.no-data {
    text-align: center;
    font-size: 1.2em;
    padding: 20px;
    opacity: 0.8;
}

.status-indicator {
    margin: auto;
    justify-content: center;
    width:150px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    z-index: 1000;
}

.status-indicator .status-dot {
    width: 12px;
    height: 12px;
}

.legend {
    display: none;
}

.last-update {
    display: none;
}

.loading {
    text-align: center;
    font-size: 1.5em;
    padding: 40px;
}

.error {
    background: rgba(255, 107, 107, 0.3);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
}
