menu{
    display: none;
    z-index: 1000;
    position: absolute;
    top: 3.8rem; /* en fonction de la taille de la nav */
    width: 100%;
    margin: 0;
    padding: unset;
    background-color: var(--color2);
}

nav {
    background-color: var(--color2);
 }
nav a>div,
nav>div {
    padding: 0.2rem 0.4rem;
    justify-content: center;
    margin: 0.3rem 0.3rem;
    transition: background 0.5s;
    cursor: pointer;

}
nav a, nav .relative{
    padding: 2em 0.2em;
    box-shadow: 2px 2px 3px black;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}
menu a{
    padding: 0.5rem;
}
.hover-effect{
    background-color: var(--color1);
    color: var(--color5);
}
nav>div.hover-effect i {
    transform: rotate(180deg);
}


@media screen and (min-width: 900px) and (max-width: 1190px) and (orientation:landscape) {

    nav a,
    nav div,
    nav .relative {
        font-size: 1.2rem;
        padding: unset;
    }

    nav {
        max-height: 20vh;
    }
}
@media screen and (min-width: 900px) and (max-width: 1190px) and (orientation:portrait) {
   
    nav {
        padding: unset;
        max-height: 10vh;
    }
    

    nav .relative.hover-effect a {
        padding: 0.5em 0.2em;
    }

    nav a,
    nav div {
        font-size: 2rem;
    }

    menu {
        top: 9rem;
    }
}