/* ==========================================================================
   1. RESET GLOBAL & EN-TÊTE (HEADER)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #111111;
    background-color: #ffffff;
}
.main-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e5e5;
    position: sticky !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 20px !important;
    height: 70px !important;
    position: relative;
}
.logo-box img {
    height: 70px;
    width: auto;
    display: block;
}

/* NAVIGATION PRINCIPALE */
.nav-menu #menuList {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}
.nav-menu #menuList > li {
    position: relative;
    display: inline-block;
    width: auto;
}
.nav-link {
    text-decoration: none;
    color: #111111 !important;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 10px;
    display: inline-block;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-link:hover,
.nav-link.active-link {
    color: #0056b3 !important;
}

/* ACTIONS À DROITE */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.btn-contact-us {
    border: 1px solid #111111;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #111111;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   2. MENU DE LANGUE (AVEC ANIMATION AU CLIC)
   ========================================================================== */
.lang-dropdown {
    position: relative;
    display: inline-block;
}
.lang-menu {
    display: block;
    position: absolute;
    right: 0;
    top: 120%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 140px;
    padding: 6px 0;
    z-index: 100000;
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.lang-menu.active-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.lang-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #333333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.lang-menu a:hover {
    background-color: #f0f7ff;
    color: #0056b3;
    padding-left: 20px;
}
.lang-menu a.selected-lang {
    color: #0056b3;
    background-color: #eef6ff;
    font-weight: 700;
}
.lang-menu a.selected-lang::after {
    content: "✓";
    font-size: 12px;
    color: #0056b3;
}

/* ==========================================================================
   3. SOUS-MENUS & MEGA MENU (DÉSACTIVATION DU HOVER & ACTIVATION PAR CLIC)
   ========================================================================== */
/* ==========================================================================
   FIX DÉFINITIF: KACHE PA DEFÒ AK LOUVRI AK KLIK SÈLMAN
   ========================================================================== */

/* 1. KACHE MENI YO PA DEFÒ (PA GEN CAPTURE HOVER) */
.mega-menu-content,
.dropdown-menu,
.submenu-wrapper {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 2. LOUVRI SÈLMAN LÈ W KLIKE SOU LI (PWA CSS PI WO SOU KLAS ACTIVE YO) */
.mega-dropdown .mega-menu-content.active-sub-click,
.dropdown .dropdown-menu.active-sub-click,
.has-submenu .submenu-wrapper.active-sub-click,
.mega-dropdown .mega-menu-content.active-accordion,
.dropdown .dropdown-menu.active-accordion,
.has-submenu .submenu-wrapper.active-accordion {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
/* OUVERTURE UNIQUEMENT SI LA CLASSE ACTIVE EST AJOUTÉE EN JAVASCRIPT */
.mega-menu-content.active-sub-click,
.dropdown-menu.active-sub-click,
.submenu-wrapper.active-sub-click,
.mega-menu-content.active-accordion,
.dropdown-menu.active-accordion,
.submenu-wrapper.active-accordion {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   4. STYLES DESKTOP (ÉCRANS > 992PX)
   ========================================================================== */
@media screen and (min-width: 993px) {
    .menu-toggle,
    .mobile-back-btn,
    .mobile-submenu-title {
        display: none !important;
    }

    .mega-dropdown {
        position: static !important;
    }
    .dropdown {
        position: relative;
    }

    .mega-menu-content {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        box-shadow: 0px 20px 30px rgba(0,0,0,0.12);
        border-top: 3px solid #0056b3;
        padding: 30px 0 !important;
        z-index: 999999 !important;
    }

    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: auto !important;
        min-width: 180px !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        border-radius: 4px;
        padding: 8px 0 !important;
        z-index: 999999 !important;
        list-style: none !important;
    }

    .dropdown-menu a,
    .simple-sub-list li a {
        display: block !important;
        padding: 10px 18px !important;
        color: #333333 !important;
        text-decoration: none !important;
        font-size: 13px !important;
        transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
    }

    .dropdown-menu a:hover,
    .simple-sub-list li a:hover,
    .mega-sidebar ul li a:hover {
        background-color: #0056b3 !important;
        color: #ffffff !important;
        padding-left: 22px !important;
    }

    .mega-menu-inner {
        max-width: 1350px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 280px 1fr 420px;
        gap: 40px;
        padding: 0 30px;
    }
    .mega-sidebar ul {
        list-style: none;
        border-right: 1px solid #eeeeee;
    }
    .mega-sidebar li {
        margin-bottom: 12px;
    }
    .mega-sidebar li a {
        display: flex;
        justify-content: space-between;
        text-decoration: none;
        color: #555555;
        font-size: 13px;
        font-weight: 700;
        padding: 8px 15px;
        border-radius: 4px;
    }
    .mega-main-info h2 {
        font-size: 26px;
        color: #0056b3;
        margin-bottom: 15px;
        font-weight: 700;
    }
    .mega-main-info p {
        font-size: 14px;
        color: #666666;
        line-height: 1.7;
        margin-bottom: 25px;
    }
    .mega-main-info .btn-explore {
        color: #0056b3;
        font-weight: 800;
        text-decoration: none;
        font-size: 12px;
    }
    .mega-featured-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .featured-card {
        background: #f9fbfd;
        padding: 12px;
        border-radius: 6px;
        border: 1px solid #e5e5e5;
    }
    .featured-card img {
        width: 100%;
        height: 110px;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    .featured-card h5 {
        font-size: 13px;
        color: #111;
        margin-bottom: 6px;
        font-weight: 700;
    }
    .featured-card p {
        font-size: 11px;
        color: #777;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    .featured-card a {
        font-size: 11px;
        color: #0056b3;
        font-weight: 700;
        text-decoration: none;
    }
}

/* ==========================================================================
   5. STYLES MOBILE (ÉCRANS <= 992PX)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
    }
    .menu-toggle {
        display: block !important;
        order: -1 !important;
        background: none !important;
        border: none !important;
        font-size: 28px !important;
        color: #111111 !important;
        cursor: pointer !important;
        padding: 5px 10px !important;
        z-index: 1000000 !important;
    }
    .logo-box {
        order: 0 !important;
    }
    .nav-menu #menuList {
        display: none;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
        padding: 15px 0 !important;
        z-index: 999999 !important;
        border-top: 2px solid #0056b3 !important;
    }
    .nav-menu #menuList.mobile-active {
        display: flex !important;
    }
    .nav-menu #menuList li {
        width: 100% !important;
        text-align: left !important;
    }
    .nav-menu #menuList li a {
        padding: 12px 20px !important;
        display: block !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .mobile-back-btn,
    .mobile-submenu-title {
        display: none !important;
    }

    /* SYSTEME ACCORDÉON SUR MOBILE */
    .dropdown-menu,
    .mega-menu-content,
    .submenu-wrapper {
        position: static !important;
        width: 100% !important;
        background-color: #f8f9fa !important;
        padding: 10px 20px !important;
        box-shadow: none !important;
        border: none !important;
    }

    .mega-menu-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    .mega-main-info,
    .mega-featured-cards {
        display: none !important;
    }

    .mega-sidebar ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mega-sidebar ul li a,
    .simple-sub-list li a,
    .dropdown-menu a {
        display: block !important;
        padding: 12px 15px !important;
        color: #333333 !important;
        font-size: 14px !important;
        text-decoration: none !important;
        border-bottom: 1px solid #e9ecef !important;
    }

    .mega-sidebar ul li a:hover,
    .dropdown-menu a:hover {
        color: #0056b3 !important;
        font-weight: 600;
    }
}

/* ==========================================================================
   6. HERO SLIDER
   ========================================================================== */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 380px !important;
    overflow: hidden;
    background-color: #000000;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}
.slide-item.active-slide {
    display: block !important;
    z-index: 2;
}
.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: #ffffff !important;
    max-width: 600px;
    z-index: 10 !important;
}
.hero-text-overlay h1 {
    font-size: 32px !important;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff !important;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-text-overlay p {
    font-size: 15px !important;
    margin-bottom: 20px;
    color: #ffffff !important;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.btn-hero {
    display: inline-block !important;
    background-color: #0056b3 !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease;
}
.btn-hero:hover {
    background-color: #003d80 !important;
}

@media screen and (max-width: 992px) {
    .hero-slider-section {
        height: 280px !important;
    }
    .hero-text-overlay {
        left: 5% !important;
        right: 5% !important;
        max-width: 100% !important;
    }
    .hero-text-overlay h1 {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
    .hero-text-overlay p {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }
    .btn-hero {
        padding: 8px 16px !important;
        font-size: 11px !important;
    }
}

/* ==========================================================================
   7. NEWS TICKER BANNER
   ========================================================================== */
.news-ticker-bar {
    background-color: #082133 !important;
    color: #ffffff !important;
    padding: 10px 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 10 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.news-ticker-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.ticker-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 60px !important;
    white-space: nowrap !important;
    animation: tickerAnim 22s linear infinite !important;
}
.ticker-item {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}
.news-label {
    font-weight: 700 !important;
    color: #4db8ff !important;
    margin-right: 8px !important;
    letter-spacing: 0.5px;
}
.ticker-item a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}
.ticker-item a:hover {
    color: #4db8ff !important;
    text-decoration: underline !important;
}
@keyframes tickerAnim {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   8. SECTION CORE SERVICES
   ========================================================================== */
.services-section {
    margin-top: 0 !important;
    padding-top: 10px !important;
}
.services-section h2,
.services-section .section-title,
.services-section .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.services-section .section-title {
    text-align: center !important;
    color: #0056b3 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
}
.services-section .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}
.service-card {
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 25px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: left !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.service-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}
.service-card h3 {
    font-size: 18px !important;
    color: #0056b3 !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
    text-align: left !important;
}
.service-card p {
    font-size: 13px !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}
.service-card .btn-readmore {
    display: inline-block !important;
    align-self: flex-start !important;
    margin-top: auto !important;
    padding: 9px 22px !important;
    background-color: #0056b3 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease !important;
}
.service-card .btn-readmore:hover {
    background-color: #003d80 !important;
}

@media screen and (max-width: 992px) {
    .services-section .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media screen and (max-width: 600px) {
    .services-section .services-grid {
        grid-template-columns: 1fr !important;
    }
}


