/* ===== ANIMATIONS CSS ===== */

/* Animation pour les éléments au défilement */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Animation au survol des cartes */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Animation pour les icônes */
.icon-pulse {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation pour le texte */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-blue);
    animation: revealText 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealText {
    0% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

/* Animation pour les boutons */
.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
    z-index: -1;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Animation pour les onglets */
.tab-animation {
    transition: all 0.3s ease;
}

.tab-animation.active {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animation pour le chargement */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--gold-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animation pour les notifications */
.notification-slide {
    animation: slideNotification 0.5s ease-out forwards;
}

@keyframes slideNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation pour les statistiques */
.count-up {
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour les barres de progression */
.progress-bar-animate {
    animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
    from {
        width: 0;
    }
    to {
        width: var(--progress-width);
    }
}

/* Animation pour les images au survol */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Animation pour les éléments de liste */
.list-item-animate {
    opacity: 0;
    transform: translateX(-20px);
    animation: listItemAppear 0.5s ease-out forwards;
}

@keyframes listItemAppear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Délais d'animation pour les éléments de liste */
.list-item-animate:nth-child(1) { animation-delay: 0.1s; }
.list-item-animate:nth-child(2) { animation-delay: 0.2s; }
.list-item-animate:nth-child(3) { animation-delay: 0.3s; }
.list-item-animate:nth-child(4) { animation-delay: 0.4s; }
.list-item-animate:nth-child(5) { animation-delay: 0.5s; }

/* Animation pour les formulaires */
.form-input-focus {
    transition: all 0.3s ease;
}

.form-input-focus:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.2);
}