

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

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

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.hero-title.animated {
    animation: slideInLeft 1s ease-out;
}

.hero-description.animated {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons.animated {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-main-image.animated {
    animation: slideInRight 1s ease-out 0.4s both;
}

.hero-main-image.animated:hover {
    animation: pulse 2s infinite;
}

.floating-card.animated {
    animation: float 6s ease-in-out infinite;
}

.floating-card.animated.card-1 {
    animation-delay: 0s;
}

.floating-card.animated.card-2 {
    animation-delay: 2s;
}

.floating-card.animated.card-3 {
    animation-delay: 4s;
}

.navbar.animated {
    animation: fadeInDown 0.8s ease-out;
}

.nav-link.animated {
    transition: all 0.3s ease;
}

.nav-link.animated:hover {
    transform: translateY(-2px);
    color: #4f46e5;
}

.nav-btn.animated {
    transition: all 0.3s ease;
}

.nav-btn.animated:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* ===== SECTIONS ANIMATIONS ===== */

/* Animation des titres de section */
.section-title.animated {
    animation: fadeInUp 0.8s ease-out;
}

.section-subtitle.animated {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== SERVICES ANIMATIONS ===== */

/* Animation des cartes de service */
.service-card.animated {
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.service-card.animated:nth-child(1) { animation-delay: 0.1s; }
.service-card.animated:nth-child(2) { animation-delay: 0.2s; }
.service-card.animated:nth-child(3) { animation-delay: 0.3s; }
.service-card.animated:nth-child(4) { animation-delay: 0.4s; }
.service-card.animated:nth-child(5) { animation-delay: 0.5s; }
.service-card.animated:nth-child(6) { animation-delay: 0.6s; }

.service-card.animated:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.service-icon.animated {
    animation: bounce 2s infinite;
}

/* ===== FEATURES ANIMATIONS ===== */

/* Animation de la section features */
.features-text.animated {
    animation: slideInLeft 0.8s ease-out;
}

.features-visual.animated {
    animation: slideInRight 0.8s ease-out;
}

/* Animation des items de feature */
.feature-item.animated {
    animation: fadeInUp 0.6s ease-out;
}

.feature-item.animated:nth-child(1) { animation-delay: 0.2s; }
.feature-item.animated:nth-child(2) { animation-delay: 0.4s; }

/* Animation du mockup dashboard */
.dashboard-mockup.animated {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.dashboard-mockup.animated:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* ===== BENEFITS ANIMATIONS ===== */

/* Animation des cartes de bénéfices */
.benefit-card.animated {
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.benefit-card.animated:nth-child(1) { animation-delay: 0.1s; }
.benefit-card.animated:nth-child(2) { animation-delay: 0.2s; }
.benefit-card.animated:nth-child(3) { animation-delay: 0.3s; }
.benefit-card.animated:nth-child(4) { animation-delay: 0.4s; }
.benefit-card.animated:nth-child(5) { animation-delay: 0.5s; }
.benefit-card.animated:nth-child(6) { animation-delay: 0.6s; }

.benefit-card.animated:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.benefit-icon.animated {
    transition: transform 0.3s ease;
}

.benefit-card.animated:hover .benefit-icon {
    transform: scale(1.2) rotate(5deg);
}

/* ===== FAQ ANIMATIONS ===== */

/* Animation de la section FAQ */
.faq-item.animated {
    animation: fadeInUp 0.6s ease-out;
}

.faq-item.animated:nth-child(1) { animation-delay: 0.1s; }
.faq-item.animated:nth-child(2) { animation-delay: 0.2s; }
.faq-item.animated:nth-child(3) { animation-delay: 0.3s; }
.faq-item.animated:nth-child(4) { animation-delay: 0.4s; }

/* Animation du toggle FAQ */
.faq-toggle.animated {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle.animated {
    transform: rotate(180deg);
}

/* Animation de la réponse FAQ */
.faq-answer.animated {
    transition: all 0.3s ease;
}

/* ===== CONTACT ANIMATIONS ===== */

/* Animation de la section contact */
.contact-left.animated {
    animation: slideInLeft 0.8s ease-out;
}

.contact-right.animated {
    animation: slideInRight 0.8s ease-out;
}

/* Animation du formulaire */
.contact-form.animated input,
.contact-form.animated select,
.contact-form.animated textarea {
    transition: all 0.3s ease;
}

.contact-form.animated input:focus,
.contact-form.animated select:focus,
.contact-form.animated textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

/* Animation des éléments flottants du contact */
.floating-element.animated {
    animation: float 4s ease-in-out infinite;
}

.floating-element.animated.element-1 {
    animation-delay: 0s;
}

.floating-element.animated.element-2 {
    animation-delay: 1s;
}

.floating-element.animated.element-3 {
    animation-delay: 2s;
}

/* ===== BOUTONS ANIMATIONS ===== */

/* Animation générale des boutons */
.btn.animated {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn.animated:active {
    transform: translateY(-1px);
}

/* Effet ripple pour les boutons */
.btn.animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn.animated:active::before {
    width: 300px;
    height: 300px;
}

/* ===== FOOTER ANIMATIONS ===== */

/* Animation du footer */
.footer.animated {
    animation: fadeInUp 0.8s ease-out;
}

.footer-content.animated {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== SCROLL ANIMATIONS ===== */

/* Animation au scroll - éléments qui apparaissent */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOADING ANIMATIONS ===== */

/* Animation de chargement */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner.animated {
    animation: spin 1s linear infinite;
}

/* ===== RESPONSIVE ANIMATIONS ===== */

/* Désactiver les animations sur mobile pour de meilleures performances */
@media (max-width: 768px) {
    .animated,
    .animated * {
        animation-duration: 0.5s !important;
        animation-delay: 0s !important;
    }
}

/* Désactiver les animations si l'utilisateur préfère pas d'animation */
@media (prefers-reduced-motion: reduce) {
    .animated,
    .animated *,
    .animated::before,
    .animated::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}