/*********************************
* Author : Bilel (refacto Mikayil)
* Role : CSS header 
*********************************/

/* 
 * MOBILE FIRST (< 767px)
 ***********************/

/* Parent theme Ocean WP override*/
#top-bar-wrap {
    border-bottom: none;
    background-color: var(--grey-400);
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

#top-bar {
    position: relative;
    width: 100%;
    max-width: 1720px;
    padding: 20px 0;
}

#top-bar-social ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

#top-bar-social.top-bar-right {
    position: static;
    margin-top: 0;
}

#site-navigation-wrap .dropdown-menu>li>a {
    font-size: var(--font-size-16);
    color: var(--grey-700);
}

.cursor {
    cursor: pointer;
    width: fit-content;
}

/* Popup Mobile */
/* Menu principal */
#popup-mobile-menu-grand-parent {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: calc(100vh - 64px);
}

#popup-mobile-title-close {
    margin: 1rem 14vw;
}

#popup-mobile-title {
    font-size: var(--font-size-18);
    color: var(--red-icon);
    text-transform: uppercase;
}

.cross {
    font-size: 17px;
    position: absolute;
    top: 0;
    right: 3rem;
    cursor: pointer;
}

#popup-mobile-menu-parent {
    text-transform: uppercase;
    margin: 0 10vw;
}

#popup-mobile-menu-parent ul {
    display: flex;
    flex-direction: column;
    color: var(--black);
    font-size: var(--font-size-22);
}

#popup-mobile-menu-parent>ul {
    gap: 1.5em;
}

#popup-mobile-menu-parent li {
    line-height: 16px;
    text-transform: uppercase;
}

#popup-mobile-menu-logo-possible {
    display: flex;
    justify-content: center;
    margin-bottom: 96px;
}

#popup-mobile-menu-logo-possible img {
    width: 130px;
    height: auto;
}

/* Menu Nous soutenir */
#popup-soutenir-container {
    display: none;
    justify-content: center;
    position: relative;
    background-color: var(--white-menu);
    height: calc(100vh - 64px);
}

#popup-soutenir-logo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
    padding: 5rem 0 8rem;
    margin: 0 10vw;
}

#popup-soutenir-logo img {
    width: 130px;
    height: auto;
}

.popup-text-green {
    color: var(--green-text);
    font-size: var(--font-size-20);
    font-weight: normal;
    margin-bottom: 0.6rem;
}

.popup-text-black {
    color: var(--black);
    font-size: var(--font-size-22);
    text-transform: uppercase;
}

.popup-contacter ul li {
    font-size: var(--font-size-18);
    color: var(--grey-700);
    line-height: 20px;
    margin-bottom: 10px;
}

/* Popup Desktop */
#popup-desktop-nos-actions-parent,
#popup-desktop-soutenir-parent,
#popup-desktop-impliquer-parent {
    display: none;
}

/* Header Global */
header {
    position: fixed;
    top: 0;
    left: 0;
    /* Ensure it goes above the dots in the interactive map */
    z-index: 10000;
    width: 100vw;
    background-color: white;
    opacity: 0.95;
}

/* Header Haut */
#header-bar-grey {
    background-color: var(--grey-400);
    height: 24px;
    margin-bottom: 40px;
}

#header-bar-yellow {
    background-color: var(--yellow);
    height: 60px;
    width: 40px;
    position: absolute;
    left: 4%;
}

#header-us-heart {
    position: absolute;
    top: 6px;
    left: calc(4% + 1.5em);
}

#header-us {
    font-size: var(--font-size-16);
    color: var(--grey-700);
}

.header-icon {
    display: none;
}

#header-heart {
    padding-left: 40px;
    width: 56px;
    height: auto;
    display: flex;
}

/* Header Bas */

#header-menu-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding-top: 5px;
    visibility: visible;
}

#header-bas-menu-image {
    position: absolute;
    left: 4%;
}

#header-menu-image {
    width: 66px;
    height: auto;
}

.header-menu {
    display: none;
}

#header-logo-image {
    width: 130px;
    height: auto;
}

