.section-texte {
    position: relative;
}

.section-texte .texte-wrap {
    position: relative;
}

.section-texte .texte-bloc {
    width: 100%;
}

.section-texte .texte-intro {
    max-width: 1400px;
    margin: 0 auto 2.5rem;
}

.section-texte .texte-intro.is-center {
    text-align: center;
}

.section-texte .texte-intro.is-left {
    text-align: left;
}

.section-texte .texte-intro.no-title {
    margin-bottom: 0;
}

.section-texte .texte-intro h2 {
    margin: 0 0 1rem;
}

.section-texte .texte-intro__sub {
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.section-texte .texte-intro__text {
    margin-bottom: 1.5rem;
}

.section-texte .texte-intro__text > *:first-child {
    margin-top: 0;
}

.section-texte .texte-intro__text > *:last-child {
    margin-bottom: 0;
}

.section-texte .texte-intro-outside + .texte-bloc {
    margin-top: 0;
}

.section-texte .texte-contenu {
    display: grid;
    gap: 2rem;
}

.section-texte .texte-contenu.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.section-texte .texte-contenu.cols-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 90%;
    margin: 0 auto;
}

.section-texte .texte-col > *:first-child {
    margin-top: 0;
}

.section-texte .texte-col > *:last-child {
    margin-bottom: 0;
}

/* Fond du bloc */
.section-texte .texte-bloc.bg-white,
.section-texte .texte-bloc.bg-dark,
.section-texte .texte-bloc.bg-light,
.section-texte .texte-bloc.bg-accent,
.section-texte .texte-bloc.bg-accent-light {
    padding: clamp(2rem, 3vw, 3.5rem);
    border-radius: 2rem;
}

/* Bordure */
.section-texte .texte-bloc.has-border {
    border: 2px solid !important;
    border-radius: 2rem;
    padding: clamp(2rem, 3vw, 3.5rem);
    margin: 0;
    min-width: 0;
}

.section-texte .texte-bloc.has-border.border-white {
    border-color: #fff !important;
}

.section-texte .texte-bloc.has-border.border-dark {
    border-color: var(--color-main) !important;
}

.section-texte .texte-bloc.has-border.border-light {
    border-color: var(--color-sec) !important;
}

.section-texte .texte-bloc.has-border.border-accent {
    border-color: var(--color-accent) !important;
}

.section-texte .texte-bloc.has-border.border-accent-light {
    border-color: var(--color-accent-light) !important;
}

/* Cas où l’intro est intégrée dans la bordure */
.section-texte .texte-bloc--intro-inside {
    padding-top: clamp(2.5rem, 4vw, 4rem);
}

.section-texte .texte-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-texte .texte-intro-inside {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}

.section-texte .texte-intro-inside h2 {
    margin: 0 0 1rem;
}

/* Texte riche */
.section-texte .text p:last-child,
.section-texte .text ul:last-child,
.section-texte .text ol:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-texte .texte-contenu.cols-2 {
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .section-texte .texte-intro {
        margin-bottom: 2rem;
    }

    .section-texte .texte-contenu.cols-2,
    .section-texte .texte-contenu.cols-1 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .section-texte .texte-bloc.bg-white,
    .section-texte .texte-bloc.bg-dark,
    .section-texte .texte-bloc.bg-light,
    .section-texte .texte-bloc.bg-accent,
    .section-texte .texte-bloc.bg-accent-light,
    .section-texte .texte-bloc.has-border {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .section-texte .texte-bloc--intro-inside {
        padding-top: 1.5rem;
    }
}