/* 
 * animations.css - Animations CSS pour domain.com
 * Site d'audit financier professionnel
 */

/* Animations générales */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Animation du logo dans la section hero */
.hero-content h1 {
    animation: slideUp 1.2s ease forwards;
}

.hero-content p {
    animation: slideUp 1.2s ease 0.3s forwards;
    opacity: 0;
}

.hero-content .btn {
    animation: slideUp 1.2s ease 0.6s forwards;
    opacity: 0;
}

/* Animation du text fade in */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    animation: slideUp 1s ease forwards;
}

.slide-right {
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.slide-left {
    opacity: 0;
    animation: slideLeft 1s ease forwards;
}

/* Animation des sections au défilement */
.section-title {
    animation: slideUp 0.8s ease forwards;
}

/* Animation délai pour les listes */
.staggered-item:nth-child(1) {
    animation-delay: 0.1s;
}

.staggered-item:nth-child(2) {
    animation-delay: 0.2s;
}

.staggered-item:nth-child(3) {
    animation-delay: 0.3s;
}

.staggered-item:nth-child(4) {
    animation-delay: 0.4s;
}

.staggered-item:nth-child(5) {
    animation-delay: 0.5s;
}

.staggered-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Animation des statistiques */
@keyframes countUp {
    from {
        opacity: 0.3;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 2s ease forwards;
}

/* Animation des cartes de service au survol */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animation des cartes de témoignages au survol */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animation des boutons au survol */
.btn-primary, .btn-secondary {
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animation du menu mobile */
.mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mobile-toggle span {
    transition: all 0.3s ease;
}

/* Animation de la barre de cookie */
.cookie-consent {
    transition: transform 0.4s ease;
}

/* Animation du menu de navigation au défilement */
@keyframes shrinkHeader {
    from {
        padding: 1.5rem 0;
    }
    to {
        padding: 0.8rem 0;
        background-color: rgba(28, 22, 78, 0.98);
    }
}

.header-scrolled {
    animation: shrinkHeader 0.3s ease forwards;
}

/* Animation logo au survol */
.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    animation: pulse 1s ease infinite;
}

/* Animation des icônes des avantages */
.benefit-icon {
    animation: float 3s ease-in-out infinite;
}
