/*
Theme Name: FBE Technologies
Theme URI: https://fbetechnologies.com
Author: Kelly PICKA
Author URI: https://about.me/pickakellydorvely
Description: Thème personnalisé pour FBE Technologies - Bureau d'études électriques et formations.
Version: 1.0
License: No licence
Text Domain: fbe-technologies
*/

/* --- Le reste de votre CSS existant commence ici --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
/* ... (tout le reste du fichier style.css reste exactement pareil) ... */
/* --- RESET & BASES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

/* ==========================================================
   PARTIE 1 : HEADER (NAVBAR)
   ========================================================== */
.main-header {
    background-color: #161B31;
    padding: 15px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* LOGO */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* MENU NAVIGATION */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

/* LIENS DU MENU */
.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* SURBRILLANCE (HOVER & ACTIF) - Desktop & Mobile */
.main-nav a:hover, .main-nav a.active {
    color: #a0c1ff;
}
/* Soulignement animé au survol et état actif */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #a0c1ff;
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* --- BOUTON AUDIT DANS LE MENU --- */
/* ╔══════════════════════════════════════════════════╗
   ║  DOCUMENTATION : Style du bouton "Audit Gratuit" ║
   ║  dans le menu déroulant.                         ║
   ╚══════════════════════════════════════════════════╝ */
.nav-cta-item {
    display: flex;
    align-items: center;
    margin-left: 40px;
}
.btn-audit-nav {
    background-color: #177CBF;
    color: white !important;
    padding: 8px 12px;
    border-radius: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: none;
}
.btn-audit-nav::after {
    display: none; /* Pas de soulignement pour le bouton */
}
.btn-audit-nav:hover {
    background-color: #0e5b8e;
    transform: scale(1.05);
    color: white !important;
    box-shadow: 0 4px 15px rgba(23, 124, 191, 0.4);
}

/* BOUTON HAMBURGER (Caché sur Desktop) */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}
.hamburger-btn:hover {
    transform: scale(1.1);
}

/* ==========================================================
   PARTIE 2 : HERO SECTION (CARROUSEL)
   ========================================================== */
.hero-section {
    position: relative;
    height: calc(100vh - 90px);
    min-height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide:nth-child(1) { background-image: url('Asset/New_Background.jpeg'); }
.hero-slide.slide-image-only { background-image: url('Asset/44.jpg'); }

/* Vidéo */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-family: 'Berthold Akzidenz Grotesk', sans-serif;
}

.highlight {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 8px;
}

