/* Mobile first */

header #header-nav {
    background-color: #0c2f22; /* 0c222f > 0c2f22 */
    color: #f7f7f7;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#bandeau {
    border-top: 1px solid #0009;
}

#bandeau-content {
    max-height: 250px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#bandeau-content img {
    object-fit: content;
    width: 100%;
}

#bandeau-content h1 { margin: 0; color: #ffc000; }
#bandeau-content h1 > span { display: block; font-size: 1rem; color: #efd182; }
#bandeau-content h1 span span { font-size: 2rem; }

header #header-nav #brand {
    flex: 1; /* brand occupant tout l'espace restant (centré) */
    text-align: center;
    margin: 10px 0;
}
header #header-nav #brand a {
    color: inherit;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none;
}
header #header-nav #brand span {
    display: block;
    font-size: 1.6rem;
    color: #7CC970;
}

header #header-nav #nav-wrap { 
    flex: none; /* désormais en position absolute */
    opacity: 0; /* fermé par défaut */
    transition: .20s;
}
.nav-opened header #header-nav #nav-wrap { 
    opacity: 1;
}

header #header-nav nav#navigation,
header #header-nav nav#navigation ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

header #header-nav nav#navigation {
    position: absolute;
    left: -4000px;
    right: 4000px;
    top: 80px; /* 60 + padding de 10 */
    bottom: 0;
    overflow-y: scroll;
    background-color: #0c2f22;
    line-height: inherit;
    opacity: 1;
}

.nav-opened header#header nav#navigation {
    left: 0;
    right: 0;
}

header #header-nav nav#navigation ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 1em;
}

header #header-nav nav#navigation ul:first-child {
    border-bottom: 1px solid #777;
}

header #header-nav nav#navigation ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #333;
}

header #header-nav nav#navigation ul li a {
    display:inline-block;
    padding: 15px; /* doit créer une hauteur <= 60px */
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}
header #header-nav nav#navigation ul li.active a {
    color: #FFF;
}

header #header-nav nav#navigation ul li:hover {
    background-color: #396958; /* 395869 > 396958 */
}


#menu-burger {
    display: inline-block;
    cursor: pointer;
    margin-left: 15px;
    z-index: 9999;
}

#menu-burger .bar1 { margin-bottom: 7px; }
#menu-burger .bar3 { margin-top: 7px; }

#menu-burger .bar1, 
#menu-burger .bar2, 
#menu-burger .bar3 {
    width: 32px;
    height: 3px;
    background-color: #FFF;
    -moz-transition: .5s;
    -o-transition: .5s;
    -webkit-transition: .5s;
    transition: .5s;
}

.nav-opened #menu-burger .bar1 {
    -moz-transform: rotate(-45deg) translate(-7px,6px);
    -ms-transform: rotate(-45deg) translate(-7px,6px);
    -webkit-transform: rotate(-45deg) translate(-7px,6px);
    transform: rotate(-45deg) translate(-7px,6px);
}
.nav-opened #menu-burger .bar2 {
    opacity: 0;
}
.nav-opened #menu-burger .bar3 {
    -moz-transform: rotate(45deg) translate(-8px,-8px);
    -ms-transform: rotate(45deg) translate(-8px,-8px);
    -webkit-transform: rotate(45deg) translate(-8px,-8px);
    transform: rotate(45deg) translate(-8px,-8px);
}



/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #menu-burger, #ariane { 
        display: none;
    }

    header #header-nav #brand { 
        flex: unset;
        margin: 10px 0 10px 30px;
    }

    header #header-nav #nav-wrap {
        flex: 1; /* 100% du reste */
        opacity: 1;
    }

    header #header-nav nav#navigation {
        flex-direction: row;
        justify-content: space-around;
        line-height: 60px;

        position: initial;
        overflow-y: initial;
        background-color: initial;
    }

    header #header-nav nav#navigation ul {
        flex-direction: row;
    }

    header #header-nav nav#navigation ul:first-child {
        border-bottom: none;
    }

    header #header-nav nav#navigation ul li {
        border-bottom: none;
    }

    header #header-nav nav#navigation ul li a {
        padding: 0 15px;
        line-height: 80px;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { 
    header #header-nav nav#navigation ul { 
        font-size: 1.3em;
    }
}
