:root {
    --color-accent: #D63909;
    --color-grey-light: #F6F6F8;
    --color-grey-hight: #0E0E11;
    --color-grey-highter: #676774;
    --color-grey-medium: #D7D7DD;
}

body.active {
    height: 100vh;
    overflow: hidden;
}

.header__logo img {
    padding: 2px;
}
.header__wrapper {
    display: flex!important;
    align-items: center;
}

.header__content {
    width: 100%;
    align-items: center;
    background-color: #FFFFFF!important;

}
.header__content:after {
    background-color: #FFFFFF!important;
}

.header__content > div {
    height: 40px;
    display: flex;
    align-items: center;
        gap: 20px;
        width: 100%;
}

.header__content > div > .search-gmt {
    flex: 1;
    margin-left: 10%;
    background-color: var(--color-grey-light);
    border-radius: 999px;
    height: 100%;
    display: flex;
    align-items: center;
}

.header__content > div > .search-gmt form {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 1em;
}

.header__content > div > .search-gmt input {
    width: 100%;
    background-color: transparent;
    border: none;
    font-size: 14px;
}

.header__content > div > .search-gmt input:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.header__content > div > .pic-menu-quote {
    background-color: var(--color-accent);
    height: 100%;
    padding: 1em;
    text-decoration: none!important;
    color: white!important;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.header__content > div > .pic-menu-quote img {
    width: 15px;
}

.header__content > div > .call-gmt {
    min-width: 130px;
}

.header__content > div > .call-gmt button {
    background-color: transparent;
    border: none;
}

.header__content > div > .call-gmt button:focus {
    outline: none;
}

.header__content > div > .call-gmt button span {
    font-size: 14px;
    color: var(--color-grey-hight);
    font-weight: bold;
}
.header__content > div > .call-gmt img {
    width: 20px;
}

.header__content > div > .pic-menu-quote span {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.hidden {
    display: none;
}


.header-product {
    margin-top: 10px;
    border-top: 1px solid var(--color-grey-light);
    border-bottom: none!important;
}


.header-product__wrapper {
    display: flex;
    position: relative;
}

.menu-container {
    position: absolute;
        top: 0;
        z-index: 2;
        display: none;
        min-width: 250px;
        overflow: hidden;
        background-color: white;
}
.menu-container.active {
    display: block;
    z-index: 3;
}
.menu-container__top {
    display: flex;
    padding: 0.5em;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-grey-light);
}
.menu-container__top p {
    margin-bottom: 0;
    color: black!important;
    font-size: 14px!important;
    font-weight: bold!important;
}
.menu-container__top button {
    text-decoration: underline;
    background: transparent;
    border: none;
    color: black!important;
    font-size: 14px!important;
    font-weight: bold!important;
}

.menu-categories-container {
    position: relative;
}

.menu-categories-container ul {
    display: flex;
    flex-direction: column;
    background-color: white;

}

.header-product__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
        width: 100%;
}

.header-product__top ul {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    padding-left: 0;

}

.header-product__top ul li {
    list-style: none;
    cursor: pointer;
    padding: 0.5em;
}

.header-product__top ul li.showMenu {
    display: flex;
    align-items: center;
    gap:8px
}

.header-product__top ul li {
    color: var(--color-grey-hight)!important;
    font-size: 14px!important;
}

.find-agence-nearby {
    background-color: transparent;
    border: none;
    text-decoration: underline;
    color: var(--color-accent)!important;
    font-size: 14px!important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__content {
    gap: 30px;
    align-items: center;
    background-color: white;
    padding-left: 50px;
}
.header__content::after {
    background-color: white;
    display: none;
}

.header__content .call {
    color: black;
    font-size: 12px;
}

.header__content .search {
    flex: 1;
    background-color: var(--color-grey-light);
    border: none;
    padding: 0.5em 1em;
    border-radius: 20px;
}

.header__content .ask-quote {
    background-color: var(--primary-color);
    padding: 0.8em 1.7em;
    color: white;
    font-size: 12px;
    border-radius: 20px;
}

.header-product__cat {
    padding-left: 0;
}

.header-product__cat li {
    list-style: none;
    position: initial;
    border-bottom: 1px solid var(--color-grey-medium)!important;
    margin: 0 0.5em;
    padding: 10px 0;
    text-decoration: none!important;
}


.header-product__cat>li .sub-menu {
    /* display: none; */
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    background-color: white;
    z-index: 2;
    border: none;
    height: 100%;
    transition: left 0.3s ease-in-out;
    padding-left: 0;
}
.header-product__cat>li>.sub-menu li.has-submenu .sub-menu {
    left: 200%;
}

.screen-menu {
    background-color: rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 96px;
    left: 0;
    width: 100%;
    height: calc(100vh - 96px);
    display: none;
    z-index: 2;
}

.show {
    display: block!important
}


.header-product__cat>li>.sub-menu.active {
    left: 0%;
}
.header-product__cat>li>.sub-menu li.has-submenu .sub-menu.active {
    left: 0;
}

/* .header-product__cat>li>.sub-menu li {
    list-style: none;
    position: initial;
    border-bottom: 1px solid var(--color-grey-light);
    padding: 5px;
} */

.header-product__cat>li>.sub-menu li.back-categories {
    padding: 1em 0 1em 35px;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: black;
}

.header-product__cat li a {
    text-align: center!important;
    font-size: 11px!important;
    color: #1b283b!important;
    line-height: 16px!important;
    letter-spacing: -.39px!important;
    /* font-weight: 500; */
    font-family: Comfortaa, sans-serif!important;
    text-decoration: none!important;
    padding: 5px 0!important;
}

/* Flèche à droite des parents ayant un sous-menu2 */
.header-product__cat li.menu-item-has-children > a {
    position: relative;
    padding-right: 24px;
    width: 100%;
    color: var(--color-grey-highter);
    font-size: 13px;
    text-decoration: none;
    font-weight: 300;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-product__cat li.menu-item-has-children > a::after {
    content: ''; /* flèche droite unicode */
    background-image: url('/wp-content/themes/gmt/resources/assets/images/arrow-right.svg');
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    width: 20px;
    height: 20px;
    font-size: 15px;
    pointer-events: none;
}

.header-product__cat .back-categories::before {
    content: ''; /* flèche droite unicode */
    background-image: url('/wp-content/themes/gmt/resources/assets/images/arrow-right.svg');
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    color: var(--color-accent);
    width: 20px;
    height: 20px;
    font-size: 15px;
    pointer-events: none;
}

.menu-categories-container ul.sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    background-color: white;
    z-index: 2;
    height: 100%;
    transition: left 0.3s ease-in-out;
    z-index: -1;
}

.menu-categories-container ul.sub-menu.active {
    z-index: 2;
    left: 0;
}

/* Pour les sous-sous-menus, la logique est identique */
.menu-categories-container ul.sub-menu .sub-menu {
    left: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 2;
    height: 100%;
    transition: left 0.3s ease-in-out;
}

.submenu-header.cat-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submenu-header.cat-selected  .submenu-see-all {
    text-decoration: underline!important;
    color: black!important;
}
