/* Header */

header {
    background-color: var(--thm-c-clair);
}

header .logo_img {
    /* width: 80px; */
    height: 60px;
}

header .logo_titre {
    font-size: 1.3rem;
    font-family: 'Raleway';
    font-weight: 500;
}

header .navbar-brand {
    text-align: center;
}

header .menu-horiz .nav {
    text-align: center;
}

header .menu-horiz ul {
    display: flex;
    height: 100%;
}

header .menu-horiz li {
    width: 140px;
    margin: auto;
}

header .menu-horiz li a {
    color: var(--c-black);
    text-decoration: none;
    font-size: 1.2rem;
}

header .menu-horiz li.active a {
    color: var(--thm-c-mi-clair);
    font-weight: bold;
}

header .menu-horiz li.active {
    border-bottom: 1px solid var(--thm-c-mi-clair);
}

header .menu-horiz li:not(.active):hover {
    border-bottom: 1px solid var(--thm-c-mi-clair);
}

/* 
#orange_abs {
    width: 50px;
    height: 250px;
    background-color: #F60;
    position: absolute;
    left: 1390px;
    z-index: 4;
}

#vert_fix {
    background-color: #006666;
    width: 200px;
    height: 50px;
    position: fixed;
    z-index: 2;
}

#jaune_rel {
    width: 100px;
    height: 1200px;
    background-color: #FFFF66;
    position: relative;
    top: 50px;
    z-index: 1;
}
*/


header .menu-wrapper nav {
    display: none;
    position: absolute;
    /**
     * todo: z-index ne marche pas car élément non positionné
     * @see https://iamvdo.me/blog/comprendre-z-index-et-les-contextes-dempilement
     * @see https://stackoverflow.com/questions/16315125/position-absolute-has-greater-z-index-than-position-fixed
     */
    z-index: 10;
    right: 0;
    background: white;
    padding: 15px;
    padding-right: 15px;
    border-radius: 10px;
    min-width: 200px;
    border: solid 1px #ecec9c;
}

header .menu-wrapper nav li {
    padding-top: 5px;
    padding-bottom: 5px;
}

header .menu-wrapper nav li.connexion {
    font-weight: bold;
}

header .menu-wrapper nav li a {
    width: 100%;
    display: inline-block;
    text-decoration: none;
    color: var(--c-black);
    cursor: pointer;
}

header .menu-wrapper nav li:hover>a {
    background: var(--thm-c-clair);
}

header button.menu:hover {
    box-shadow: 2px 2px 5px aqua;
}

header .menu-wrapper .nomUtilisateur {
    color: grey;
    cursor: default;
}


/* Header: mobile */

@media only screen and (max-width: 991px) and (-Webkit-min-device-pixel-ratio: 1.5),
@media only screen and (max-width: 991px) and (-moz-min-device-pixel-ratio: 1.5),
@media only screen and (max-width: 991px) and (-o-min-device-pixel-ratio: 3/2),
@media only screen and (max-width: 991px) and (min-device-pixel-ratio: 1.5) {

    header .logo_img {
        height: 140px;
    }

    header .logo_titre {
        font-size: 2.4rem;
    }

    header .menu-wrapper {
        transform: scale(2.2);
    }
}