/* ==========================================
   Ouin-Ouin - Animations CSS 2026
   Optimisées pour l'accessibilité
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 70, 198, 0.3);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(217, 70, 198, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 70, 198, 0);
    }
}

/* Animation utilities */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.animate-slide-up {
    animation: slideInUp 0.4s ease-out;
}

.animate-slide-down {
    animation: slideInDown 0.4s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.4s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.4s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-glow {
    animation: glow 2s infinite;
}
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== Loading State ==================== */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(124, 58, 237, 0.3);
    border-top: 3px solid #7C3AED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================== Decorative Elements ==================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.decoration-float {
    animation: float 6s ease-in-out infinite;
}

.decoration-rotate {
    animation: rotate 20s linear infinite;
}

/* ==================== Blur In ==================== */

@keyframes blurIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.stats-section {
    animation: blurIn 0.8s ease-out;
}

.settings-section {
    animation: blurIn 0.8s ease-out;
}

/* ==================== Smooth Transitions ==================== */

* {
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* ==================== Accessibility ==================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
