* {
    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;
}

/* inscription */
.container{
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 15px;
    margin-bottom: 0;
}

button{
    padding: 5px 10px;
    margin: 10px 5px;
    background-color: #154c79;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.click {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #000;
    border-radius: 15px;
    padding: 10px 15px;
    margin: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Swiper */
.swiper {
    width: 100%;
    height: 100%;
    padding: 50px 0;
    padding-top: 10px;
    display: flex;
    justify-content: center; 
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    position: relative;
    width: 270px;
    height: 150px;
    border-radius: 15px;
    border: 1px solid rgba(177, 177, 177, 0.5);
    flex-shrink: 0; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 800;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    user-select: none;
}

.swiper-slide a{
    height: 100%;
    width: 100%;
}

.titre {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%);
    width: 110%;
    text-align: center;
    padding: 10px 6px;
    background: rgba(46, 39, 39, 0.3);
    border: 2px solid rgba(177, 177, 177, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.5s linear;
    z-index: 10; 
}

.swiper-pagination{
    --swiper-pagination-bottom: 15px;
}

.swiper-pagination-bullet{
    width: 15px;
    height: 15px;
    border-radius: 14px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.swiper-pagination-bullet-active{
    width: 32px;
    background-color: #154c79;
}

@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: 800px) {
    .dropdown-menu {
        left: 2rem;
        width: unset;
    }

    text {
        font-size: 1.65em;
    }

    p {
        font-size: 2.75em;
    }

}

@media (max-width: 576px) {
    text {
        font-size: 1.45em;
    }

    p {
        font-size: 3.25em;
    }

}

@media (max-width: 480px) {
    text {
        font-size: 1.25em;
    }

    p {
        font-size: 2.95em;
    }
}

@media (max-width: 390px) {
    text {
        font-size: 1em;
    }

    p {
        font-size: 2.75em;
    }

}