.text-deux-medias {
    padding: 32px 20px;
}

@media screen and (min-width: 768px) {
    .text-deux-medias {
        padding: 64px 20px;
    }
}

.text-deux-medias .no-video{
    pointer-events: none;
    cursor: none;
}
.text-deux-medias .no-video::after {
    content: none;
}
.text-deux-medias .no-video::before {
    content: none;
}

.text-deux-medias--container {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
}

@media screen and (min-width: 768px) {
    .text-deux-medias--container {
        flex-direction: row;
        justify-content: space-between;
    }

    .reverse .text-deux-medias--container {
        flex-direction: row-reverse;
    }
}

.text-deux-medias--content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media screen and (min-width: 768px) {
    .text-deux-medias--content {
        flex: 0 1 590px;
        gap: 32px;
    }
}

.text-deux-medias--content h2 {
    font-size: 40px;
    line-height: 48px;
}

.text-deux-medias--content-image {
    border-radius: 10px;
    overflow: hidden;
    height: 230px;
    width: 100%;
    margin-top: 16px;
}

@media screen and (min-width: 768px) {
    .text-deux-medias--content-image {
        width: clamp(320px, 50vw, 486px);
        height: 350px;
        align-self: flex-end;
        margin-top: 32px;
    }
}

.text-deux-medias--content-image img {
    -o-object-fit: cover;
       object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
}

.text-deux-medias--content-video {
    border-radius: 10px;
    overflow: hidden;
    height: 230px;
    width: 100%;
    margin-top: 16px;
    position: relative;
}

@media screen and (min-width: 768px) {
    .text-deux-medias--content-video {
        width: clamp(320px, 50vw, 486px);
        height: 350px;
        align-self: flex-end;
        margin-top: 32px;
    }
}

.text-deux-medias--content-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.text-deux-medias--content-video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 47px;
    width: 47px;
    -webkit-mask: url(../images/play-round.svg) no-repeat center;
            mask: url(../images/play-round.svg) no-repeat center;
    -webkit-mask-size: contain;
            mask-size: contain;
    background-color: var(--white);
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .text-deux-medias--content-video:hover::after {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.text-deux-medias--content-video img {
    -o-object-fit: cover;
       object-fit: cover;
    height: 100%;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .text-deux-medias--media {
        flex: 0 1 486px;
    }
}

.text-deux-medias--media-image {
    height: 440px;
    border-radius: 10px;
    overflow: hidden;
}

@media screen and (min-width: 768px) {
    .text-deux-medias--media-image {
        height: 680px;
    }
}

.text-deux-medias--media-image img {
    -o-object-fit: cover;
       object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
}

.text-deux-medias--media-video {
    display: block;
    height: 440px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

@media screen and (min-width: 768px) {
    .text-deux-medias--media-video {
        height: 680px;
    }
}

.text-deux-medias--media-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.text-deux-medias--media-video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 47px;
    width: 47px;
    -webkit-mask: url(../images/play-round.svg) no-repeat center;
            mask: url(../images/play-round.svg) no-repeat center;
    -webkit-mask-size: contain;
            mask-size: contain;
    background-color: var(--white);
    transition: transform 0.3s ease;
}

.text-deux-medias--media-video img {
    -o-object-fit: cover;
       object-fit: cover;
    height: 100%;
    width: 100%;
}

@media (hover: hover) {
    .text-deux-medias--media-video:hover::after {
        transform: translate(-50%, -50%) scale(1.1);
    }
}