/* Hero infothérapie : image grande, déborde sur le bord d’écran */
.infotherapie-hero {
    display: flex;
    flex-direction: column;
    gap: var(--section-intern-gap-large);
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.infotherapie-hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--section-intern-gap-normal);
}

.infotherapie-hero__media {
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
}

.infotherapie-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(70vh, 520px);
    object-fit: cover;
    object-position: center;
}

@media (min-width: 1024px) {
    .infotherapie-hero__content {
        max-width: 42rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Desktop large : texte + image bord à bord (casse les marges à droite) */
@media (min-width: 1500px) {
    .infotherapie-hero {
        flex-direction: row;
        align-items: center;
        gap: clamp(1.5rem, 3vw, 3rem);
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        padding-left: max(
            var(--container-padding),
            calc((100vw - var(--container-max-width)) / 2 + var(--container-padding))
        );
        padding-right: 0;
        box-sizing: border-box;
    }

    .infotherapie-hero__content {
        flex: 0 1 36rem;
        max-width: 36rem;
        margin: 0;
        text-align: left;
    }

    .infotherapie-hero__media {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        left: auto;
        margin-left: 0;
        align-self: stretch;
        display: flex;
    }

    .infotherapie-hero__media img {
        width: 100%;
        height: 100%;
        min-height: 28rem;
        max-height: min(75vh, 640px);
        object-fit: cover;
        object-position: center left;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    }
}
