/**
 * WEATHER FULL - Bloc météo immersif conforme meteo_full.md
 * Design Glassmorphism - 9 lignes
 * @version 4.0
 */

/* ============================================
   CONTAINER PRINCIPAL - Fond dégradé ciel
   ============================================ */
.weather-full {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    min-height: calc(100vh - 60px);
    background: linear-gradient(180deg,
            var(--wf-bg-start) 0%,
            var(--wf-bg-mid1) 30%,
            var(--wf-bg-mid2) 60%,
            var(--wf-bg-end) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', 'Roboto', system-ui, sans-serif;
}

/* Effet nuages subtil en fond */
.weather-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, var(--wf-cloud-1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 30%, var(--wf-cloud-2) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   STYLE GLASSMORPHISM COMMUN
   ============================================ */
.wf-glass {
    background: var(--wf-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--wf-glass-border);
    border-radius: 16px;
    box-shadow:
        0 4px 24px var(--wf-glass-shadow),
        inset 0 1px 0 var(--wf-glass-highlight);
}

/* Texte blanc par défaut */
.weather-full,
.weather-full * {
    color: var(--wf-text);
}

/* Titre de section */
.wf-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-bottom: 12px;
    font-weight: 500;
}

/* ============================================
   LIGNE 1 : HERO + PRÉVISIONS HORAIRES
   ============================================ */
.wf-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 180px;
}

/* ============================================
   SYSTÈME D'ANIMATION MÉTÉO (architecture layers)
   ============================================ */

/* Conteneur principal des layers */
.wf-weather-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
    contain: layout paint;
}

/* Layer de base */
.wf-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Layer A - Ciel (gradient animé) */
.wf-layer--sky {
    z-index: 1;
    background: linear-gradient(180deg,
        var(--wf-sky-top, #1e88e5) 0%,
        var(--wf-sky-mid, #42a5f5) 50%,
        var(--wf-sky-bottom, #64b5f6) 100%);
    animation: wf-sky-breathe 8s ease-in-out infinite;
}

@keyframes wf-sky-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.92; }
}

/* Layer B - Nuages */
.wf-layer--clouds {
    z-index: 2;
    background-repeat: repeat-x;
    background-size: 150% 100%;
    background-position: 0% 50%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, background-image 1s ease-in-out;
    /* Fondu sur les bords gauche/droite */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.3) 5%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,1) 85%,
        rgba(0,0,0,0.3) 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.3) 5%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,1) 85%,
        rgba(0,0,0,0.3) 95%,
        transparent 100%
    );
}

.wf-layer--clouds.active {
    opacity: 1;
    animation: wf-clouds-drift 80s linear infinite;
}

@keyframes wf-clouds-drift {
    0% { background-position: 0% 50%; }
    100% { background-position: 150% 50%; }
}

/* Layer C - Particules (canvas) */
.wf-layer--particles {
    z-index: 3;
    opacity: 0;
}

.wf-layer--particles.active {
    opacity: 1;
}

/* Layer D - Effets spéciaux (éclairs, brouillard) */
.wf-layer--effects {
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

.wf-layer--effects.active {
    opacity: 1;
}

/* Flash d'éclair */
.wf-layer--effects.lightning-flash {
    background: rgba(255, 255, 255, 0.9);
    animation: wf-lightning-flash 0.15s ease-out;
}

@keyframes wf-lightning-flash {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 0.3; }
    30% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Effet brouillard */
.wf-layer--effects.fog {
    background: linear-gradient(180deg,
        rgba(255,255,255,0.1) 0%,
        rgba(255,255,255,0.4) 30%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.4) 70%,
        rgba(255,255,255,0.1) 100%);
    animation: wf-fog-drift 12s ease-in-out infinite;
}

@keyframes wf-fog-drift {
    0%, 100% { transform: translateX(0) scaleX(1); opacity: 0.5; }
    50% { transform: translateX(20px) scaleX(1.05); opacity: 0.7; }
}

/* Layer E - Vignette (finition) */
.wf-layer--vignette {
    z-index: 5;
    background: radial-gradient(ellipse at center,
        transparent 40%,
        rgba(0,0,0,0.15) 100%);
    opacity: 0.8;
}

/* ============================================
   ANIMATIONS SOLEIL
   ============================================ */

.wf-sun-svg {
    filter: drop-shadow(0 0 20px rgba(255, 200, 0, 0.5));
}

.wf-sun-halo {
    animation: wf-sun-halo-pulse 4s ease-in-out infinite;
}

@keyframes wf-sun-halo-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.6; }
}

.wf-sun-glow {
    animation: wf-sun-glow-pulse 3s ease-in-out infinite;
}

@keyframes wf-sun-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.wf-sun-rays {
    animation: wf-sun-rays-rotate 60s linear infinite;
}

@keyframes wf-sun-rays-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   ANIMATIONS LUNE
   ============================================ */

.wf-moon-svg {
    filter: drop-shadow(0 0 15px rgba(255, 253, 231, 0.4));
}

.wf-moon-halo {
    animation: wf-moon-halo-pulse 6s ease-in-out infinite;
}

@keyframes wf-moon-halo-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.05); opacity: 0.55; }
}

/* Étoiles scintillantes - immobiles avec variation d'opacité lente */
.wf-star {
    animation: wf-star-twinkle 6s ease-in-out infinite;
}

.wf-star-1 { animation-delay: 0s; animation-duration: 5s; }
.wf-star-2 { animation-delay: 1.2s; animation-duration: 7s; }
.wf-star-3 { animation-delay: 2.5s; animation-duration: 6s; }
.wf-star-4 { animation-delay: 0.8s; animation-duration: 8s; }
.wf-star-5 { animation-delay: 3.5s; animation-duration: 5.5s; }
.wf-star-6 { animation-delay: 1.8s; animation-duration: 7.5s; }
.wf-star-7 { animation-delay: 4.2s; animation-duration: 6.5s; }
.wf-star-8 { animation-delay: 2.8s; animation-duration: 8.5s; }

@keyframes wf-star-twinkle {
    0%, 100% { opacity: 0.4; }
    15% { opacity: 1; }
    30% { opacity: 0.5; }
    50% { opacity: 0.9; }
    70% { opacity: 0.3; }
    85% { opacity: 0.8; }
}

/* ============================================
   THÈMES DE CIEL PAR CONDITION
   ============================================ */

/* Ciel dégagé - jour */
.wf-weather-bg[data-condition="clear"] {
    --wf-sky-top: #0d47a1;
    --wf-sky-mid: #1976d2;
    --wf-sky-bottom: #42a5f5;
}