/* FLÈCHE */
.hero-arrow {
    margin: 30px 0 10px 0;
    animation: bounce 2s infinite;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.hero-arrow:hover {
    transform: scale(1.1);
}

.hero-arrow svg {
    width: 40px;
    height: 120px;
    stroke: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

/* INDICATEURS SLIDES */
.slide-indicators {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 1px solid white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}
.dot:hover { transform: scale(1.2); }
.dot.active {
    background-color: white;
    opacity: 1;
}

/* ==========================================================
   PARTIE 3 : FOOTER
   ========================================================== */
.main-footer {
    background-color: #0b0e19;
    padding: 50px 0 0 0;
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    align-items: start;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    object-position: left top;
    margin-bottom: 15px;
    display: block;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #b0b3c7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background-color: #ffffff;
    color: #0b0e19;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #ffffff;
}

.links-col ul {
    list-style: none;
    padding: 0;
}
.links-col ul li { margin-bottom: 12px; }
.links-col ul li a {
    color: #b0b3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.links-col ul li a:hover { color: #ffffff; }

.contact-details p {
    color: #b0b3c7;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-details i { color: #ffffff; width: 16px; text-align: center; }
.contact-details a {
    color: #b0b3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-details a:hover { color: #ffffff; }

/* FOOTER BOTTOM */
.footer-bottom {
    background-color: #0b0e19;
    padding: 20px 0;
}
.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.copyright-text { color: #b0b3c7; font-size: 13px; }

/* LIEN EXTERNE KELLY PICKA */
.credit-text { color: #ffffff; font-size: 14px; }
.credit-text .heart { color: #ff3b30; margin: 0 4px; }
.credit-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.credit-link:hover {
    color: #177CBF;
    text-decoration: underline;
}
/* ==========================================================
   LIENS LÉGAUX DU FOOTER
   ========================================================== */
.footer-legal {
    background-color: #0b0e19;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-container a {
    color: #b0b3c7;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-legal-container a:hover {
    color: #ffffff;
}

.footer-legal-container .legal-separator {
    color: #b0b3c7;
    font-size: 13px;
    opacity: 0.5;
}

/* Responsive pour les liens légaux */
@media (max-width: 768px) {
    .footer-legal-container {
        gap: 10px;
    }
    .footer-legal-container a {
        font-size: 11px;
    }
    .footer-legal-container .legal-separator {
        display: none; /* Enlève les séparateurs sur très petits écrans */
    }
}

/* ==========================================================
   RESPONSIVE (Tablette & Mobile)
   ========================================================== */

/* --- TABLETTE (≤ 992px) --- */
@media (max-width: 992px) {
    
    /* LOGO */
    .site-logo { height: 50px; }
    
    /* HAMBURGER */
    .hamburger-btn { display: block; }
    
    /* MENU DÉROULANT FLUIDE */
    /* ╔══════════════════════════════════════════════════╗
       ║  DOCUMENTATION : Animation fluide du menu.      ║
       ║  Modifiez 'max-height' si vous ajoutez des      ║
       ║  éléments au menu.                             ║
       ╚══════════════════════════════════════════════════╝ */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #161B31;
        padding: 0 20px;
        display: block;
        
        /* Animation de déploiement fluide */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    }
    
    .main-nav.show {
        max-height: 500px; /* Assez grand pour contenir tout le menu */
        padding: 20px 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .main-nav ul li a { font-size: 18px; }
    
    /* Le bouton Audit dans le menu déroulant est aussi centré */
    .nav-cta-item {
        justify-content: center;
        margin-top: 5px;
        margin-left: 0;
    }
    .btn-audit-nav {
        padding: 10px 24px; /* Un peu plus gros sur mobile pour le clic */
        font-size: 16px;
    }

    /* FOOTER */
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- MOBILE (≤ 576px) --- */
@media (max-width: 576px) {
    
    .site-logo { height: 40px; }
    .header-container { padding: 0 15px; }

    .hero-section { min-height: 400px; }
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    .hero-arrow svg { width: 30px; height: 90px; }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 15px auto;
        height: 50px;
    }
    .social-links { justify-content: center; }
    .contact-details p { justify-content: center; }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}



/* ==========================================================================
   ARTICLE.CSS — Feuille de style dédiée à la page dossier/article.
   Ce fichier se charge APRÈS style.css : il hérite du header/footer du site
   et ne redéfinit que ce qui est spécifique à cette page (onglets, sommaire
   sticky, grille de chiffres clés, contenu éditorial, CTA).
   ========================================================================== */

/* --------------------------------------------------------------------------
   VARIABLES CSS — reprises de l'identité visuelle existante du site
   (voir style.css : header #161B31, bouton CTA #177CBF) pour garantir
   une cohérence parfaite avec le reste de FBE Technologies.
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #161B31;   /* Bleu nuit — identique au header/footer */
    --accent-color: #177CBF;    /* Bleu accent — identique au bouton "Audit Gratuit" */
    --accent-dark: #0e5b8e;     /* État hover du bleu accent */
    --bg-light: #f4f4f4;        /* Fond de page — identique au body du site */
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --radius: 12px;

    /* DOCUMENTATION : 'Berthold Akzidenz Grotesk' est la police de titre déjà
       utilisée pour .hero-title dans style.css. Si les fichiers de police ne
       sont pas encore chargés via @font-face sur le site, ajoutez-les ici :
       @font-face { font-family: 'Berthold Akzidenz Grotesk'; src: url(...); }
       En attendant, la pile de secours (Inter/sans-serif) prend le relais. */
    --font-title: 'Berthold Akzidenz Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHIE GÉNÉRALE DE LA PAGE
   -------------------------------------------------------------------------- */
.article-intro,
.article-tabs,
.article-layout {
    font-family: var(--font-body);
    color: var(--text-dark);
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-title,
.sidebar-toc-title,
.figure-number,
.tab-pill,
.sidebar-cta-title {
    font-family: var(--font-title);
}

/* --------------------------------------------------------------------------
   EN-TÊTE DU DOSSIER (titre, chapô)
   -------------------------------------------------------------------------- */
.article-intro {
    /*background-color: var(--primary-color);*/
    background-image: url("Asset/Compresse.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #ffffff;
    padding: 60px 20px 50px;
}
.article-intro-container {
    max-width: 900px;
    margin: 0 auto;
}
.article-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 14px;
}
.article-title {
    font-size: 2.6rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 18px;
}
.article-chapo {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 760px;
}
.article-chapo strong { color: #ffffff; }

/* --------------------------------------------------------------------------
   BARRE D'ONGLETS (pilules) — sticky sous le header du site
   DOCUMENTATION : la hauteur du header (.main-header) fait ~90px avec son
   padding. La valeur 'top' ci-dessous doit rester alignée si vous modifiez
   le padding du header dans style.css.
   -------------------------------------------------------------------------- */
.article-tabs {
    position: sticky;
    top: 0;
    z-index: 900;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.tabs-scroller {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox : masque la barre de défilement */
}
.tabs-scroller::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.tab-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    /* border-radius: 999px; */
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.tab-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.tab-pill.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}
.tab-pill i { font-size: 13px; }

/* --------------------------------------------------------------------------
   MISE EN PAGE 2 COLONNES (Desktop >= 1024px)
   -------------------------------------------------------------------------- */
.article-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   SIDEBAR (Sommaire + CTA) — sticky au défilement
   -------------------------------------------------------------------------- */
.article-sidebar {
    position: sticky;
    top: 84px; /* sous la barre d'onglets sticky */
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 104px);
}
.sidebar-toggle-mobile { display: none; } /* visible uniquement en mobile, voir media query */

.sidebar-inner {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-toc {
    padding: 24px 22px 8px;
    overflow-y: auto;
}
.sidebar-toc-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.toc-group { margin-bottom: 18px; }
.toc-group-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.toc-group ul { list-style: none; padding: 0; margin: 0; }
.toc-group li { margin-bottom: 2px; }

.toc-link {
    display: block;
    padding: 8px 10px;
    margin-left: -10px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dark);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.toc-link:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}
/* DOCUMENTATION : classe ajoutée dynamiquement par article.js (scrollspy)
   lorsque la section correspondante est visible à l'écran. */
.toc-link.active {
    background-color: rgba(23, 124, 191, 0.08);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
}

/* Encart CTA fixe en bas de sidebar */
.sidebar-cta {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 22px;
}
.sidebar-cta-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.sidebar-cta-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}
.btn-cta-sidebar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0px;
    transition: all 0.25s ease;
}
.btn-cta-sidebar:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   CHIFFRES CLÉS (grille 3x2 sur desktop)
   -------------------------------------------------------------------------- */
.key-figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}
.figure-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.figure-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(22, 27, 49, 0.08);
}
.figure-icon {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 12px;
}
.figure-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 8px;
}
.figure-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}
.figure-desc strong { color: var(--text-dark); }

/* --------------------------------------------------------------------------
   CONTENU ÉDITORIAL
   -------------------------------------------------------------------------- */
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 48px;
}
.content-section > h2 {
    font-size: 1.9rem;
    color: var(--primary-color);
    margin: 8px 0 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}
.content-section:first-of-type > h2 { margin-top: 0; }

.subsection { margin-bottom: 44px; scroll-margin-top: 100px; }
.subsection h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.subsection h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 26px 0 10px;
}
.subsection p {
    font-size: 15.5px;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: 14px;
}
.subsection p strong { color: var(--text-dark); font-weight: 700; }

/* Étapes de programme (Phase/Module) */
.program-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.program-steps li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 14px 16px;
    background-color: var(--bg-light);
    border-radius: 2px;
    border-left: 3px solid var(--accent-color);
}
.step-label {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    min-width: 62px;
}
.step-body {
    font-size: 14.5px;
    line-height: 1.6;
    color: #3a3a3a;
}
.step-body strong { color: var(--text-dark); }