/* Descendre le main de la même taille que le header */
main {
    margin-top: 130px;
}

/* Formulaire */
.contact-form-common {
    padding: 1rem 1.7rem;
    margin-right: 2rem;
    background-color: var(--grey-300);
}

.contact-form-common>div {
    margin-bottom: 10px;
}

.contact-form-common input,
.contact-form-common textarea {
    color: var(--grey-700);
    background-color: white !important;
    font-size: var(--font-size-16);
    border-radius: 4px;
    border-width: inherit;
}

.contact-form-common select {
    background-color: white !important;
}


.contact-form-common label {
    color: black;
    line-height: 1.4 !important;
}

.contact-form-common .checkbox-container {
    line-height: 1;
    margin-top: 10px;
}


.contact-form-common .voir-plus-button-container {
    margin: 15px 0 60px 0;
}

.contact-form-common .voir-plus-button-container::before {
    width: 86px;
}

.contact-form-common .voir-plus-button {
    font-size: var(--font-size-18);
    gap: 20px;
}

/* Mobile menu submenu styles */
.mobile-submenu {
    display: none;
    margin-top: 10px;
}

.mobile-submenu.active {
    display: block;
}

.menu-item-has-children {
    width: 100%;
}

.menu-item-has-children .menu-toggle {
    position: relative;
    display: block;
    width: 100%;
    cursor: pointer;
}

.menu-item-has-children .menu-toggle::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 35%;
    transform: translateY(-50%);
    font-size: 25px;
    transition: transform 0.3s ease;
}

.menu-item-has-children.active .menu-toggle::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.mobile-submenu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 20px;
    padding-top: 5px;
}

.mobile-submenu .menu-item {
    padding: 5px 0;
}

.mobile-submenu .menu-item:last-child {
    border-bottom: none;
}

.mobile-submenu .menu-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.mobile-submenu .menu-item a:hover {
    color: #007cba;
}

@media (min-width: 768px) {

    /* Header Haut */
    #header-bar-yellow {
        left: 10%;
    }

    #header-us-heart {
        left: calc(10% + 1.5em);
    }

    /* Header Bas */
    #header-bas-menu-image {
        position: absolute;
        left: 10%;
    }

    /* Popup mobile */
    #popup-mobile-menu-parent,
    #popup-mobile-title-close,
    #popup-soutenir-logo {
        margin: 0 25vw;
    }

}

