/* ==========================================================================
   BLOC VIDEO - TITRE
   ========================================================================== */

.bloc-video-titre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 0 0 48px 0;
}

.bloc-video-titre h2 {
    color: var(--White, #FEFEFE);

    /* Headlines/headline-2-desktop */
    font-family: "Open Sans", sans-serif;
    font-size: 3.2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;

    width: fit-content;
    max-width: 100%;
    margin: 0;

    overflow-wrap: break-word;
}


/* ==========================================================================
   BLOC VIDEO
   ========================================================================== */

.bloc-video-queue {
    position: relative;
    padding: 128px 0;
    background: var(--Blue-3, #070C16);
}


/* ==========================================================================
   PATTERN DU BAS
   ========================================================================== */

.bloc-video-queue::after {
    content: "";

    z-index: 2;

    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: auto;

    aspect-ratio: 1440 / 24.5;

    background-image: url("https://aerogommage-seda.com/wp-content/uploads/2026/02/Pattern-1.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    pointer-events: none;
}


/* ==========================================================================
   PLAYER PRINCIPAL
   ========================================================================== */

.bloc-video-queue .bvq-video-wrap {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 10px;

    background: #070C16;
}


/* ==========================================================================
   MEDIA
   ========================================================================== */

.bloc-video-queue .bvq-media {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background-color: #070C16;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

.bloc-video-queue .bvq-media iframe,
.bloc-video-queue .bvq-media video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================================================
   TITRE SUR LA VIDEO
   ========================================================================== */

.bloc-video-queue .bvq-overlay-title {
    position: absolute;

    z-index: 3;

    left: 16px;
    right: 16px;
    bottom: 16px;

    max-width: calc(100% - 32px);

    color: #fff;

    font-family: "Roboto", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;

    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);

    overflow-wrap: break-word;
    word-break: normal;

    pointer-events: none;
}


/* ==========================================================================
   BOUTON PLAY
   ========================================================================== */

.bloc-video-queue .bvq-play {
    position: absolute;

    inset: 0;

    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.bloc-video-queue .bvq-play-icon {
    position: relative;

    display: inline-block;

    width: 72px;
    height: 72px;

    border-radius: 999px;

    background: #29c357;

    transition: transform 0.3s ease;
}

.bloc-video-queue .bvq-play-icon::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-35%, -50%);

    width: 0;
    height: 0;

    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #0b0f14;
}

.bloc-video-queue .bvq-player:hover .bvq-play-icon {
    transform: scale(0.9);
}

.bloc-video-queue .bvq-player.is-playing .bvq-play {
    display: none;
}

.bloc-video-queue .bvq-player.is-playing .bvq-overlay-title {
    display: none;
}


/* ==========================================================================
   FILE D'ATTENTE
   ========================================================================== */

.bloc-video-queue .bvq-queue {
    display: flex;
    flex-direction: column;

    gap: 16px;

    overflow-y: auto;
    overflow-x: hidden;

    /*
     * Compatible avec le PHP corrigé :
     * style="--bvq-queue-max-height: 420px"
     */
    max-height: var(--bvq-queue-max-height, 420px);

    padding-right: 5px;
}


/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

.bloc-video-queue .bvq-queue::-webkit-scrollbar {
    width: 5px;
}

.bloc-video-queue .bvq-queue::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.bloc-video-queue .bvq-queue::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 999px;
}


/* ==========================================================================
   VIDEO DANS LA FILE D'ATTENTE
   ========================================================================== */

.bloc-video-queue .bvq-item {
    display: grid;

    /*
     * On évite width:50% sur la miniature.
     * La seconde colonne peut maintenant réellement récupérer
     * l'espace disponible pour le titre.
     */
    grid-template-columns: minmax(120px, 46%) minmax(0, 1fr);

    gap: 16px;

    align-items: center;

    width: 100%;
}


/* ==========================================================================
   MINIATURE
   ========================================================================== */

.bloc-video-queue .bvq-thumb {
    width: 100%;
    min-width: 0;

    aspect-ratio: 16 / 9;

    border-radius: 10px;
    border: 2px solid var(--Grey-1, #F3F3F3);

    overflow: hidden;

    background: #111;
}

.bloc-video-queue .bvq-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================================================
   META VIDEO
   ========================================================================== */

.bloc-video-queue .bvq-meta {
    width: 100%;
    min-width: 0;
}

.bloc-video-queue .bvq-item-title {
    margin-bottom: 6px;

    color: var(--White, #FEFEFE);

    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;

    overflow-wrap: break-word;
    word-break: normal;
}


/* ==========================================================================
   LIEN VIDEO
   ========================================================================== */

.bloc-video-queue .bvq-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--White, #FEFEFE);

    font-weight: 400;
    line-height: 1.3;

    text-decoration: underline;
    text-decoration-color: white;

    transition: opacity 0.3s ease;
}

.bloc-video-queue .bvq-link:hover {
    opacity: 0.6;
}


/* ==========================================================================
   ROND VERT
   ========================================================================== */

.bloc-video-queue .bvq-dot {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 20px;

    width: 20px;
    height: 20px;

    border-radius: 999px;

    background: #29c357;
}

.bloc-video-queue .bvq-link .bvq-dot::after {
    content: "";

    width: 8px;
    height: 8px;

    background-image: url("https://aerogommage-seda.com/wp-content/uploads/2026/02/Polygon-5.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* ==========================================================================
   HELPER
   ========================================================================== */

.visually-hidden {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* ==========================================================================
   TABLETTE
   ========================================================================== */

@media (max-width: 991.98px) {

    .bloc-video-queue {
        padding: 80px 0;
    }


    /* ----------------------------------------------------------------------
       Titre du bloc
       ---------------------------------------------------------------------- */

    .bloc-video-titre {
        gap: 24px;

        margin-bottom: 32px;
    }

    .bloc-video-titre h2 {
        font-size: 2.6rem;
        line-height: 1.2;
    }


    /* ----------------------------------------------------------------------
       Player
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-overlay-title {
        left: 16px;
        right: 16px;
        bottom: 16px;

        font-size: 2.2rem;
        line-height: 1.2;
    }


    /* ----------------------------------------------------------------------
       Play
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-play-icon {
        width: 60px;
        height: 60px;
    }

    .bloc-video-queue .bvq-play-icon::before {
        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 18px;
    }


    /* ----------------------------------------------------------------------
       File d'attente
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-queue {
        max-height: none;

        overflow: visible;

        margin-top: 28px;
        padding-right: 0;

        gap: 20px;
    }

    /*
     * Comme Bootstrap fait passer col-lg-4 sous le player
     * en dessous de 992px, on dispose maintenant de toute la largeur.
     */
    .bloc-video-queue .bvq-item {
        grid-template-columns: 220px minmax(0, 1fr);

        gap: 20px;
    }

    .bloc-video-queue .bvq-item-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767.98px) {

    .bloc-video-queue {
        padding: 64px 0;
    }


    /* ----------------------------------------------------------------------
       Titre du bloc
       ---------------------------------------------------------------------- */

    .bloc-video-titre {
        flex-direction: column;

        align-items: flex-start;
        justify-content: flex-start;

        gap: 20px;

        margin-bottom: 28px;
    }

    .bloc-video-titre h2 {
        width: 100%;

        font-size: 2.4rem;
        line-height: 1.2;
    }

    /*
     * Si ton .btn possède des règles globales qui lui donnent
     * une largeur bizarre sur mobile.
     */
    .bloc-video-titre .btn {
        width: fit-content;
        max-width: 100%;
    }


    /* ----------------------------------------------------------------------
       Player principal
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-video-wrap {
        border-radius: 8px;
    }


    /* ----------------------------------------------------------------------
       Titre sur la vidéo
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-overlay-title {
        left: 12px;
        right: 12px;
        bottom: 12px;

        max-width: calc(100% - 24px);

        font-size: 1.8rem;
        line-height: 1.25;

        /*
         * Maximum 2 lignes sur la vidéo.
         * Évite qu'un long titre recouvre toute l'image.
         */
        display: -webkit-box;

        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        overflow: hidden;
    }


    /* ----------------------------------------------------------------------
       Play
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-play-icon {
        width: 54px;
        height: 54px;
    }

    .bloc-video-queue .bvq-play-icon::before {
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }


    /* ----------------------------------------------------------------------
       File d'attente
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-queue {
        margin-top: 24px;

        gap: 18px;
    }

    .bloc-video-queue .bvq-item {
        grid-template-columns: 140px minmax(0, 1fr);

        gap: 16px;
    }


    /* ----------------------------------------------------------------------
       Titre des vidéos secondaires
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-item-title {
        margin-bottom: 7px;

        font-size: 1.6rem;
        line-height: 1.3;

        /*
         * On autorise jusqu'à 3 lignes.
         * Le texte ne sera plus rabougri sur 50px de largeur.
         */
        display: -webkit-box;

        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;

        overflow: hidden;
    }


    /* ----------------------------------------------------------------------
       Lien
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-link {
        gap: 7px;

        font-size: 1.4rem;
    }

    .bloc-video-queue .bvq-dot {
        flex: 0 0 18px;

        width: 18px;
        height: 18px;
    }

    .bloc-video-queue .bvq-link .bvq-dot::after {
        width: 7px;
        height: 7px;
    }
}


/* ==========================================================================
   PETITS MOBILES
   ========================================================================== */

@media (max-width: 575.98px) {

    .bloc-video-queue {
        padding: 48px 0;
    }


    /* ----------------------------------------------------------------------
       Titre général
       ---------------------------------------------------------------------- */

    .bloc-video-titre {
        margin-bottom: 24px;
    }

    .bloc-video-titre h2 {
        font-size: 2.2rem;
    }


    /* ----------------------------------------------------------------------
       Titre player
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-overlay-title {
        font-size: 1.6rem;
        line-height: 1.25;
    }


    /* ----------------------------------------------------------------------
       Play
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-play-icon {
        width: 48px;
        height: 48px;
    }

    .bloc-video-queue .bvq-play-icon::before {
        border-top-width: 9px;
        border-bottom-width: 9px;
        border-left-width: 14px;
    }


    /* ----------------------------------------------------------------------
       Queue
       ---------------------------------------------------------------------- */

    .bloc-video-queue .bvq-item {
        /*
         * La miniature reste suffisamment grande,
         * mais laisse plus de largeur au texte.
         */
        grid-template-columns: 120px minmax(0, 1fr);

        gap: 14px;
    }

    .bloc-video-queue .bvq-item-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .bloc-video-queue .bvq-link {
        font-size: 1.3rem;
    }
}


/* ==========================================================================
   TRES PETITS ECRANS
   ========================================================================== */

@media (max-width: 390px) {

    /*
     * Ici une disposition verticale devient plus propre :
     *
     * [ IMAGE                         ]
     * Titre de la vidéo
     * Voir la vidéo
     */

    .bloc-video-queue .bvq-item {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .bloc-video-queue .bvq-thumb {
        width: 100%;
    }

    .bloc-video-queue .bvq-item-title {
        font-size: 1.6rem;
        line-height: 1.3;

        -webkit-line-clamp: 2;
    }

    .bloc-video-queue .bvq-link {
        font-size: 1.4rem;
    }
}