/* ===================================
   SEASONAL THEMES - LandOfParks
   Styles automatiques par saison
   =================================== */

/* === VARIABLES SAISONNIÈRES === */
/* Définies dynamiquement par PHP */

/* === NAVBAR SAISONNIÈRE === */
.navbar {
    background: var(--season-navbar) !important;
    transition: background 0.5s ease;
}

.navbar-logo {
    color: var(--season-primary) !important;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--season-primary) !important;
    background: var(--season-accent) !important;
}

/* Animation du logo lors des changements de saison */
.navbar-logo img {
    transition: transform 0.3s ease;
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

/* === BANNIÈRE SAISONNIÈRE === */
.seasonal-banner {
    background: var(--season-gradient);
    color: white;
    padding: 15px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.seasonal-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

.seasonal-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.seasonal-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.seasonal-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* === EFFETS SAISONNIERS === */

/* Container pour les particules */
.seasonal-effects {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 100 !important;
    overflow: hidden !important;
}

/* Particules individuelles */
.seasonal-particle {
    position: absolute;
    pointer-events: none;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* === HIVER - NEIGE === */
.season-winter .snowflake {
    color: white;
    font-size: 20px;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* === PRINTEMPS - PÉTALES === */
.season-spring .petal {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffb6c1, #ff69b4);
    border-radius: 50% 0 50% 0;
    animation: petalFall linear infinite;
    opacity: 0.7;
}

@keyframes petalFall {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(30px);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) translateX(0);
        opacity: 0;
    }
}

/* === ÉTÉ - RAYONS DE SOLEIL === */
.season-summer .sunshine {
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,215,0,0.3), transparent);
    animation: sunRay 3s ease-in-out infinite;
}

@keyframes sunRay {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) scaleY(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(10px) scaleY(1.2);
    }
}

/* === AUTOMNE - FEUILLES === */
.season-autumn .leaf {
    width: 20px;
    height: 20px;
    animation: leafFall linear infinite;
}

.leaf::before {
    content: '🍂';
    font-size: 20px;
}

@keyframes leafFall {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-50px);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(540deg) translateX(0);
        opacity: 0;
    }
}

/* === THÈMES PAR SAISON === */

/* Hiver */
.season-winter {
    --primary-color: #4A90E2;
    --secondary-color: #5BC0DE;
}

.season-winter .hero {
    background-blend-mode: overlay;
}

.season-winter .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Printemps */
.season-spring {
    --primary-color: #4CAF50;
    --secondary-color: #8BC34A;
}

.season-spring .btn-primary {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.4);
}

/* Été */
.season-summer {
    --primary-color: #FF9800;
    --secondary-color: #FFC107;
}

.season-summer .btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

/* Automne */
.season-autumn {
    --primary-color: #FF5722;
    --secondary-color: #FF7043;
}

.season-autumn .btn-primary {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .seasonal-banner {
        padding: 10px 0;
    }
    
    .seasonal-icon {
        font-size: 1.5rem;
    }
    
    .seasonal-text {
        font-size: 0.9rem;
    }
    
    /* Moins de particules sur mobile */
    .seasonal-particle:nth-child(n+11) {
        display: none;
    }
}

/* Réduire les effets si l'utilisateur préfère moins d'animations */
@media (prefers-reduced-motion: reduce) {
    .seasonal-effects {
        display: none;
    }
    
    .seasonal-banner::before {
        animation: none;
    }
    
    .seasonal-icon {
        animation: none;
    }
}
