/* Desktop : ratio 16/9 */
.video-container {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: static;
    transform: none;
    min-width: unset;
    min-height: unset;
}
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
    /* background: rgba(0,0,0,0.4); */
    /* box-shadow: 0 2px 16px rgba(0,0,0,0.2); */
}

/* Mobile : pas de ratio, vidéo pleine largeur */
@media (max-width: 767.98px) {
    .video-container {
        width: 100vw;
        aspect-ratio: 16/9;
        height: auto;
        max-width: 100vw;
        position: relative;
        overflow: hidden;
        margin-bottom: 0;
        padding-bottom: 0;
        background: #000;
    }
    .video-container video {
        width: 100vw;
        height: 100%;
        object-fit: cover;
        display: block;
        background: #000;
    }
    .video-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.05rem;
        max-width: 90vw;
        width: auto;
        min-width: 60vw;
        padding: 14px 10px;
        /* background: rgba(0,0,0,0.45); */
        border-radius: 16px;
        /* box-shadow: 0 2px 16px rgba(0,0,0,0.18); */
        color: #fff;
        text-align: center;
        line-height: 1.4;
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .video-container {
        height: 50vw; /* ou une valeur adaptée à votre vidéo */
        max-height: 60vh;
    }
}

.bleu_inimex {
    color: #30619a
}