/* ============================================================
   ANIMATIONS - Effets de transition
   ============================================================ */

/* Animation au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation de fade-in */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Animation de slide-in */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animation de scale */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animation des compteurs */
.stat-number {
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-number[data-target] {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
}

/* Animation des cartes au survol */
.service-card,
.project-card,
.value-card,
.testimonial-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.project-card:hover,
.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Animation du hero slider */
.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* Animation des dots */
.hero-dot {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
    transform: scale(1.3);
}

/* Animation du logo */
.logo-icon {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Animation des icônes de service */
.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Animation des boutons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Animation des liens de navigation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Animation du footer */
.footer-social a {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

/* Animation responsive */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(20px);
    }
    
    .stat-number[data-target] {
        font-size: 2rem;
    }
}

/* Animation de chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-loaded .hero-content {
    animation: fadeInUp 1s ease forwards;
}

.page-loaded .hero-buttons {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

/* Animation des témoignages */
.testimonials-track {
    transition: transform 0.5s ease;
}

.testimonial-nav {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-nav:hover {
    transform: scale(1.1);
}