/* Peu nuageux */
.wf-weather-bg[data-condition="partly-cloudy"] {
    --wf-sky-top: #1565c0;
    --wf-sky-mid: #1e88e5;
    --wf-sky-bottom: #64b5f6;
}

/* Nuageux */
.wf-weather-bg[data-condition="cloudy"] {
    --wf-sky-top: #455a64;
    --wf-sky-mid: #607d8b;
    --wf-sky-bottom: #78909c;
}

/* Couvert */
.wf-weather-bg[data-condition="overcast"] {
    --wf-sky-top: #37474f;
    --wf-sky-mid: #546e7a;
    --wf-sky-bottom: #78909c;
}

/* Pluie */
.wf-weather-bg[data-condition="rain"],
.wf-weather-bg[data-condition="drizzle"] {
    --wf-sky-top: #37474f;
    --wf-sky-mid: #455a64;
    --wf-sky-bottom: #607d8b;
}

/* Pluie forte */
.wf-weather-bg[data-condition="heavy-rain"] {
    --wf-sky-top: #263238;
    --wf-sky-mid: #37474f;
    --wf-sky-bottom: #546e7a;
}

/* Orage */
.wf-weather-bg[data-condition="thunderstorm"] {
    --wf-sky-top: #1a1a2e;
    --wf-sky-mid: #2d2d44;
    --wf-sky-bottom: #3d3d54;
}

/* Neige */
.wf-weather-bg[data-condition="snow"] {
    --wf-sky-top: #78909c;
    --wf-sky-mid: #90a4ae;
    --wf-sky-bottom: #b0bec5;
}

/* Brouillard */
.wf-weather-bg[data-condition="fog"] {
    --wf-sky-top: #78909c;
    --wf-sky-mid: #90a4ae;
    --wf-sky-bottom: #b0bec5;
}

/* ============================================
   THÈMES DE CIEL NOCTURNE
   ============================================ */

/* Nuit claire */
.wf-weather-bg[data-night="true"][data-condition="clear"] {
    --wf-sky-top: #0a1628;
    --wf-sky-mid: #152238;
    --wf-sky-bottom: #1e3a5f;
}

/* Nuit peu nuageuse */
.wf-weather-bg[data-night="true"][data-condition="partly-cloudy"] {
    --wf-sky-top: #0d1a2d;
    --wf-sky-mid: #182d4a;
    --wf-sky-bottom: #234060;
}

/* Nuit nuageuse */
.wf-weather-bg[data-night="true"][data-condition="cloudy"] {
    --wf-sky-top: #1a1a2e;
    --wf-sky-mid: #252540;
    --wf-sky-bottom: #353555;
}

/* Nuit couverte */
.wf-weather-bg[data-night="true"][data-condition="overcast"] {
    --wf-sky-top: #151525;
    --wf-sky-mid: #202035;
    --wf-sky-bottom: #2a2a45;
}

/* Nuit pluvieuse */
.wf-weather-bg[data-night="true"][data-condition="rain"],
.wf-weather-bg[data-night="true"][data-condition="drizzle"] {
    --wf-sky-top: #101020;
    --wf-sky-mid: #1a1a30;
    --wf-sky-bottom: #252545;
}

/* Nuit pluie forte */
.wf-weather-bg[data-night="true"][data-condition="heavy-rain"] {
    --wf-sky-top: #0a0a15;
    --wf-sky-mid: #121225;
    --wf-sky-bottom: #1a1a35;
}

/* Nuit orageuse */
.wf-weather-bg[data-night="true"][data-condition="thunderstorm"] {
    --wf-sky-top: #050510;
    --wf-sky-mid: #0a0a1a;
    --wf-sky-bottom: #151528;
}

/* Nuit neigeuse */
.wf-weather-bg[data-night="true"][data-condition="snow"] {
    --wf-sky-top: #1a2030;
    --wf-sky-mid: #253040;
    --wf-sky-bottom: #354055;
}

/* Nuit brumeuse */
.wf-weather-bg[data-night="true"][data-condition="fog"] {
    --wf-sky-top: #1a1a25;
    --wf-sky-mid: #252535;
    --wf-sky-bottom: #353550;
}

/* Vent - ciel gris-bleu dynamique */
.wf-weather-bg[data-condition="windy"] {
    --wf-sky-top: #546e7a;
    --wf-sky-mid: #78909c;
    --wf-sky-bottom: #90a4ae;
}

/* Nuit venteuse */
.wf-weather-bg[data-night="true"][data-condition="windy"] {
    --wf-sky-top: #1a2530;
    --wf-sky-mid: #253545;
    --wf-sky-bottom: #354555;
}

/* Tempête de sable - ciel ocre/orange */
.wf-weather-bg[data-condition="sandstorm"] {
    --wf-sky-top: #8b5a2b;
    --wf-sky-mid: #cd853f;
    --wf-sky-bottom: #deb887;
}

/* Nuit tempête de sable */
.wf-weather-bg[data-night="true"][data-condition="sandstorm"] {
    --wf-sky-top: #3d2817;
    --wf-sky-mid: #5c3d2e;
    --wf-sky-bottom: #6b4423;
}

.wf-hero-main {
    flex: 1;
    position: relative;
    z-index: 2;
}

