/* =========================================================================
   adwimagetext — rendu front (esprit Shopify, jetons --nhp-* du thème)
   Approche utilitaire/clean inspirée Tailwind, scopée au module pour ne pas
   polluer le thème classic.
   ========================================================================= */

.adw-imagetext-wrapper {
    --adw-it-green: var(--nhp-green, #91bd31);
    --adw-it-ink: var(--nhp-ink, #1d2123);
    --adw-it-muted: #4a4f54;
    --adw-it-min-h: 480px;
    --adw-font-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    display: block;
    width: 100%;
}

.adw-imagetext {
    display: flex;
    align-items: stretch;          /* hauteurs égales (= align-items-stretch de ton exemple) */
    justify-content: space-between;
    width: 100%;
    background: #fff;
    margin: 0;
    overflow: hidden;
}

.adw-imagetext + .adw-imagetext {
    margin-top: 0;
}

/* ---- Colonnes ---- */
.adw-imagetext__media,
.adw-imagetext__body {
    flex: 1 1 50%;
    min-width: 0;
}

/* ---- Image full-bleed (background, façon ton bloc .class-img) ---- */
.adw-imagetext__media {
    position: relative;
}

.adw-imagetext__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: var(--adw-it-min-h);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---- Bloc texte ---- */
.adw-imagetext__body {
    display: flex;
    align-items: center;
}

.adw-imagetext__inner {
    width: 100%;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 5rem);
}

.adw-imagetext__title {
    margin: 0 0 1rem;
    color: var(--adw-it-ink);
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.adw-imagetext__subtitle {
    margin: 0 0 1.5rem;
    color: var(--adw-it-green);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 600;
    line-height: 1.45;
}

.adw-imagetext__subtitle h1,
.adw-imagetext__subtitle h2,
.adw-imagetext__subtitle h3,
.adw-imagetext__subtitle h4,
.adw-imagetext__subtitle p {
    margin: 0 0 .4rem;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.adw-imagetext__content {
    color: var(--adw-it-muted);
    font-size: var(--adw-font-base);
    line-height: 1.7;
}

.adw-imagetext__content p {
    margin: 0 0 1rem;
        color: var(--adw-it-muted);
    font-size: var(--adw-font-base);
    line-height: 1.7;
}

.adw-imagetext__content p:last-child {
    margin-bottom: 0;
}

.adw-imagetext__content a {
    color: var(--adw-it-green);
    text-decoration: underline;
}

/* ---- Bouton (dark text sur vert = règle WCAG du projet) ---- */
.adw-imagetext__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.75rem;
    padding: .85rem 1.6rem;
    background: var(--adw-it-green);
    color: var(--adw-it-ink);
    border-radius: 9999px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

.adw-imagetext__btn:hover,
.adw-imagetext__btn:focus {
    color: var(--adw-it-ink);
    filter: brightness(.95);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(29, 33, 35, .12);
    text-decoration: none;
}

.adw-imagetext__btn .material-icons {
    font-size: 1.1rem;
    line-height: 1;
}

/* ---- Variante : image à droite ---- */
.adw-imagetext--img-right {
    flex-direction: row-reverse;
}

/* ---- Responsive : empilement en colonne ---- */
@media (max-width: 991.98px) {
    .adw-imagetext,
    .adw-imagetext--img-right {
        flex-direction: column;
    }

    .adw-imagetext__media {
        flex-basis: auto;
        width: 100%;
    }

    .adw-imagetext__img {
        position: relative;
        inset: auto;
        min-height: 320px;
    }

    .adw-imagetext__body {
        flex-basis: auto;
        width: 100%;
    }

    .adw-imagetext__inner {
        padding: clamp(1.5rem, 6vw, 2.5rem);
    }
}
