/* ============================================
   THÈME DE NOËL 2025 - CROU SAN PEDRO
   Animations et effets améliorés
   ============================================ */

/* Variables CSS pour faciliter la personnalisation */
:root {
    --christmas-red: #BB2528;
    --christmas-green: #165B33;
    --christmas-gold: #FFD700;
    --christmas-white: #FFFFFF;
    --christmas-dark-red: #8B1E1F;
    --christmas-dark-green: #0f3d22;
    --snow-color: rgba(255, 255, 255, 0.9);
}

/* ===== FLOCONS DE NEIGE AMÉLIORÉS ===== */
@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(100px) rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes snowfall-reverse {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(-100px) rotate(-360deg);
        opacity: 0.3;
    }
}

@keyframes snowfall-zigzag {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(50px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-30px) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(40px) rotate(270deg);
    }
    100% {
        transform: translateY(110vh) translateX(0) rotate(360deg);
        opacity: 0.3;
    }
}

.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: var(--snow-color);
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 255, 255, 0.6);
    animation: snowfall linear infinite;
    user-select: none;
}

.snowflake:nth-child(3n) {
    animation-name: snowfall-reverse;
}

.snowflake:nth-child(5n) {
    animation-name: snowfall-zigzag;
}

/* Variantes de tailles pour plus de réalisme */
.snowflake.small {
    font-size: 0.6em;
    opacity: 0.7;
}

.snowflake.medium {
    font-size: 1em;
    opacity: 0.85;
}

.snowflake.large {
    font-size: 1.4em;
    opacity: 1;
}

/* ===== GUIRLANDES LUMINEUSES AMÉLIORÉES ===== */
@keyframes twinkle-fast {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.85);
        filter: brightness(1.5);
    }
}

@keyframes color-shift-smooth {
    0% { 
        background: radial-gradient(circle, #ff0000, #cc0000);
        box-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000;
    }
    20% { 
        background: radial-gradient(circle, #ffff00, #cccc00);
        box-shadow: 0 0 15px #ffff00, 0 0 30px #ffff00;
    }
    40% { 
        background: radial-gradient(circle, #00ff00, #00cc00);
        box-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00;
    }
    60% { 
        background: radial-gradient(circle, #0000ff, #0000cc);
        box-shadow: 0 0 15px #0000ff, 0 0 30px #0000ff;
    }
    80% { 
        background: radial-gradient(circle, #ff00ff, #cc00cc);
        box-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff;
    }
    100% { 
        background: radial-gradient(circle, #ff0000, #cc0000);
        box-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000;
    }
}

@keyframes swing {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    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.4), transparent);
}

.christmas-lights::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #165B33 0px,
        #165B33 20px,
        #0f3d22 20px,
        #0f3d22 40px
    );
    animation: swing 3s ease-in-out infinite;
}

.light {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    animation: twinkle-fast 1.2s ease-in-out infinite, color-shift-smooth 4s linear infinite;
    position: relative;
    z-index: 1;
}

.light::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #165B33;
}

.light:nth-child(2n) {
    animation-delay: 0.2s, 0.8s;
}

.light:nth-child(3n) {
    animation-delay: 0.4s, 1.6s;
}

.light:nth-child(4n) {
    animation-delay: 0.6s, 2.4s;
}

.light:nth-child(5n) {
    animation-delay: 0.8s, 3.2s;
}

/* ===== DÉCORATIONS DE NOËL FLOTTANTES ===== */
@keyframes float-decoration {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.christmas-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}

.decoration {
    position: absolute;
    font-size: 2rem;
    animation: float-decoration 6s ease-in-out infinite;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* ===== THÈME HEADER NOËL 2025 ===== */
.header {
    background: linear-gradient(135deg, #165B33 0%, #BB2528 25%, #165B33 50%, #BB2528 75%, #165B33 100%) !important;
    background-size: 200% 100% !important;
    animation: gradient-shift 8s ease infinite;
    box-shadow: 0 4px 20px rgba(187, 37, 40, 0.4), 0 0 40px rgba(22, 91, 51, 0.3);
    border-bottom: 3px solid var(--christmas-gold);
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-logo h3 {
    color: var(--christmas-gold) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.5);
    animation: glow-text 2s ease-in-out infinite;
}

@keyframes glow-text {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    }
}

.nav-link {
    color: #fff !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--christmas-gold);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--christmas-gold) !important;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== HERO SECTION NOËL 2025 ===== */
.hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🎄';
    position: absolute;
    font-size: 400px;
    opacity: 0.08;
    right: -80px;
    top: 50%;
    transform: translateY(-50%) rotate(-10deg);
    animation: tree-sway 8s ease-in-out infinite;
}

@keyframes tree-sway {
    0%, 100% {
        transform: translateY(-50%) rotate(-10deg);
    }
    50% {
        transform: translateY(-48%) rotate(-5deg);
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(187, 37, 40, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(22, 91, 51, 0.1) 0%, transparent 50%);
    animation: aurora 10s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.hero-title {
    color: var(--christmas-gold) !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.6);
    animation: title-shine 3s ease-in-out infinite;
}

@keyframes title-shine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.hero-subtitle {
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* ===== BOUTONS NOËL 2025 ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-dark-red) 100%) !important;
    border: 2px solid var(--christmas-gold) !important;
    box-shadow: 0 4px 15px rgba(187, 37, 40, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--christmas-dark-red) 0%, var(--christmas-red) 100%) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(187, 37, 40, 0.7), 0 0 30px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-dark-green) 100%) !important;
    border: 2px solid var(--christmas-gold) !important;
    box-shadow: 0 4px 15px rgba(22, 91, 51, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--christmas-dark-green) 0%, var(--christmas-green) 100%) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(22, 91, 51, 0.7), 0 0 30px rgba(255, 215, 0, 0.5);
}

