/**
 * Styles du Bloc Image & Texte
 */

.bloc-image-texte {
    position: relative;
    width: 100%;
    padding: 80px 24px;
    box-sizing: border-box;
    overflow: hidden;
    color: #ffffff;
    background-color: #1c1c1c;
}

/* Background & Overlay */
.bloc-image-texte__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bloc-image-texte__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.bloc-image-texte__bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(28, 28, 28, 0.85);
}

/* Conteneur principal */
.bloc-image-texte__container {
    position: relative;
    z-index: 2;
    max-width: 1420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* Rangée Assemblage */
.bloc-image-texte__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
}

.bloc-image-texte__row.is-reversed {
    flex-direction: row-reverse;
}

/* Colonne Texte */
.bloc-image-texte__col-text {
    flex: 0 0 600px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bloc-image-texte__subtitle {
    display: inline-block;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.9;
}

.bloc-image-texte__title {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    text-align: left !important;
    word-break: break-word;
}

.bloc-image-texte__title--h2 {
    font-size: 50px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.bloc-image-texte__title--h3 {
    font-size: 30px;
    line-height: 1.25;
}

.bloc-image-texte__title--h4 {
    font-size: 24px;
    line-height: 1.3;
}

.bloc-image-texte__content {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 1px;
    color: var(--color-white, #ffffff);
    word-break: break-word;
}

.bloc-image-texte__content p {
    margin-top: 0;
    margin-bottom: 1.2em;
}

.bloc-image-texte__content p:last-child {
    margin-bottom: 0;
}

.bloc-image-texte__action {
    margin-top: 8px;
}

/* Colonne Média */
.bloc-image-texte__col-media {
    flex: 1 1 736px;
    max-width: 736px;
}

.bloc-image-texte__media-wrapper {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.bloc-image-texte__media-img {
    width: 100%;
    height: 457px;
    object-fit: cover;
    display: block;
}

.bloc-image-texte__media-placeholder {
    width: 100%;
    height: 457px;
    background-color: rgba(217, 217, 217, 0.2);
    border-radius: 4px;
}

.bloc-image-texte__empty-notice {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .bloc-image-texte__row {
        gap: 40px;
    }

    .bloc-image-texte__col-text {
        flex: 1 1 50%;
        max-width: 50%;
    }

    .bloc-image-texte__col-media {
        flex: 1 1 50%;
        max-width: 50%;
    }

    .bloc-image-texte__title--h2 {
        font-size: 38px;
    }

    .bloc-image-texte__content {
        font-size: 18px;
        line-height: 22px;
    }

    .bloc-image-texte__media-img,
    .bloc-image-texte__media-placeholder {
        height: 380px;
    }
}

@media (max-width: 991px) {
    .bloc-image-texte {
        padding: 60px 20px;
    }

    .bloc-image-texte__container {
        gap: 56px;
    }

    .bloc-image-texte__row,
    .bloc-image-texte__row.is-reversed {
        flex-direction: column;
        gap: 32px;
    }

    .bloc-image-texte__col-text,
    .bloc-image-texte__col-media {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .bloc-image-texte__content {
        font-size: 16px;
        line-height: 20px;
    }

    .bloc-image-texte__media-img,
    .bloc-image-texte__media-placeholder {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 576px) {
    .bloc-image-texte {
        padding: 40px 16px;
    }

    .bloc-image-texte__title--h2 {
        font-size: 26px;
    }

    .bloc-image-texte__title--h3 {
        font-size: 20px;
    }

    .bloc-image-texte__content {
        font-size: 16px;
        line-height: 22px;
    }
}

