/* ============================================================
   COMAFI GABON — style.css (Updated Layout, Buttons & Carousel)
   Bootstrap 5 base — custom layer on top
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
} 

:root {
    --primary:     #62B120;
    --primary-dark:#1e8449;
    --accent:      #1a6ab1;
    --accent-dark: #0f4a80;   
    --text:        #2c3e50;
    --text-muted:  #6c757d;
    --bg-light:    #f8f9fa;
    --white:       #ffffff;
    --radius:      0.75rem;
    --shadow:      0 4px 20px rgba(0,0,0,.08);
    --font-heading:'Plus Jakarta Sans', 'Inter', sans-serif; 
    --font-body:   'Inter', sans-serif;
}

/* ── Base ── */
body {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { 
    font-family: var(--font-heading); 
    letter-spacing: -0.02em; 
}
a { text-decoration: none; }

/* ── Topbar ── */
.topbar {
    background: var(--primary); 
    color: rgba(255,255,255,.85);
    font-size: 0.82rem;
    padding: 0.45rem 0;
}
.topbar-social {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
    transition: color .2s;
}
.topbar-social:hover { color: #fff; }

/* ── Navbar ── */
.navbar { padding: 0.75rem 0; }
.navbar-brand img { transition: opacity .2s; }
.navbar-brand:hover img { opacity: .85; }
.nav-link {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.4rem;
    transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;   
}
.btn-espace-client-header {
    background-color: var(--primary); 
    color: var(--white) !important;
    border: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1.3rem;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}
.btn-espace-client-header:hover { 
    background-color: var(--primary-dark); 
}
@media (max-width: 991.98px) {
    .navbar-nav { padding: 1rem 0 0.5rem 0; }
}

/* ── Hero ── */
.hero-section {
    background-color: #f4f6f8; 
    padding: 6rem 0;
    overflow: hidden;
}
.hero-row { min-height: 540px; }
.hero-content-left { color: var(--text); }
.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #1a252f;
}
.hero-title span { color: var(--primary); } 
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-img {
    height: 520px;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}
.hero-img:hover { transform: scale(1.015); }
@media (max-width: 991.98px) {
    .hero-img { height: 350px; margin-top: 1.5rem; }
    .hero-row { min-height: auto; }
}

/* ── Hero Buttons ── */
.btn-hero-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
    border-radius: 0.4rem;
    transition: all 0.2s ease-in-out;
}
.btn-hero-outline:hover { background: var(--primary); color: var(--white); }
.btn-hero-solid {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
    border-radius: 0.4rem;
    transition: all 0.2s ease-in-out;
}
.btn-hero-solid:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

/* ── Carousel Indicators ── */
.carousel-indicators-custom {
    display: flex;
    gap: 0.5rem;
    margin-top: 2.5rem;
}
.carousel-indicators-custom button {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: none;
    background-color: #cbd5e1;
    padding: 0; cursor: pointer;
    transition: all 0.2s ease;
}
.carousel-indicators-custom button.active {
    background-color: #f4f6f8;
    border: 1px solid var(--primary);
    transform: scale(1.2);
}
.hero-section .carousel-indicators { display: none; }
.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon { filter: invert(1) grayscale(100); }

/* ── Section helpers ── */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ── Stat Cards (Taller Split Layout Configuration) ── */
.stat-card-split {
    border-radius: 0.95rem;
    box-shadow: var(--shadow);
    
    /* Height and Spacing Increased: Added roughly 40% height expansion cushions */
    min-height: 190px; 
    padding: 2.2rem 1.5rem; 
    
    transition: transform .2s ease-in-out;
}

.stat-card-split:hover { 
    transform: translateY(-4px); 
}

/* Internal Layout Allocation Constraints */
.stat-icon-area {
    width: 30%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-text-area {
    width: 70%;
    padding-left: 0.75rem; /* Slightly more space for a clean layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Premium Icon circle frame sizing */
.icon-circle {
    width: 60px; /* Scaled up slightly to stay proportional to the taller card */
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-label { 
    font-size: 1.1rem; /* Marginally increased size for premium layout prominence */
    font-weight: 700;
    margin-bottom: 0.35rem; 
    font-family: var(--font-heading);
}

.stat-desc { 
    font-size: 0.85rem; 
    margin: 0; 
    line-height: 1.5;
}

/* ── Value Cards (Compact Layout - Height Reduced) ── */
.value-card-square {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.4s ease-in-out;
    border: 2px solid transparent;
    
    /* ── HEIGHT REDUCTION FIX ── */
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto; /* Drops the forced tall square aspect ratio */
    min-height: 300px;  /* Slashes the empty gap space down significantly */
    padding: 1.75rem 1.25rem !important; /* Tightens interior spacing padding values */
    height: 100%;       /* Ensures all cards stretch to match the exact same row height */
}

/* Elegant Circle Background for Icons (Fixed to be perfectly round) */
.value-icon-circle {
    width: 56px;  /* Uniform width and height keeps it perfectly circular */
    height: 56px; 
    border-radius: 50%;
    background-color: #eafaf1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}
.value-icon-circle i {
    font-size: 1.6rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.value-card-title {
    font-size: 0.95rem; 
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin: 0;
    padding: 0 0.5rem;
    transition: color 0.4s ease;
}

/* Active Highlight States Overrides */
.value-item.active .value-card-square {
    background-color: var(--primary); 
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.22);
}
.value-item.active .value-icon-circle {
    background-color: rgba(255, 255, 255, 0.2);
}
.value-item.active .value-icon-circle i {
    color: var(--white);
}
.value-item.active .value-card-title {
    color: var(--white);
}

/* Indicators navigation styling rules remains safe */
.values-indicators-line {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem; /* Reduced slightly to match tighter layout footprint */
}
.values-indicators-line button {
    width: 40px; 
    height: 4px;  
    border: none;
    background-color: #cbd5e1; 
    padding: 0;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.values-indicators-line button.active {
    background-color: var(--primary); 
    width: 60px; 
}
/* ── Communiqué DGI Section Adjustments ── */
.badge-article { background: var(--primary); color: white; font-size: 0.75rem; padding: 0.35rem 0.75rem; border-radius: 2rem; }
.article-list { list-style: none; padding: 0; }
.article-list li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; font-size: 0.9rem; color: var(--text-muted); }
.article-list li::before { content: '\F26A'; font-family: 'Bootstrap-icons'; position: absolute; left: 0; font-weight: bold; color: var(--primary); }

.btn-green { background-color: var(--primary); color: var(--white); font-weight: 600; font-size: 0.9rem; padding: 0.6rem 1.4rem; border-radius: 0.4rem; border: none; transition: background-color 0.2s ease-in-out; }
.btn-green:hover { background-color: var(--primary-dark); color: var(--white); }

/* ── REWORKED IMAGE STACK GEOMETRY ── */
.article-image-stack {
    /* Reduces the cumulative width of the image segment area bounds */
    max-width: 400px; 
    margin: 0 auto; /* Centers the reduced stack neatly within its column wrapper */
}

.article-image-stack img { 
    width: 100%; 
    object-fit: cover; 
    
    /* ── THE CRITICAL FIX: Drags the images viewport positioning down to show heads ── */
    object-position: center top !important; 
    
    transition: transform 0.3s ease; 
}

.article-image-stack .image-top { 
    height: 240px; /* Expanded height gives the heads more vertical canvas room */
}
.article-image-stack .image-bottom { 
    height: 240px; 
}
.article-image-stack img:hover { 
    transform: scale(1.02); 
}

/* Wrapper */
.about-image-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    padding-right: 20px;
}

/* Green accent box */
.about-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;

    width: 95%;
    height: 95%;

    background: #245549;
    border-radius: 0.5rem;
    z-index: 1;
}

/* Image */
.about-tall-img {
    width: 100%;
    height: 416px;
    object-fit: cover;
    border-radius: 0.5rem;
    position: relative;
    z-index: 2;

    box-shadow:
        0 15px 35px rgba(0,0,0,.25);

    transition: transform .3s ease;
}

.about-tall-img:hover {
    transform: scale(1.02);
}
/* ── Unified Base State: Gray Layout Configuration ── */
.formation-card-premium {
    border-radius: var(--radius);
    position: relative;
    width: 100%; 
    max-width: 100%; 
    aspect-ratio: auto;
    min-height: 300px;  
    height: 100%;       
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem !important; 
    
    background-color: #EFEFEF !important; 
    border: 1px solid #e2e8f0 !important;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.04)) !important;
    transition: transform 0.4s ease-in-out, background-color 0.4s ease-in-out, border-color 0.4s ease-in-out, filter 0.4s ease-in-out !important;
}

.formation-card-premium::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    top: -35px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    background-color: #EFEFEF !important;
    border: 1px solid #e2e8f0 !important;
    clip-path: inset(0 0 50% 0);
    transition: background-color 0.4s ease-in-out, border-color 0.4s ease-in-out !important;
}

.formation-card-premium .formation-card-heading { 
    color: var(--text) !important; 
    transition: color 0.4s ease-in-out !important;
}
.formation-card-premium .formation-card-desc { 
    color: var(--text-muted) !important; 
    transition: color 0.4s ease-in-out !important;
}
.formation-card-premium .formation-custom-icon-img {
    transition: filter 0.4s ease-in-out !important;
}

/* ── Active & Hover Highlights (Mirrors value-item.active) ── */
.formation-item.active .formation-card-premium,
.formation-card-premium:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-6px) !important;
    filter: drop-shadow(0 10px 25px rgba(39, 174, 96, 0.22)) !important;
}