/* Bénéfices opérationnels */
.benefits-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background-color: rgba(23, 124, 191, 0.06);
    border: 1px solid rgba(23, 124, 191, 0.18);
    border-radius: 2px;
    padding: 18px 20px;
}
.benefits-box i {
    color: var(--accent-color);
    font-size: 18px;
    margin-top: 3px;
}
.benefits-box p { margin: 0; font-size: 14.5px; }

/* Table des matières des livres */
.toc-pills {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.toc-pills li {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   BOUTONS CTA (liens externes)
   -------------------------------------------------------------------------- */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 124, 191, 0.35);
}
.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-dark);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE — Tablette (768px – 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
        max-height: none;
    }
    .key-figures {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-title { font-size: 2.1rem; }
}

/* ==========================================================================
   RESPONSIVE — Mobile (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
    .article-intro { padding: 40px 16px 36px; }
    .article-title { font-size: 1.7rem; }
    .article-chapo { font-size: 1rem; }

    .article-layout { padding: 28px 16px 60px; gap: 24px; }

    /* Sommaire transformé en accordéon dépliable */
    .sidebar-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 18px;
        background-color: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        font-size: 14px;
        font-weight: 700;
        color: var(--primary-color);
        cursor: pointer;
        margin-bottom: 10px;
    }
    .sidebar-toggle-mobile i.toggle-icon { transition: transform 0.25s ease; }
    /* DOCUMENTATION : classe .open ajoutée par article.js au clic */
    .sidebar-toggle-mobile.open i.toggle-icon { transform: rotate(180deg); }

    .sidebar-inner {
        max-height: 0;
        border: none;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }
    .sidebar-inner.open {
        max-height: 1200px;
        opacity: 1;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
    }

    .key-figures { grid-template-columns: 1fr; margin-bottom: 40px; }

    .content-section > h2 { font-size: 1.5rem; }
    .subsection h3 { font-size: 1.2rem; }

    .cta-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }

    .program-steps li { flex-direction: column; gap: 4px; }
}
/* ==========================================================
   SECTION : PROCESSUS RENDEZ-VOUS EN 3 ÉTAPES
   ========================================================== */
