/*
Nom : Mohamed Talhaoui
Filière : Informatique et IA (S3) | 2024/2025
*/

*{
    margin: 0;
    padding: 0;
}

body{
    font-family: sans-serif;
    font-size: 1.2em;
    background-color: whitesmoke;
}

.container{
    display: flex;
    background-color: #660033;
    align-self: center;
    justify-self: center;
    width: 100%;
}

li{
    display: inline-block;
    min-width: max-content;
    width: 150px;
}

ul{
    display: flex;
    background-color: #660033;
}

.navbar{
    justify-items: center;
    width: 100%;
}

a{
    text-decoration: none;
    color: white;
    display: block;
    padding: 20px;
    text-align: center;
}

a:hover{
    background-color: #3c011e;
}

.dropdown a:focus{
    background-color: #3c011e;
}

.sous-menu li a:hover{
    background-color: #581333cc;
}

.dropdown{
    position: relative;
}

.sous-menu{
    display: none;
    position: absolute;
    background-color: #3c011e;
    box-shadow: 0px 15px 15px #d7d7d7;
}

.dropdown > a:focus + .sous-menu{
    display: flex;
}