.formation-item.active .formation-card-premium::before,
.formation-card-premium:hover::before {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.formation-item.active .formation-card-premium .formation-card-heading,
.formation-item.active .formation-card-premium .formation-card-desc,
.formation-card-premium:hover .formation-card-heading,
.formation-card-premium:hover .formation-card-desc {
    color: var(--white) !important;
}

/* Dynamic structural filter maps icon to crisp solid white */
.formation-item.active .formation-custom-icon-img,
.formation-card-premium:hover .formation-custom-icon-img {
    filter: brightness(0) invert(1) !important;
}
/* Premium Interactive "LIRE PLUS" Action Button Layout rules */
.btn-lire-plus-custom {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 2.2rem;
    border-radius: 0.4rem;
    display: inline-block;
    transition: all 0.25s ease-in-out;
    text-decoration: none;
}
.btn-lire-plus-custom:hover {
    background-color: var(--primary);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.2);
}
/* ── CRITICAL RESOLUTION: FIXED NEWSLETTER COMPONENT HEIGHTS ── */
.section-newsletter { 
    background-image: url('../images/building.jpeg'); 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    position: relative; padding: 5rem 0 !important;
}
.newsletter-overlay-tint { position: absolute; inset: 0; background: rgba(20,32,43,0.75); z-index: 1; }
.newsletter-box { background: transparent; position: relative; max-width: 780px; margin: 0 auto; }

/* 1. Set a strict rigid height parameter directly on the unified group row wrapper bar */
.newsletter-combined-group { 
    max-width: 500px; 
    margin: 0 auto; 
    border-radius: 0.5rem; 
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important; /* Force all sub-items to stretch to match the exact same row height */
    height: 48px !important;         /* Explicit master vertical layout boundary */
    overflow: hidden !important;
    background-color: var(--white) !important;
    box-shadow: var(--shadow);
}

/* 2. Format the envelope icon container prefix wrapper */
.newsletter-icon-prefix {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--white) !important;
    padding-left: 1.25rem !important;
    padding-right: 0.5rem !important;
    height: 100% !important; /* Stretches perfectly inside the 48px boundary */
}
.custom-green-icon { color: var(--primary); font-size: 1.15rem; }

/* 3. Re-map the CF7 internal wrapper span box model sizes */
.newsletter-combined-group .wpcf7-form-control-wrap {
    display: flex !important;
    flex: 1 1 auto !important;
    height: 100% !important;
}

