/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

.mini-menu-fixed-container {
    width: 100%;
    padding: 0 10px 0 15px;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    flex-direction: row !important;
}

.logo-white-header,
.burger-container-head {
    padding: 3px 8px;
}

.asso-connect-btn {
    background-color: white;
    display: flex;
    cursor: pointer;
    padding: 5px 11px;
    margin-bottom: 5px;
    border-radius: 0 0 20px 20px;
}

.asso-connect-btn:hover {
    box-shadow: 0px 0px 5px #ececec;
}

/* --- Menu desktop --- */
.custom-primary-menu {
    display: block;
}

.primary-menu-list {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0 !important;
    gap: 3vw;
    align-items: center;
    list-style-type: none !important;
}

.primary-menu-list li {
    position: relative;
    margin: 0;
    padding: 0;
}

.primary-menu-list li a {
    font-family: 'Quicksand SemiBold', sans-serif;
    font-weight: 500;
    font-size: 1vw;
    color: #4D74B5;
    text-decoration: none;
    padding-bottom: 8px;
    display: inline-block;
    transition: color 0.2s linear;
}

.primary-menu-list li::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: -10px;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #00A19B;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s linear;
}

.primary-menu-list .menu-item-has-children li::before {
    left: 10px;
}

.primary-menu-list .menu-item-has-children,
.primary-menu-list .menu-item-has-children > a {
    cursor: default;
}

.primary-menu-list li a:hover {
    color: #00A19B;
}

.primary-menu-list li:hover::before {
    opacity: 1;
    bottom: 16px;
}

.primary-menu-list li.current-menu-item a,
.primary-menu-list li.current_page_item a {
    color: #00A19B;
}

.primary-menu-list li.current-menu-item::before,
.primary-menu-list li.current_page_item::before {
    opacity: 1;
    bottom: 16px;
}

.current-menu-parent > a {
    color: #00A19B !important;
}

.current-menu-parent.menu-item-has-children > li:before,
li.current-menu-parent.menu-item-has-children::before {
    content: '';
    position: absolute;
    left: -10px;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #00A19B;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.2s linear;
    bottom: 16px;
}

/* --- Sous-menus desktop --- */
.primary-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4d74b5;
    list-style: none;
    padding: 10px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.primary-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu-list .sub-menu li a {
    padding: 8px 20px;
    white-space: nowrap;
}

.primary-menu-list .sub-menu li a:hover {
    background: #f5f5f5;
}

.primary-menu-list .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 12px;
    margin-top: -4px;
    vertical-align: middle;
}

/* --- Divi header overrides --- */
header .et-l--header,
#et-boc > header {
    position: relative !important;
    z-index: 9999999 !important;
}

.et_pb_menu--with-logo .et_pb_menu__menu > nav > ul > li.menu-item > a {
    padding: 25px 0 !important;
    font-size: clamp(10px, 0.78vw, 13px);
}

.et_pb_menu .et-menu > li {
    padding-left: 0.5vw;
    padding-right: 0.5vw;
}

/* =====================================================
   BURGER & MENU MOBILE
   ===================================================== */

.msp-burger-container {
    padding: 7px 0;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-evenly;
}

.msp-burger-icon {
    width: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.msp-burger-icon div {
    height: 3px;
    background: white;
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.1s linear;
}

.msp-burger-icon div:nth-child(1) { width: 30px; }
.msp-burger-icon div:nth-child(2) { width: 20px; }
.msp-burger-icon div:nth-child(3) { width: 8px; }

.msp-burger-icon:hover div:nth-child(1) { width: 8px; }
.msp-burger-icon:hover div:nth-child(3) { width: 30px; }

.msp-burger-container a.picto-link {
    display: flex;
    align-items: center;
}

.rotatefix {
    transform: rotate(-90deg) !important;
}

.picto-link svg {
    max-width: 30px;
}

.login-icon a {
    display: flex;
    justify-content: center;
}

/* --- Menu mobile overlay --- */
.msp-mobile-menu {
    position: absolute;
    margin-top: 10px;
    border-radius: 20px 0 0 20px;
    border: 0px solid transparent;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #d0ad75;
    transition: max-height 0.4s ease;
    z-index: 99;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.msp-mobile-menu.open {
    max-height: 100vh;
    padding: 5%;
}

.msp-mobile-logo {
    width: 60%;
    max-width: 6vw;
    margin: 20px auto;
    display: block;
}

.msp-mobile-menu .menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;
}

.msp-mobile-menu .menu li {
    margin: 0 auto;
    width: 80%;
    border-bottom: 1px solid white;
}

.msp-mobile-menu .menu li a {
    display: flex;
    text-decoration: none;
    color: white !important;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1vw;
    padding: 20px 0;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.msp-mobile-menu .menu li a:hover {
    box-shadow: 0px 0px 10px #d7d7d7;
    color: white !important;
}

.msp-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

div .msp-social-links a {
    font-size: 22px;
}

.msp-close-btn {
    cursor: pointer;
    font-size: 14px;
    background: #ffffff;
    border-radius: 75px;
    box-shadow: 0px 0px 10px #c4c0c0;
    text-align: center;
    width: 50px;
    display: flex;
    float: inline-end;
    height: 50px;
    justify-content: center;
    align-items: center;
}

/* --- Panel info --- */
.msp-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 0 5%;
    transition: max-height 0.4s ease;
    z-index: 98;
}

.msp-panel.open {
    max-height: 100vh;
    padding: 5%;
}

/* =====================================================
   MENU MOBILE — Items custom (shortcode)
   ===================================================== */
.msp-custom-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}