.wf-hero-location {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.wf-hero-temp {
    font-size: 5rem;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 8px;
}

.wf-hero-condition {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.wf-hero-feels,
.wf-hero-minmax {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 4px;
}

.wf-hero-datetime {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 8px;
}

.wf-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: visible;
    padding: 10px;
}

.wf-hero-icon-big {
    font-size: 6rem;
    filter: drop-shadow(2px 4px 8px var(--wf-icon-shadow));
    overflow: visible;
}

/* Prévisions horaires */
.wf-hourly {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.wf-hourly::-webkit-scrollbar {
    height: 4px;
}

.wf-hourly::-webkit-scrollbar-thumb {
    background: var(--wf-scrollbar);
    border-radius: 2px;
}

.wf-hour-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 50px;
    max-width: 120px;
    padding: 10px 8px;
    background: var(--wf-item-bg);
    border-radius: 12px;
    transition: background 0.2s;
}

.wf-hour-item:hover {
    background: var(--wf-item-hover);
}

.wf-hour-time {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
}

.wf-hour-icon {
    font-size: 1.5rem;
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

/* Support des icônes SVG animées dans les prévisions horaires */
.wf-hour-icon .wf-icon-svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.wf-hour-temp {
    font-size: 1rem;
    font-weight: 600;
}

.wf-hour-rain {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* ============================================
   LIGNE 2 : COURBE TEMPÉRATURE
   ============================================ */
.wf-temp-curve {
    padding: 16px 20px;
    position: relative;
    z-index: 1;
}

.wf-curve-container {
    min-height: 60px;
    width: 100%;
    position: relative;
}

.wf-curve-container svg {
    width: 100%;
    height: 100%;
}

.wf-curve-line {
    fill: none;
    stroke: var(--wf-curve-line);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wf-curve-area {
    fill: url(#curveGradient);
}

.wf-curve-dot {
    fill: var(--wf-curve-dot-fill);
    stroke: var(--wf-curve-dot-stroke);
    stroke-width: 3;
}

.wf-curve-label {
    fill: var(--wf-text);
    font-size: 11px;
    text-anchor: middle;
}

.wf-curve-hour {
    fill: var(--wf-text-muted);
    font-size: 10px;
    text-anchor: middle;
}

.wf-grid-line {
    stroke: var(--wf-grid-line);
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

.wf-grid-label {
    fill: var(--wf-grid-label);
    font-size: 10px;
    text-anchor: end;
}

/* ============================================
   LIGNE 3 : HISTOGRAMME PRÉCIPITATIONS
   ============================================ */
.wf-precip-chart {
    padding: 16px 20px;
    position: relative;
    z-index: 1;
}

.wf-precip-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-height: 60px;
    width: 100%;
}

.wf-precip-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wf-precip-fill {
    width: 100%;
    max-width: 24px;
    background: linear-gradient(180deg, var(--wf-precip-start) 0%, var(--wf-precip-end) 100%);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height 0.3s ease;
}

.wf-precip-value {
    font-size: 0.7rem;
    opacity: 0.7;
}

.wf-precip-hour {
    font-size: 0.6rem;
    opacity: 0.6;
    white-space: nowrap;
}

/* Grille de précipitations */
.wf-precip-grid {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    bottom: 16px;
    pointer-events: none;
}

.wf-precip-grid-line {
    position: absolute;
    left: 25px;
    right: 0;
    height: 1px;
    background: var(--wf-grid-line);
    border-top: 1px dashed var(--wf-grid-dashed);
}

.wf-precip-grid-label {
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    opacity: 0.5;
    width: 20px;
    text-align: right;
}

.wf-precip-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-height: 60px;
    width: 100%;
    padding-left: 25px;
    position: relative;
    z-index: 1;
}

/* ============================================
   LIGNE 4 : PRÉVISIONS JOURNALIÈRES (cartes horizontales)
   ============================================ */
.wf-daily {
    padding: 16px 20px;
    position: relative;
    z-index: 1;
}

.wf-daily-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.wf-daily-list::-webkit-scrollbar {
    height: 4px;
}

.wf-daily-list::-webkit-scrollbar-thumb {
    background: var(--wf-scrollbar);
    border-radius: 2px;
}

.wf-daily-card {
    flex: 1 1 0;
    min-width: 90px;
    max-width: 180px;
    padding: 14px 12px;
    background: var(--wf-item-bg);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: background 0.2s;
}

.wf-daily-card:hover {
    background: var(--wf-item-hover);
}

.wf-daily-card.today {
    background: var(--wf-item-active);
    border: 1px solid var(--wf-item-border);
}

.wf-daily-day {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wf-daily-icons {
    display: flex;
    gap: 4px;
    margin: 4px 0;
    align-items: center;
    justify-content: center;
}

.wf-daily-icon,
.wf-daily-icon-am,
.wf-daily-icon-pm {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

/* Support des icônes SVG animées dans les prévisions journalières */
.wf-daily-icon .wf-icon-svg,
.wf-daily-icon-am .wf-icon-svg,
.wf-daily-icon-pm .wf-icon-svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

.wf-daily-temps {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.wf-daily-max {
    font-size: 1.1rem;
    font-weight: 600;
}

.wf-daily-min {
    font-size: 0.9rem;
    opacity: 0.6;
}

.wf-daily-rain {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
    padding: 3px 8px;
    background: var(--wf-precip-badge);
    border-radius: 10px;
}

/* ============================================
   LIGNE 5 : ACTIVITÉS (layout 2 colonnes par carte)
   ============================================ */
.wf-activities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

.wf-activity {
    padding: 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
}

/* Colonne 1 : icon + status + text (1/3) */
.wf-activity-col1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 33%;
    flex-shrink: 0;
}

.wf-activity-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.wf-activity-status {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.wf-activity-text {
    font-size: 0.6rem;
    opacity: 0.75;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Colonne 2 : name + slots (2/3) */
.wf-activity-col2 {
    display: flex;
    flex-direction: column;
    width: 67%;
    min-width: 0;
}

.wf-activity-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.wf-activity-slots {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex: 1;
    align-items: stretch;
}

.wf-activity-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 4px;
    flex: 1;
    background: var(--wf-slot-bg);
    border-radius: 10px;
}

.wf-slot-hour {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

.wf-slot-emoji {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.wf-slot-label {
    font-size: 0.55rem;
    opacity: 0.8;
    white-space: nowrap;
}

/* Status colors */
.wf-activity[data-status="good"] {
    background: var(--wf-status-good-bg);
    border-color: var(--wf-status-good-border);
}

.wf-activity[data-status="good"] .wf-activity-status {
    color: var(--wf-status-good-text);
}

.wf-activity[data-status="moderate"] {
    background: var(--wf-status-moderate-bg);
    border-color: var(--wf-status-moderate-border);
}

.wf-activity[data-status="moderate"] .wf-activity-status {
    color: var(--wf-status-moderate-text);
}

.wf-activity[data-status="bad"] {
    background: var(--wf-status-bad-bg);
    border-color: var(--wf-status-bad-border);
}

.wf-activity[data-status="bad"] .wf-activity-status {
    color: var(--wf-status-bad-text);
}

/* ============================================
   LIGNE 6 : IQA + POLLEN
   ============================================ */
.wf-air-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.wf-iqa,
.wf-pollen {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* === Qualité de l'air === */
.wf-iqa-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wf-iqa-icon {
    font-size: 2.2rem;
}

.wf-iqa-info {
    flex: 1;
}

.wf-iqa-value {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.1;
}

.wf-iqa-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.85;
}

.wf-iqa-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.wf-aqi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: var(--wf-slot-bg);
    border-radius: 6px;
}

.wf-aqi-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.wf-aqi-value {
    font-size: 0.65rem;
    font-weight: 500;
}

/* Couleurs AQI */
.wf-iqa[data-level="very-good"] { background: var(--wf-aqi-very-good); }
.wf-iqa[data-level="good"] { background: var(--wf-aqi-good); }
.wf-iqa[data-level="moderate"] { background: var(--wf-aqi-moderate); }
.wf-iqa[data-level="poor"] { background: var(--wf-aqi-poor); }
.wf-iqa[data-level="very-poor"] { background: var(--wf-aqi-very-poor); }

/* === Pollen === */
.wf-pollen-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wf-pollen-icon {
    font-size: 2.2rem;
}

.wf-pollen-info {
    flex: 1;
}

.wf-pollen-summary {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.wf-pollen-sublabel {
    font-size: 0.8rem;
    opacity: 0.75;
}

.wf-pollen-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.wf-pollen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: var(--wf-slot-bg);
    border-radius: 6px;
}

.wf-pollen-name {
    font-size: 0.7rem;
    opacity: 0.8;
}

.wf-pollen-level {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--wf-glass-bg);
}

.wf-pollen-level[data-level="none"] {
    background: var(--wf-pollen-none-badge);
    color: var(--wf-pollen-none-text);
}

.wf-pollen-level[data-level="low"] {
    background: var(--wf-pollen-low-badge);
    color: var(--wf-pollen-low-text);
}

.wf-pollen-level[data-level="medium"] {
    background: var(--wf-pollen-medium-badge);
    color: var(--wf-pollen-medium-text);
}

.wf-pollen-level[data-level="high"] {
    background: var(--wf-pollen-high-badge);
    color: var(--wf-pollen-high-text);
}

/* Couleurs bloc pollen global */
.wf-pollen[data-level="none"] { background: var(--wf-pollen-none-bg); }
.wf-pollen[data-level="low"] { background: var(--wf-pollen-low-bg); }
.wf-pollen[data-level="medium"] { background: var(--wf-pollen-medium-bg); }
.wf-pollen[data-level="high"] { background: var(--wf-pollen-high-bg); }
.wf-pollen[data-level="unavailable"] { background: var(--wf-pollen-unavailable-bg); }

.wf-pollen-level[data-level="unavailable"] {
    background: var(--wf-pollen-unavailable-badge);
    color: var(--wf-pollen-unavailable-text);
}

/* ============================================
   LIGNE 7 : INDICATEURS MÉTÉO
   ============================================ */
.wf-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

.wf-indicator {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf-ind-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wf-ind-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.wf-ind-label {
    flex: 1;
    font-size: 0.85rem;
    opacity: 0.7;
}

.wf-ind-value {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ============================================
   LIGNE 8 : SOLEIL + LUNE
   ============================================ */
.wf-sun-moon-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.wf-sun,
.wf-moon {
    padding: 16px 20px;
}

/* Arc soleil */
.wf-sun-arc {
    height: 100px;
    margin-bottom: 12px;
    position: relative;
}

.wf-sun-arc svg {
    width: 100%;
    height: 100%;
}

.wf-sun-arc-path {
    fill: none;
    stroke: var(--wf-sun-arc);
    stroke-width: 2;
    stroke-dasharray: 4, 4;
}

.wf-sun-arc-progress {
    fill: none;
    stroke: var(--wf-sun-progress);
    stroke-width: 3;
    stroke-linecap: round;
}

.wf-sun-dot {
    fill: var(--wf-sun-dot);
    filter: drop-shadow(0 0 6px var(--wf-sun-glow));
}

.wf-sun-times {
    display: flex;
    justify-content: space-between;
}

.wf-sun-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wf-sun-label {
    font-size: 0.8rem;
    opacity: 0.6;
}

.wf-sun-value {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Infos soleil supplémentaires (midi solaire, durée du jour) */
.wf-sun-info {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Heures dorées */
.wf-golden-hour {
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.wf-golden-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--wf-text-primary, #fff);
}

.wf-golden-times {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.wf-golden-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wf-golden-label {
    font-size: 0.75rem;
    opacity: 0.6;
}

.wf-golden-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--wf-golden-text, #ffc107);
}

/* Lune - Réorganisé en 4 lignes : titre, icône, phase, heures */
.wf-moon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wf-moon-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 120px;
    padding: 5px 0 0 0;
}

.wf-moon-icon svg {
    width: 130px !important;
    height: 130px !important;
}

.wf-moon-svg {
    filter: drop-shadow(0 0 14px var(--wf-moon-glow));
}

.wf-moon-phase {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 0 0 40px 0;
    margin-top: -5px;
    width: 100%;
}

.wf-moon-times {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wf-moon-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wf-moon-time:last-child {
    text-align: right;
}

.wf-moon-label {
    font-size: 0.8rem;
    opacity: 0.6;
}

.wf-moon-value {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ============================================
   LIGNE 9 : RADAR
   ============================================ */
.wf-radar {
    padding: 16px 20px;
    position: relative;
    z-index: 1;
}

.wf-radar-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--wf-radar-bg);
    border: 1px solid var(--wf-radar-border);
}

.wf-radar-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.wf-radar-timestamp {
    margin-top: 8px;
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: right;
}

/* ============================================
   NOWCAST BANNER
   ============================================ */
.wf-nowcast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--wf-nowcast-bg);
    border: 1px solid var(--wf-nowcast-border);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.wf-nowcast[hidden] {
    display: none !important;
}

.wf-nowcast-icon {
    font-size: 1.4rem;
}

.wf-nowcast-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.wf-nowcast-amount {
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--wf-nowcast-badge);
    padding: 6px 12px;
    border-radius: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
body[data-slideshow="true"] [data-block-id="weather-full"].active-slide {
    display: flex !important;
}

@media (max-width: 900px) {
    .wf-hero-temp {
        font-size: 4rem;
    }

    .wf-hero-icon-big {
        font-size: 4.5rem;
    }

    .wf-activities,
    .wf-indicators {
        grid-template-columns: repeat(2, 1fr);
    }

    .wf-sun-moon-row {
        grid-template-columns: 1fr;
    }

    .wf-daily-row {
        grid-template-columns: 60px 40px 40px 1fr 50px 35px;
    }
}

@media (max-width: 600px) {
    .weather-full {
        padding: 16px;
        gap: 5px;
    }

    .wf-hero {
        flex-direction: column;
        text-align: center;
    }

    .wf-hero-temp {
        font-size: 3.5rem;
    }

    .wf-activities,
    .wf-indicators,
    .wf-air-row {
        grid-template-columns: 1fr;
    }

    /* Activités en colonne unique : plus d'espace */
    .wf-activity {
        padding: 12px 14px;
    }

    .wf-activity-slot {
        min-width: 55px;
        padding: 8px 6px;
    }

    .wf-slot-emoji {
        font-size: 1.6rem;
    }

    .wf-daily-row {
        grid-template-columns: 50px 35px 35px 1fr 45px;
    }

    .wf-daily-rain {
        display: none;
    }

    .wf-radar-container {
        height: 220px;
    }
}

/* ============================================
   NOUVELLES CONDITIONS MÉTÉO - COULEURS DE CIEL
   ============================================ */

/* Brume (mist) */
.wf-weather-bg[data-condition="mist"] {
    --wf-sky-top: #90a4ae;
    --wf-sky-mid: #b0bec5;
    --wf-sky-bottom: #cfd8dc;
}

/* Brume sèche (haze) */
.wf-weather-bg[data-condition="haze"] {
    --wf-sky-top: #8d9a9e;
    --wf-sky-mid: #a8b5ba;
    --wf-sky-bottom: #c5cfd4;
}

/* Fumée (smoke) */
.wf-weather-bg[data-condition="smoke"] {
    --wf-sky-top: #5d6d7e;
    --wf-sky-mid: #7f8c8d;
    --wf-sky-bottom: #95a5a6;
}

/* Poussière / Sable */
.wf-weather-bg[data-condition="dust"],
.wf-weather-bg[data-condition="sand"] {
    --wf-sky-top: #8d6e63;
    --wf-sky-mid: #a1887f;
    --wf-sky-bottom: #bcaaa4;
}

/* Cendres volcaniques */
.wf-weather-bg[data-condition="volcanic-ash"] {
    --wf-sky-top: #37474f;
    --wf-sky-mid: #455a64;
    --wf-sky-bottom: #607d8b;
}

/* Rafales (squalls) */
.wf-weather-bg[data-condition="squalls"] {
    --wf-sky-top: #263238;
    --wf-sky-mid: #37474f;
    --wf-sky-bottom: #546e7a;
}

/* Tornade */
.wf-weather-bg[data-condition="tornado"] {
    --wf-sky-top: #1a1a1a;
    --wf-sky-mid: #2d3436;
    --wf-sky-bottom: #4d5656;
}

/* Verglas (freezing rain) */
.wf-weather-bg[data-condition="freezing-rain"] {
    --wf-sky-top: #37474f;
    --wf-sky-mid: #546e7a;
    --wf-sky-bottom: #78909c;
}

/* Grésil (sleet) */
.wf-weather-bg[data-condition="sleet"] {
    --wf-sky-top: #455a64;
    --wf-sky-mid: #607d8b;
    --wf-sky-bottom: #90a4ae;
}

/* Neige forte */
.wf-weather-bg[data-condition="heavy-snow"] {
    --wf-sky-top: #607d8b;
    --wf-sky-mid: #78909c;
    --wf-sky-bottom: #b0bec5;
}

/* ============================================
   NOUVELLES CONDITIONS - COULEURS NOCTURNES
   ============================================ */

/* Nuit brumeuse (mist) */
.wf-weather-bg[data-night="true"][data-condition="mist"] {
    --wf-sky-top: #1a2030;
    --wf-sky-mid: #2a3545;
    --wf-sky-bottom: #3a4555;
}

/* Nuit avec brume sèche (haze) */
.wf-weather-bg[data-night="true"][data-condition="haze"] {
    --wf-sky-top: #1a1f25;
    --wf-sky-mid: #282d35;
    --wf-sky-bottom: #3a4048;
}

/* Nuit avec fumée (smoke) */
.wf-weather-bg[data-night="true"][data-condition="smoke"] {
    --wf-sky-top: #151820;
    --wf-sky-mid: #202530;
    --wf-sky-bottom: #303540;
}

/* Nuit poussiéreuse */
.wf-weather-bg[data-night="true"][data-condition="dust"],
.wf-weather-bg[data-night="true"][data-condition="sand"] {
    --wf-sky-top: #2d2520;
    --wf-sky-mid: #3d3530;
    --wf-sky-bottom: #4d4540;
}

/* Nuit cendres volcaniques */
.wf-weather-bg[data-night="true"][data-condition="volcanic-ash"] {
    --wf-sky-top: #101015;
    --wf-sky-mid: #181820;
    --wf-sky-bottom: #252530;
}

/* Nuit rafales */
.wf-weather-bg[data-night="true"][data-condition="squalls"] {
    --wf-sky-top: #0a1015;
    --wf-sky-mid: #151a20;
    --wf-sky-bottom: #202830;
}

/* Nuit tornade */
.wf-weather-bg[data-night="true"][data-condition="tornado"] {
    --wf-sky-top: #050505;
    --wf-sky-mid: #101010;
    --wf-sky-bottom: #1a1a1a;
}

/* Nuit verglas */
.wf-weather-bg[data-night="true"][data-condition="freezing-rain"] {
    --wf-sky-top: #101520;
    --wf-sky-mid: #1a2030;
    --wf-sky-bottom: #253040;
}

/* Nuit grésil */
.wf-weather-bg[data-night="true"][data-condition="sleet"] {
    --wf-sky-top: #151a25;
    --wf-sky-mid: #202535;
    --wf-sky-bottom: #303545;
}

/* Nuit neige forte */
.wf-weather-bg[data-night="true"][data-condition="heavy-snow"] {
    --wf-sky-top: #1a2535;
    --wf-sky-mid: #253545;
    --wf-sky-bottom: #354555;
}

/* ============================================
   ANIMATIONS TORNADE
   ============================================ */

.wf-tornado-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.wf-tornado-funnel {
    animation: wf-tornado-sway 3s ease-in-out infinite;
    transform-origin: 200px 20px;
}

@keyframes wf-tornado-sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* Animation des anneaux de la tornade */
.wf-tornado-ring {
    fill: none;
    stroke: rgba(100, 100, 100, 0.6);
    stroke-width: 3;
    animation: wf-tornado-ring-rotate 2s linear infinite;
}

.wf-tornado-ring-1 { animation-duration: 1.5s; stroke: rgba(80, 80, 80, 0.7); }
.wf-tornado-ring-2 { animation-duration: 1.7s; animation-delay: -0.2s; }
.wf-tornado-ring-3 { animation-duration: 1.9s; animation-delay: -0.4s; }
.wf-tornado-ring-4 { animation-duration: 2.1s; animation-delay: -0.6s; }
.wf-tornado-ring-5 { animation-duration: 2.3s; animation-delay: -0.8s; }
.wf-tornado-ring-6 { animation-duration: 2.5s; animation-delay: -1.0s; }
.wf-tornado-ring-7 { animation-duration: 2.7s; animation-delay: -1.2s; }
.wf-tornado-ring-8 { animation-duration: 2.9s; animation-delay: -1.4s; stroke: rgba(60, 60, 60, 0.5); }

@keyframes wf-tornado-ring-rotate {
    0% { stroke-dasharray: 20 10; stroke-dashoffset: 0; }
    100% { stroke-dasharray: 20 10; stroke-dashoffset: -60; }
}

/* Débris de la tornade */
.wf-tornado-debris circle {
    fill: rgba(80, 60, 40, 0.8);
    animation: wf-debris-fly 2s ease-in-out infinite;
}

.wf-tornado-debris circle:nth-child(1) { animation-delay: 0s; }
.wf-tornado-debris circle:nth-child(2) { animation-delay: 0.3s; }
.wf-tornado-debris circle:nth-child(3) { animation-delay: 0.6s; }
.wf-tornado-debris circle:nth-child(4) { animation-delay: 0.9s; }
.wf-tornado-debris circle:nth-child(5) { animation-delay: 1.2s; }
.wf-tornado-debris circle:nth-child(6) { animation-delay: 1.5s; }

@keyframes wf-debris-fly {
    0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(30px, -50px) scale(1.2); }
}

/* ============================================
   ANIMATIONS RAFALES (SQUALLS)
   ============================================ */

.wf-squalls-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.wf-squall-line {
    stroke-linecap: round;
    animation: wf-squall-move 1.2s linear infinite;
}

/* Lignes avec différentes épaisseurs pour effet de profondeur */
.wf-squall-1 { stroke-width: 3; animation-delay: 0s; animation-duration: 1s; }
.wf-squall-2 { stroke-width: 5; animation-delay: 0.15s; animation-duration: 0.9s; }
.wf-squall-3 { stroke-width: 4; animation-delay: 0.35s; animation-duration: 1.1s; }
.wf-squall-4 { stroke-width: 6; animation-delay: 0.5s; animation-duration: 0.85s; }
.wf-squall-5 { stroke-width: 3; animation-delay: 0.7s; animation-duration: 1.15s; }
.wf-squall-6 { stroke-width: 5; animation-delay: 0.85s; animation-duration: 0.95s; }
.wf-squall-7 { stroke-width: 4; animation-delay: 1s; animation-duration: 1.05s; }

@keyframes wf-squall-move {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% {
        transform: translateX(250%);
        opacity: 0;
    }
}

/* Feuilles emportées par le vent */
.wf-leaf {
    animation: wf-leaf-fly 3s ease-in-out infinite;
}

.wf-leaf-1 { animation-duration: 2.5s; animation-delay: 0s; }
.wf-leaf-2 { animation-duration: 3.2s; animation-delay: 0.5s; }
.wf-leaf-3 { animation-duration: 2.8s; animation-delay: 1.2s; }
.wf-leaf-4 { animation-duration: 3.5s; animation-delay: 0.8s; }
.wf-leaf-5 { animation-duration: 2.6s; animation-delay: 1.8s; }
.wf-leaf-6 { animation-duration: 3s; animation-delay: 2.2s; }

@keyframes wf-leaf-fly {
    0% {
        transform: translate(-50px, 40px) rotate(0deg) scale(1.2);
        opacity: 0;
    }
    10% { opacity: 1; }
    25% {
        transform: translate(100px, 60px) rotate(180deg) scale(1);
    }
    50% {
        transform: translate(200px, 35px) rotate(360deg) scale(1.1);
    }
    75% {
        transform: translate(300px, 70px) rotate(540deg) scale(0.9);
    }
    90% { opacity: 1; }
    100% {
        transform: translate(450px, 50px) rotate(720deg) scale(1);
        opacity: 0;
    }
}

/* Parapluie emporté */
.wf-umbrella {
    animation: wf-umbrella-fly 6s ease-in-out infinite;
    transform-origin: 15px 0;
}

@keyframes wf-umbrella-fly {
    0% {
        transform: translate(-60px, 80px) rotate(-30deg);
        opacity: 0;
    }
    5% { opacity: 1; }
    20% {
        transform: translate(80px, 60px) rotate(15deg);
    }
    40% {
        transform: translate(180px, 100px) rotate(-20deg);
    }
    60% {
        transform: translate(280px, 50px) rotate(25deg);
    }
    80% {
        transform: translate(380px, 90px) rotate(-10deg);
    }
    95% { opacity: 1; }
    100% {
        transform: translate(480px, 70px) rotate(30deg);
        opacity: 0;
    }
}

/* Papiers volants */
.wf-paper {
    animation: wf-paper-fly 4s ease-in-out infinite;
}

.wf-paper-1 { animation-duration: 3.5s; animation-delay: 1s; }
.wf-paper-2 { animation-duration: 4.2s; animation-delay: 2.5s; }

@keyframes wf-paper-fly {
    0% {
        transform: translate(-40px, 120px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.9; }
    25% {
        transform: translate(80px, 90px) rotate(90deg);
    }
    50% {
        transform: translate(180px, 140px) rotate(180deg);
    }
    75% {
        transform: translate(300px, 100px) rotate(270deg);
    }
    90% { opacity: 0.9; }
    100% {
        transform: translate(450px, 130px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   EFFETS BRUME / BRUME SÈCHE / FUMÉE
   ============================================ */

/* Brume (mist) - plus dense que le brouillard */
.wf-layer--effects.mist {
    background: linear-gradient(180deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0.35) 30%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0.35) 70%,
        rgba(255,255,255,0.15) 100%);
    animation: wf-mist-drift 10s ease-in-out infinite;
}

@keyframes wf-mist-drift {
    0%, 100% { transform: translateX(0) scaleX(1); opacity: 0.6; }
    50% { transform: translateX(15px) scaleX(1.03); opacity: 0.75; }
}

/* Brume sèche (haze) - légère teinte jaunâtre */
.wf-layer--effects.haze {
    background: linear-gradient(180deg,
        rgba(255,248,220,0.1) 0%,
        rgba(255,248,220,0.2) 50%,
        rgba(255,248,220,0.1) 100%);
    animation: wf-haze-pulse 8s ease-in-out infinite;
}

@keyframes wf-haze-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

/* Fumée (smoke) - teinte grisâtre */
.wf-layer--effects.smoke {
    background: linear-gradient(180deg,
        rgba(100,100,100,0.15) 0%,
        rgba(100,100,100,0.3) 30%,
        rgba(100,100,100,0.35) 50%,
        rgba(100,100,100,0.3) 70%,
        rgba(100,100,100,0.15) 100%);
    animation: wf-smoke-drift 12s ease-in-out infinite;
}

@keyframes wf-smoke-drift {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 0.5;
    }
    33% {
        transform: translateX(10px) translateY(-5px);
        opacity: 0.65;
    }
    66% {
        transform: translateX(-5px) translateY(3px);
        opacity: 0.55;
    }
}

/* ============================================
   EFFET TEMPÊTE DE POUSSIÈRE / SABLE
   ============================================ */

.wf-layer--effects.dust-storm {
    background: linear-gradient(135deg,
        rgba(194,178,128,0.3) 0%,
        rgba(210,180,120,0.4) 30%,
        rgba(194,178,128,0.35) 60%,
        rgba(180,160,110,0.3) 100%);
    animation: wf-dust-storm 6s ease-in-out infinite;
}

@keyframes wf-dust-storm {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translateX(20px) scale(1.02);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-10px) scale(0.98);
        opacity: 0.6;
    }
    75% {
        transform: translateX(15px) scale(1.01);
        opacity: 0.65;
    }
}

/* ============================================
   EFFET CENDRES VOLCANIQUES
   ============================================ */

.wf-layer--effects.volcanic {
    background: linear-gradient(180deg,
        rgba(50,50,50,0.4) 0%,
        rgba(60,50,50,0.5) 30%,
        rgba(50,40,40,0.55) 50%,
        rgba(60,50,50,0.5) 70%,
        rgba(50,50,50,0.4) 100%);
    animation: wf-volcanic-pulse 5s ease-in-out infinite;
}

@keyframes wf-volcanic-pulse {
    0%, 100% { opacity: 0.6; filter: brightness(1); }
    30% { opacity: 0.75; filter: brightness(0.9); }
    60% { opacity: 0.65; filter: brightness(1.05); }
}

/* Lueur rouge occasionnelle (lave au loin) */
.wf-layer--effects.volcanic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(0deg,
        rgba(180,50,20,0.15) 0%,
        transparent 100%);
    animation: wf-lava-glow 8s ease-in-out infinite;
}

@keyframes wf-lava-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ============================================
   ICÔNES MÉTÉO SVG ANIMÉES
   ============================================ */

.wf-hero-icon-big {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.wf-icon-svg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    overflow: visible;
}

/* === SOLEIL === */
.wf-icon-sun .wf-icon-halo {
    animation: wf-icon-pulse 4s ease-in-out infinite;
}

.wf-icon-sun .wf-icon-corona {
    animation: wf-icon-corona-pulse 3s ease-in-out infinite;
}

.wf-icon-sun .wf-icon-rays {
    transform-origin: 60px 60px;
    animation: wf-icon-spin 45s linear infinite;
}

@keyframes wf-icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.03); }
}

@keyframes wf-icon-corona-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

@keyframes wf-icon-spin {
    to { transform: rotate(360deg); }
}

/* === LUNE === */
.wf-icon-moon .wf-icon-halo {
    animation: wf-icon-moon-glow 5s ease-in-out infinite;
}

.wf-icon-moon .wf-icon-star,
.wf-icon-moon-cloud .wf-icon-star {
    animation: wf-icon-twinkle 5s ease-in-out infinite;
}

.wf-icon-star-1 { animation-delay: 0s; animation-duration: 4.5s; }
.wf-icon-star-2 { animation-delay: 0.8s; animation-duration: 6s; }
.wf-icon-star-3 { animation-delay: 1.5s; animation-duration: 5s; }
.wf-icon-star-4 { animation-delay: 2.2s; animation-duration: 7s; }
.wf-icon-star-5 { animation-delay: 3s; animation-duration: 4.8s; }
.wf-icon-star-6 { animation-delay: 1.2s; animation-duration: 6.5s; }
.wf-icon-star-7 { animation-delay: 2.8s; animation-duration: 5.5s; }
.wf-icon-star-8 { animation-delay: 0.5s; animation-duration: 7.5s; }

@keyframes wf-icon-moon-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.02); }
}

