.block-cta-2 {
    margin-top: 50px;
    margin-bottom: 50px;
    --custom-theme-cta-bg-color: var(--wp--preset--color--red);
    overflow: hidden;
    max-width: 900px !important;
}

.block-cta-2__columns {
    position: relative;
    display: flex;
    gap: 20px;
    min-height: 300px;
}

.block-cta-2__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 50%;
    padding: 40px;
    z-index: 10;
}

.block-cta-2__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
}
.block-cta-2__bg:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg,var(--custom-theme-cta-2-bg-color) 0%, transparent 100%);
}

/* L'image remplit sa colonne : elle gardait sa hauteur d'origine et laissait une bande
   de fond visible en dessous quand le texte était plus haut (ticket 30/09). */
.block-cta-2__bg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-cta-2__image {
    position: absolute;
    right: 25%;
    bottom: 0;
    transform: translateX(50%);
}

.block-cta-2__pretitle {
    padding: 5px 10px;
    color: white;
    background: rgba(255,255,255,.2);
    border-radius: 3px;
    font-weight: 600;
}
.block-cta-2__pretitle svg {
    margin-right: 5px;
}
.block-cta-2__title {
    margin-top: 20px;
    margin-bottom: 30px;
    color: white;
    font-size: 36px;
    font-weight: normal;
    line-height: 1.2;
}

.is-reversed .block-cta-2__columns {
    justify-content: flex-end;
}
.is-reversed .block-cta-2__image {
    right: auto;
    left: 25%;
    transform: translateX(-50%);
}
.is-reversed .block-cta-2__bg {
    right: auto;
    left: 0;
}
.is-reversed .block-cta-2__bg:after {
    background: linear-gradient(90deg,transparent 0%, var(--custom-theme-cta-2-bg-color) 100%);
}

@media screen and (max-width: 767px) {
    .block-cta-2__content {
        width: 100%;
        background: linear-gradient(180deg,transparent 0%, var(--custom-theme-cta-2-bg-color) 80%);
    }
    .block-cta-2__content:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: var(--custom-theme-cta-2-bg-color);
        opacity: .25;
        z-index: -1;
    }
    .block-cta-2__bg:after {
        content: none;
    }
}