/* ===== 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, var(--christmas-red), var(--christmas-gold), var(--christmas-green));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before, .event-card::before, .quick-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.6s ease;
}

.service-card:hover::before, .event-card:hover::before, .quick-card:hover::before {
    transform: rotate(180deg);
}

.service-card:hover, .event-card:hover, .quick-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(187, 37, 40, 0.4), 0 0 30px rgba(255, 215, 0, 0.3);
}

/* ===== ICÔNES AVEC ANIMATION ===== */
.service-icon i, .contact-item i {
    animation: icon-pulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

/* ===== TITRES DE SECTION ===== */
.section-title {
    color: var(--christmas-red) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '🎅';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    animation: santa-wave 2s ease-in-out infinite;
}

.section-title::after {
    content: '❄️';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    animation: snowflake-spin 4s linear infinite;
}

@keyframes santa-wave {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    25% {
        transform: translateY(-50%) rotate(-10deg);
    }
    75% {
        transform: translateY(-50%) rotate(10deg);
    }
}

@keyframes snowflake-spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* ===== FOOTER NOËL 2025 ===== */
.footer {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-dark-green) 100%) !important;
    border-top: 4px solid var(--christmas-gold);
    box-shadow: 0 -4px 20px rgba(22, 91, 51, 0.4);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 100px,
        rgba(255, 215, 0, 0.05) 100px,
        rgba(255, 215, 0, 0.05) 200px
    );
    pointer-events: none;
}

.footer h3 {
    color: var(--christmas-gold) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer a {
    color: #fff !important;
    transition: all 0.3s ease;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--christmas-gold);
    transition: width 0.3s ease;
}

.footer a:hover {
    color: var(--christmas-gold) !important;
    transform: translateX(5px);
}

.footer a:hover::after {
    width: 100%;
}

/* ===== BADGE DE NOËL 2025 ===== */
.christmas-badge {
    position: fixed;
    bottom: 20px;
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-dark-red) 100%);
    color: var(--christmas-gold);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(187, 37, 40, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
    z-index: 9996;
    animation: badge-bounce 2s ease-in-out infinite;
    border: 3px solid var(--christmas-gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.christmas-badge:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(187, 37, 40, 0.8), 0 0 40px rgba(255, 215, 0, 0.6);
}

@keyframes badge-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-5px) rotate(3deg);
    }
}

/* ===== CARROUSEL AVEC STYLE DE NOËL ===== */
.carousel-btn {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-dark-red) 100%) !important;
    border: 2px solid var(--christmas-gold) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(187, 37, 40, 0.5);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--christmas-dark-red) 0%, var(--christmas-red) 100%) !important;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(187, 37, 40, 0.7);
}

.dot {
    background-color: var(--christmas-green) !important;
    border: 2px solid var(--christmas-gold) !important;
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.dot.active {
    background-color: var(--christmas-red) !important;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(187, 37, 40, 0.6);
}

/* ===== EFFET DE PAILLETTES AU CURSEUR ===== */
@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-30px) rotate(180deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .christmas-lights {
        height: 35px;
    }
    
    .light {
        width: 10px;
        height: 10px;
    }
    
    .christmas-badge {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .hero::before {
        font-size: 200px;
        right: -40px;
    }
    
    .section-title::before,
    .section-title::after {
        display: none;
    }
    
    .snowflake {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .christmas-lights {
        height: 30px;
    }
    
    .light {
        width: 8px;
        height: 8px;
    }
    
    .snowflake {
        font-size: 0.6em;
    }
}

/* ===== ANIMATIONS D'ENTRÉE ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .event-card, .quick-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

/* ===== EFFET DE NEIGE AU SOL ===== */
.snow-ground {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
    z-index: 9995;
}