@media (min-width: 1024px) {

    /* Descendre le main de la même taille que le header */
    main {
        margin-top: 160px;
    }

    /* Parent theme Ocean WP override*/
    #site-header {
        padding: 22px 0;
        border-bottom: none;
    }

    #top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
    }

    #top-bar-wrap {
        margin-bottom: 0;
    }

    /* Nav Desktop */
    #site-header.center-header #site-navigation-wrap .navigation {
        max-width: 1840px;
        margin: 0 auto;
        width: 100%;
    }

    .navigation-wrapper .main-menu.dropdown-menu>.menu-item>.menu-link {
        text-transform: uppercase;
    }

    /* Popup Desktop */

    /* Général */
    #wrap header nav.open {
        height: calc(100vh - 160px);
        overflow-y: scroll;
    }

    .cross {
        font-size: 20px;
    }

    .yellow-bar {
        width: 100px;
        min-width: 100px;
        background-color: var(--yellow);
        background-color: var(--yellow-bar);
    }

    #header-bar-yellow {
        width: 100px;
        min-width: 100px;
    }

   #popup-desktop-yellow-bar  {
        width: 100px;
        min-width: 100px;
    }

    #desktop-impliquer-yellow-bar {
        width: 100px;
        min-width: 100px;
    }

    #desktop-soutenir-yellow-bar {
        width: 100px;
        min-width: 100px;
    }

    /* Menu Nos actions */
    #popup-desktop-nos-actions-parent {
        position: relative;
        background-color: var(--grey-100-menu);
        min-height: 100%;
        margin-left: calc(10% + 140px);
    }

    #popup-desktop-nos-actions-parent .cross {
        right: 0;
        left: -2em;
        top: 1em;
        width: fit-content;
    }

    #popup-desktop-menu {
        padding: 6% 10% 6%;
        font-size: var(--font-size-22);
        background-color: var(--grey-100-text-menu);
    }

    .menu-nos-actions .selected {
        color: var(--grey-700);
    }

    .menu-nos-actions {
        text-transform: uppercase;
    }

    .menu-nos-actions a:hover {
        color: var(--black);
    }

    .menu-nos-actions>ul>li>.sub-menu {
        margin-left: 140px;
        margin-bottom: 37px;
    }

    .menu-nos-actions>ul>li:last-of-type {
        margin-top: 42px;
    }

    .sub-menu .sub-menu {
        margin-left: 40px;
    }

    /* Menu Desktop Soutenir */
    #popup-desktop-impliquer-parent,
    #popup-desktop-soutenir-parent {
        position: relative;
        background-color: var(--grey-100-menu);
        min-height: 100%;
        /* overflow-y: auto; */
        margin: 0 10%;
        justify-content: space-between;
        align-items: stretch;
    }

    #popup-desktop-soutenir-parent .cross {
        right: unset;
        left: 120px;
        top: 0.6em;
        width: fit-content;
    }

    #desktop-menu-soutenir {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin-left: 3em;
        background-color: var(--grey-100-text-menu);
    }

    /* Formulaire */
    .contact-form-common {
        max-width: 40%;
        
    }


    #popup-desktop-impliquer-parent {
        overflow-y: scroll;
        /* height: 300px; */
        padding: 20px;
        border-radius: 10px;
    }

    #popup-desktop-impliquer-parent .cross {
        top: 1em;
    }

    #popup-desktop-impliquer-parent.open {
        display: flex;
        /* Affiche le menu quand la classe 'open' est ajoutée */
    }



    #popup-desktop-impliquer-parent form .voir-plus-button-container {
        margin-top: 1em;
    }

    /* Menu */
    #popup-desktop-impliquer-parent #desktop-menu-impliquer {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin-right: 2em;
    }

    #popup-desktop-impliquer-parent #desktop-menu-impliquer ul {
        margin-bottom: 1.5em;
    }

    #desktop-impliquer-yellow-bar {
        margin-right: 140px;
    }

    /* Header Haut */

    #header-bar-grey {
        height: 45px;
        align-content: center;
    }

    #header-bar-yellow {
        height: 80px;
        width: 49px;
        top: 0;
    }

    #header-us-heart {
        top: 4px;
    }

    .header-icon {
        display: flex;
        justify-content: end;
        gap: 10px;
        margin-right: 10%;
    }

    .header-icon i {
        font-size: 18px;
        margin: 0 2px;
    }


    /* Header Bas */
    #header-bas-menu-image {
        display: none;
    }

    #header-menu-image {
        width: 50px;
        height: auto;
    }

    #header-menu-logo {
        justify-content: space-between;
        align-items: center;
        padding-top: 0px;
        margin-left: 10%;
        margin-right: 10%;
    }

    .header-menu {
        display: flex;
        text-transform: uppercase;
    }

    .header-bas-menu {
        display: flex;
        gap: 60px;
    }

    .header-bas-menu,
    .header-bas-menu a {
        color: var(--grey-700);
        font-size: var(--font-size-16);
    }

    #header-logo-image {
        width: auto;
        height: 44px;
    }
}

@media (min-width: 1366px) {
    #header-logo-image {
        width: 200px;
    }
}

@media (min-width: 1024px) and (max-height: 750px) {
    /* #popup-desktop-menu {
        padding-top: 25px;
    }

    .menu-nos-actions>ul>li>.sub-menu {
        margin-bottom: 20px;
    }

    .menu-nos-actions>ul>li:last-of-type {
        margin-top: 10px;
    }

    #header-bar-grey {
        margin-bottom: 30px;
    }

    #header-menu-logo {
        margin-bottom: 20px;
    } */
        /* Menu Desktop Soutenir */
    #popup-desktop-impliquer-parent,
    #popup-desktop-soutenir-parent {
        /* max-height: 72vh; */
    }

}