.rdv-process-section {
    background-color: #ffffff;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
}

.rdv-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* --- EN-TÊTE (Titre + Lignes décoratives) --- */
.rdv-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.rdv-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #161B31; /* Votre couleur primaire */
    text-align: center;
    margin: 0;
}

.rdv-line {
    display: block;
    width: 60px;
    height: 2px;
    background-color: #d1d5db; /* Gris clair */
}

/* --- WRAPPER DES 3 ÉTAPES (Grille / Flex) --- */
.rdv-steps-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    margin-bottom: 40px;
}

/* --- CHAQUE ÉTAPE --- */
.rdv-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* --- ICÔNE + NUMÉRO --- */
.step-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.step-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #f3f4f6; /* Cercle gris clair */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #1a1a1a;
}

/* Le chiffre bleu (1, 2, 3) */
.step-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    background-color: #177CBF; /* Votre couleur accent */
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    border: 2px solid #ffffff; /* Bordure blanche pour détacher du cercle */
}

/* --- CONTENU TEXTE --- */
.step-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #161B31;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    color: #6c757d; /* Texte secondaire gris */
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

/* --- LIGNES POINTILLÉES DE LIAISON --- */
/* On place la ligne pointillée sur le côté droit de chaque étape */
.step-dotted-line {
    position: absolute;
    top: 40px; /* Aligné avec le milieu des cercles */
    right: -30px; /* S'étend vers l'étape suivante */
    width: 40px;
    border-top: 2px dashed #d1d5db; /* Gris clair pointillé */
}

/* Supprimer la ligne pointillée du dernier élément */
.rdv-step:last-child .step-dotted-line {
    display: none;
}

