#site-header{
    height: var(--header-h);
    width: 100vw;
    background-color: var(--white);

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--padding-body);
    gap: calc(var(--unit)*2);

    a{ text-decoration: none; }

    h1{
        font-family: var(--font-title);
        color: var(--color-txt);
        text-decoration: none;
        font-size: 1.2rem;
    }
}
#site-header ul{
    list-style: none;
}

/*----------------*/
/*   search bar   */
/*----------------*/

.search {
    display: flex;
    flex-direction: row-reverse;
    height: calc(var(--unit)*1.5);
    flex-grow: 2;
}

.search__toggle {
    display: none;
}
.search__label {
    cursor: pointer;
    user-select: none;
    width: calc(var(--unit)*1.5);
    height: calc(var(--unit)*1.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.search__input {
    display: none;
}
.search__icon{
    width: var(--unit);
}

.search__icon--open {
    display: block;
}
.search__icon--close {
    display: none;
}

.search__toggle:checked ~ .search__input {
    display: block;
}
.search__toggle:checked ~ .search__label .search__icon--open {
    display: none;
}
.search__toggle:checked ~ .search__label .search__icon--close {
    display: block;
}

#btn__connexion{
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--color-txt);
    color: white;
    display: inline-flex;
    align-items: center;
    height: calc(var(--unit)*1.25);
    padding: 0px 1ch;
    border-radius: var(--radius-btn);
    cursor: pointer;
}



/*----------------*/
/*       nav      */
/*----------------*/

#site-nav a {
    text-decoration: none;
    color: var(--color-txt);
}

#site-nav .nav-level-1_li{
    position: relative;
    float: left;
}

#site-nav .nav-level-2_li {
    display: block;

    float: left;
    padding: var(--padding-inner);
    position: relative;
    text-decoration: none;

}

#site-nav .nav-level-1_ul{
    display: flex;
    gap: 40px;
}

#site-nav .nav-level-1_li{
    font-weight: 500;
    /* padding-right: 30px; */
}

/* .nav-level-1_li.li-dropdown:hover{
    border-bottom: solid 1px black;
} */

#site-nav li:hover {
    cursor: pointer;
}

.nav-level-2_ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0;
    display: none;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    margin-top: var(--padding-inner); 
    width: 200px;
    border-top: solid 1px black;
}

ul li:hover > ul,
.nav-level-2_ul:hover {
    visibility: visible;
    opacity: 1;
    display: block;
}
.nav-level-2_li{
    width: 100%;
}
.nav-level-2_li:hover{
    background-color: bisque;
}


.li-dropdown::after{
    content: "›";
    padding-left: 0.5ch;
    font-size: 1.2em;
    line-height: 0;

}
