/*
* Animations CSS pour domain.com
*/

/* Animation de fondu entrant */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Animation de glissement vers le haut */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

/* Animation de glissement vers la droite */
@keyframes slideRight {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-right {
    animation: slideRight 0.8s ease forwards;
}

/* Animation de glissement vers la gauche */
@keyframes slideLeft {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-left {
    animation: slideLeft 0.8s ease forwards;
}

/* Animation pour les compteurs de statistiques */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-up {
    opacity: 0;
}

.count-up.animated {
    animation: countUp 1s ease forwards;
}

/* Animation pour les cartes de témoignages */
@keyframes cardPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.testimonial-card:hover {
    animation: cardPulse 1s ease infinite;
}

/* Animation pour le bouton d'appel à l'action */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 111, 97, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 111, 97, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 111, 97, 0);
    }
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

/* Animation pour le menu mobile */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.open {
    animation: fadeInDown 0.4s ease forwards;
}

/* Animation pour l'icône du menu hamburger */
@keyframes menuBurger {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.menu-toggle:hover {
    animation: menuBurger 0.4s ease;
}

/* Animation de défilement pour observer les éléments */
.reveal {
    opacity: 1; /* Modifier pour que les éléments soient visibles par défaut */
    transform: translateY(0);
    transition: all 0.8s ease;
    animation: slideUp 0.8s ease forwards;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Délais d'animation pour les éléments en cascade */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Animation pour les icônes */
@keyframes iconScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.icon-animate:hover {
    animation: iconScale 0.5s ease;
}