/* --- BANDEAU DE SÉCURITÉ (Bas) --- */
.rdv-security-banner {
    background-color: #f8f9fa;
    padding: 16px 20px;
    border-radius: 0px;
    text-align: center;
    color: #4a5568;
    font-size: 14px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.rdv-security-banner i {
    color: #177CBF; /* Bleu accent */
}


/* ==========================================================
   RESPONSIVE (Mobile & Tablette)
   ========================================================== */

/* --- TABLETTE (≤ 992px) --- */
@media (max-width: 992px) {
    .rdv-steps-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rdv-step {
        flex: 0 0 45%; /* 2 colonnes sur tablette */
        margin-bottom: 40px;
    }

    .step-dotted-line {
        display: none; /* On cache les pointillés sur tablette car ils deviennent illisibles */
    }
}

/* --- MOBILE (≤ 576px) --- */
@media (max-width: 576px) {
    .rdv-header {
        gap: 10px;
    }
    .rdv-title {
        font-size: 1.4rem;
    }
    .rdv-line {
        width: 30px;
    }

    .rdv-steps-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .rdv-step {
        flex: 0 0 100%;
        max-width: 350px;
        margin-bottom: 40px;
    }
    
    .rdv-security-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}
/* ==========================================================
   PARTIE 4 : PAGE 404 (PAGE INTROUVABLE)
   ========================================================== */

/* --- Conteneur principal de la page 404 --- */
.page-404 {
    /* Prend toute la hauteur de l'écran moins la hauteur du header (80px) */
    height: calc(100vh - 80px); 
    min-height: 500px; /* Hauteur minimum pour les petits écrans */
    display: flex; /* Active Flexbox pour centrer */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    background-color: #ffffff; /* Fond blanc pur */
    text-align: center;
    padding: 20px;
}

/* --- Conteneur du texte (pour limiter la largeur) --- */
.container-404 {
    max-width: 600px; /* Largeur maximum du bloc */
    width: 100%;
}

/* --- Le chiffre 404 géant --- */
.error-code {
    font-size: 8rem; /* Très grand : 128px */
    font-weight: 800;
    color: #0b0e19; /* Noir très foncé (couleur de votre footer) */
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

/* --- Le sous-titre "Page introuvable" --- */
.error-title {
    font-size: 2rem; /* 32px */
    font-weight: 600;
    color: #0b0e19;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

/* --- La ligne de séparation bleue --- */
.separator-line {
    width: 40px;
    height: 3px;
    background-color: #177CBF; /* Votre bleu principal */
    margin: 0 auto 20px auto; /* Centrée horizontalement */
    border-radius: 2px;
}

/* --- Le texte de description --- */
.error-description {
    font-size: 1rem; /* 16px */
    color: #666666; /* Gris foncé pour le texte secondaire */
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

/* --- BOUTON PRIMAIRE (Bleu - Retour accueil) --- */
.btn-primary-404 {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Espace entre l'icône et le texte */
    background-color: #177CBF; /* Votre bleu principal */
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0px; /* Coins carrés */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(23, 124, 191, 0.2);
    margin-bottom: 20px; /* Espace sous le bouton */
}

/* Effet au survol du bouton bleu */
.btn-primary-404:hover {
    background-color: #0e5b8e; /* Bleu plus foncé */
    transform: translateY(-2px); /* Léger effet de soulèvement */
    box-shadow: 0 6px 12px rgba(23, 124, 191, 0.3);
}

/* --- BOUTON SECONDAIRE (Lien bleu - Découvrir nos services) --- */
.btn-secondary-404 {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espace entre l'icône et le texte */
    color: #177CBF; /* Texte bleu */
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: transparent;
}

/* Effet au survol du lien secondaire */
.btn-secondary-404:hover {
    color: #0e5b8e; /* Bleu plus foncé */
    gap: 12px; /* L'écart entre le texte et la flèche s'agrandit */
}

/* ==========================================================
   RESPONSIVE (Mobile et Tablette) POUR LA PAGE 404
   ========================================================== */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem; /* Réduit le 404 sur tablette (96px) */
    }
    .error-title {
        font-size: 1.8rem; /* Réduit le sous-titre */
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4.5rem; /* Réduit le 404 sur mobile (72px) */
    }
    .error-title {
        font-size: 1.5rem; /* Réduit le sous-titre sur mobile */
    }
    .btn-primary-404 {
        width: 100%; /* Bouton pleine largeur sur mobile */
        justify-content: center;
    }
}
/* ==========================================================
SECTION TÉMOIGNAGES (CARROUSEL DOUBLE RANGÉE - ÉTOILES PRO)
========================================================== */
.temoignages-section {
    background-color: #0b0e19; /* Fond très sombre */
    padding: 80px 20px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.temoignages-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- En-tête --- */
.temoignages-header {
    text-align: center;
    margin-bottom: 50px;
}

/* .temoignages-badge {
    display: inline-block;
    background-color: rgba(23, 124, 191, 0.15);
    color: #177CBF;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
} */

.temoignages-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
}

.temoignages-title span {
    color: #177CBF;
}

.temoignages-subtitle {
    color: white;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Carrousel Double Ligne --- */
.temoignages-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Effet de fondu latéral (Flou aux bords) */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    padding: 20px 0;
}

.temoignages-row {
    display: flex;
    gap: 20px;
    width: max-content;
    margin-bottom: 20px;
}

/* Animation de défilement CSS pur */
.row-1, .row-2 {
    animation: scrollLeft 60s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause au survol de la souris */
.temoignages-track-wrapper:hover .row-1,
.temoignages-track-wrapper:hover .row-2 {
    animation-play-state: paused;
}

/* --- Carte Témoignage --- */
.temoignage-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    padding: 25px;
    width: 360px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.temoignage-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(23, 124, 191, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Auteur --- */
.temoignage-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.temoignage-avatar {
    width: 45px;
    height: 45px;
    background: #177CBF;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.temoignage-name {
    flex: 1;
}

.temoignage-name h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* --- ÉTOILES PROFESSIONNELLES (IMAGE UNIQUE) --- */
/* 
   ╔══════════════════════════════════════════════════╗
   ║  DOCUMENTATION : CONFIGURATION DES ÉTOILES      ║
   ║  1. Placez votre image 'etoile.png' dans        ║
   ║     le dossier 'Asset/'.                       ║
   ║  2. Si l'image est plus grande que 16px,       ║
   ║     ajustez 'background-size'.                 ║
   ║  3. Pour changer la couleur jaune, modifiez    ║
   ║     le 'filter: sepia(1) saturate(3) hue-rotate(XXdeg);' ║
   ║     dans la classe .temoignage-stars.          ║
   ╚══════════════════════════════════════════════════╝
*/
.temoignage-stars {
    display: block;
    height: 16px;
    background-image: url('Asset/etoile.png'); /* Votre icône personnalisée */
    background-repeat: repeat-x;
    background-size: 16px 16px; /* Taille d'une étoile */
    
    /* 
       ╔══════════════════════════════════════════════════╗
       ║  COULEUR JAUNE PERSONNALISABLE :                ║
       ║  Si votre image est blanche, ce filtre la teinte ║
       ║  en jaune. Si elle est déjà jaune, supprimez    ║
       ║  cette ligne ou mettez 'filter: none;'.         ║
       ╚══════════════════════════════════════════════════╝
    */
    width: 80px; /* 5 étoiles (5 * 16px) */
}

/* 4.5 Étoiles (4 entières + 1 moitié) */
.stars-4-5 {
    width: 72px; /* 4.5 * 16px */
    -webkit-mask-image: linear-gradient(to right, black 88%, transparent 88%, transparent 100%);
    mask-image: linear-gradient(to right, black 88%, transparent 88%, transparent 100%);
}

/* 5 Étoiles (pleines) */
.stars-5 {
    width: 80px; /* 5 * 16px */
    -webkit-mask-image: none;
    mask-image: none;
}

/* --- Texte du témoignage --- */
.temoignage-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-style: italic;
}


/* ==========================================================
RESPONSIVE
========================================================== */

/* Tablette (< 1024px) */
@media (max-width: 1024px) {
    .temoignage-card { width: 340px; }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .temoignages-section { padding: 50px 15px; }
    .temoignages-title { font-size: 1.8rem; }
    
    .temoignage-card { width: 300px; padding: 20px; }
    .temoignage-text { font-size: 13px; }
    
    .temoignages-track-wrapper {
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
}
/* ==========================================================
STYLES BUREAU D'ÉTUDES (Épuré & Industriel)
========================================================== */

/* --- Reset des arrondis pour toute la page --- */
.be-page * {
    border-radius: 0px !important;
}

/* --- HERO --- */
.be-hero {
    position: relative;
    height: 80vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-image: linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.7)), url('Asset/New_Background.jpeg');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.be-hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.be-hero h1 {
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.be-hero h1 span {
    color: #177CBF;
}

.be-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    opacity: 0.9;
}

.be-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.be-btn-primary {
    background-color: #177CBF;
    color: #ffffff;
    padding: 14px 32px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.be-btn-primary:hover {
    background-color: #0e5b8e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 124, 191, 0.4);
}

.be-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    padding: 14px 32px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}
.be-btn-secondary:hover {
    background-color: #ffffff;
    color: #0D1B2A;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* --- BANDE TECHNIQUE --- */
.be-tech-band {
    background-color: #0D1B2A;
    color: #ffffff;
    padding: 40px 20px;
    border-bottom: 4px solid #177CBF;
}

.be-tech-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.be-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.be-tech-item strong {
    font-size: 1.5rem;
    font-weight: 800;
}
.be-tech-item span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- LAYOUT SECTIONS --- */
.be-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.be-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0D1B2A;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 4px solid #177CBF;
    display: inline-block;
}

/* --- PRESTATIONS --- */
.be-prestations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.be-prestation-block {
    background: #f8f9fa;
    padding: 30px;
    border-left: 4px solid #177CBF;
    transition: all 0.3s ease;
}

.be-prestation-block:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.be-prestation-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0D1B2A;
    margin-bottom: 15px;
}

.be-prestation-block p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.be-prestation-block ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.be-prestation-block ul li {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #0D1B2A;
    font-weight: 500;
}

/* --- DOUBLE CARROUSEL PROJETS --- */
.be-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.be-carousel-row {
    width: 100%;
    overflow: hidden;
}

.be-carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

/* Animation Gauche */
.row-left .be-carousel-track {
    animation: scrollLeft 40s linear infinite;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Animation Droite */
.row-right .be-carousel-track {
    animation: scrollRight 40s linear infinite;
}
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause au survol */
.be-carousel-row:hover .be-carousel-track {
    animation-play-state: paused;
}

/* Éléments projet */
.be-proj-item {
    position: relative;
    width: 350px;
    height: 250px;
    flex-shrink: 0;
    overflow: hidden;
}

.be-proj-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.be-proj-item:hover img {
    transform: scale(1.05);
}

.be-proj-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.9) 0%, transparent 100%);
    padding: 20px;
    color: #ffffff;
    pointer-events: none;
}

