/* ============================================
   THÃˆME DE NOÃ‹L - CROU SAN PEDRO
   ============================================ */

/* Animation de neige */
@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px);
        opacity: 0.3;
    }
}

@keyframes snowfall-reverse {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(-100px);
        opacity: 0.3;
    }
}

/* Conteneur de neige */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
}

.snowflake:nth-child(odd) {
    animation-name: snowfall-reverse;
}

/* Animation de guirlandes lumineuses */
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

@keyframes color-shift {
    0% { color: #ff0000; }
    25% { color: #00ff00; }
    50% { color: #ffff00; }
    75% { color: #0000ff; }
    100% { color: #ff0000; }
}

/* Guirlandes en haut de page */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 9998;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 100, 0, 0.3), transparent);
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: twinkle 1.5s ease-in-out infinite, color-shift 3s linear infinite;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.light:nth-child(2n) {
    animation-delay: 0.3s;
}

.light:nth-child(3n) {
    animation-delay: 0.6s;
}

.light:nth-child(4n) {
    animation-delay: 0.9s;
}

/* Couleurs de NoÃ«l pour le header */
.header {
    background: linear-gradient(135deg, #165B33 0%, #BB2528 50%, #165B33 100%) !important;
    box-shadow: 0 4px 20px rgba(187, 37, 40, 0.3);
}

.nav-logo h3 {
    color: #FFD700 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: #fff !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #FFD700 !important;
    transform: translateY(-2px);
}

/* Hero section avec thÃ¨me de NoÃ«l */
.hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: 'ðŸŽ„';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    50% {
        transform: translateY(-55%) rotate(5deg);
    }
}

.hero-title {
    color: #FFD700 !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Boutons avec style de NoÃ«l */
.btn-primary {
    background: linear-gradient(135deg, #BB2528 0%, #8B1E1F 100%) !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 4px 15px rgba(187, 37, 40, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8B1E1F 0%, #BB2528 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(187, 37, 40, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #165B33 0%, #0f3d22 100%) !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 4px 15px rgba(22, 91, 51, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0f3d22 0%, #165B33 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 91, 51, 0.6);
}

/* Cards avec bordures de NoÃ«l */
.service-card, .event-card, .quick-card {
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #BB2528, #FFD700, #165B33);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.service-card:hover, .event-card:hover, .quick-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(187, 37, 40, 0.3);
}

/* IcÃ´nes avec animation */
.service-icon i, .contact-item i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Section titles avec style de NoÃ«l */
.section-title {
    color: #BB2528 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: 'â„ï¸';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Footer avec couleurs de NoÃ«l */
.footer {
    background: linear-gradient(135deg, #165B33 0%, #0f3d22 100%) !important;
    border-top: 4px solid #FFD700;
}

.footer h3 {
    color: #FFD700 !important;
}

.footer a {
    color: #fff !important;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FFD700 !important;
}

/* Carrousel avec style de NoÃ«l */
.carousel-btn {
    background: linear-gradient(135deg, #BB2528 0%, #8B1E1F 100%) !important;
    border: 2px solid #FFD700 !important;
    color: #fff !important;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #8B1E1F 0%, #BB2528 100%) !important;
    transform: scale(1.1);
}

.dot {
    background-color: #165B33 !important;
    border: 2px solid #FFD700 !important;
}

.dot.active {
    background-color: #BB2528 !important;
}

/* Badge de NoÃ«l */
.christmas-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #BB2528 0%, #8B1E1F 100%);
    color: #FFD700;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(187, 37, 40, 0.5);
    z-index: 9997;
    animation: bounce 2s ease-in-out infinite;
    border: 3px solid #FFD700;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .christmas-lights {
        height: 30px;
    }
    
    .light {
        width: 8px;
        height: 8px;
    }
    
    .christmas-badge {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 12px;
    }
}