@keyframes wf-icon-twinkle {
    0%, 100% { opacity: 0.4; }
    15% { opacity: 1; }
    30% { opacity: 0.5; }
    50% { opacity: 0.9; }
    70% { opacity: 0.3; }
    85% { opacity: 0.8; }
}

/* === NUAGES === */
.wf-icon-cloud .wf-icon-cloud-body,
.wf-icon-sun-cloud .wf-icon-cloud-body,
.wf-icon-moon-cloud .wf-icon-cloud-body {
    animation: wf-icon-cloud-float 6s ease-in-out infinite;
}

.wf-icon-sun-cloud .wf-icon-rays {
    transform-origin: 35px 35px;
    animation: wf-icon-spin 45s linear infinite;
}

@keyframes wf-icon-cloud-float {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* === BROUILLARD === */
.wf-icon-fog-1 { animation: wf-icon-fog-drift 4s ease-in-out infinite; }
.wf-icon-fog-2 { animation: wf-icon-fog-drift 5s ease-in-out infinite 0.5s; }
.wf-icon-fog-3 { animation: wf-icon-fog-drift 4.5s ease-in-out infinite 1s; }
.wf-icon-fog-4 { animation: wf-icon-fog-drift 5.5s ease-in-out infinite 1.5s; }

@keyframes wf-icon-fog-drift {
    0%, 100% { transform: translateX(0); opacity: 0.8; }
    50% { transform: translateX(8px); opacity: 0.5; }
}

/* === PLUIE / BRUINE === */
.wf-icon-drizzle .wf-icon-drop-1,
.wf-icon-drizzle .wf-icon-drop-2,
.wf-icon-drizzle .wf-icon-drop-3,
.wf-icon-drizzle .wf-icon-drop-4,
.wf-icon-drizzle .wf-icon-drop-5,
.wf-icon-drizzle .wf-icon-drop-6 {
    animation: wf-icon-drizzle-fall 1.5s ease-in infinite;
}

.wf-icon-drop-1 { animation-delay: 0s; }
.wf-icon-drop-2 { animation-delay: 0.25s; }
.wf-icon-drop-3 { animation-delay: 0.5s; }
.wf-icon-drop-4 { animation-delay: 0.75s; }
.wf-icon-drop-5 { animation-delay: 1s; }
.wf-icon-drop-6 { animation-delay: 1.25s; }

@keyframes wf-icon-drizzle-fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(25px); opacity: 0; }
}

