/**
 * Styles pour les encarts vidéo personnalisés
 */

.encart-video {
    position: relative;
    background: #5aaf25;
    padding: 30px;
    height: 100%;
    box-sizing: border-box;
    color: #fff;
    box-shadow: -5px 5px 20px 3px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.encart-video-titre {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding: 0;
}

.encart-video-contenu {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.encart-video-contenu p {
    margin: 0 0 15px 0;
}

.encart-video-contenu p:last-child {
    margin-bottom: 0;
}

.encart-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.encart-video-embed iframe,
.encart-video-embed object,
.encart-video-embed embed,
.encart-video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .encart-video {
        padding: 20px;
        margin: 20px 0;
    }

    .encart-video-titre {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .encart-video-contenu {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .encart-video {
        padding: 15px;
        margin: 15px 0;
    }

    .encart-video-titre {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .encart-video-contenu {
        font-size: 14px;
        margin-bottom: 15px;
    }
}
