﻿/* Animations personnalisées */
@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 scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@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 float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

    50% {
        transform: scale(1.05);
    }
}

/* Hero Section avec gradient animé */
.hero-gradient {
    background: linear-gradient(-45deg, #1E5959, #3B8C6E, #89D99D, #1E5959);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

    .hero-gradient::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    animation: fadeInDown 1s ease-out;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s backwards;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    animation: scaleIn 0.8s ease-out 0.4s backwards;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

    .hero-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

/* Cards avec effet hover */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    overflow: hidden;
    position: relative;
    background: white;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .service-card:hover::before {
        left: 100%;
    }

    .service-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    }

.service-icon {
    transition: all 0.4s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.2);
}

/* Section avec animations au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

    .animate-on-scroll.animated {
        animation: fadeInUp 0.8s ease-out forwards;
    }

/* Features avec effet stagger */
.feature-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

    .feature-item:nth-child(1) {
        animation-delay: 0.1s;
    }

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

    .feature-item:nth-child(3) {
        animation-delay: 0.3s;
    }

.feature-icon {
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

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

.feature-item:nth-child(3) .feature-icon {
    animation-delay: 2s;
}

/* Testimonials avec style moderne */
.testimonial-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    background: white;
}

    .testimonial-card:hover {
        border-left-color: #89D99D;
        transform: translateX(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }

/* CTA Section avec effet pulse */
.cta-section {
    background: linear-gradient(135deg, #1E5959 0%, #3B8C6E 100%);
    position: relative;
}

.cta-btn {
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

    .cta-btn:hover {
        animation: none;
        transform: scale(1.1);
    }

/* Stats counter style */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #89D99D 0%, #3B8C6E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}
