/* Animations de base */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* Classes d'animation */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideInUp 0.5s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease-out;
}

/* Animations au scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations des cartes */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(253, 253, 253, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animation du menu mobile */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.hidden {
    transform: translateY(-100%);
}

/* Animation du chat */
.chat-message {
    animation: fadeIn 0.3s ease-out;
}

/* Animation des boutons */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-hover-effect:hover::after {
    width: 300px;
    height: 300px;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Content Animations */
.carousel-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.carousel-slide.active .carousel-content {
    opacity: 1;
    transform: translateY(0);
}

.carousel-title {
    color: #fff !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.2s;
}

.carousel-slide.active .carousel-title {
    opacity: 1;
    transform: translateY(0);
}

.carousel-description {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.4s;
}

.carousel-slide.active .carousel-description {
    opacity: 1;
    transform: translateY(0);
}

.carousel-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.6s;
}

.carousel-slide.active .carousel-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Gradient */
.hero-gradient {
    position: relative;
    background: linear-gradient(to bottom, rgba(30, 64, 175, 0.3), rgba(30, 58, 138, 0.1));
}

/* Carousel Controls */
.carousel-controls button {
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.carousel-controls button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

/* Fade Animation */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 1s ease-in-out;
}

/* Expertise Card Hover Effect */
.expertise-card {
    transition: transform 0.3s cubic-bezier(.4,2,.3,1), box-shadow 0.3s cubic-bezier(.4,2,.3,1);
}
.expertise-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px -10px rgba(30,64,175,0.15), 0 4px 8px rgba(0,0,0,0.06);
    z-index: 2;
}
.expertise-card img {
    transition: transform 0.4s cubic-bezier(.4,2,.3,1);
}
.expertise-card:hover img {
    transform: scale(1.07);
}

/* Fade-in Slide Animation */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.fade-in-slide {
    animation: fadeInSlide 0.7s cubic-bezier(.4,2,.3,1);
}
