/* ==============================
 * Block — Sections texte (mentions légales, CGU, FAQ…)
 * Scope racine : .block-text-sections
 * Lecture confortable : container narrow, alignement à gauche
 * ============================== */

.block-text-sections {
    padding: var(--section-py) 0;
    background: var(--color-bg);
}

.block-text-sections__container {
    /* Largeur de lecture confortable pour des textes longs */
    max-width: var(--container-narrow);
}

.block-text-sections__header {
    margin-bottom: 65px;
    text-align: center;
}

.block-text-sections__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-heading);
    font-size: var(--fs-h1);
    color: var(--color-primary);
    margin: 0 0 16px;
    line-height: 1.15;
    text-align: center;
}

.block-text-sections__intro {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-text);
    line-height: 1.6;
}
.block-text-sections__intro > * { margin: 0; }
.block-text-sections__intro > * + * { margin-top: 12px; }

/* Liste des sections */
.block-text-sections__list {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 48px);
}

.block-text-sections__section {
    display: flex;
    flex-direction: column;
}
.block-text-sections__section > * + * { margin-top: 16px; }

.block-text-sections__subtitle {
    font-family: var(--font-heading);
    font-weight: var(--weight-heading);
    font-size: var(--fs-h2);
    color: var(--color-primary);
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 1023px) {
    .block-text-sections__subtitle { font-size: 22px; }
}

.block-text-sections__content {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-text);
    line-height: 1.7;
}
.block-text-sections__content > * { margin: 0; }
.block-text-sections__content > * + * { margin-top: 14px; }
.block-text-sections__content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color var(--dur-quick) var(--ease);
}
.block-text-sections__content a:hover,
.block-text-sections__content a:focus-visible {
    color: var(--color-text);
}
.block-text-sections__content ul,
.block-text-sections__content ol {
    padding-left: 1.5em;
    list-style: revert;
}
.block-text-sections__content li + li {
    margin-top: 6px;
}
.block-text-sections__content strong { font-weight: 700; }

/* Empty state (édition) */
.block-text-sections__empty {
    padding: 24px;
    background: var(--color-bg-alt);
    color: var(--color-muted);
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px dashed var(--color-border);
}
