html {
    font-size: 15px;
}

body {
    width: 100vw;
    overflow-y: scroll; 
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 1px; /* Largeur de la barre de défilement */
    background-color: transparent; /* Couleur de fond de la barre de défilement */
}

::-webkit-scrollbar-thumb {
    background-color: rgba(225, 62, 150, 0.8); /* Couleur de la partie glissante de la barre de défilement */
    border-radius: 10px; 
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(225, 62, 150, 1); /* Couleur de la barre de défilement au survol */
    }

::-webkit-scrollbar-track {
    background: transparent; /* Couleur de fond de la piste de la barre de défilement */
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: poppins, sans-serif
}

nav {
    background-color: #5556A5 !important;
    color: #fff !important;
    margin-bottom: 0 !important;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: white !important;
    text-transform: unset
}

.top-menu {
    width: 100%;
    background-color: #413D76;
}

/* AUDIO */

@import url(https://fonts.googleapis.com/css?family=Roboto:400,400i,900);

@-webkit-keyframes scaleIn {
    to {
        transform: scale(1);
    }
}


@keyframes bounceScale {
    0%, 100% {
        transform: scale(1) translateY(0); /* État initial */
    }

    50% {
        transform: scale(1.05) translateY(-10px); /* État de l'animation */
    }
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

@-webkit-keyframes slideIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.links {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 50px 20px;
    flex-wrap: wrap;
    align-items: center;
}

.links a {
    margin-right: 15px;
}

.play-toggle {
    position: relative;
    cursor: pointer;
}

    .play-toggle .play-circle, .play-toggle .play-circle:before, .play-toggle .play-circle:after, .play-toggle span {
        display: inline-block;
        vertical-align: middle;
    }

    .play-toggle span {
        color: white;
        margin-left: 1rem;
        font-size: 1.2rem;
        transition: transform 350ms ease;
    }

        .play-toggle span i, .play-toggle span strong {
            display: inline-block;
            opacity: 0;
            transform: translate3d(-1rem, 0, 0);
            -webkit-animation: slideIn 400ms ease forwards;
            animation: slideIn 400ms ease forwards;
        }

        .play-toggle span i {
            color: rgba(255, 255, 255, 0.7);
            -webkit-animation-delay: 700ms;
            animation-delay: 700ms;
        }

        .play-toggle span strong {
            font-size: 1.25em;
            font-weight: 900;
            letter-spacing: 1px;
            -webkit-animation-delay: 750ms;
            animation-delay: 750ms;
        }

    .play-toggle .play-circle, .play-toggle .play-circle:before, .play-toggle .play-circle:after {
        position: relative;
        height: 4rem;
        width: 4rem;
        background: white;
        border-radius: 50%;
        transform: scale(0);
        -webkit-animation: scaleIn 500ms cubic-bezier(0.075, 0.82, 0.165, 1) 500ms forwards;
        animation: scaleIn 500ms cubic-bezier(0.075, 0.82, 0.165, 1) 500ms forwards;
    }



    .play-toggle .play-icon {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: white;
        border-radius: 50%;
        box-shadow: 0 3px 24px rgba(0, 0, 0, 0.3);
        transition: transform 350ms ease;
    }

        .play-toggle .play-icon:after {
            content: "";
            display: block;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-35%, -50%);
            width: 0;
            height: 0;
            border-top: 10px solid transpaat;
            border-left: 15px solid #0274FA;
            border-bottom: 10px solid transparent;
        }

    .play-toggle:hover .play-icon {
        transform: scale(1.1);
    }

    .play-toggle:hover span {
        transform: translateX(0.3rem);
    }


.img-section {
    width: 1000px;
    max-width: 90%;
    height: 500px;
    background-size: cover;
}

.option-link {
    display: inline-block;
    background-size: cover;
    border-radius: 5px;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: end;
    text-align: left;
    border: 1px solid #fff;
    flex-direction: column;
    color: #fff;
    text-decoration: none;
}

    .option-link > .text-section {
        background-color: #0274FA;
        width: 100%;
        transition: background .3s ease-in-out;
        padding: 10px 20px;
    }

        .option-link > .text-section * {
            margin-bottom: 0;
        }

        .option-link > .text-section h3 {
            font-size: 1.2rem;
        }

        .option-link > .text-section p {
            font-size: .9rem;
            opacity: .8;
        }

    .option-link:hover {
        color: white;
        background-color: #eb01a5;
    }

        .option-link:hover > .text-section {
            background-color: #eb01a5;
        }

.options {
    margin: auto;
    background-color: rgba(0,0,0,.5);
    padding: 40px;
    border-radius: 10px;
}

#slider {
    position: relative;
    width: 1500px;
    margin: auto;
    max-width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

    #slider img {
        width: 100%;
    }

#precedent,
#suivant {
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
    position: absolute;
    font-size: 80px;
    color: rgba(220, 220, 220, 0.8);
    padding: 10px;
    margin: 0 20px;
}

    #precedent:hover,
    #suivant:hover {
        color: #fff
    }

#precedent {
    left: 0;
}

#suivant {
    right: 0;
}

#slider:hover #precedent,
#slider:hover #suivant {
    opacity: 1;
}

/* articles */

article {
    --img-scale: 1.001;
    --title-color: black;
    --link-icon-translate: -20px;
    --link-icon-opacity: 0;
    position: relative;
    border-radius: 16px;
    background: #fff;
    transform-origin: center;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

article a::after {
    position: absolute;
    inset-block: 0;
    inset-inline: 0;
    cursor: pointer;
    content: "";
}

/* basic article elements styling */
article h2 {
    margin: 0 0 18px 0;
    font-size: 1.9rem;
    letter-spacing: 0.01em;
    color: var(--title-color);
    transition: color 0.3s ease-out;
}

figure {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

article img {
    max-width: 100%;
    transform-origin: center;
    transform: scale(var(--img-scale));
    transition: transform 0.4s ease-in-out;
}

.article-body {
    padding: 24px;
}

article a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

article a:focus {
    outline: 1px dotted #28666e;
}

article a .icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    margin-left: 5px;
    transform: translateX(var(--link-icon-translate));
    opacity: var(--link-icon-opacity);
    transition: all 0.3s;
}

/* using the has() relational pseudo selector to update our custom properties */
article:has(:hover, :focus) {
    --img-scale: 1.1;
    --title-color: #413D76;
    --link-icon-translate: 0;
    --link-icon-opacity: 1;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.articles {
    display: grid;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

@media screen and (max-width: 960px) {
    article {
        container: card/inline-size;
    }

    .article-body p {
        display: none;
    }
}

@container card (min-width: 380px) {
    .article-wrapper {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 16px;
    }

    .article-body {
        padding-left: 0;
    }

    figure {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    figure img {
        height: 100%;
        aspect-ratio: 1;
        object-fit: cover;
    }
}

.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}