/* Header CSS */
header.site-header{
    background-color: var(--blanc);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding:0.5rem 0 0 0;
    position: sticky;
    top:0;
    z-index:999;
    overflow-x: clip
}
header.site-header .content{
    width:90%;
    max-width:1280px;
    margin:0 auto;
}
header.site-header a.logo{
    display: inline-block;
}
header.site-header a.logo img{
    width:100px;
    transition: all 0.5s ease;
}
header.site-header.scrolled a.logo img{
    width:80px;
}
.home header.site-header a.logo{
    pointer-events: none
}
header.site-header .bandeau{
    background-color: var(--vert);
    color: var(--blanc);
    font-size: 0.9rem;
    flex: 1 1 auto;
    margin-top:0.75rem;
    height:auto;
    transition: all 0.5s ease;
}
header.site-header.scrolled .bandeau{
    height:0;
    overflow:clip
}
header.site-header .bandeau.has-background{
    padding-top:0.5rem; padding-bottom: 0.5rem
}
header.site-header.scrolled .bandeau.has-background{
    padding-top:0; padding-bottom: 0;
} 
header.site-header .menu-cpt{
    display: flex;
    gap: 0.25rem;
}
header.site-header .menu-cpt a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width:40px; height: 40px;
    border-radius: 50%;
}
header.site-header .menu-cpt a img{
    display: block;
    width:24px; height: 24px;
}
header.site-header .menu-cpt a:hover{
    background-color: rgb(220,220,220)
}

header.site-header .burger .bars{
    width:20px; height: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex:0 0 auto;
    position: relative;
}
header.site-header .burger .bar{
    width:100%;
    height: 2px;
    background-color: var(--darkblue);
    transition: all 0.35s ease;
}
header.site-header .burger.actif .bar{
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%) rotate(0)
}
header.site-header .burger.actif .bar.une{
    transform: translate(-50%, -50%) rotate(45deg)
}
header.site-header .burger.actif .bar.tr{
    transform: translate(-50%, -50%) rotate(-45deg)
}
header.site-header .burger.actif .bar.dx{
    display: none
}
/* Search product form */
.search-product{
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
    margin:0.5rem 0
}
.search-product input[type="search"]{
    border: none;
    outline: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
}
.search-product input[type="search"]::placeholder{
    color: #999;
}
.search-product button{
    border: none;
    background: var(--darkblue);
    color: var(--blanc);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.search-product button:hover{
    background: var(--vert);
}
.barr-nav{
    margin: 0 -3.5%
}

@media screen and (min-width:1200px){
    .menu-principal-container ul{
        display: flex;
        justify-content: center;
        align-items: start;
        gap:0.5rem 0.5rem;
        margin:0; padding:0.5rem 0;
        list-style: none;
    }
    .menu-principal-container ul li{
        font-weight: bold;
        font-size: 0.8rem;
        position:relative;
    }
    .menu-principal-container ul li a{
        display:flex;
        gap:0 0.35rem;
        align-items: center;
        padding: 0.5rem;
        color: var(--darkblue);
        text-decoration: none;
    }
    .menu-principal-container ul li.menu-item-has-children > a::after{
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: rotate(45deg) translateY(-50%); /* chevron down */
    }
    .menu-principal-container ul li:hover a{
        color: var(--vert);
    }
    .menu-principal-container ul ul.sub-menu{
        display: none;
        position: absolute;
        left: 50%;
        top:100%;
        min-width:250px;
        max-width:350px;
        transform: translateX(-50%);
        background-color: var(--blanc);
        flex-direction: column;
        align-items: stretch;
        padding:1rem;
        border: 1px solid var(--vert);
    }
    .menu-principal-container ul ul.sub-menu li{
        font-weight: normal;
        font-size:0.85rem;
        text-align: left;
    }
    .menu-principal-container ul ul.sub-menu li a{
        display: block;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
        color: var(--darkblue);
    }
    .menu-principal-container ul ul.sub-menu li a:hover{
        color: var(--vert);
    }
}

@media screen and (min-width:1440px){
    .menu-principal-container ul li{
        font-size:0.9rem
    }
    .menu-principal-container ul{
        gap:0.5rem 1rem;
    }
}

@media screen and (min-width:1920px){
    header.site-header .content{
        max-width:1440px;
    }
    .menu-principal-container ul li{
        font-size:0.95rem
    }
}
