/* Lecture d'une vidéo en fenêtre plein écran (v1.21.0.0), pour la page d'accompagnement réseaux
   sociaux. Le lecteur vertical est à gauche, à droite le rang, le titre, les vues et les flèches.
   Le contenu du lecteur est posé par fenetre.js à l'ouverture et vidé à la fermeture. */
.rs-pop {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.rs-pop::backdrop {
    background: rgba(5, 8, 7, 0.95);
}

.rs-pop[open] {
    display: grid;
    place-items: center;
}

.rs-pop-in {
    display: grid;
    grid-template-columns: auto 320px;
    align-items: center;
    gap: 2rem;
    animation: rs-pop-in 0.4s var(--ease);
}

@keyframes rs-pop-in {
    from { opacity: 0; transform: scale(0.96); }
}

.rs-player {
    position: relative;
    height: min(86vh, 760px);
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.rs-player iframe,
.rs-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.rs-side {
    color: #F6FFF8;
}

.rs-k {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #CCE3DE;
}

.rs-side h3 {
    margin: 0.5rem 0 0.8rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.12;
    text-transform: none;
    color: #fff;
}

.rs-v {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.4rem;
    color: #CCE3DE;
}

.rs-v small {
    margin-left: 0.3rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9DABA5;
}

.rs-dots {
    display: flex;
    gap: 6px;
    margin-top: 1rem;
}

.rs-dots i {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: rgba(246, 255, 248, 0.25);
}

.rs-dots i.on {
    background: #CCE3DE;
}

.rs-nav {
    display: flex;
    gap: 0.6rem;
    margin-top: 2rem;
}

.rs-nav button,
.rs-x {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(246, 255, 248, 0.25);
    border-radius: 50%;
    background: rgba(246, 255, 248, 0.06);
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
}

.rs-nav button:hover,
.rs-x:hover {
    background: rgba(246, 255, 248, 0.16);
}

.rs-x {
    position: fixed;
    top: 20px;
    right: 20px;
}

.rs-voir {
    display: inline-block;
    margin-top: 1.4rem;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .rs-pop-in {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rs-pop {
        overflow-y: auto;
    }

    .rs-pop[open] {
        place-items: safe center;
    }

    .rs-pop-in {
        padding: 72px 20px 24px;
    }

    .rs-player {
        justify-self: center;
        height: 50vh;
    }

    .rs-side h3 {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-pop-in {
        animation: none;
    }
}
