/*     PRE-HEADER     */
#pre-header{
    position: relative;
    height: 38px;
    color: #3F3F3F;
    background-color: #FFFFFF;
    font-size: 14px;
    padding: 0 20px;
    z-index: 1000;
}
#pre-header #header-langues:focus{
    box-shadow: none !important;
}
@media screen and (max-width: 500px){
    #pre-header{
        font-size: 13px;
        padding: 0 10px;
    }
}
@media screen and (max-width: 400px){
    #pre-header{
        font-size: 12px;
    }
}
/*     HEADER     */
#header{
    position: relative;
    height: 153px;
    background-color: #033A6C;
    padding: 16px 20px;
    z-index: 999;
    transition: all ease 0.3s;
}
@media screen and (max-width: 500px){
    #header{
        height: 100px;
        padding: 16px 10px;
    }
}
/* Région Logo */
#header #region_logo img{
    max-width: inherit !important;
}
@media screen and (max-width: 500px){
    #header #region_logo img{
        max-width: 100% !important;
    }
}
/* Région Menu */
#header #region_menu nav ul{
    display: flex;
    gap: 32px;
}
#header #region_menu .button{
    height: 45px;
    line-height: 43px;
}
/* Boutons-liens du menu (Catalogue, Achat rapide) : le <a> ne couvrait que
   le texte. On reporte le padding horizontal du conteneur sur le <a> et on
   le rend block pleine hauteur pour que toute la surface du bouton soit
   cliquable. Cible uniquement les boutons qui contiennent réellement un lien
   (on ne touche pas à « Nos produits » qui est un <span> toggle). */
#header #region_menu .button:has(> a){
    padding: 0 !important;
}
#header #region_menu .button > a{
    display: block;
    height: 100%;
    padding: 0 20px;
    color: inherit;
}
/* Même correctif pour le bouton « Achat rapide » du menu burger
   (visible en mobile/tablette), de structure identique <div class="button"><a>. */
#achatRapideBurger.button{
    padding: 0 !important;
}
#achatRapideBurger.button > a{
    display: block;
    height: 100%;
    padding: 0 20px;
    color: inherit;
}
#header #region_menu .lienCatalogue{
    background-image: url('data:image/svg+xml,<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 6.5H21.5M3.5 12.5H21.5M3.5 18.5H21.5" stroke="%23FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: 12px center;
    padding-left: 42px !important;
    border: 1px solid #4f7598 !important;
    transition: all ease 0.3s;
}
#header #region_menu .lienCatalogue:hover{
    background-image: url('data:image/svg+xml,<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 6.5H21.5M3.5 12.5H21.5M3.5 18.5H21.5" stroke="%234685C0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') !important;
    border: 1px solid #FFF !important;
    background-color: #FFF !important;
}
@media screen and (max-width: 1023px){
    #header #region_menu .buttonConversion{
        display: none;
    }
}
/* Recherche */
@media screen and (max-width: 725px){
    #searchHeader{
        display: none;
    }
}
#searchHeader form,
#searchHeaderMobile form{
    position: relative;
}
#searchHeader input,
#searchHeaderMobile input{
    width: 100%;
    height: 45px;
    font-size: 16px !important;
    font-weight: 300;
    color: #34273F;
    background-color: #F6F6F6 !important;
    padding-left: 20px !important;
    border: none !important;
    border-radius: 50px !important;
    -webkit-appearance: none !important;
}
#searchHeader input::placeholder,
#searchHeaderMobile input::placeholder{
    color: #000000 !important;
}
#searchHeader .loupeHeader,
#searchHeaderMobile .loupeHeader{
    position: absolute;
    right: 18px;
    width: 18px;
    height: 45px;
    background-image: url('../img/header/loupe.svg');
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center right;
    z-index: 999;
}
/* Recherche mobile sous le header */
#searchHeaderMobile{
    display: none;
    position: relative;
    background-color: #033A6C;
    padding: 0 10px 12px;
    z-index: 998;
}
@media screen and (max-width: 725px){
    #searchHeaderMobile{
        display: block;
    }
}
/* Icones */
#header .iconeHeader{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    color: #FFF;
    gap: 2px;
}
#header .iconeHeader img{
    height: 27px;
    max-width: inherit !important;
}
#header .cart_link::after{
    content: attr(data-cart-qty);
    position: absolute;
    top: -1px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #FFF;
    background-color: #7CB5EB;
    border-radius: 25px;
    padding: 0 5px;
}
@media screen and (max-width: 500px){
    #header .iconeHeader span{
        display: none;
    }    
}
/*     MENU BURGER     */
#menuBurgerContent{
    position: fixed;
    width: 100%;
    max-width: 420px;
    top: 0;
    left: 0;
    background-color: #FFFFFF;
    transform: translate(-500%);
    overflow-y: auto;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1) 0s;
    z-index: 1001;
}
#menuBurgerContentSub{
    position: fixed;
    width: 100%;
    max-width: 420px;
    top: 0;
    left: 0;
    background-color: #FFFFFF;
    transform: translate(-100%);
    overflow-y: auto;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1) 0s;
    z-index: 1002;
}
body.openBurger{
    overflow: hidden;
}
body.openBurger #menuBurgerContent,
body.openBurgerSub #menuBurgerContentSub{
    transform: translate(0px);
}
body.openBurgerSub #menuBurgerContent{
    pointer-events: none;
}
@media screen and (max-width: 1023px){
    #achatRapideBurger{
        display: block;
    }
}
#menuBurgerContent ul li,
#menuBurgerContentSub ul li{
    position: relative;
    font-size: 16px;
    font-weight: 300;
    padding: 0;
    border-bottom: 1px solid #f2f2f2;
/*    transition: all ease 0.3s;*/
}
#menuBurgerContent ul li a,
#menuBurgerContentSub ul li a{
    width: 100%;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
#menuBurgerContentSub ul li.font-semibold a{
    font-weight: 600;
}
#menuBurgerContent ul li:hover,
#menuBurgerContentSub ul li:hover{
    color: #FFF;
    font-weight: 600;
    background-color: #7CB5EB;
}
#menuBurgerContent ul li.hasSubMenu:after{
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 30px;
    content: "";
    background-size: auto 12px;
    background-repeat: no-repeat;
    background-image: url('../img/menuBurger/subMenu.svg');
    background-position: center center;
}
#menuBurgerContent ul li.hasSubMenu:hover:after{
    filter: invert(1);
    webkit-filter: invert(1);
}
#menuBurgerContent ul li .categ-icon,
#menuBurgerContentSub ul li .categ-icon{
    height: 23px;
    width: 23px;
    margin-right: 8px;
    object-fit: contain;
    object-position: center;
    transition: all ease 0.3s;
}
#menuBurgerContent .closeMenuBurger,
#menuBurgerContentSub .closeMenuBurger{
    background-size: auto 12px;
    background-repeat: no-repeat;
    background-image: url('../img/menuBurger/closeMenu.svg');
    background-position: right center;
    padding-right: 20px;
}
#menuBurgerContentSub .backMenuBurger{
    background-size: auto 12px;
    background-repeat: no-repeat;
    background-image: url('../img/menuBurger/backMenu.svg');
    background-position: left center;
    padding-left: 20px;
}