/* === MAGIE DE NOËL - Effets festifs supplémentaires === */

/* Amélioration du fond avec aurore boréale magique */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 255, 157, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    animation: aurora 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes aurora {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1) translateY(-20px);
    }
}

/* Guirlandes lumineuses scintillantes en haut de la page */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 9998;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 20px currentColor;
    animation: twinkle-light 2s ease-in-out infinite;
    margin-top: 10px;
}

.light:nth-child(5n+1) {
    background: #ff4444;
    color: #ff4444;
    animation-delay: 0s;
}

.light:nth-child(5n+2) {
    background: #ffd700;
    color: #ffd700;
    animation-delay: 0.4s;
}

.light:nth-child(5n+3) {
    background: #44ff44;
    color: #44ff44;
    animation-delay: 0.8s;
}

.light:nth-child(5n+4) {
    background: #4444ff;
    color: #4444ff;
    animation-delay: 1.2s;
}

.light:nth-child(5n+5) {
    background: #ff44ff;
    color: #ff44ff;
    animation-delay: 1.6s;
}

@keyframes twinkle-light {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px currentColor;
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
        box-shadow: 0 0 5px currentColor;
    }
}

/* Étoiles filantes magiques */
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: shoot 3s linear infinite;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
}

.shooting-star:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.shooting-star:nth-child(2) {
    top: 30%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 3s;
}

.shooting-star:nth-child(3) {
    top: 50%;
    left: 80%;
    animation-delay: 6s;
    animation-duration: 2.8s;
}

.shooting-star:nth-child(4) {
    top: 70%;
    left: 20%;
    animation-delay: 9s;
    animation-duration: 3.2s;
}

@keyframes shoot {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translate(300px, 300px) rotate(-45deg);
        opacity: 0;
    }
}

/* Particules scintillantes magiques */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9996;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle-float 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.sparkle:nth-child(odd) {
    animation-duration: 5s;
}

.sparkle:nth-child(even) {
    animation-duration: 6s;
}

@keyframes sparkle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0);
    }
}

/* Effet de lueur magique sur le header */
.header {
    position: relative;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(255, 215, 0, 0.3),
        inset 0 0 60px rgba(255, 215, 0, 0.1);
}

.header::before {
    animation: twinkle 2s infinite, rotate-star 4s linear infinite;
}

.header::after {
    animation: twinkle 2s infinite 1s, rotate-star 4s linear infinite 1s;
}

@keyframes rotate-star {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

/* Paillettes dorées autour des boutons */
.btn-primary, .btn-secondary, .btn-large {
    position: relative;
    overflow: visible;
}

.btn-primary::before,
.btn-secondary::before,
.btn-large::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2em;
    animation: float-sparkle 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-sparkle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-5px) rotate(180deg);
        opacity: 1;
    }
}

/* Flocons de neige améliorés avec différentes tailles */
.snowflake {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

.snowflake:nth-child(odd) {
    font-size: 2em;
}

.snowflake:nth-child(3n) {
    font-size: 1em;
}

/* Cloches de Noël animées dans les coins */
.christmas-bells {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 3em;
    z-index: 9995;
    animation: swing-bell 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.5));
    pointer-events: none;
}

@keyframes swing-bell {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* Cadeaux animés */
.christmas-gift {
    position: fixed;
    bottom: 20px;
    left: 80px;
    font-size: 2.5em;
    z-index: 9995;
    animation: bounce-gift 1.5s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(255, 0, 0, 0.4));
    pointer-events: none;
}

@keyframes bounce-gift {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* Sapin de Noël décoratif */
.christmas-tree {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 4em;
    z-index: 9995;
    animation: tree-glow 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 20px rgba(0, 255, 0, 0.4));
    pointer-events: none;
}

@keyframes tree-glow {
    0%, 100% {
        filter: drop-shadow(0 5px 20px rgba(0, 255, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 5px 30px rgba(255, 215, 0, 0.6));
    }
}

/* Effet de brillance sur le titre */
.title {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffd700 25%,
        #ffffff 50%,
        #ffd700 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Neige au sol avec effet de accumulation */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 9994;
}

/* Effet de gel sur les cards */
.card {
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(173, 216, 230, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive - Réduire les effets sur mobile */
@media (max-width: 768px) {
    .christmas-lights {
        height: 40px;
    }

    .light {
        width: 8px;
        height: 8px;
    }

    .christmas-bells,
    .christmas-gift {
        font-size: 2em;
        bottom: 10px;
        left: 10px;
    }

    .christmas-tree {
        font-size: 2.5em;
        bottom: 10px;
        right: 10px;
    }

    .shooting-star {
        display: none; /* Moins d'étoiles filantes sur mobile pour la performance */
    }
}
