/* Barre de navigation */

.navBar {
    display: flex;
    justify-content: space-between;
    height: 100px;
    align-items: center;
    text-align: center;
    align-content: center;
    background-color: rgb(61, 61, 61);
}

.brandTitle img {
    height: 75px;
    margin: 10px 0 0 25px;
    transition: 0.3s;
}

.brandTitle img:hover {
    -o-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
    transition: 0.3s;
}

.navBarLinks ul {
    display: flex;
    margin-right: 3px;
}

.navBarLinks li {
    list-style: none;
}

.navBarLinks li a {
    text-decoration: none;
    padding: 1.5rem;
    margin-right: 50px;
    display: block;
    font-size: 16px;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: white;
}

.navBarLinks li a:hover {
    -o-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.current {
    background-color: #E1A153;
    border-radius: 10px;
}

.current li a {
    color: white;
}

/* Menu hamburger */

.toggleButton {
    position: absolute;
    top: .5rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.toggleButton .bar {
    height: 5px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid black;
}


/* Menu déroulant en CSS-only */

#dropDown > a::after {
    content: "▼";
    font-size: 12px;
    display: inline-block;
    position: relative;
}

#subDropdown {
    text-align: left;
    background-color: rgb(0, 0, 0);
    opacity: 0.9;
    overflow: hidden;
    max-height: 0;
    flex-direction: column;
    position: absolute;
    border-radius: 10px;
}

#subDropdown > li > a {
    height: 50px;
    padding-left: 20px;
    width: 100%;
    align-items: center;
    display: flex;
}

#subDropdown > li:hover {
    background-color: #E1A153;
}

#subDropdown > li:hover > a {
    color: white;
}

#dropDown:hover > a:after {
    animation: arrowRotation 0.2s linear forwards;
}

@keyframes arrowRotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(90deg);
    }
}

#dropDown:hover > #subDropdown {
    animation: subDropdownAppearance 1s forwards;
  }

@keyframes subDropdownAppearance {
    0% {
    box-shadow: 0px 3px 3px 1px rgba(0,0,0,0);
    }
    30% {
    box-shadow: 0px 3px 3px 1px rgba(0,0,0,0.3);
    }
    100% {
    max-height: 300px;
    box-shadow: 0px 3px 3px 1px rgba(0,0,0,0.3);
    }
}

/* Responsive design */
@media only screen and (max-width:850px) {

    .toggleButton {
        display: flex;
    }

    .navBarLinks {
        display: none;
        width: 100%;
    }

    .navBar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navBarLinks ul {
        width: 100%;
        flex-direction: column;
    }

    .navBarLinks li {
        text-align: center;
    }

    .navBarLinks li a {
        padding: .5rem 1rem;
        width: 30%;
        margin: 0 auto;
    }

    .navBarLinks.active {
        display: flex;
    }

}