
/* =========================
   DESKTOP
========================= */

.video-triple {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    margin: 80px 0;
}

.video-triple__container {
    grid-column: 2 / span 10;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-triple__item {
    width: 100%;
    aspect-ratio: 9 / 16;

    background: black;
    border-radius: 8px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.video-triple__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================
   TABLETTE
========================= */

@media (max-width: 900px) {

    .video-triple__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}


/* =========================
   MOBILE = PEEK SLIDER
========================= */

@media (max-width: 768px) {

    .video-triple {
        margin: 60px 0;
    }

    .video-triple__container {

        display: flex;

        width: 100%;
        padding: 0 20px; /* 👈 marge globale du layout */

        gap: 16px;

        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .video-triple__container::-webkit-scrollbar {
        display: none;
    }

    /* 👉 SLIDE plus petit que l’écran pour voir le suivant */
    .video-triple__item {

        flex: 0 0 78%;  /* 👈 clé du “peek” */
        scroll-snap-align: start;

        aspect-ratio: 9 / 16;

        border-radius: 10px;

        transition: transform 0.3s ease;
    }


}


/* =========================
   PETIT MOBILE
========================= */

@media (max-width: 480px) {

    .video-triple__item {
        flex: 0 0 82%;
    }
}