/* Animations de Noël */
#christmas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

/* Flocons de neige */
.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Effet de neige au sol */
.snow-ground {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
    z-index: 9997;
}

/* Guirlandes lumineuses */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(
        90deg,
        #ff0000 0%, #00ff00 25%, #0000ff 50%, #ffff00 75%, #ff00ff 100%
    );
    background-size: 200% 100%;
    animation: lights-move 3s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 9996;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes lights-move {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Étoiles scintillantes */
.christmas-star {
    position: absolute;
    color: #ffd700;
    font-size: 20px;
    animation: twinkle 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Bordure festive */
.christmas-border {
    position: fixed;
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ffff00) 1;
    border-image-slice: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9995;
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Bonhommes de neige animés */
.snowman {
    position: fixed;
    bottom: 50px;
    width: 60px;
    height: 80px;
    pointer-events: none;
    z-index: 9994;
    animation: snowman-float 3s ease-in-out infinite;
}

@keyframes snowman-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Message de Noël */
.christmas-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    z-index: 10000;
    pointer-events: auto;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #d32f2f;
    display: none;
    animation: message-pulse 2s ease-in-out infinite;
}

.christmas-message.show {
    display: block;
}

@keyframes message-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Particules de neige */
.snow-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: particle-fall linear infinite;
    pointer-events: none;
}

@keyframes particle-fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Désactiver les animations sur mobile pour les performances */
@media (max-width: 768px) {
    .snowflake,
    .christmas-star,
    .snow-particle {
        display: none;
    }
    
    .christmas-lights {
        opacity: 0.3;
    }
}
