/* Animations CSS pour Domain - Audit Financier */

/* Animation de fondu à l'entrée */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation de glissement vers le haut */
@keyframes slideUp {
    from { 
        transform: translateY(50px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* Animation pour les nombres */
@keyframes countUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour les éléments de la page */
.animate-fade {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 1s ease forwards;
}

/* Décalage des animations pour les éléments séquentiels */
.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; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Animation du menu hamburger */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--secondary);
    border-radius: 3px;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

/* Animation du menu mobile */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.nav-mobile.active {
    transform: translateX(0);
}

.nav-mobile ul {
    list-style: none;
    text-align: center;
}

.nav-mobile li {
    margin-bottom: 20px;
}

.nav-mobile a {
    color: var(--frost-white);
    font-size: 1.5rem;
    font-weight: 600;
    display: inline-block;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-mobile a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Animation pour les cartes de services et d'audit */
.service-card,
.audit-type-card,
.testimonial-card {
    transition: all 0.3s ease;
}

.service-card:hover,
.audit-type-card:hover,
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animation des statistiques */
.stat-number {
    display: inline-block;
    animation: countUp 1.5s ease forwards;
    opacity: 0;
}

/* Animation du bouton */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

/* Animation pour la section héros */
.hero-content h1 {
    animation: slideUp 1s ease forwards;
}

.hero-content p {
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-content .btn {
    animation: slideUp 1s ease 0.6s forwards;
    opacity: 0;
}

/* Animation pour le logo */
@keyframes logoAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo {
    display: inline-block;
    animation: logoAnimation 2s ease-in-out infinite;
}

/* Animation des éléments au défilement */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.scroll-animation.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animation des icônes de bénéfices */
.benefit-icon {
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.2);
    color: var(--accent);
}

/* Animation du formulaire */
.form-group {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

/* Animation pour la page de remerciement */
.thank-you-content {
    animation: fadeIn 1s ease;
}

.thank-you-icon {
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
}

.thank-you-content h1 {
    animation: slideUp 1s ease 0.5s forwards;
    opacity: 0;
}

.thank-you-content p {
    animation: slideUp 1s ease 0.7s forwards;
    opacity: 0;
}

.thank-you-content .btn {
    animation: slideUp 1s ease 0.9s forwards;
    opacity: 0;
}
