/* ============================================================
   STYLE DES ALERTES MÉTÉO (alerte.php)
   ============================================================ */

/* Conteneur principal de la bannière */
.banner-alerte {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 6px solid rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Icônes */
.banner-alerte i {
    font-size: 1.6em;
    width: 40px;
    text-align: center;
}

/* --- VARIANTES DE COULEURS --- */

/* 1. Tempête (Violet/Rouge Pulsant) */
.banner-alerte.tempete {
    background: linear-gradient(135deg, #8e44ad, #c0392b);
    animation: alert-pulse 2s infinite;
}

/* 2. Chute de Pression (Bleu Nuit/Gris) */
.banner-alerte.pression-chute {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
}

/* 3. Vent Fort (Orange) */
.banner-alerte.vent, .banner-alerte.tramontane {
    background: linear-gradient(135deg, #f39c12, #d35400);
}

/* 4. Canicule (Rouge/Orange vif) */
.banner-alerte.canicule {
    background: linear-gradient(135deg, #e67e22, #e74c3c);
}

/* 5. Gel (Bleu Cyan/Froid) */
.banner-alerte.gel {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* 6. Orage (Noir/Jaune) */
.banner-alerte.orage {
    background: linear-gradient(135deg, #232526, #414345);
    border-left-color: #f1c40f;
}

/* --- ANIMATIONS --- */

/* Animation pour la tempête */
@keyframes alert-pulse {
    0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(192, 57, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); }
}

/* Animation Vent (va-et-vient horizontal) */
.fa-beat-horizontal {
    animation: beat-horizontal 2s infinite;
}
@keyframes beat-horizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Animation Rotation (Soleil et Flocon) */
.fa-spin-slow {
    animation: fa-spin 8s infinite linear;
}

/* Animation Flash (Pression et Orage) */
.fa-fade {
    animation: fa-fade 1.5s infinite;
}
@keyframes fa-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}