/* =============================================
   ANIMATIONS
   ============================================= */
@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 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); }
}

@keyframes slideInFromBottom {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}


/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #89D99D, #3B8C6E, #1E5959);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* =============================================
   HERO SECTION
   ============================================= */
.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.2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.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);
}

/* Hero trust badge */
.hero-trust {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-trust-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 20px;
}

.trust-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #89D99D, #3B8C6E);
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    color: white;
}

.trust-text {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    padding: 20px 10px;
}

.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;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.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);
}

/* =============================================
   PROCESS / COMMENT CA MARCHE
   ============================================= */
.process-step {
    position: relative;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e9ecef;
}

.process-step:hover {
    border-color: #89D99D;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.process-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E5959, #3B8C6E);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon {
    display: inline-block;
}

.process-cta {
    border-width: 2px;
    transition: all 0.3s ease;
}

.process-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 140, 110, 0.3);
}

/* Connector line between steps (desktop) */
@media (min-width: 768px) {
    .process-step::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -25px;
        width: 20px;
        height: 2px;
        background: linear-gradient(90deg, #89D99D, #3B8C6E);
    }

    .col-md-3:last-child .process-step::after {
        display: none;
    }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Features 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
   ============================================= */
.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;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-item {
    border: none !important;
    margin-bottom: 12px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-item .accordion-button {
    background: white;
    border: none;
    padding: 20px 24px;
    font-size: 1.05rem;
}

.faq-item .accordion-button:not(.collapsed) {
    background: white;
    color: #1E5959;
    box-shadow: none;
}

.faq-item .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-item .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231E5959'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-item .accordion-body {
    padding: 0 24px 20px 24px;
    line-height: 1.7;
}

/* =============================================
   CTA SECTION
   ============================================= */
.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);
}

/* =============================================
   STICKY CTA MOBILE
   ============================================= */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 12px 16px;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInFromBottom 0.5s ease-out;
    display: none;
}

.sticky-cta.visible {
    display: block !important;
}

.sticky-cta-btn {
    border-radius: 12px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

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

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

    .stat-number {
        font-size: 2.2rem;
    }

    /* Space for sticky CTA */
    .sticky-cta.visible ~ .cta-section {
        margin-bottom: 70px;
    }
}
