/* ====================================================================== */
/* ======================== 0) RESET (SCOPÉ HEADER) ====================== */
/* ====================================================================== */

#cedis-header .cedis-menu,
#cedis-header .cedis-menu li,
#cedis-header .cedis-menu ul,
#cedis-header .cedis-menu ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ====================================================================== */
/* ============================ 1) HEADER GLOBAL ========================= */
/* ====================================================================== */

#cedis-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999999;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    min-height: 120px;
    transition: all .25s ease;
    overflow: visible;
    will-change: transform;
}

#cedis-header.shrink {
    min-height: 80px;
}

/* ====================================================================== */
/* =============================== TOPBAR =============================== */
/* ====================================================================== */

#cedis-header .cedis-topbar {
    background: #fff;
    padding: 12px 0;
    transition: padding .25s ease;
}

#cedis-header.shrink .cedis-topbar {
    padding: 6px 0;
}

#cedis-header .cedis-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
#cedis-header .cedis-logo img {
    height: 52px;
    transition: height .25s ease;
}

#cedis-header.shrink .cedis-logo img {
    height: 38px;
}

/* TAGLINE */
#cedis-header .cedis-tagline {
    flex: 1;
    margin: 0 30px;
    color: #1B5E20;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.2;
}

#cedis-header.shrink .cedis-tagline {
    font-size: 11px;
    opacity: .75;
    margin: 0 20px;
}

/* ====================================================================== */
/* ============================== SOCIALS =============================== */
/* ====================================================================== */

#cedis-header .cedis-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

#cedis-header .cedis-icon-bluesky {
    width: 19px;
    height: 19px;
    opacity: .9;
    filter: brightness(0) saturate(100%) invert(18%) sepia(16%)
            saturate(1569%) hue-rotate(287deg) brightness(93%) contrast(89%);
    transition: .25s;
}

#cedis-header .cedis-icon-bluesky:hover {
    opacity: 1;
    transform: scale(1.12);
}

#cedis-header .cedis-socials .fa {
    font-size: 19px !important;
    width: 19px;
    height: 19px;
    color: #65224b !important;
    opacity: .9;
    transition: .25s;
}

#cedis-header .cedis-socials .fa:hover {
    opacity: 1;
    transform: scale(1.12);
}

/* ====================================================================== */
/* ========================== NAVIGATION DESKTOP ======================== */
/* ====================================================================== */

#cedis-header .cedis-nav {
    background: #55a908;
    border-bottom: 1px solid #15561b;
    padding: 14px 0;
    min-height: 40px;
    transition: padding .25s ease, min-height .25s ease;
}

#cedis-header.shrink .cedis-nav {
    padding: 6px 0 !important;
    min-height: 30px;
}

/* NAV INNER */
.cedis-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* MENU */
#cedis-header .cedis-menu {
    display: flex !important;
    gap: 18px;                 /* réduit */
    flex-wrap: nowrap;
}

/* LIENS MENU */
#cedis-header .cedis-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0 8px 10px;   /* réduit */
    color: #ffffff !important;
    font-weight: 600;
    font-size: 12px;           /* -15 % */
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: .3px;
    line-height: 22px !important;
    height: 22px !important;
    transition: .25s ease;
}

#cedis-header.shrink .cedis-menu > li > a {
    font-size: 11px !important;
    padding-left: 8px !important;
}

/* LIGNE ANIMÉE */
#cedis-header .cedis-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ffffff;
    transition: width .25s ease;
}

#cedis-header .cedis-menu > li:hover > a::after {
    width: 100%;
}

/* ====================================================================== */
/* ============================== DROPDOWN ============================== */
/* ====================================================================== */

#cedis-header .cedis-menu li.dropdown {
    position: relative;
    padding-bottom: 20px;
}

#cedis-header .cedis-menu li.dropdown > a::before {
    content: "⌄";
    font-size: 11px;
    color: #ffffff;
}

#cedis-header .cedis-menu li .dropdown-menu {
    display: none;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0;
    background: #fff;
    min-width: 240px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    padding: 8px 0;
    z-index: 99999;
}

#cedis-header .cedis-menu li.dropdown:hover > .dropdown-menu {
    display: block;
}

#cedis-header .cedis-menu li .dropdown-menu li a {
    color: #1B5E20 !important;
    padding: 10px 16px;
    font-size: 14px;
    display: block;
}

#cedis-header .cedis-menu li .dropdown-menu li a:hover {
    background: #eef6ee;
}

/* ====================================================================== */
/* ============================== SEARCH ================================ */
/* ====================================================================== */

.cedis-search {
    margin-left: auto;
}

.cedis-search form {
    position: relative;
}

.cedis-search input[type="search"] {
    width: 220px;
    padding: 7px 36px 7px 14px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 13px;
    transition: all .25s ease;
}

.cedis-search input[type="search"]:focus {
    outline: none;
    border-color: #55a908;
    box-shadow: 0 0 0 3px rgba(85,169,8,.15);
    width: 240px;
}

.cedis-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #666;
    font-size: 13px;
    cursor: pointer;
}

.cedis-search button:hover {
    color: #55a908;
}

/* ====================================================================== */
/* ============================= RESPONSIVE ============================= */
/* ====================================================================== */

@media (max-width: 1200px) {

    #cedis-header .cedis-menu {
        gap: 14px;
    }

    #cedis-header .cedis-menu > li > a {
        font-size: 11px;
        padding-left: 8px;
    }

    .cedis-search input[type="search"] {
        width: 170px;
    }
}

@media (max-width: 900px) {

    #cedis-header .cedis-tagline {
        display: none;
    }

    #cedis-header .cedis-nav {
        display: none;
    }
}


/* ==========================================================
   FIX SOUS-MENU — ACTIVE / HOVER / CURRENT
========================================================== */

/* Reset complet des fonds Bootstrap */
#cedis-header .cedis-menu li .dropdown-menu li a,
#cedis-header .cedis-menu li .dropdown-menu li a:hover,
#cedis-header .cedis-menu li .dropdown-menu li a:focus,
#cedis-header .cedis-menu li .dropdown-menu li a:active,
#cedis-header .cedis-menu li .dropdown-menu li.current-menu-item > a,
#cedis-header .cedis-menu li .dropdown-menu li.current_page_item > a,
#cedis-header .cedis-menu li .dropdown-menu li.current-menu-ancestor > a {
    background: transparent !important;
    color: #1B5E20 !important;
}

/* Hover personnalisé (vert clair propre) */
#cedis-header .cedis-menu li .dropdown-menu li a:hover {
    background: #eef6ee !important;
}

/* État ACTIF (page courante) — discret, non bleu */
#cedis-header .cedis-menu li .dropdown-menu li.current-menu-item > a,
#cedis-header .cedis-menu li .dropdown-menu li.current_page_item > a {
    background: #e4f2e4 !important;
    font-weight: 600;
}
