/**
 * CELAP - Animations CSS
 * Keyframes et animations du site
 */

/* ==================== KEYFRAMES ==================== */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: var(--shadow-glow);
    }
    50% {
        box-shadow: var(--shadow-glow-strong);
    }
}

/* ==================== HERO ANIMATIONS ==================== */
.hero-text > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.4s; }
.hero-text > *:nth-child(5) { animation-delay: 0.5s; }

.poster-frame {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* ==================== SCROLL REVEAL ==================== */
.page-section,
.reservations-section,
.celapiens-section,
.livredor-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-section.visible,
.reservations-section.visible,
.celapiens-section.visible,
.livredor-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HOVER ANIMATIONS ==================== */

/* Logo pulse au hover */
.logo:hover {
    animation: pulseGlow 1.5s ease infinite;
}

/* Card lift effect */
.event-card,
.historique-card,
.testimonial-card,
.soutenir-card {
    transition: transform var(--transition-slow), 
                box-shadow var(--transition-slow),
                border-color var(--transition-slow);
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
