.video-thumb {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    display: block;
}

.video-thumb::before {
    content: "";
    display: block;
    width: 100%;
}

.video-thumb:has(img)::after {
    content: "";
    background-color: rgb(0 0 0 / 45%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease-in-out;
}

.video-thumb:has(img):hover::after {
    background-color: rgb(0 0 0 / 0%);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 76'%3E%3Ccircle cx='38' cy='38' r='36' fill='rgba(0,0,0,.55)' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='M30 23l24 15-24 15z' fill='%23fff'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    width: 73px;
    height: 76px;
    z-index: 2;
}

.video-thumb.embed-responsive-16by9::before {
    padding-top: 56.25%;
}

.video-thumb.embed-responsive-9by16::before {
    padding-top: 177.77%;
}

.video-thumb.embed-responsive-16by9,
.video-thumb.embed-responsive-9by16 {
    position: relative;
}

.video-thumb.embed-responsive-16by9 iframe,
.video-thumb.embed-responsive-9by16 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Largeur de la vidéo : valeurs ACF bloc_video.taille_video */
.video-thumb.w-100 { width: 100%; }
.video-thumb.w-50 { width: 100%; max-width: 50%; margin-inline: auto; }
.video-thumb.w-33 { width: 100%; max-width: 33.333%; margin-inline: auto; }

@media (max-width: 767px) {
    .video-thumb.w-50,
    .video-thumb.w-33 {
        max-width: 100%;
    }
}
