/* ==========================================================================
   MODULE MÉTÉO : DESIGN DU BANDEAU ET DE LA TIMELINE
   ========================================================================== */

/* Bandeau météo supérieur flottant */
#weather-banner {
    position: absolute;
    /* 🎯 On retire top, left et transform pour laisser le JS piloter la position */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    border: 2px solid #2ecc71;
}

/* Variations de couleurs selon l'index d'alerte cyclo */
#weather-banner.status-ok {
    border-color: #2ecc71;
    background: #f4fbf7;
    color: #1e7e34;
}

#weather-banner.status-warning {
    border-color: #f39c12;
    background: #fef9e7;
    color: #d35400;
}

#weather-banner.status-danger {
    border-color: #e74c3c;
    background: #fdedec;
    color: #c0392b;
}

/* Zone de la frise chronologique (cachée par défaut) */
#weather-timeline {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Classe injectée par JS pour déplier la frise */
#weather-timeline.open {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Style de chaque colonne d'heure */
.timeline-hour {
    text-align: center;
    font-size: 13px;
    color: #333333;
}

.timeline-time {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: bold;
}

.timeline-icon {
    font-size: 22px;
    margin: 4px 0;
}