/* Cible les groupes de gouttes (animation sur le groupe entier) */
.wf-icon-rain .wf-icon-raindrops > g,
.wf-icon-storm .wf-icon-raindrops > g {
    animation: wf-icon-rain-fall 1.4s ease-in infinite;
}

/* Les animation-delay sont définis en inline dans le JS */

@keyframes wf-icon-rain-fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(40px); opacity: 0; }
}

/* Pluie forte - un peu plus rapide */
.wf-icon-heavy .wf-icon-raindrops > g {
    animation-duration: 1s;
}

/* === NEIGE === */
/* Cible les path directement, animation-delay définis en inline dans le JS */
.wf-icon-snow .wf-icon-snowflakes path {
    animation: wf-icon-snow-fall 2.5s ease-in infinite;
}

@keyframes wf-icon-snow-fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(45px); opacity: 0; }
}

/* Neige forte - un peu plus rapide */
.wf-icon-snow.wf-icon-heavy .wf-icon-snowflakes path {
    animation-duration: 1.8s;
}

/* === ORAGE === */

/* Éclair principal - flash réaliste avec double strike (cycle rapide 2s) */
.wf-icon-storm .wf-icon-lightning-main {
    animation: wf-icon-lightning-main 2s ease-out infinite;
}

@keyframes wf-icon-lightning-main {
    0%, 100% { opacity: 0; }
    /* Premier flash */
    15% { opacity: 0; }
    17% { opacity: 1; }
    20% { opacity: 0.15; }
    22% { opacity: 1; }
    26% { opacity: 0.8; }
    30% { opacity: 0; }
    /* Second flash (return stroke) */
    35% { opacity: 0; }
    37% { opacity: 0.7; }
    40% { opacity: 0.1; }
    42% { opacity: 0.5; }
    46% { opacity: 0; }
}