/* 4. Sanitize the input placeholder text field padding values */
.newsletter-input { 
    font-size: 0.92rem; 
    color: var(--text); 
    background-color: var(--white) !important; 
    border: none !important;
    outline: none !important;
    width: 100% !important;
    height: 100% !important; /* Snaps pixel-perfect to the 48px frame */
    padding: 0 1rem !important; /* Zero vertical padding prevents browser stretching overrides */
    margin: 0 !important;
}
.newsletter-input::placeholder { color: #a0aec0; opacity: 1; }
.newsletter-input:focus { box-shadow: none; background-color: var(--white); outline: none; }

/* 5. The Submit Button (Inherits identical master row height) */
.btn-newsletter-submit { 
    background-color: var(--primary); 
    color: var(--white) !important; 
    font-weight: 600; 
    font-size: 0.92rem; 
    padding: 0 1.8rem !important; 
    transition: background-color 0.2s ease-in-out; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 0 !important; /* Kept flat because the outer .newsletter-combined-group handles the rounded edge */
    height: 100% !important; /* Clamps to the exact same size as the placeholder */
    border: none !important;
    margin: 0 !important;
}
.btn-newsletter-submit:hover { background-color: var(--primary-dark); }

/* 6. Keep success notifications outside the component lines */
.newsletter-box .wpcf7-response-output {
    max-width: 500px !important;
    margin: 1rem auto 0 auto !important;
    padding: 10px 15px !important;
    border-radius: 0.4rem !important;
    font-size: 0.85rem !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    text-align: center !important;
}

/* ── Mobile Stacking Engine (Below 480px) ── */
@media (max-width: 480px) {
    .newsletter-combined-group { 
        flex-direction: column !important; 
        background: transparent !important; 
        box-shadow: none !important; 
        gap: 0.5rem !important; 
        height: auto !important; /* Releases the strict height block on mobile devices */
        overflow: visible !important;
    }
    .newsletter-combined-group .wpcf7-form-control-wrap { width: 100% !important; }
    
    .newsletter-combined-group .newsletter-icon-prefix, 
    .newsletter-combined-group input, 
    .newsletter-combined-group button { 
        border-radius: 0.4rem !important; 
        width: 100% !important; 
        height: 48px !important; /* Each box element turns into an independent 48px line block */
    }
    .newsletter-combined-group .newsletter-icon-prefix { padding: 0 !important; justify-content: center !important; }
    .btn-newsletter-submit { padding: 0 !important; }
}
/* ── Home Page Service Cards (Height Reduced & Spacing Tightened) ── */
.service-card { 
    background: var(--white); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    padding: 1.75rem !important; /* Slightly reduced padding to match tighter card space */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; 

    /* ── HEIGHT REDUCTION FIX ── */
    width: 100%; 
    max-width: 100%; 
    aspect-ratio: auto; /* Drops the forced square shape constraint */
    min-height: 200px;  /* Slashes the vast empty spacing inside the card */
    height: 100%;       /* Ensures all cards stretch evenly to match column rows */
}

.service-card h5 { 
    color: var(--text); 
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem; 
    transition: color 0.3s ease; 
}

.service-desc { 
    color: var(--text-muted); 
    line-height: 1.5; 
    margin-bottom: 1.25rem; 
    margin-top: 0; 
    font-size: 0.86rem;
    transition: color 0.3s ease; 
}

.service-icon { 
    font-size: 2.2rem; /* Balanced icon scale proportion */
    color: var(--primary); 
    transition: color 0.3s ease; 
    line-height: 1;
}

.service-link { 
    color: var(--primary); 
    font-size: 0.85rem; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    margin-top: auto; /* Anchors the link securely to the card baseline */
    text-decoration: underline; 
    text-decoration-thickness: 1.5px; 
    text-underline-offset: 4px; 
    transition: color 0.3s ease, text-decoration-color 0.3s ease; 
}

/* ── Interactive Hover State Rules ── */
.service-card:hover { 
    background-color: var(--primary); 
    transform: translateY(-5px); 
    box-shadow: 0 12px 28px rgba(39, 174, 96, 0.18); 
}

.service-card:hover h5, 
.service-card:hover .service-desc, 
.service-card:hover .service-icon, 
.service-card:hover .service-link { 
    color: var(--white) !important; 
    text-decoration-color: var(--white); 
}

/* ── Section background sequence ── */
.section-formations { background-color: var(--white); }
.section-services { background-color: #f4f6f8 !important; }
.section-testimonials { background-color: var(--white) !important; }
.section-partners { background-color: #f4f6f8 !important; }

/* ── Section background sequence ── */
.section-formations { background-color: var(--white); }
.section-services { background-color: #f4f6f8 !important; }
.section-testimonials { background-color: var(--white) !important; }
.section-partners { background-color: #f4f6f8 !important; }

/* ── Testimonials (Wider Slider Layout - Height Reduced) ── */
.testi-slider-window { 
    width: 100%; 
    overflow: hidden; 
    padding-top: 30px; 
}

.testi-track { 
    display: flex; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    width: 100%; 
}

.testi-track-column { 
    flex: 0 0 33.333%; 
    max-width: 33.333%; 
    padding: 0 12px; 
    box-sizing: border-box; 
    display: flex; /* Ensures inner items can stretch to uniform row heights */
}

.testimonial-card-wrapper {
    position: relative;
    padding-top: 20px;
    width: 100%;
    display: flex;
}

/* ── HEIGHT REDUCTION FIX: Tightened card footprint ── */
.testimonial-card { 
    background: var(--white); 
    border-radius: var(--radius); 
    border: 2px solid var(--primary); /* Green border matching your configuration rules */
    
    width: 100%; /* Spans 100% of its track lane window dynamically */
    max-width: 100%; 
    aspect-ratio: auto; /* Drops the forced square shape constraint */
    min-height: 200px;  /* Slashes the vast empty gap space down significantly */
    height: 100%;       /* Aligns all slider cards to equal heights perfectly */
    
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    padding: 2rem 1.5rem 1.5rem 1.5rem !important; /* Reduced vertical padding cushion */
    position: relative;
}

.testi-border-icon-hook {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white); 
    padding: 0 0.6rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testi-border-icon-hook i {
    color: var(--primary); 
    font-size: 1.8rem;
    line-height: 1;
}

.testi-text { 
    font-style: italic; 
    color: var(--text-muted); 
    font-size: 0.88rem; 
    line-height: 1.6; 
    margin: 0;
    margin-bottom: 1.25rem; /* Leaves clean breathing gap above profile metadata */
}
.stars i { 
    font-size: 0.85rem; 
    color: #ffc107; 
}


.testi-profile-row { 
    border-top: none !important; 
    padding-top: 0;
    width: 100%;
    margin-top: auto; /* Anchors the profile rows evenly along the base baseline */
}

.testi-avatar { 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
}
.testi-avatar i {
    font-size: 2.2rem;
}

.testi-meta strong {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}
.testi-meta span {
    font-size: 0.8rem;
}

/* Side Buttons Positioning adjustments */
.testi-nav-btn {
    position: absolute;
    top: calc(50% + 55px); /* Adjusted from 55% to stay dead-center on the shorter cards */
    transform: translateY(-50%);
    background-color: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; transition: all 0.2s ease-in-out; 
    z-index: 10;
}
.arrow-prev { left: -50px; }
.arrow-next { right: -50px; }
.testi-nav-btn:hover { background-color: var(--primary); color: var(--white); }

/* Indicators Indicators */
.testi-indicators-container { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
.testi-indicators-container button {
    background-color: #cbd5e1 !important;
    width: 10px !important; height: 10px !important; border-radius: 50% !important;
    border: none !important; padding: 0; cursor: pointer; transition: all 0.2s ease;
}
.testi-indicators-container button.active { background-color: var(--primary) !important; transform: scale(1.1); }

@media (max-width: 1199.98px) {
    .arrow-prev { left: -15px; }
    .arrow-next { right: -15px; }
}
@media (max-width: 991.98px) {
    .testi-track-column { flex: 0 0 50%; max-width: 50%; }
    .testi-nav-btn { display: none; }
}
@media (max-width: 575.98px) {
    .testi-track-column { flex: 0 0 100%; max-width: 100%; }
}

/* ── Partners ── */
.partner-slider-window { width: 100%; overflow: hidden; padding: 1rem 0; }
.partner-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); width: 100%; }
.partner-track-column { flex: 0 0 25%; max-width: 25%; padding: 0 15px; box-sizing: border-box; }
.partner-card, .partner-card-white { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); height: 110px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.partner-card:hover, .partner-card-white:hover { transform: translateY(-3px); }
.partner-logo { max-height: 65px; width: auto; object-fit: contain; opacity: 0.9; transition: all 0.3s ease; }
.partner-card:hover .partner-logo, .partner-card-white:hover .partner-logo { opacity: 1; }
.partners-indicators-round { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
.partners-indicators-round button { width: 10px; height: 10px; border: none; background-color: #cbd5e1; padding: 0; cursor: pointer; border-radius: 50%; transition: all 0.3s ease; }
.partners-indicators-round button.active { background-color: var(--primary); transform: scale(1.15); }
@media (max-width: 991.98px) { .partner-track-column { flex: 0 0 33.333%; max-width: 33.333%; } }
@media (max-width: 767.98px) { .partner-track-column { flex: 0 0 50%; max-width: 50%; } }

/* ── Nos Contacts ── */
.section-contacts { 
    background-color: var(--white); 
}

/* Flex framework ensures buttons align cleanly at the bottom without card wraps */
.contact-content-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 220px;
}

/* Default state reversed: Icon circles now default directly to solid brand green */
.contact-icon-box { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background-color: var(--primary); /* Solid Brand Green */
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.contact-icon-box i { 
    font-size: 1.5rem; 
    color: var(--white); /* White Icon */
}

.contact-card-title { 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: var(--text); 
    margin-bottom: 0.75rem; 
}

.contact-card-detail { 
    font-size: 0.92rem; 
    color: var(--text-muted); 
    line-height: 1.6; 
}

.btn-contact-action { 
    font-size: 0.82rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.03em; 
    color: var(--primary); 
    border: 1px solid var(--primary); 
    background: transparent; 
    padding: 0.45rem 1.2rem; 
    border-radius: 0.4rem; 
    margin-top: auto; /* Keeps buttons in a clean horizontal line */
    transition: all 0.2s ease-in-out; 
}
.btn-contact-action:hover { 
    background-color: var(--primary); 
    color: var(--white) !important; 
}

/* ── Map & Contact Form (Straddle Layout) ── */
.section-map-form-straddle {
    background-color: transparent; /* Allows underlying backgrounds to show through */
    position: relative;
    z-index: 10; /* Raises the block above both white and dark sections */
    margin-bottom: -100px; /* Pulls the entire element down into the dark footer territory */
}

.brand-green-form {
    background-color: var(--primary) !important;
    box-shadow: var(--shadow);
    border: none;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.map-container-box iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}

.form-label-custom {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.35rem;
}

.form-input-underline {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0px !important;
    padding: 0.5rem 0 !important;
    font-size: 0.95rem;
    color: var(--white) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease-in-out;
}
.form-input-underline::placeholder {
    color: white;
    font-size: 0.88rem;
}
.form-input-underline:focus {
    border-bottom-color: var(--white) !important;
}

.btn-form-white-submit {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.8rem 0;
    border-radius: 0.4rem;
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}
.btn-form-white-submit:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
}

/* Responsive adjustment layer tweaks for small screens */
@media (max-width: 991.98px) {
    .brand-green-form {
        border-radius: var(--radius) var(--radius) 0 0 !important;
    }
    .map-container-box iframe {
        border-radius: 0 0 var(--radius) var(--radius) !important;
        min-height: 350px;
    }
}
/* ── Dark Footer Area ── */
.footer { 
    position: relative;
    z-index: 1;
    /* Extra top padding provides a clear safety gap for the overlapping element above */
    padding-top: 200px !important; 
}

/* Responsive adjustment parameters for tablet and mobile scales */
@media (max-width: 991.98px) {
    .section-map-form-straddle {
        padding-left: 5% !important;
        padding-right: 5% !important;
        margin-bottom: -100px; /* Reduces shifting overlap height on small screens */
    }
    .brand-green-form {
        border-radius: var(--radius) var(--radius) 0 0 !important;
    }
    .map-container-box iframe {
        border-radius: 0 0 var(--radius) var(--radius) !important;
        min-height: 350px;
    }
    .footer {
        padding-top: 140px !important;
    }
}

/* Global Footer style for ALL pages (Standard normal padding) */
.footer { 
    background: #0d1217; 
    position: relative;
    z-index: 1;
    padding-top: 4rem !important; /* Normal, clean top padding for services, à-propos, etc. */
}

/* Special Modifier class ONLY for pages with the overlapping map-form */
.footer-with-straddle {
    padding-top: 200px !important; /* Extra space to make room for the floating form */
}

/* Responsive fix for mobile layout screens */
@media (max-width: 991.98px) {
    .footer-with-straddle {
        padding-top: 140px !important;
    }
}
.footer-heading { color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer a { color: rgba(255,255,255,.6); font-size: 0.85rem; transition: color .2s; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { color: rgba(255,255,255,.6); font-size: 0.85rem; margin-bottom: .6rem; display: flex; align-items: flex-start; gap: .4rem; }
.footer a:hover { color: var(--primary); }
/* ── Cercles Sociaux Verts du Pied de Page (Design Maquette) ── */
.footer-socials {
    gap: 0.6rem; /* Espace uniforme entre chaque cercle */
}

.footer-social-link { 
    background-color: var(--primary) !important; /* Fond vert solide de la marque */
    color: var(--white) !important; /* Icône blanche */
    
    /* Structure de cercle parfait */
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease; 
}

.footer-social-link i {
    font-size: 1.1rem; /* Taille équilibrée des glyphes */
    line-height: 1;
    display: inline-block;
}

/* Ajustement spécifique pour l'icône YouTube pour un rendu plus compact si nécessaire */
.footer-social-link .bi-youtube {
    font-size: 1.15rem;
}

/* Effet interactif au survol */
.footer-social-link:hover { 
    background-color: var(--primary-dark) !important; /* Assombrissement subtil du vert */
    transform: translateY(-2px); /* Léger rebond moderne */
    color: var(--white) !important;
}
.footer-social-link:hover { color: white; }
.footer-divider { border-color: rgba(255,255,255,.1); }
.footer-copy { color: rgba(255,255,255,.5); font-size: 0.8rem; }
.footer-legal-link { color: rgba(255,255,255,.5); font-size: 0.8rem; transition: color .2s; }
.footer-legal-link:hover { color: white; }

/* ── SCROLL TO TOP ROUND BUTTON OVERRIDES ── */
a.scroll-to-top-btn {
    position: fixed !important;
    bottom: 6.5rem !important; /* Locks perfectly 52px above the WhatsApp button */
    right: 2rem !important;
    
    /* Force rigid pixel-perfect circular measurements */
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
    
    background-color: var(--primary) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    
    /* Clean layout formatting overrides */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important; /* Stops other styles from compressing the button */
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    
    font-size: 1.4rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000 !important;
    cursor: pointer !important;
    
    /* Smooth opacity transitions tracking mechanisms */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(15px) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease !important;
}

/* Hover mechanics: slight pop up lift effect */
a.scroll-to-top-btn:hover {
    background-color: var(--primary) !important;
    filter: brightness(90%) !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Visibility framework applied dynamically via your JavaScript engine */
a.scroll-to-top-btn.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Ensure the Bootstrap icon inside inherits no padding or offset shifts */
a.scroll-to-top-btn i {
    display: inline-block !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── WhatsApp float ── */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; width: 52px; height: 52px; background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 16px rgba(37,211,102,.4); z-index: 1000; transition: transform .2s, box-shadow .2s; }
.whatsapp-float:hover { color: white; transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,.5); }

/* ── Responsive ── */
@media (max-width: 768px) { .hero-title { font-size: 1.7rem; } .section-title { font-size: 1.4rem; } }
@media (max-width: 576px) { .hero-title { font-size: 1.4rem; } .newsletter-input { max-width: 100%; } }


/* ============================================================
   PAGE BANNER — reusable inner page hero
   Usage: <section class="page-banner">
            <div class="container">
              <h1 class="page-banner-title">Page Title</h1>
              <nav class="page-banner-breadcrumb">...</nav>
            </div>
          </section>
============================================================ */
.page-banner {
    background-image: url('../images/building.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 5rem 0;
    text-align: center;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 35, 0.72);
}
.page-banner .container {
    position: relative;
    z-index: 2;
}
.page-banner-title {
    color: var(--white);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.page-banner-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,.65);
}
.page-banner-breadcrumb a {
    color: black;
    transition: color .2s;
}
.page-banner-breadcrumb a:hover { color: var(--white); }
.page-banner-breadcrumb .separator { color: black; }
.page-banner-breadcrumb .current { color: var(--primary); font-weight: 600; }

@media (max-width: 768px) {
    .page-banner { padding: 3.5rem 0; }
    .page-banner-title { font-size: 1.8rem; }
}
/* ============================================================
   SERVICES PAGE (Height Reduced & Spacing Tightened)
============================================================ */
.section-services-grid { 
    background-color: var(--white);
}

.section-services-grid .section-subtitle {
    max-width: 100% !important;
    margin: 0 !important;
    line-height: 1.6;
}

.text-justify {
    text-align: justify !important;
    text-justify: inter-word;
    width: 100%;
}

/* ── Service Grid Cards Styling ── */
.service-grid-card {
    background: #EFEFEF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem !important; /* Balanced uniform padding */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;

    /* ── HEIGHT REDUCTION FIX ── */
    width: 100%; 
    max-width: 100%; 
    aspect-ratio: auto; /* Drops the forced square shape constraint */
    min-height: 300px;  /* Slashes the vast empty spacing inside the card */
    height: 100%;       /* Ensures all cards stretch evenly to match column rows */
}

.service-grid-card h5 {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.service-grid-desc {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    margin-top: 0;
    font-size: 0.86rem; 
    transition: color 0.3s ease;
}

.service-grid-icon {
    font-size: 2.2rem;
    color: var(--primary);
    transition: color 0.3s ease;
    line-height: 1;
}

.service-grid-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto; /* Anchors link to bottom card track */
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

/* ── Full Green Hover State Changes ── */
.service-grid-card:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(39, 174, 96, 0.18);
}

.service-grid-card:hover h5,
.service-grid-card:hover .service-grid-desc,
.service-grid-card:hover .service-grid-icon,
.service-grid-card:hover .service-grid-link {
    color: var(--white) !important;
    text-decoration-color: var(--white);
}

/* ── Custom Pagination Theme ── */
.custom-pagination .page-link {
    color: var(--text, #333);
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius, 8px) !important; /* Forces rounded shapes */
    transition: all 0.2s ease;
}

/* Hover State */
.custom-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    color: var(--white);
    background-color: #2B6557; /* Your main green color */
    border-color: #2B6557;
}

/* Active Page State */
.custom-pagination .page-item.active .page-link {
    color: var(--white);
    background-color: #225045; /* Your dark green color choice */
    border-color: #225045;
}

/* Disabled State (For first/last page locks) */
.custom-pagination .page-item.disabled .page-link {
    color: var(--text-muted, #aaa);
    background-color: #f8f9fa;
    border-color: #e0e0e0;
    opacity: 0.6;
}

/* ── COMAFI CUSTOM PAGINATION DESIGN THEME ── */
.comafi-pagination-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important; /* Balanced breathing room spacing between numbers */
    margin-top: 1rem;
}

/* Base style layout rules applied to all generated navigation link pieces */
.comafi-pagination-wrapper .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: var(--text, #333333) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Spacing and textual properties specific to Previous / Next text controls */
.comafi-pagination-wrapper .page-numbers.prev,
.comafi-pagination-wrapper .page-numbers.next {
    gap: 8px !important;
    padding: 0 18px !important;
    min-width: auto !important;
}

/* Custom alignment adjustments for navigation arrows inside layout boundaries */
.comafi-pagination-wrapper .page-numbers i {
    display: inline-block;
    line-height: 1;
    font-size: 0.85rem;
}

/* ── ACTIVE CURRENT STATE STATE (MATCHES BRAND THEME) ── */
.comafi-pagination-wrapper .page-numbers.current {
    background-color: var(--primary) !important; /* Native core branding green canvas background */
    border-color: var(--primary) !important;
    color: #ffffff !important;                   /* Crisp layout inversion text color */
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2) !important;
    cursor: default !important;
    pointer-events: none;                        /* Safe guard locks active items against clickable refreshes */
}

/* ── INTERACTIVE HOVER ACTIONS FOR INACTIVE BLOCKS ── */
.comafi-pagination-wrapper .page-numbers:not(.current):hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: var(--primary) !important; /* Text links turn green to show cursor tracking */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Static layout presentation guidelines for ellipsis break tokens (...) */
.comafi-pagination-wrapper span.page-numbers.dots {
    border-color: transparent !important;
    background: transparent !important;
    color: #94a3b8 !important;
    cursor: default !important;
    pointer-events: none;
}


/* ============================================================
   SERVICE DETAIL PAGE
============================================================ */

/* Sidebar */
.service-sidebar {
    background: #EFEFEF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.service-sidebar-title {
    background: #2B6557;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    margin: 0;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.service-sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}
.service-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.25rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background .2s, color .2s, padding-left .2s;
}
.service-sidebar-nav li a:hover {
    background:  var(--primary);
    color:  #eafaf1;
    padding-left: 1.5rem;
}
.service-sidebar-nav li.active a i { color: var(--white); }
.service-sidebar-nav li:hover a i { color: var(--white); }
.service-sidebar-nav li.active a {
    background:  var(--primary);
    color:  #eafaf1;
    font-weight: 700;
    border-left: 3px solid var(--primary);
    padding-left: calc(1.25rem - 3px);
}
.service-sidebar-nav li a i { font-size: 0.8rem; color: black; }

/* Detail content */
.service-detail-content h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}
.service-detail-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.service-detail-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
.service-detail-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}
.service-detail-images img:hover { transform: scale(1.02); }

.service-sub-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
}
.service-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-sub-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.service-sub-list li i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* CTA band inside detail */
.service-cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 2rem 2rem;
    color: var(--white);
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.service-cta-band h4 { color: var(--white); margin: 0 0 0.25rem; font-size: 1.15rem; }
.service-cta-band p { color: rgba(255,255,255,.8); margin: 0; font-size: 0.88rem; }
.btn-cta-white {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1.4rem;
    border-radius: 0.4rem;
    border: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.btn-cta-white:hover { background: #f0fdf4; color: var(--primary-dark); }

/* ── Typographie Justifiée et Ajustement des blocs ── */
.text-justify {
    text-align: justify !important;
    text-justify: inter-word;
    width: 100%;
}

/* Réinitialisation de la marge max pour que l'intro occupe toute la largeur de sa grille */
.services-intro .section-subtitle {
    max-width: 100% !important;
    margin: 0 !important;
    line-height: 1.7;
}

/* ── Fil d'Ariane (Breadcrumbs) Calé à Gauche ── */
.page-banner-breadcrumb {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}
.page-banner-breadcrumb .current {
    color: var(--primary); /* Vert de la marque */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.page-banner-breadcrumb a:hover {
    color: var(--primary-dark);
}
.page-banner-breadcrumb .separator {
    color: var(--text-muted);
    margin: 0 0.6rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
}
.page-banner-breadcrumb a {
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Card 1: Custom Blue (#5FA6D4) ── */
.card-light-blue {
    background-color: #5FA6D4 !important;
    border: 1px solid #5FA6D4;
}
.card-light-blue .stat-label {
    color: var(--white) !important;
    font-weight: 700;
}
.card-light-blue .stat-desc {
    color: rgba(255, 255, 255, 0.9) !important;
}
.card-light-blue .icon-circle {
    background: rgba(255, 255, 255, 0.2) !important;
}
.card-light-blue .icon-circle i {
    color: var(--white) !important;
}

/* ── Card 2: Custom Green (#53978A) ── */
.card-light-green {
    background-color: #53978A !important;
    border: 1px solid #53978A;
}
.card-light-green .stat-label {
    color: var(--white) !important;
    font-weight: 700;
}
.card-light-green .stat-desc {
    color: rgba(255, 255, 255, 0.9) !important;
}
.card-light-green .icon-circle {
    background: rgba(255, 255, 255, 0.2) !important;
}
.card-light-green .icon-circle i {
    color: var(--white) !important;
}

/* ── Card 3: Deep Blue (#24547C) ── */
.card-dark-blue {
    background-color: #24547C !important;
    border: 1px solid #24547C;
}
.card-dark-blue .stat-label {
    color: var(--white) !important;
    font-weight: 700;
}
.card-dark-blue .stat-desc {
    color: rgba(255, 255, 255, 0.9) !important;
}
.card-dark-blue .icon-circle {
    background: rgba(255, 255, 255, 0.2) !important;
}
.card-dark-blue .icon-circle i {
    color: var(--white) !important;
}

/* ============================================================
   FORMATION DETAIL PAGE (With Offset Pseudo-Element Accents)
============================================================ */

.formation-module-fluid-row {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem 0;
}

.bg-light-tint {
    background-color: #f8fafc !important; 
}
.bg-white {
    background-color: var(--white) !important;
}

/* ── Integrated Pseudo-Element Image Wrapper ── */
.formation-module-image-wrapper {
    position: relative;
    display: inline-block;
    /* Extra bottom/right space accommodates the 15px offset block cleanly */
    padding-bottom: 15px; 
    padding-right: 15px;
}

.formation-module-img {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
    z-index: 2; /* Forces the image card to sit above the green background box */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Fused Green Solid Accent Box Graphic */
.formation-module-image-wrapper::after {
    content: "";
    position: absolute;
    /* Positioning values create a clean 15px offset effect without shifting layout rows */
    top: 15px;
    left: 15px;
    
    /* Matches image element size exactly */
    width: calc(100% - 15px);
    height: calc(100% - 15px);
    
    background: var(--primary); /* Corporate Brand Green */
    border-radius: var(--radius);
    z-index: 1;
}

.formation-module-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.formation-module-body h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.formation-module-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: justify;
}

.formation-module-footer {
    width: 100%;
}

.formation-module-date {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 0.5rem;
}

.btn-inscrire {
    background-color: #0d1217 !important;
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.85rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}
.btn-inscrire:hover { 
    background-color: #53978A !important; 
    transform: translateY(-1px);
}

/* Mobile Responsiveness Layer Overrides */
@media (max-width: 767.98px) {
    .formation-module-fluid-row {
        padding: 2.5rem 0;
    }
    .formation-module-image-wrapper {
        margin-bottom: 1.5rem;
        padding-bottom: 10px;
        padding-right: 10px;
    }
    .formation-module-image-wrapper::after {
        top: 10px;
        left: 10px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
    }
    .formation-module-img {
        max-width: 100%;
        height: 200px;
    }
    .formation-module-footer {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    .formation-module-date, .btn-inscrire {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ── Utilities ── */
.text-justify { text-align: justify !important; text-justify: inter-word; width: 100%; }
.services-intro .section-subtitle { max-width: 100% !important; margin: 0 !important; line-height: 1.7; }


/* ============================================================
   FORMATION DETAIL PAGE
============================================================ */

/* Sidebar — reuses service-sidebar pattern with formation context */
.formation-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.formation-sidebar-title {
    background: var(--primary);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    margin: 0;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.formation-sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}
.formation-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.25rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background .2s, color .2s, padding-left .2s;
}
.formation-sidebar-nav li a:hover {
    background: #f0fdf4;
    color: var(--primary);
    padding-left: 1.5rem;
}
.formation-sidebar-nav li.active a {
    background: #f0fdf4;
    color: var(--primary);
    font-weight: 700;
    border-left: 3px solid var(--primary);
    padding-left: calc(1.25rem - 3px);
}
.formation-sidebar-nav li a i { font-size: 0.8rem; color: var(--primary); }

/* Sub-module rows */
.formation-module-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #edf2f7;
}
.formation-module-row:last-child { border-bottom: none; }
.formation-module-img {
    width: 140px;
    flex-shrink: 0;
    height: 90px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}
.formation-module-body { flex: 1; }
.formation-module-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.formation-module-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.6rem;
}
.formation-module-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: #f0fdf4;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-right: 0.5rem;
}
.btn-inscrire {
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 0.4rem;
    border: none;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.btn-inscrire:hover { background: var(--primary-dark); color: var(--white); }

/* Registration form — split layout */
.formation-register-section {
    background-color: var(--white);
}
.formation-register-img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}
.formation-register-form-box {
    background: var(--primary);
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.formation-register-form-box h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.formation-register-form-box p {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.register-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.register-row > div { flex: 1; }
.register-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.25rem;
    display: block;
}
.register-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.35);
    border-radius: 0;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: var(--white);
    outline: none;
    transition: border-color 0.2s ease;
}
.register-input::placeholder { color: rgba(255,255,255,0.4); font-style: italic; font-size: 0.85rem; }
.register-input:focus { border-bottom-color: var(--white); }
.register-input:-webkit-autofill,
.register-input:-webkit-autofill:hover,
.register-input:-webkit-autofill:focus { -webkit-text-fill-color: var(--white) !important; transition: background-color 5000s ease-in-out 0s; border-bottom: 2px solid rgba(255,255,255,0.35); }
.register-select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.35);
    border-radius: 0;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    transition: border-color 0.2s ease;
}
.register-select option { background: #1e8449; color: var(--white); }
.register-select:focus { border-bottom-color: var(--white); }
.register-check-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    margin-left: 0.4rem;
}
.register-check-label a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.register-check-label a:hover { color: var(--white); }
.btn-register-submit {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 2rem;
    border-radius: 0.4rem;
    border: 2px solid var(--white);
    transition: all 0.2s ease;
    margin-top: 1.25rem;
}
.btn-register-submit:hover { background: #f0fdf4; color: var(--primary-dark); }
.register-login-link {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.75rem;
    display: block;
    text-align: right;
}
.register-login-link a { color: var(--white); text-decoration: underline; }

@media (max-width: 767.98px) {
    .formation-module-row { flex-direction: column; }
    .formation-module-img { width: 100%; height: 160px; }
    .formation-register-img { min-height: 240px; border-radius: var(--radius) var(--radius) 0 0; }
    .formation-register-form-box { border-radius: 0 0 var(--radius) var(--radius); }
    .register-row { flex-direction: column; gap: 0.75rem; }
}

/* ============================================================
   FORMATIONS PAGE
============================================================ */
/* ── Calendar Table (Exact Replicated Mockup View) ── */
.section-formations-page { 
    background-color: var(--white); 
}

.formations-calendar-table {
    width: 100%;
    /* Use standard collapse model to allow clean continuous cell borders */
    border-collapse: collapse; 
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Soft premium floating shadow overlay */
    border: 1px solid #e2e8f0;
}

/* Header styled with the exact dark teal green from the mockup image */
.formations-calendar-table thead th {
    background-color: #2B6557 !important; 
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.1rem 1rem;
    text-align: center;
    /* Clean white inner cell dividers for the header row */
    border: 1px solid rgba(255, 255, 255, 0.15); 
}

/* First Column Header: Aligned Left */
.formations-calendar-table thead th:first-child {
    text-align: left;
    padding-left: 1.5rem;
    width: 160px;
}

/* Alternating Row Tints: Replaced var(--text-muted) with a very clean, soft grey */
.formations-calendar-table tbody tr:nth-child(even) { 
    background-color: #f8fafc !important; 
}
.formations-calendar-table tbody tr:nth-child(odd)  { 
    background-color: var(--white) !important; 
}

/* Unified Body Cell Configurations */
.formations-calendar-table tbody td {
    padding: 1rem 1rem;
    font-size: 0.9rem;
    color: #4a5568;
    /* Crisp light gray grid borders between cells exactly like the image */
    border: 1px solid #e2e8f0; 
    text-align: center;
    vertical-align: middle;
}

/* Month Name Column Formatting (First Column) */
.formations-calendar-table tbody td:first-child {
    font-weight: 600;
    color: #1a252f;
    text-align: left;
    padding-left: 1.5rem;
}

/* Smooth hover interaction row highlight effect */
.formations-calendar-table tbody tr:hover {
    background-color: rgba(43, 101, 87, 0.04) !important;
}

/* ============================================================
   FORMATION DETAIL PAGE (With Offset Pseudo-Element Accents)
============================================================ */

.formation-module-fluid-row {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem 0;
}

.bg-light-tint {
    background-color: #f8fafc !important; 
}
.bg-white {
    background-color: var(--white) !important;
}

/* ── Integrated Pseudo-Element Image Wrapper ── */
.formation-module-image-wrapper {
    position: relative;
    display: inline-block;
    /* Extra bottom/right space accommodates the 15px offset block cleanly */
    padding-bottom: 15px; 
    padding-right: 15px;
}

.formation-module-img {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
    z-index: 2; /* Forces the image card to sit above the green background box */
    box-shadow: 0 2px 7.5px rgba(0, 0, 0, 0.08);
}

/* Fused Green Solid Accent Box Graphic */
.formation-module-image-wrapper::after {
    content: "";
    position: absolute;
    /* Positioning values create a clean 15px offset effect without shifting layout rows */
    top: 50px;
    left: 50px;
    
    /* Matches image element size exactly */
    width: calc(100% - 50px);
    height: calc(100% - 50px);
    
    background: var(--primary); /* Corporate Brand Green */
    border-radius: var(--radius);
    z-index: 1;
}

.formation-module-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.formation-module-body h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.formation-module-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: justify;
}

.formation-module-footer {
    width: 100%;
}

.formation-module-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f0fdf4;
    background: var(--primary);
    padding: 0.4rem 0.75rem;
    border-radius: 2rem;
    margin-right: 0.5rem;

    /* Responsive */
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}
@media (max-width: 576px) {

    .formation-module-footer {
        flex-direction: column;
        align-items: stretch !important;
    }

    .formation-module-date {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
        margin: 0 0 1rem;
        font-size: 0.75rem;
        border-radius: 1rem;
    }

    .btn-inscrire {
        width: 100%;
    }
}

.btn-inscrire {
    background-color: #0d1217 !important;
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.85rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}
.btn-inscrire:hover { 
    background-color: #53978A !important; 
    transform: translateY(-1px);
}

/* Mobile Responsiveness Layer Overrides */
@media (max-width: 767.98px) {
    .formation-module-fluid-row {
        padding: 2.5rem 0;
    }
    .formation-module-image-wrapper {
        margin-bottom: 1.5rem;
        padding-bottom: 10px;
        padding-right: 10px;
    }
    .formation-module-image-wrapper::after {
        top: 10px;
        left: 10px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
    }
    .formation-module-img {
        max-width: 100%;
        height: 200px;
    }
    .formation-module-footer {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    .formation-module-date, .btn-inscrire {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


/* ============================================================
   CONTACT PAGE
============================================================ */
.section-contact-main { background-color: var(--white); }

.contact-form-panel {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    height: 100%;
}

.contact-form-panel h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
}

.contact-info-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    height: 100%;
}
.contact-info-panel h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.contact-info-panel p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.contact-info-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background-color: #f0fdf4;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}
.contact-info-icon i { font-size: 1.1rem; color: var(--primary); }
.contact-info-item:hover .contact-info-icon { background-color: var(--primary); }
.contact-info-item:hover .contact-info-icon i { color: var(--white); }
.contact-info-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
}
.contact-info-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.contact-social-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.contact-social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f0fdf4;
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.contact-social-btn:hover { background: var(--primary); color: var(--white); }

.section-contact-map iframe { display: block; }

/* ============================================================
   A-PROPOS PAGE
============================================================ */
.about-intro-text h2 { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.about-intro-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 0.85rem; font-size: 0.92rem; }

.about-check-list { list-style: none; padding: 0; margin: 0; }
.about-check-list li {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.about-check-list li i { color: var(--primary); font-size: 1.1rem; margin-top: 0.05rem; flex-shrink: 0; }

.about-dark-band {
    background-color: #2B6557;
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
}
.about-dark-band h2 { color: var(--white); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.about-dark-band p { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.about-dark-band .about-check-list li { color: rgba(255,255,255,0.85); }
.about-dark-band .about-check-list li i { color: var(--white); }

/* ============================================================
   TERMES PAGE
============================================================ */
.section-termes { background-color: var(--white); }
.termes-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #edf2f7;
}
.termes-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    text-align: justify;
}
.termes-check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.termes-check-list li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    color: var(--text-muted); font-size: 0.88rem;
    padding: 0.25rem 0; line-height: 1.5;
}
.termes-check-list li i { color: var(--primary); font-size: 0.9rem; margin-top: 0.15rem; flex-shrink: 0; }

/* ============================================================
   CONTACT PAGE
============================================================ */
.section-contact-form {
    background-color: var(--white);
}
.contact-info-panel {
    background-color: var(--primary);
    border-radius: var(--radius);
    padding: 2.5rem;
    color: var(--white);
    height: 100%;
}
.contact-info-panel h4 {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.contact-info-panel > p {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.contact-info-item .icon-box {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,255);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.contact-info-item h6 {
    color: var(--white);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}
.contact-info-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin: 0;
}
/* Base style adjustments */
.contact-info-socials a {
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    width: 38px; 
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,255);
    margin-right: 0.6rem;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s; /* Added color transition */
}

/* Individual Brand Colors */
.contact-info-socials a .bi-facebook {
    color: #1877F2;
}
.contact-info-socials a .bi-twitter-x {
    color: #000000;
}
.contact-info-socials a .bi-linkedin {
    color: #0A66C2;
}
.contact-info-socials a .bi-instagram {
    color: #E1306C;
}

/* Hover Effects (Optional: Keeps the color vivid on hover) */
.contact-info-socials a:hover { 
    background: rgba(255, 255, 255, 0.9); 
}


/* Light form panel (white card, green underline inputs) */
.contact-form-panel {
    background-color: var(--white);
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    height: 100%;
}
.contact-form-panel h4 {
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.75rem;
}
.contact-form-panel .form-label-custom {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}
.contact-form-panel .form-input-underline {
    background-color: #EFEFEF !important;
    border: none !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
    font-size: 0.95rem;
    color: var(--text) !important;
    box-shadow: none !important;
    width: 100%;
    transition: border-color 0.2s ease;
}

/* ── CUSTOM PRIMARY SUBMIT BUTTON MATCHING THE MOCKUP ── */
.btn.btn-mockup-primary {
    background-color: var(--primary) !important; /* Dynamically pulls your exact brand-green color */
    color: #ffffff !important;                   /* Flat solid white text */
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 14px 24px !important;
    border-radius: 6px !important;
    border: none !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease-in-out !important;
}

/* Hover state: dims slightly for smooth user interaction feedback */
.btn.btn-mockup-primary:hover {
    background-color: var(--primary) !important;
    filter: brightness(90%);                    /* Clean native trick to shade your primary green down on hover */
    color: #ffffff !important;
}

/* Focus state: ensures it doesn't look messy when clicked */
.btn.btn-mockup-primary:focus {
    box-shadow: 0 0 0 3px rgba(112, 176, 32, 0.25) !important;
    outline: none !important;
}

.contact-form-panel .form-input-underline::placeholder { color: black; font-size: 0.88rem;}
.contact-form-panel .form-input-underline:focus { border-bottom-color: var(--primary) !important; }
.contact-form-panel .btn-green { width: 100%; padding: 0.8rem 0; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.03em; }
.section-contact-map iframe { display: block; width: 100%; }

/* ============================================================
   A-PROPOS PAGE
============================================================ */
.about-page-section { padding: 4rem 0; }
.about-page-section h2 { font-weight: 800; color: var(--text); margin-bottom: 1.25rem; }
.about-page-section p { color: var(--text-muted); line-height: 1.8; }
.about-page-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-page-img-tall { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
/* Wrapper */
.propos-image-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    padding-right: 20px;
}

/* Green accent box */
.propos-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;

    width: 95%;
    height: 95%;

    background: #245549;
    border-radius: 0.5rem;
    z-index: 1;
}

/* Image */
.propos-tall-img {
    width: 100%;
    height: 416px;
    object-fit: cover;
    border-radius: 0.5rem;
    position: relative;
    z-index: 2;

    box-shadow:
        0 15px 35px rgba(0,0,0,.25);

    transition: transform .3s ease;
}

.propos-tall-img:hover {
    transform: scale(1.02);
}

.values-image-wrapper {
    position: relative;
}

/* FULL FRAME BACKGROUND (encircling effect) */
.values-image-wrapper::after {
    content: "";
    position: absolute;

    /* expands beyond image on all sides */
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;

    background: var(--white);
    border-radius: 0.5rem;
    z-index: 1;
}

/* IMAGE ABOVE FRAME */
.about-page-img-tall {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 0.5rem;

    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

.services-image-wrapper {
    position: relative;
}

/* FULL GREEN FRAME */
.services-image-wrapper::after {
    content: "";
    position: absolute;

    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;

    background: var(--white);
    border-radius: 0.5rem;
    z-index: 1;
}

.about-page-img {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 0.5rem;

    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}
.about-check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.about-check-list li { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.4rem 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.about-check-list li i { color: var(--primary); font-size: 1.1rem; margin-top: 0.05rem; flex-shrink: 0; }
.section-values-block { background-color: #f4f6f8; }
.section-values-block.dark { background-color: #2B6557; }
.section-values-block.dark h2, .section-values-block.dark p { color: var(--white); }
.section-values-block.dark .about-check-list li { color: rgba(255,255,255,0.85); }
.section-values-block.dark .about-check-list li i { color: var(--white); }

/* ==================================================
   REGISTRATION PAGE
================================================== */

#registration-hero {
    background: #8ac653;
    overflow: hidden;
}

/* ----------------------------------
   LEFT SIDE
---------------------------------- */

.registration-left {
    position: relative;
    min-height: 850px;
}

.registration-visual {
    position: relative;
    height: 100%;
}

.registration-person-img {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 95%;
    max-width: 850px;
    height: auto;

    object-fit: contain;
}

.registration-content {
    position: absolute;

    left: 60px;
    bottom: 120px;

    z-index: 10;

    max-width: 650px;
}

.registration-content h2 {
    font-size: 5rem;
    line-height: 0.95;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
}

.registration-content p {
    color: rgba(255,255,255,.95);

    font-size: 1.2rem;
    line-height: 1.8;

    max-width: 620px;
}

@media (max-width: 768px) {
    .registration-content h2 {
        max-width: 100%;
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.15;
    }
}
/* ----------------------------------
   CARD
---------------------------------- */

.registration-card {

    background: #fff;

    width: 100%;
    max-width: 520px;

    border-radius: 6px;

    padding: 3rem;

    box-shadow:
        0 20px 50px rgba(0,0,0,.12);
}

.registration-card h2 {
    font-size: 2.8rem;
    font-weight: 800;

    color: #50547d;

    margin-bottom: .8rem;
}

.registration-intro {
    font-size: .9rem;
    color: #8b8ea8;
    line-height: 1.7;
}

.registration-card hr {
    margin: 2rem 0;
    border-color: #d8e3e6;
}

/* ----------------------------------
   INPUTS
---------------------------------- */

.registration-input {

    height: 54px;

    border-radius: 50px !important;

    border: 2px solid #d6e1e5;

    padding-left: 1.2rem;

    font-size: .9rem;
}

.registration-input:focus {

    border-color: var(--primary);

    box-shadow: none;
}

/* ----------------------------------
   POLICY
---------------------------------- */

.registration-policy {

    margin-top: 1rem;

    font-size: .8rem;

    color: #7a7a7a;

    line-height: 1.7;
}

/* ----------------------------------
   BUTTON
---------------------------------- */

.btn-registration {

    background: var(--primary);

    color: #fff;

    border: none;

    border-radius: 40px;

    padding: .9rem 3rem;

    font-size: .85rem;

    font-weight: 700;
}

.btn-registration:hover {

    background: var(--primary-dark);

    color: #fff;
}

/* ----------------------------------
   CAPTCHA
---------------------------------- */

.captcha-placeholder {

    border: 1px solid #d9d9d9;

    height: 78px;

    border-radius: 4px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999;

    margin-top: 1.5rem;
}

/* ----------------------------------
   RESPONSIVE
---------------------------------- */

@media (max-width: 991px) {

    .registration-left {
        min-height: 600px;
    }

    .registration-content {
        left: 30px;
        right: 30px;
        bottom: 60px;
    }

    .registration-content h1 {
        font-size: 3rem;
    }

    .registration-card {
        margin: 2rem 1rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {

    .registration-content h1 {
        font-size: 2.5rem;
    }

    .registration-content p {
        font-size: 1rem;
    }

    .registration-left {
        min-height: 450px;
    }

    .registration-person-img {
        width: 100%;
    }
}/* ============================================================
   TERMES & CONDITIONS PAGE
============================================================ */
.terms-section { padding: 4rem 0; }
.terms-block {
    background: #EFEFEF;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}
.terms-block h5 {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}
.terms-block p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
.terms-block p:last-child { margin-bottom: 0; }
.terms-block .about-check-list { margin-top: 1rem; }


/* ── Custom Image Icon Formatting ── */
.formation-custom-icon-img {
    width: 48px; /* Perfectly scales to match the target design layout */
    height: 48px;
    object-fit: contain;
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease;
}

/* Hover rotation animation effect */
.formation-card-premium:hover .formation-custom-icon-img {
    transform: scale(1.08);
}

/* ── Active State Color Conversion Filter ── */
/* Inverts the dark icon to solid white for the active Green Highlight card */
.icon-invert-white {
    filter: brightness(0) invert(1) !important;
}

/* When a user hovers over Gray Cards, their icons flip to white dynamically */
.card-gray:hover .formation-custom-icon-img {
    filter: brightness(0) invert(1);
}

/* ── CRITICAL FIX FOR REGISTRATION CHECKBOX WRAPPING ── */

/* 1. Ensure the outer container allows content to flow naturally and drops the submit area down */
.form-check.mt-4 {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-bottom: 2rem !important;
}

/* 2. Target CF7's custom element wrapper and smash its narrow inline restrictions */
.form-check.mt-4 .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

/* 3. Force the checkbox list-item to span the full card width using flex-wrap */
.form-check.mt-4 .wpcf7-list-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 10px !important;
}

/* 4. Force the checkbox box element to maintain its solid size shape */
.form-check.mt-4 input[type="checkbox"].form-check-input {
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 32px !important;
    margin-top: 4px !important;
    position: relative !important;
}

/* 5. FORCE THE TEXT TO BE FULL-WIDTH HORIZONTAL AND READABLE */
.form-check.mt-4 .wpcf7-list-item-label {
    display: block !important;
    width: 100% !important;
    white-space: normal !important; /* Prevents text forcing into hidden breaks */
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #333 !important;
}

/* 6. Push the submission wrapper container down and clear all absolute overlaps */
.registration-card .d-flex.justify-content-between.align-items-center.mt-4 {
    clear: both !important;
    margin-top: 2rem !important;
    width: 100% !important;
    display: flex !important;
}
/* ── REGISTRATION FORM NEWSLETTER OVERLAP CORRECTION ── */

/* 1. Ensure the outer custom container spans full card width naturally */
.custom-registration-newsletter {
    display: block !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
    clear: both !important;
}

/* 2. Target CF7's custom element lists to flex side-by-side horizontally */
.custom-registration-newsletter .wpcf7-list-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important; /* Blocks text lines from wrapping under the checkbox box */
    gap: 12px !important; /* Perfect breathing room space between box and text */
    margin: 0 !important;
    width: 100% !important;
}

/* 3. Force the checkbox square box to remain fixed in place */
.custom-registration-newsletter input[type="checkbox"].form-check-input {
    display: inline-block !important;
    position: relative !important;
    margin: 4px 0 0 0 !important; /* Aligns box perfectly with the first row text sentence */
    flex-shrink: 0 !important; /* Prevents checkbox from flattening or disappearing */
    width: 16px !important;
    height: 16px !important;
}

/* 4. Force the label sentence phrase to stretch fully and read horizontally */
.custom-registration-newsletter .wpcf7-list-item-label {
    display: block !important;
    width: 100% !important;
    white-space: normal !important; /* Allows words to break across normal sentence boundaries naturally */
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    color: #333333 !important;
}

/* 5. PHYSICAL CLEARANCE: Push the privacy policy text and send button down safely */
.registration-card .registration-policy {
    display: block !important;
    clear: both !important;
    margin-top: 2rem !important; /* Creates explicit breathing room separation */
    line-height: 1.5;
}

.registration-card .d-flex.justify-content-between.align-items-center.mt-4 {
    clear: both !important;
    margin-top: 1.5rem !important;
}

/* ==========================================
   404 PAGE
========================================== */

.comafi-404 {
    background: #f8f9fa;
}


.error-section {
    min-height: 600px;
    display: flex;
    align-items: center;
}


.error-code {
    font-size: 10rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    opacity: .15;
}


.error-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}


.error-section p {
    color: #666;
}


.error-link {
    display: block;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: .3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}


.error-link:hover {
    transform: translateY(-5px);
}
