:root {
    --color-accent: #D63909;
    --color-grey-light: #F6F6F8;
    --color-grey-hight: #0E0E11;
    --color-grey-highter: #676774;
    --color-grey-medium: #D7D7DD;
    --color-grey-lower: #F6F6F8;
}

img {
    max-width: 100%;
}

body.active {
    height: 100vh;
    overflow: hidden;
}

.header * {
    font-family: Poppins, sans-serif;
}

.header__logo {
    gap: 10px;
    justify-content: flex-start!important;
	align-items: center!important;
}

@media screen and (max-width: 970px) {
    .header__logo, .header__content {
        width: 50%!important;
    }
    
}

.header__logo img {
    padding: 2px;
    width: 100%!important;
    max-width: 100%!important;
    max-height: 80px!important;
}

@media screen and (max-width: 970px) {
    .header__logo img {
        padding: 1px;
    }
}


.header__wrapper {
    display: flex!important;
    align-items: center;
    padding: 0px;
}

/* @media screen and (max-width:769px) {
    .header__wrapper {
        padding: 0px;
    }
} */

.header__content {
    width: 100%;
    align-items: center;
    background-color: #FFFFFF!important;

}

.header__content--flex {
    justify-content: flex-end;
    padding-right: 10px;
}
.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, .search-gmt-mobile {
    flex: 1;
    margin-left: 10%;
    background-color: var(--color-grey-light);
    border-radius: 999px;
    height: 100%;
    display: flex;
    align-items: center;
}

.search-gmt-mobile {
    display: none;
    margin-left: 0;
    margin-right: 10%;
}

@media screen and (max-width: 970px) {
   .search-gmt-mobile {
    display: flex;
   }
}
@media screen and (max-width: 625px) {
   .search-gmt-mobile {
    margin-right: 0;
    width: 100%;
   }
}

.menu-mobile {
    display: none;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.menu-mobile img {
    width: 20px;
    height: 20px;
}

.menu-mobile p {
    font-size: 14px!important;
    color: var(--color-grey-hight)!important;
    margin: 0;
    line-height: 1!important;
}

@media screen and (max-width: 970px) {
    .header__content > div > .search-gmt {
        display: none;
    }
    .menu-mobile {
        display: flex;
    }
}

.header__content > div > .search-gmt form, .search-gmt-mobile form  {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 1em;
}

.search-gmt-mobile input {
    font-size: 14px;
    height: auto;
}

.header__content > div > .search-gmt input, .search-gmt-mobile input {
    width: 100%;
    background-color: transparent;
    border: none;
    font-size: 14px;
}


.header__content > div > .search-gmt input:focus, .search-gmt-mobile input:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
}

div.header__content > div > div.search-gmt > form > svg {
    width: 20px;
}

.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-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none!important;
    color: var(--color-grey-hight);
    height: 100%;
}
.header__content > div > .pic-menu-quote-mobile p {
    margin-bottom: 0;
    color: var(--color-grey-hight);
    font-size: 14px;
    line-height: 1;
}

@media screen and (max-width: 970px) {
    .header__content > div > .pic-menu-quote {
        display: none;
    }
    .header__content > div > .pic-menu-quote-mobile {
        display: flex;
    }
}



.header__content > div > .pic-menu-quote img  {
    width: 15px;
}
.header__content > div > .pic-menu-quote-mobile img {
    width: 22px;
}

.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 > .call-gmt-mobile {
    height: 100%;
}
.header__content > div > .call-gmt-mobile img {
    width: 20px;
}
.header__content > div > .call-gmt-mobile > a > p {
    margin-bottom: 0;
    color: var(--color-grey-hight);
    font-size: 14px;
    line-height: 1;
}
.header__content > div > .call-gmt-mobile > a {
    text-decoration: none;
    color: var(--color-grey-hight);

}

.header__content > div > .call-gmt-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width: 970px) {
    .header__content > div > .call-gmt {
        display: none;
    }
    .header__content > div > .call-gmt-mobile {
        display: flex;
    }
}

.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;
    position: relative;
    font-family: Poppins, sans-serif;
}



.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.mobile .nav {
        flex-direction: column;
    }
@media screen and (max-width: 635px) {
    .menu-container.mobile {
        width: 90%;
    }
}
.menu-container.active {
    display: block;
    z-index: 3;

}