.be-proj-overlay strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}
.be-proj-overlay span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- CTA FINAL --- */
.be-cta-final {
    background-color: #0D1B2A;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.be-cta-final h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.be-cta-final p {
    max-width: 600px;
    margin: 0 auto 40px auto;
    opacity: 0.8;
    font-size: 1.1rem;
}

/* ==========================================================
RESPONSIVE
========================================================== */
@media (max-width: 1024px) {
    .be-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .be-prestations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .be-hero h1 { font-size: 2.2rem; }
    .be-hero { min-height: 450px; }
    .be-hero-actions { flex-direction: column; align-items: center; }
    .be-btn-primary, .be-btn-secondary { width: 100%; max-width: 300px; text-align: center; }
    .be-cta-final h2 { font-size: 2rem; }
    .be-proj-item { width: 280px; height: 200px; }
}


/* ==========================================================
NOUVELLE SECTION 1 : BANDEAU CHIFFRES CLÉS
========================================================== */
.fbe-stats-band {
    background-color: #0D1B2A;
    color: #ffffff;
    padding: 40px 20px;
    border-bottom: 4px solid #177CBF;
}

.fbe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fbe-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.fbe-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.fbe-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
}

.fbe-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* ==========================================================
NOUVELLE SECTION 2 : NOS DOMAINES D'ACTIVITÉS
========================================================== */
.fbe-domaines {
    background-color: #f8f9fa;
    padding: 80px 20px;
}

