/* ===================================
   SCROLL ANIMATIONS SYSTEM
   =================================== */

/* États initiaux - éléments cachés avant animation */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations Fade */
.scroll-fade {
    opacity: 0;
}

.scroll-fade.animate-in {
    opacity: 1;
}

/* Animations Slide Up */
.scroll-slide-up {
    opacity: 0;
    transform: translateY(60px);
}

.scroll-slide-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animations Slide Left */
.scroll-slide-left {
    opacity: 0;
    transform: translateX(-60px);
}

.scroll-slide-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Animations Slide Right */
.scroll-slide-right {
    opacity: 0;
    transform: translateX(60px);
}

.scroll-slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Animation Scale Up */
.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
}

.scroll-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Animation Zoom In */
.scroll-zoom {
    opacity: 0;
    transform: scale(0.8);
}

.scroll-zoom.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Delays pour animations échelonnées */
.scroll-delay-100 {
    transition-delay: 100ms;
}

.scroll-delay-200 {
    transition-delay: 200ms;
}

.scroll-delay-300 {
    transition-delay: 300ms;
}

.scroll-delay-400 {
    transition-delay: 400ms;
}

.scroll-delay-500 {
    transition-delay: 500ms;
}

.scroll-delay-600 {
    transition-delay: 600ms;
}

/* Durées personnalisées */
.scroll-duration-slow {
    transition-duration: 1.2s;
}

.scroll-duration-fast {
    transition-duration: 0.5s;
}

/* Animation pour les cartes */
.card-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-animate.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animation pour les images */
.image-reveal {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(5px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-reveal.animate-in {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Animation pour les statistiques/compteurs */
.stat-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-reveal.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animation rotation subtile */
.scroll-rotate {
    opacity: 0;
    transform: rotate(-5deg) scale(0.95);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-rotate.animate-in {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Animation pour les titres */
.title-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.title-reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animation stagger pour les listes d'éléments */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Désactiver les animations sur mobile pour la performance */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .scroll-fade,
    .scroll-slide-up,
    .scroll-slide-left,
    .scroll-slide-right,
    .scroll-scale,
    .scroll-zoom,
    .card-animate,
    .image-reveal,
    .stat-reveal,
    .scroll-rotate,
    .title-reveal,
    .stagger-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Animation pour les backgrounds */
.bg-reveal {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.bg-reveal.animate-in {
    opacity: 1;
}
