/*
Theme Name: lidership child
Tags:  custom-menu, editor-style, featured-images
Template: lidership
Version: 1.0.0
*/


@import '../lidership/style.css';



/*---------------------------------
     
------------------------------------*/
.elementor-nav-menu a {
    color: black !important;
}

.elementor-nav-menu a:hover {
    color: blue !important; /* mets ta couleur */
}

.elementor-nav-menu .elementor-item-active {
    color: blue !important;
}

/*=================================================================
  Reference-matched header & hero (mackysall4un.org direction)
==================================================================*/

/* --- Header: hide top contact bar, social icons row, donate pill --- */
.top-address,
.litop.top-right-menu,
.donate-btn-header {
    display: none !important;
}

/* --- Header: slim solid navy bar, plain sans-serif nav links --- */
.mega-menu-wrap,
.mega-menu-horizontal.mega-menu {
    background: #001E3A !important;
}
.mega-menu-item > a.mega-menu-link {
    font-family: "Public Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #fff !important;
}
.mega-menu-item.mega-current-menu-item > a.mega-menu-link {
    color: #fff !important;
    border-bottom: 1px solid #fff;
}

/* --- Hero: single headline, no subtitle/description/buttons --- */
.effective-content > h5,
.effective-content > p,
.effective-content .effective_slider_btn {
    display: none !important;
}
.effective-content h2 {
    text-transform: none !important;
}

.lidership-header-top {
    display: none !important;
}

.creative_header_address {
    display: none !important;
}
.creative-header-top .col-lg-8, .creative-header-top .col-md-8 {
    display: none !important;
}

/*=================================================================
  Actualités: horizontal scroll + modern arrow navigation
==================================================================*/
.elementor-element-68e34d6 .elementor-widget-container {
    position: relative;
}
.elementor-element-68e34d6 .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 24px;
    margin: 0 !important;
    padding: 4px 4px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.elementor-element-68e34d6 .row::-webkit-scrollbar {
    display: none;
}
.elementor-element-68e34d6 .row > [class*="col-"] {
    flex: 0 0 280px;
    max-width: 280px;
    width: 280px;
    scroll-snap-align: start;
    padding: 0 !important;
}
@media (max-width: 767px) {
    .elementor-element-68e34d6 .row > [class*="col-"] {
        flex-basis: 240px;
        max-width: 240px;
        width: 240px;
    }
}

.actualites-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E6EA;
    box-shadow: 0 10px 24px rgba(0,30,58,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    color: #001E3A;
    font-size: 17px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.actualites-arrow:hover {
    background: #001E3A;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.08);
}
.actualites-arrow.is-disabled {
    opacity: 0;
    pointer-events: none;
}
.actualites-prev { left: -22px; }
.actualites-next { right: -22px; }
@media (max-width: 991px) {
    .actualites-prev { left: 6px; }
    .actualites-next { right: 6px; }
}

/* Hero: push headline down on mobile so it doesn't overlap the face */
@media (max-width: 767px) {
    .effective-area .effective-content {
        top: 76% !important;
    }
}

/*=================================================================
  Header overlay on hero banner (desktop) — logo left, menu right,
  transparent over the photo, matching the reference site
==================================================================*/
@media (min-width: 992px) {
    .button-menu.lidership-main-menu,
    .creative_header {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 150;
        background: transparent !important;
    }
    .creative-header-top {
        background: transparent !important;
        padding-top: 24px;
    }
    .creative_header {
        top: 76px;
    }
    .creative_header .row {
        justify-content: flex-end;
    }
    .mega-menu-wrap,
    #mega-menu-wrap-menu-1 {
        background: transparent !important;
    }
    .mega-menu-horizontal.mega-menu {
        justify-content: flex-end;
    }
}

/* Header overlay fix: align logo (left) and menu (right) on same line */
@media (min-width: 992px) {
    .creative_header {
        top: 24px !important;
    }
    .creative_header .col-md-12 {
        display: flex;
        justify-content: flex-end;
    }
    .creative_header nav.lidership_menu,
    .creative_header .mega-menu-wrap {
        width: auto !important;
        flex: 0 0 auto;
    }
}

/* Header overlay fix: align logo (left) and menu (right) on same line */
@media (min-width: 992px) {
    .creative_header {
        top: 24px !important;
    }
    .creative_header .col-md-12 {
        display: flex;
        justify-content: flex-end;
    }
    .creative_header nav.lidership_menu,
    .creative_header .mega-menu-wrap {
        width: auto !important;
        flex: 0 0 auto;
    }
}