.fbe-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0D1B2A;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.fbe-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #177CBF;
    margin: 15px auto 0;
    border-radius: 2px;
}

.fbe-domaines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.fbe-domaine-card {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.fbe-domaine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 27, 42, 0.06);
    border-color: #177CBF;
}

.fbe-dom-icon {
    font-size: 2.2rem;
    color: #177CBF;
    margin-bottom: 15px;
}

.fbe-domaine-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0D1B2A;
    margin-bottom: 10px;
}

.fbe-domaine-card p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ==========================================================
NOUVELLE SECTION 3 : NOTRE MÉTHODE DE TRAVAIL
========================================================== */
.fbe-methode {
    background-color: #ffffff;
    padding: 80px 20px;
}

.fbe-methode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.fbe-methode-block {
    background: #f8f9fa;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.fbe-methode-block:hover {
    border-color: #177CBF;
}

.fbe-methode-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.fbe-methode-header i {
    font-size: 1.2rem;
    color: #177CBF;
}

.fbe-methode-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0D1B2A;
    margin: 0;
}

.fbe-methode-block p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.fbe-methode-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fbe-methode-block ul li {
    padding: 5px 0;
    color: #4a5568;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fbe-methode-block ul li::before {
    content: '✓';
    color: #177CBF;
    font-weight: 700;
}

/* ==========================================================
NOUVELLE SECTION 4 : VALEURS FONDAMENTALES (HOVER SLIDE)
========================================================== */
.fbe-valeurs {
    background-color: #f8f9fa;
    padding: 80px 20px;
}

.fbe-valeurs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- Carte Valeur avec Animation Slide & Reveal --- */
.fbe-valeur-card {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.fbe-valeur-img {
    width: 100%;
    height: 100%;
}

.fbe-valeur-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.fbe-valeur-card:hover .fbe-valeur-img img {
    transform: scale(1.05);
}

/* Overlay statique (Texte visible par défaut) */
.fbe-valeur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.85) 0%, rgba(13, 27, 42, 0.2) 100%);
    color: #ffffff;
    pointer-events: none;
}

