/*
 * ==========================================================
 * SEASONAL - Décorations saisonnières discrètes
 * ==========================================================
 */

/* Les décorations sont invisibles par défaut */
.seasonal-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* ---- NOËL ---- */
.season--christmas .navbar {
    border-bottom-color: rgba(192, 57, 43, 0.15);
}

.season--christmas .sparkle-border::after {
    background: linear-gradient(90deg, transparent, #c0392b, #27ae60, #c0392b, transparent);
    background-size: 200% 100%;
}

/* Flocons */
.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    top: -20px;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(var(--color-sparkle-rgb), 0.3);
}

@keyframes snowfall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* ---- PÂQUES ---- */
.season--easter .logo-accent {
    color: #E8A0BF;
}

/* ---- PRINTEMPS ---- */
.season--spring .logo-accent {
    color: #5B8C5A;
}

/* Pétales */
.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #E8A0BF;
    border-radius: 50% 0 50% 50%;
    top: -20px;
    opacity: 0.5;
    animation: petalfall linear infinite;
}

@keyframes petalfall {
    0% {
        transform: translateY(-20px) rotate(0deg) translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(30px);
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(-10px);
        opacity: 0;
    }
}

/* ---- AUTOMNE ---- */
.season--autumn .logo-accent {
    color: #D35400;
}

.leaf {
    position: absolute;
    top: -20px;
    font-size: 1.2rem;
    animation: leaffall linear infinite;
}

@keyframes leaffall {
    0% {
        transform: translateY(-20px) rotate(0deg) translateX(0);
        opacity: 0.7;
    }
    33% {
        transform: translateY(33vh) rotate(120deg) translateX(40px);
    }
    66% {
        transform: translateY(66vh) rotate(240deg) translateX(-20px);
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(10px);
        opacity: 0;
    }
}

/* ---- ÉTÉ ---- */
.season--summer .logo-accent {
    color: var(--color-sparkle);
}

/* Réduire les animations sur mobile pour la performance */
@media (max-width: 768px) {
    .snowflake, .petal, .leaf {
        display: none;
    }
    .snowflake:nth-child(-n+3),
    .petal:nth-child(-n+2),
    .leaf:nth-child(-n+2) {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .snowflake, .petal, .leaf { display: none; }
}
