main {
    position: relative;
    width: 100%;
    background: url("../images/background.png");
    background-size: 100%;
}

main h1 {
    text-align: center;
    margin: 0;
    margin-top: 10rem;
    font-size: 2.5rem;
    color: #fff;
}

.slideshow {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 10px;
    width: 50vw;
    height: calc(50vw * 0.5625);
    margin: 2% auto;
}

.slideshow a {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease-in-out;
}

.slideshow a::after {
    position: absolute;
    top: 0;
    right: 0;
    content: "Voir la vidéo sur YouTube ↗";
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.7rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.slideshow a:hover::after {
    opacity: 1;
}

.slideshow a img {
    width: 100%;
    height: 100%;
}

.slideshow #prev,
.slideshow #next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.slideshow #prev:hover,
.slideshow #next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slideshow #prev {
    left: 5%;
}

.slideshow #next {
    right: 5%;
}

/* Sections */
.sections {
    margin: 5rem 0;
}

.ouah a:has(img) {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.ouah img {
    width: auto;
    height: auto;
    border-radius: 50%;
}

.esport p:has(img) {
    text-align: center;
}

.esport img {
    border-radius: 10px;
}

.reconnaissance div div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 80%;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
}

.reconnaissance h3 {
    margin: 0;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.reconnaissance ul li {
    font-size: 1.1rem;
    margin: .2rem 0;
}

@media screen and (max-width: 768px) {
    .slideshow {
        width: 80vw;
        height: calc(80vw * 0.5625)
    }

    .esport img {
        width: 75%;
    }
}