.fbe-valeur-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

/* Voile animé (Texte caché qui monte au survol) */
.fbe-valeur-reveal {
    position: absolute;
    bottom: -100%; /* Caché en bas par défaut */
    left: 0;
    width: 100%;
    height: 100%;
    background:#161B31; /* Bleu foncé*/
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.fbe-valeur-card:hover .fbe-valeur-reveal {
    bottom: 0; /* Monte pour couvrir la carte */
}

.fbe-reveal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.fbe-reveal-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* ==========================================================
NOUVELLE SECTION 5 : PROJETS PHARES
========================================================== */
.fbe-projets {
    background-color: #ffffff;
    padding: 80px 20px;
}

.fbe-projets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.fbe-projet-item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    height: 300px;
}

.fbe-projet-img {
    width: 100%;
    height: 60%;
    overflow: hidden;
}

.fbe-projet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fbe-projet-item:hover .fbe-projet-img img {
    transform: scale(1.05);
}

.fbe-projet-content {
    padding: 15px 20px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fbe-projet-tag {
    display: inline-block;
    background: rgba(23, 124, 191, 0.1);
    color: #177CBF;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 8px;
    width: fit-content;
}

.fbe-projet-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0D1B2A;
    margin-bottom: 5px;
}

.fbe-projet-content p {
    font-size: 0.85rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.4;
}

/* ==================== SECTION : LOGOS PARTENAIRES ==================== */
.fbe-partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 40px 20px;
}

.fbe-partner-logo {
    width: 250px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fbe-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 35px;

    /* Effet discret : gris par défaut, couleur au survol — standard pour logos partenaires B2B */
    /* filter: grayscale(100%) opacity(0.6); */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.fbe-partner-logo img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Responsive : logos plus petits sur mobile */
@media (max-width: 768px) {
    .fbe-partners-grid {
        gap: 32px;
    }
    .fbe-partner-logo {
        width: 120px;
        height: 60px;
    }
}
/* ==========================================================
NOUVELLE SECTION 7 : CTA FINAL
========================================================== */
.fbe-cta-final {
    background-color: #0D1B2A;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.fbe-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.fbe-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.fbe-cta-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 30px;
}

.fbe-btn-cta {
    display: inline-block;
    background-color: #177CBF;
    color: #ffffff;
    padding: 14px 32px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fbe-btn-cta:hover {
    background-color: #0e5b8e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 124, 191, 0.3);
}

.fbe-btn-cta i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.fbe-btn-cta:hover i {
    transform: translateX(5px);
}

/* ==========================================================
RESPONSIVE (NOUVELLES SECTIONS)
========================================================== */
@media (max-width: 1024px) {
    .fbe-domaines-grid { grid-template-columns: repeat(2, 1fr); }
    .fbe-valeurs-grid { grid-template-columns: repeat(2, 1fr); }
    .fbe-projets-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .fbe-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .fbe-methode-grid { grid-template-columns: 1fr; }
    .fbe-domaines-grid { grid-template-columns: 1fr; }
    .fbe-valeurs-grid { grid-template-columns: 1fr; }
    .fbe-valeur-card { height: 300px; }
    .fbe-projets-grid { grid-template-columns: 1fr; }
    .fbe-partner-logo { font-size: 0.9rem; }
    .fbe-cta-content h2 { font-size: 2rem; }
}
/* ==================== BOUTON RETOUR EN HAUT ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color, var(--primary-color));
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}
/* ==================== BOUTON WHATSAPP FLOTTANT ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background-color: #25D366; /* Vert WhatsApp officiel */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 999; /* Pour être au-dessus de tout */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* ==================== BOUTON WHATSAPP FLOTTANT ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background-color: #25D366; /* Vert WhatsApp officiel */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 999; /* Pour être au-dessus de tout */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Effet au survol : Zoom + Léger soulèvement + Ombre plus marquée */
.whatsapp-float:hover {
    background-color: #128C7E; /* Vert foncé WhatsApp */
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Petit effet sympa sur l'icône au survol */
.whatsapp-float i {
    transition: transform 0.3s ease;
}
.whatsapp-float:hover i {
    transform: rotate(-10deg) scale(1.05);
}

/* ==========================================================
   RESPONSIVE (Mobile & Tablette) pour le bouton WhatsApp
   ========================================================== */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 42px;
        height: 42px;
        font-size: 20px;
        bottom: 20px;
        left: 20px;
    }
}
