
/* ==============================================
   ESF - Énergies Services France - Custom CSS
   ============================================== */

/* --- Global --- */
html { scroll-behavior: smooth; }
::selection { background: #F59E0B; color: white; }
body { overflow-x: hidden; }

/* --- Sticky Header --- */
.elementor-sticky--active {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.esf-hero-title .elementor-heading-title {
    animation: esf-fadeInUp 1s ease-out 0.3s both;
}
.esf-hero-tagline .elementor-heading-title {
    animation: esf-fadeInUp 0.8s ease-out 0.1s both;
}
.esf-hero-btn .elementor-button {
    animation: esf-fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 8px 30px rgba(245,158,11,0.4);
}
.esf-hero-btn .elementor-button:hover {
    box-shadow: 0 12px 40px rgba(245,158,11,0.6) !important;
    transform: translateY(-3px);
}

/* --- Bounce Arrow --- */
.esf-bounce-arrow .elementor-icon {
    animation: esf-bounce 2.5s infinite;
}
@keyframes esf-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* --- Fade In Up Animation --- */
@keyframes esf-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Buttons General --- */
.elementor-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* --- Section Titles --- */
.esf-section-title .elementor-heading-title {
    position: relative;
}

/* --- Testimonial Cards --- */
.elementor-inner-section .elementor-widget-heading .elementor-heading-title {
    transition: color 0.3s ease;
}

/* --- Footer Links --- */
[data-elementor-type="footer"] a {
    transition: color 0.3s ease, padding-left 0.3s ease;
}
[data-elementor-type="footer"] a:hover {
    color: #F59E0B !important;
    padding-left: 5px;
}

/* --- Scroll Reveal (IntersectionObserver via JS) --- */
.esf-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.esf-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   Service Cards Swiper Carousel — Coverflow
   ============================================== */
.esf-services-carousel {
    position: relative;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.esf-swiper-services {
    overflow: hidden;
    padding: 30px 0 40px;
}

/* --- Coverflow: slides styling --- */
.esf-swiper-services .swiper-slide {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0.45;
    filter: blur(1px);
}
.esf-swiper-services .swiper-slide-active {
    opacity: 1 !important;
    filter: blur(0) !important;
    z-index: 10;
}
.esf-swiper-services .swiper-slide-prev,
.esf-swiper-services .swiper-slide-next {
    opacity: 0.55;
    filter: blur(0);
}

/* --- Card design --- */
.esf-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.10);
    padding: 0;
    text-align: center;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.4s ease;
}
.swiper-slide-active .esf-card {
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* --- Icon area --- */
.esf-card-icon {
    padding: 30px 20px 15px;
    font-size: 44px;
    color: #F59E0B;
}

/* --- Card title (simple, no colored band) --- */
.esf-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1E3A5F;
    padding: 5px 20px;
    margin: 0;
    line-height: 1.3;
}

/* --- Description --- */
.esf-card-desc {
    padding: 15px 22px 10px;
    color: #718096;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

/* --- Button --- */
.esf-card-btn {
    display: inline-block;
    margin: 10px 22px 25px;
    padding: 8px 22px;
    border: 2px solid #F59E0B;
    border-radius: 30px;
    color: #F59E0B;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.esf-card-btn:hover {
    background: #F59E0B;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}

/* --- Responsive Carousel --- */
@media (max-width: 767px) {
    .esf-services-carousel {
        padding: 0 15px;
    }
    .esf-cards-section {
        margin-top: -60px !important;
    }
    .esf-card-title {
        font-size: 14px;
    }
}

/* ==============================================
   Section Title Bands (orange / blue)
   ============================================== */
.esf-title-band .elementor-heading-title {
    display: inline-block;
    padding: 10px 30px;
    color: #FFFFFF !important;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}
.esf-title-band-orange .elementor-heading-title {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}
.esf-title-band-blue .elementor-heading-title {
    background: linear-gradient(135deg, #1E3A5F, #2563EB);
}

/* --- Icon List Styling in Services --- */
.elementor-icon-list-item .elementor-icon-list-icon {
    transition: transform 0.3s ease;
}
.elementor-icon-list-item:hover .elementor-icon-list-icon {
    transform: scale(1.2);
}