/* Éclairs secondaires - décalés */
.wf-icon-storm .wf-icon-lightning-secondary {
    animation: wf-icon-lightning-secondary 2s ease-out infinite;
    animation-delay: 0.08s;
}

@keyframes wf-icon-lightning-secondary {
    0%, 100% { opacity: 0; }
    17% { opacity: 0; }
    19% { opacity: 0.6; }
    22% { opacity: 0.1; }
    24% { opacity: 0.5; }
    28% { opacity: 0; }
}

/* Flash d'illumination du nuage (synchronisé avec l'éclair) */
.wf-icon-storm .wf-icon-cloud-flash {
    animation: wf-icon-cloud-illuminate 2s ease-out infinite;
}

@keyframes wf-icon-cloud-illuminate {
    0%, 100% { opacity: 0; }
    15% { opacity: 0; }
    17% { opacity: 0.9; }
    20% { opacity: 0.3; }
    22% { opacity: 0.8; }
    30% { opacity: 0; }
    35% { opacity: 0; }
    37% { opacity: 0.5; }
    42% { opacity: 0.2; }
    46% { opacity: 0; }
}

/* Point d'impact lumineux */
.wf-icon-storm .wf-icon-impact {
    animation: wf-icon-impact-flash 2s ease-out infinite;
}

