/* Import du séparateur réutilisable */
@import url('../../css/partials/separator.css');

/**
 * Bloc Vidéo
 */

.blocVideo {
    position: relative;
    padding-bottom: 50px;
}

/* Couleurs de fond */
.blocVideo.bg-primary {
    background-color: var(--color-primary, #5CBE95);
}

.blocVideo.bg-secondary {
    background-color: var(--color-secondary, #007FB4);
}

.blocVideo.bg-tertiary {
    background-color: var(--color-tertiary, #FCC100);
}

.blocVideo.bg-dark {
    background-color: var(--color-dark, #00283F);
}

.blocVideo.bg-white {
    background-color: #FFFFFF;
}

.blocVideo.bg-corail {
    background-color: var(--color-corail, #CB695F);
}

.blocVideo.bg-light-green {
    background-color: #F2FAF7;
}

.blocVideo__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Titre */
.blocVideo__titre {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-primary, #5CBE95);
    margin: 0;
}

/* Conteneur de la vidéo */
.blocVideo__video-wrapper {
    width: 100%;
    max-width: 798px;
}

/* Alignement de la vidéo */
.blocVideo--align-left .blocVideo__video-wrapper {
    margin-right: auto;
}

.blocVideo--align-right .blocVideo__video-wrapper {
    margin-left: auto;
}

.blocVideo--align-center .blocVideo__video-wrapper {
    margin-left: auto;
    margin-right: auto;
}

.blocVideo__video-link {
    display: block;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.blocVideo__thumbnail {
    position: relative;
    width: 100%;
    height: 431px;
    border-radius: 100px;
    overflow: hidden;
}

.blocVideo__thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay */
.blocVideo__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 40, 63, 0.3);
    transition: background-color 0.3s ease;
}

.blocVideo__video-link:hover .blocVideo__overlay {
    background-color: rgba(0, 40, 63, 0.5);
}

/* Icône play */
.blocVideo__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 2;
}

.blocVideo__play-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.blocVideo__video-link:hover .blocVideo__play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .blocVideo {
        padding: 80px 0;
    }

    .blocVideo__titre {
        font-size: 28px;
    }

    .blocVideo__thumbnail {
        height: 350px;
        border-radius: 60px;
    }

    .blocVideo__play-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .blocVideo {
        padding: 60px 0;
    }

    .blocVideo__titre {
        font-size: 24px;
    }

    .blocVideo__thumbnail {
        height: 280px;
        border-radius: 40px;
    }

    .blocVideo__play-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .blocVideo {
        padding: 40px 0;
    }

    .blocVideo__titre {
        font-size: 20px;
    }

    .blocVideo__thumbnail {
        height: 220px;
        border-radius: 30px;
    }

    .blocVideo__play-icon {
        width: 50px;
        height: 50px;
    }
}
