/* =============================================
   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: 2px;
    width: 0;
    background: linear-gradient(90deg, #89D99D, #3B8C6E, #1E5959);
    z-index: 9999;
    opacity: 0.85;
    transition: width 0.1s linear;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-gradient {
    background: linear-gradient(135deg, #1E5959 0%, #3B8C6E 60%, #1E5959 100%);
    position: relative;
    overflow: hidden;
}

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

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

.hero-title {
    animation: fadeInDown 1s ease-out;
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.1;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s backwards;
    font-size: 1.25rem;
    opacity: 0.95;
}

.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.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    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: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid #e9ecef !important;
    border-radius: 16px !important;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 1px 2px rgba(14, 20, 17, .04), 0 8px 24px rgba(14, 20, 17, .06) !important;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(14, 20, 17, .04), 0 18px 44px rgba(14, 20, 17, .10) !important;
    border-color: #89D99D !important;
}

.service-icon {
    transition: transform 0.35s ease, color 0.35s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.08);
}

/* =============================================
   PROCESS / COMMENT CA MARCHE
   ============================================= */
.process-step {
    position: relative;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: white;
    border: 1px solid #e9ecef;
    padding-top: 3.25rem !important;
}

.process-step:hover {
    border-color: #89D99D;
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(14, 20, 17, .04), 0 14px 32px rgba(14, 20, 17, .08);
}

.process-number {
    position: absolute;
    top: -0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    background: transparent;
    color: #D4A24C;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 3.25rem;
    line-height: 1;
    letter-spacing: -0.03em;
    border-radius: 0;
    display: block;
}

.process-number::before {
    content: '0';
}

.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 {
    display: inline-block;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-card {
    transition: border-left-color 0.35s ease, box-shadow 0.35s ease;
    border-left: 4px solid transparent;
    background: white;
    box-shadow: 0 1px 2px rgba(14, 20, 17, .04), 0 8px 24px rgba(14, 20, 17, .06) !important;
}

.testimonial-card:hover {
    border-left-color: #89D99D;
    box-shadow: 0 1px 2px rgba(14, 20, 17, .04), 0 16px 36px rgba(14, 20, 17, .09) !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 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

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