.msp-custom-item {
    list-style: none !important;
    position: relative !important;
}

.msp-custom-wrapper {
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

.msp-has-children .msp-custom-wrapper {
    cursor: pointer !important;
}

.msp-custom-item.submenu-open > .msp-custom-wrapper {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.msp-custom-label {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    text-transform: none !important;
    padding: 2.5vh 0 !important;
    font-family: 'Quicksand SemiBold', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: white !important;
}

.msp-custom-label:hover {
    color: white !important;
}

.msp-custom-link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    text-transform: none !important;
    text-decoration: none !important;
    padding: 2.5vh 0 !important;
    font-family: 'Quicksand SemiBold', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: white !important;
}

.msp-custom-link:hover,
.msp-custom-link:focus,
.msp-custom-link:active {
    color: white !important;
}

.msp-custom-toggle {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    padding: 10px !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: white !important;
    transition: transform 0.3s ease !important;
    text-transform: none !important;
}

.msp-custom-toggle:hover {
    color: white !important;
}

.msp-custom-item.submenu-open > .msp-custom-wrapper .msp-custom-toggle {
    transform: translateY(-50%) rotate(180deg) !important;
}

.msp-custom-submenu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease, padding 0.3s ease !important;
    text-align: center !important;
    width: 100% !important;
}

.msp-custom-item.submenu-open > .msp-custom-submenu {
    max-height: 500px !important;
    padding-bottom: 15px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.msp-custom-subitem {
    list-style: none !important;
    text-align: center !important;
    width: 100% !important;
}

.msp-custom-subitem:last-child {
    border-bottom: none !important;
}

.msp-custom-subitem:last-child .msp-custom-sublink {
    border-bottom: none !important;
}

.msp-custom-sublink {
    display: block !important;
    width: 100% !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-align: center !important;
    padding: 2.5vh 0 !important;
    font-family: 'Quicksand SemiBold', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    font-size: 15px !important;
    color: white !important;
}

.msp-custom-sublink:hover,
.msp-custom-sublink:focus,
.msp-custom-sublink:active {
    color: white !important;
}

/* =====================================================
   RESPONSIVE MENUS
   ===================================================== */
@media screen and (max-width: 1024px) {
    .custom-primary-menu {
        display: none;
    }

    .msp-mobile-menu.open,
    .msp-panel.open,
    .msp-info-panel.open {
        max-height: 70vh;
        max-width: 520px;
        height: 60vh;
        right: 0;
        left: 12px;
        top: 100% !important;
        bottom: initial !important;
        border-radius: 20px;
    }
}

@media screen and (max-width: 767px) {
    .msp-mobile-menu.open,
    .msp-panel.open,
    .msp-info-panel.open {
        max-height: 80vh;
        max-width: 520px;
        height: 80vh;
        right: 0;
        left: 0px;
        top: 100% !important;
        bottom: initial !important;
        border-radius: 20px;
    }

    .msp-mobile-menu {
        transition: max-height 0.2s ease;
    }

    div.et_pb_column_1_tb_header.menu-cartouche-col {
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .asso-connect-btn .asso-title {
        display: none;
    }

    .asso-connect-btn {
        padding: 4px 10px;
    }
}
