* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Slab', serif;
}

body {
    align-items: center;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    font-size: 1rem;
}

.logo {
    height: 40px;
    width: auto;
}

/* Bar de navigation */
header {
    width: 100%;
    min-height: 66px;
    background: #154c79;
    padding: 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.back-button i,
.toggle-button i {
    color: white;
}

header a {
    font-family: 'Roboto Slab', serif;
}

header ul {
    position: relative;
}

header ul li {
    list-style: none;
    position: relative;
    float: left;
}

header ul li a {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    padding: 20px 25px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}

header ul li a:hover {
    background: #5a8abb;
}

header ul li ul {
    position: absolute;
    left: 0;
    top: 100%;
    width: 270px;
    background: black;
    display: none;
}

header ul li:hover > ul {
    display: block;
}

header ul li ul li {
    position: relative;
    width: 100%;
    border: none;
}

header ul li ul li ul {
    top: 0;
    left: 100%;
    display: none;
}

header ul li ul li:hover > ul {
    display: block;
}

/* Textes */
.container {
    display: flex;
    justify-content: center; 
    align-items: center; 
}

p{
    font-family: 'Dancing Script', cursive;
    margin : 25px;
    margin-bottom: 10px;
    font-size : 2.5em;
    color: #154c79;
    font-weight: 560;
}

text{
    margin-bottom: 0.85em;
}

/* List déroulant */
.toggle-bar {
    display: flex;
    align-items: center;
    margin: 10px 20px;
    margin-bottom: 0;
    height: 2em;
    border: 2px solid #000;
    border-radius: 15px;
    padding: 10px 15px;
    background-color: #90b6da;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle-icon {
    margin-left: auto;
}

.toggle-bar{
    margin: 15px 20px;
    margin-bottom: 0;
}

.toggle-container .content{
    text-align: justify;
    padding: 0.65em 1em;
    margin: 0px 30px;
    background-color: #E6EBF0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.toggle-bar .label{
    text-align: left;
    width: 20em;
}

.hidden {
    display: none;
}

/* Boutons */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

.button-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 80%; 
    max-width: 600px; 
}

.button-link {
    text-decoration: none;
    display: flex; 
    justify-content: center;
    align-items: center;
}

button {
    width: 100%;
    padding: 18% 0; 
    background-color: #154c79;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    transition: background-color 0.3s;
    border: 1px solid #ddd;
    box-shadow: 5px 5px 15px #bcbcbc, -5px -5px 15px #ffffff;
}

@media (max-width: 1700px) {
    .navbar .links {
        display: none;
    }

    .navbar .toggle-button {
        display: block;
    }

    .dropdown-menu {
        display: block;
    }

    header {
        padding: 10px 20px;
    }

    header nav {
        position: absolute;
        width: 100%;
        top: 66px;
        left: 0;
        background: #e6ebf0;
        display: none;
    }

    header.open nav {
        display: initial;
        z-index: 10;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
    }

    header nav ul li {
        width: 100%;
    }

    header nav ul li ul {
        position: relative;
        width: 100%;
        left: 15px;
        top: 0;
    }

    header nav ul li ul li ul {
        position: relative;
        top: 0;
        left: 30px;
    }

    header nav ul li:hover ul li {
        background: #e6ebf0;
    }

    header ul li a {
        color: black;
    }
}

@media(max-width: 1024px){
    .dropdown-menu{
        left: 2rem;
        width: unset;
    }

    .button-container a{
        font-size: 1.5em;
    }

    p{
        font-size: 3.2em;
    }

    button i{
        font-size: 1.7em;
    }

}

@media(max-width: 576px){
    .dropdown-menu{
        left: 2rem;
        width: unset;
    }

    .button-container a{
        font-size: 1.35em;
    }

    p{
        font-size: 3.25em;
    }
    
    button i{
        margin-top: 8px;
        font-size: 1.5em;
    }

}

@media(max-width: 480px){
    .dropdown-menu{
        left: 2rem;
        width: unset;
    }

    .button-container a{
        font-size: 0.95em;
    }

    p{
        font-size: 2.95em;
    }

    button i{
        font-size: 1.2em;
    }
}

@media(max-width: 390px){
    .dropdown-menu{
        left: 2rem;
        width: unset;
    }

    .button-container a{
        font-size: 0.85em;
    }

    p{
        font-size: 2.75em;
    }

    button i{
        font-size: 1em;
    }
}