.menu-container.mobile .header-product__cat li {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media screen and (min-width: 970px) {
    .menu-container.mobile {
        display: none;
    }
}

  .menu-container.mobile .navigation {
        position: absolute;
        top: 0;
        width: 100%;
        left: 100%;
        transition: left 0.3s ease-in-out;
    }

    .menu-container.mobile .navigation.active {
        left: 0;
    }

div.menu-container.mobile.active > div.header-product__cat > ul > li:nth-child(1) > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
}

div.menu-container.mobile.active > div.header-product__cat > ul > li:nth-child(1) > a:after {
    content: '';
    background-image: url('https://www.preprod.gmt-menuiseries.com/wp-content/themes/gmt/resources/assets/images/arrow-right.svg');
    width: 20px;
    height: 20px;
    font-size: 15px;
    pointer-events: none;
}

@media screen and (max-width: 970px) {
    .menu-container.desktop.active {
        display: none;
    }
}
@media screen and (max-width: 970px) {
    .menu-container.active {
        position: fixed;
        height: 100%;
            left: 0;
    }
}
.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;
    height: calc(100svh - 149px);
    overflow-y: scroll;
}

.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 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 0!important;
}

.header-product__top ul li a {
    text-decoration: none!important;
    font-weight: 400!important;
    font-size: 16px!important;
    color: var(--color-grey-hight);
}
.header-product__top ul.nav li:first-child a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.header-product__top > ul.nav > li:first-child > a::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://www.preprod.gmt-menuiseries.com/wp-content/themes/gmt/resources/assets/images/burger.svg');
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-position: center;
}

.header-product__top > ul.nav .chevron {
    margin-left: 10px;
}
.header-product__top ul li ul {
    display: none;
    height: auto;
    width: 100%;
    padding: 12px;
    background-color: white;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.20);
    position: absolute;
    top: 130%;
    gap: 12px;
    flex-direction: column;
    z-index: 2;
    border-radius: 8px;
}
div.header-product__top > ul > li > ul > li {
    width: 100%;
    padding: 0;
}
div.header-product__top > ul > li > ul > li > a {
    text-decoration: none!important;
    font-size: 14px!important;
    color: var(--color-grey-highter)!important;
    font-weight: 300!important;
}
.header-product__top ul li.active ul {
    display: flex;
}
.header-product__top ul li.active img {
    transform: rotate(180deg);
}

@media screen and (max-width: 970px) {
    .header-product__top > ul {
        display: none;
    }
}
@media screen and (max-width: 625px) {
    .header-product__top {
        flex-direction: column;
    }
    .header-product__top  > div {
        width: 100%;
    }
}

.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;
}

@media screen and (max-width: 625px) {
    .find-agence-nearby {
        margin-top: 10px;
        
    }
}

.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: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    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 > 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 > a {
        display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}
.header-product__cat li.menu-item > a::after {
    content: ''; /* flèche droite unicode */
    background-image: url('https://www.preprod.gmt-menuiseries.com/wp-content/themes/gmt/resources/assets/images/arrow-right.svg');
    color: var(--color-accent);
    width: 20px;
    height: 20px;
    font-size: 15px;
    pointer-events: none;
}
.header-product__cat .back-categories {
    display: flex;
    align-items: center;
    justify-content: flex-start!important;
    padding-left: 0!important;
    gap: 10px!important;
}
.header-product__cat .back-categories::before {
    content: ''; /* flèche droite unicode */
    background-image: url('https://www.preprod.gmt-menuiseries.com/wp-content/themes/gmt/resources/assets/images/arrow-right.svg');
    color: var(--color-accent);
    width: 20px;
    transform: rotate(180deg);
    height: 20px;
    font-size: 15px;
    pointer-events: none;
}

.menu-categories-container ul.sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    overflow: hidden;
    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;
}

@media (max-width: 991.98px) {
    .header-product {
        display: block!important;
        position: inherit!important;
        height: auto!important;
        top: 180px!important;
        width: 100%!important;
        z-index: 2!important;
        background-color: white!important;
        padding-top: 30px!important;
    }
}


@media screen and (max-width: 625px) {
    .header-product {
        padding-top: 0!important;
        border-top: none;
        margin-top: 0;
    }

}

@media (min-width: 576px) {
    .header__content:after {
        display: none!important;
    }
}


body > header.header > div.container, body > div.header-product > div.container {
    max-width: 100%!important;
}