@keyframes wf-icon-impact-flash {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    17% { opacity: 0; transform: scale(0.5); }
    19% { opacity: 1; transform: scale(1.6); }
    22% { opacity: 0.4; transform: scale(1.2); }
    24% { opacity: 0.8; transform: scale(1.4); }
    30% { opacity: 0; transform: scale(0.8); }
}

/* Tremblement du nuage (grondement) */
.wf-icon-storm .wf-icon-cloud-body {
    animation: wf-icon-storm-rumble 2s ease-in-out infinite;
}

@keyframes wf-icon-storm-rumble {
    0%, 100% { transform: translateX(0) translateY(0); }
    /* Secousse avec l'éclair */
    17% { transform: translateX(0) translateY(0); }
    19% { transform: translateX(-2px) translateY(-1px); }
    21% { transform: translateX(2px) translateY(0); }
    23% { transform: translateX(-1px) translateY(1px); }
    25% { transform: translateX(1px) translateY(-1px); }
    28% { transform: translateX(0) translateY(0); }
    /* Légère vibration continue */
    60% { transform: translateX(0.5px) translateY(0); }
    70% { transform: translateX(-0.5px) translateY(0); }
    80% { transform: translateX(0) translateY(0); }
}

/* Gouttes de pluie d'orage - animation de chute */
.wf-icon-storm .wf-icon-storm-drop {
    animation: wf-icon-storm-rain-fall 0.9s ease-in infinite;
}