/*=================================================================
  Header overlay on hero banner (mobile/tablet) \u2014 mirrors the
  desktop treatment: small logo left, hamburger menu right,
  transparent over the photo, no more white band
==================================================================*/
@media (max-width: 991px) {
    /* the logo image had no size cap and rendered at its full 512x512px */
    .mobile_logo_area img {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        object-fit: contain;
    }
    .mobile_menu_logo.text-center {
        text-align: left !important;
    }
    .mobile_logo_area .container,
    .mobile_logo_area .row,
    .mobile_logo_area .col-sm-12 {
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
    .mobile_logo_area {
        position: absolute !important;
        top: 14px;
        left: 14px;
        width: auto !important;
        z-index: 160;
        background: transparent !important;
    }

    .header_area.main-menu-area {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 150;
        background: transparent !important;
    }
    .mean-container .mean-bar {
        background: transparent !important;
    }
    .mean-bar::before,
    .mean-bar::after {
        display: none !important;
    }
    .mean-container a.meanmenu-reveal {
        margin: 10px 10px 0 0;
        background: rgba(0, 30, 58, 0.6);
        border-radius: 6px;
    }
}

/* Fix: seal logo (widget 1ada40e) has a hardcoded -70px left margin that
   Elementor only clears below 767px. In mobile landscape / tablet widths
   (768-1024px) it stays active and pushes the logo off the left edge. */
@media (max-width: 1024px) {
    .elementor-element-1ada40e {
        margin-left: 0 !important;
    }
}

/* Fix: hero cover photo has the circular seal baked in near its left edge.
   In short/wide viewports (mobile landscape) background-size:cover becomes
   height-constrained and crops equally from both sides, cutting the seal
   off on the left. Anchoring left instead of center keeps it in frame;
   this is a no-op wherever the image is width-constrained (desktop, portrait). */
.elementor-element-c48bd1d {
    background-position: left top !important;
}

/* Real fix: on short/wide viewports (mobile landscape), stop cropping the
   hero photo entirely -- show it in full (contain) instead of shifting
   which edge gets cut off. Navy fill matches the site's palette. */
@media (orientation: landscape) and (max-height: 500px) {
    .elementor-element-c48bd1d {
        background-size: contain !important;
        background-position: top center !important;
        background-color: #001E3A;
    }
}

/* Fix: the Actualites archive layout uses "col-xs-12" to force full-width
   stacking below 576px, but this theme's compiled Bootstrap never defines
   .col-xs-* at all -- so below 992px the content and sidebar columns have
   no matching width rule and stay squeezed side by side, forcing article
   thumbnails into a mismatched aspect ratio (extra cropping on mobile). */
@media (max-width: 991.98px) {
    .lidership-blog-index .col-lg-8.col-md-8.col-sm-7,
    .lidership-blog-index .col-md-4.col-sm-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Once stacked, .bgimgload no longer sits side-by-side with the sidebar,
   so it can no longer borrow its height via flex align-items:stretch --
   and its own child .blog-messonary is a flex row that collapses to 0
   height regardless of viewport. Force block flow so real content height
   is respected. */
@media (max-width: 991.98px) {
    .lidership-blog-index .bgimgload {
        height: auto !important;
    }
    .lidership-blog-index .blog-messonary {
        display: block !important;
    }
}

.lidership-blog-index .blog-messonary {
    height: auto !important;
}

/* Mobile sticky header: mirrors the desktop is-sticky behaviour.
   Desktop's sticky JS already runs on mobile too, but only targets
   .header-sticky, which is display:none on phones -- so the overlay
   header just scrolled away with the page and never came back. */
@media (max-width: 991px) {
    body.mad-mobile-sticky .mobile_logo_area {
        position: fixed !important;
        top: 8px;
        left: 14px;
        z-index: 210;
    }
    body.mad-mobile-sticky .header_area.main-menu-area {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 200;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
    body.mad-mobile-sticky .mean-container .mean-bar {
        background: #001E3A !important;
    }
}

/* Fix: the inner-page banner (Contact, Actualites, single posts) uses the
   same center-crop pattern as the homepage hero, and its baked-in
   "NGALGOU 2027" text sits near the left edge -- getting cropped off on
   tablet-ish aspect ratios where the container is taller than the image.
   Same fix as the hero: anchor left instead of center. */
.breadcumb-area,
.breadcumb-blog-area {
    background-position: left center !important;
}
