/* ============================================
   GOLDEN BANK - DECORATIONS DE NOEL
   Fichier: christmas.css
   Pour désactiver: retirer l'import dans layout.php
   ============================================ */

/* ============================================
   BANNIERE FESTIVE
   ============================================ */
.christmas-banner {
    background: linear-gradient(135deg, #1a0a0a 0%, #0d1a0d 50%, #1a0a0a 100%);
    border-bottom: 2px solid var(--primary-gold);
    padding: 0.6rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1001;
}

.christmas-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: christmas-shine 4s ease-in-out infinite;
}

@keyframes christmas-shine {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.christmas-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.christmas-banner-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.christmas-banner-text i {
    font-size: 1.1rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.christmas-banner-text .fa-tree {
    color: #2e7d32;
    text-shadow: 0 0 10px rgba(46, 125, 50, 0.5);
}

.christmas-banner-text .fa-star {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.christmas-banner-text .fa-gift {
    color: #c62828;
    text-shadow: 0 0 10px rgba(198, 40, 40, 0.5);
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.christmas-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.christmas-countdown strong {
    color: var(--primary-gold);
}

/* ============================================
   BONNET DE NOEL SUR LE LOGO
   ============================================ */
.brand-logo-wrapper {
    position: relative;
}

.christmas-hat {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    width: 35px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    animation: hat-bounce 3s ease-in-out infinite;
}

@keyframes hat-bounce {
    0%, 100% { transform: translateX(-50%) rotate(5deg) translateY(0); }
    50% { transform: translateX(-50%) rotate(5deg) translateY(-2px); }
}

/* Bonnet désactivé sur la page vitrine */

/* ============================================
   FLOCONS DE NEIGE
   ============================================ */
.snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -30px;
    color: var(--primary-gold);
    font-size: 1rem;
    opacity: 0;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
}

@keyframes snowfall {
    0% {
        transform: translateY(-30px) rotate(0deg) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(calc(100vh + 30px)) rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

/* Variations de flocons */
.snowflake:nth-child(odd) {
    animation-name: snowfall-reverse;
}

@keyframes snowfall-reverse {
    0% {
        transform: translateY(-30px) rotate(0deg) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(calc(100vh + 30px)) rotate(-360deg) translateX(-50px);
        opacity: 0;
    }
}

/* ============================================
   GUIRLANDE LUMINEUSE (NAVBAR)
   ============================================ */
.christmas-lights {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    pointer-events: none;
    z-index: 100;
    transform: translateY(100%);
}

.christmas-light {
    width: 8px;
    height: 12px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: light-glow 1.5s ease-in-out infinite;
}

.christmas-light::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.christmas-light.gold {
    background: #FFD700;
    box-shadow: 0 0 10px #FFD700, 0 0 20px rgba(255, 215, 0, 0.5);
}
.christmas-light.red {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444, 0 0 20px rgba(255, 68, 68, 0.5);
    animation-delay: 0.2s;
}
.christmas-light.green {
    background: #44ff44;
    box-shadow: 0 0 10px #44ff44, 0 0 20px rgba(68, 255, 68, 0.5);
    animation-delay: 0.4s;
}
.christmas-light.white {
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255, 255, 255, 0.5);
    animation-delay: 0.6s;
}

@keyframes light-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* Cable de la guirlande */
.christmas-lights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #222;
    border-radius: 1px;
}

/* ============================================
   EFFET FESTIF SUR LES CARDS
   ============================================ */
.card::after,
.balance-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 70%);
    pointer-events: none;
}

/* ============================================
   EFFET SCINTILLEMENT SUR LES BOUTONS
   ============================================ */
.btn-primary,
.btn-hero-primary,
.btn-golden-access,
.homepage-nav-cta,
.lottery-banner-btn {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-hero-primary::after,
.btn-golden-access::after,
.homepage-nav-cta::after,
.lottery-banner-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
    animation: button-shimmer 3s ease-in-out infinite;
}

@keyframes button-shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

/* ============================================
   NEIGE ACCUMULEE SUR LE FOOTER
   ============================================ */
.site-footer {
    position: relative;
    overflow: visible;
}

.footer-snow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
    z-index: 10;
}

.footer-snow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='gold1' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23FFD700'/%3E%3Cstop offset='100%25' style='stop-color:%23D4AF37'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 20 Q5 8 15 12 Q25 5 35 10 Q45 3 55 8 Q65 2 75 9 Q85 4 95 11 Q100 7 100 20 Z' fill='url(%23gold1)'/%3E%3C/svg%3E") repeat-x;
    background-size: 200px 20px;
    filter: drop-shadow(0 -3px 6px rgba(212, 175, 55, 0.6));
}

.footer-snow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 100%;
    height: 14px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q8 6 18 9 Q28 3 40 7 Q52 2 62 8 Q74 4 85 9 Q95 5 100 14 Z' fill='%23B8860B' fill-opacity='0.7'/%3E%3C/svg%3E") repeat-x;
    background-size: 180px 14px;
}

/* ============================================
   ETOILE FILANTE
   ============================================ */
.shooting-star {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow:
        0 0 10px 2px #FFD700,
        0 0 20px 4px rgba(255, 215, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 4px;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), #FFD700);
    transform: translateY(-50%);
    border-radius: 2px;
}

.shooting-star.animate {
    animation: shooting-star-move 1.5s ease-out forwards;
}

@keyframes shooting-star-move {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(-35deg);
    }
    10% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50vw - 100px), calc(50vh + 100px)) rotate(-35deg);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .christmas-banner-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .christmas-banner-text {
        font-size: 0.85rem;
    }

    .christmas-countdown {
        font-size: 0.75rem;
    }

    .christmas-hat {
        width: 28px;
        top: -10px;
    }

    .snowflake {
        font-size: 0.8rem;
    }
}