@keyframes wf-icon-storm-rain-fall {
    0% { transform: translateY(0) translateX(0); opacity: 0.9; }
    100% { transform: translateY(35px) translateX(-8px); opacity: 0; }
}

/* === TEMPÊTE DE SABLE === */
.wf-icon-sandstorm .wf-icon-sand-grain {
    animation: wf-icon-sand-drift 1.8s ease-in-out infinite;
}

@keyframes wf-icon-sand-drift {
    0% { transform: translateX(0); opacity: var(--grain-opacity, 0.7); }
    50% { transform: translateX(12px); opacity: calc(var(--grain-opacity, 0.7) * 0.6); }
    100% { transform: translateX(25px); opacity: 0; }
}

.wf-icon-sandstorm .wf-icon-sand-swirl {
    animation: wf-icon-sand-swirl-spin 2.5s ease-in-out infinite;
}

@keyframes wf-icon-sand-swirl-spin {
    0%, 100% { opacity: 0.6; transform: rotate(0deg) scale(1); }
    50% { opacity: 0.9; transform: rotate(15deg) scale(1.1); }
}

.wf-icon-sandstorm .wf-icon-sand-lines path {
    animation: wf-icon-sand-flow 2s ease-in-out infinite;
}

@keyframes wf-icon-sand-flow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.wf-icon-sandstorm .wf-icon-sand-veil {
    animation: wf-icon-sand-veil-pulse 4s ease-in-out infinite;
}

@keyframes wf-icon-sand-veil-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.wf-icon-sandstorm .wf-icon-cloud-body {
    animation: wf-icon-sand-cloud-drift 6s ease-in-out infinite;
}

@keyframes wf-icon-sand-cloud-drift {
    0%, 100% { transform: translate(-2px, -2px) scale(1.08); }
    50% { transform: translate(2px, -2px) scale(1.08); }
}

/* Grands écrans verticaux (1080x1920) */
@media (min-height: 1600px) {
    .wf-hero-temp {
        font-size: 7rem;
    }

    .wf-hero-icon-big {
        font-size: 8rem;
    }

    .wf-radar-container {
        height: 400px;
    }
}