/** BLOC 13 — Texte riche éditorial (Figma node 1470:6077)
 *  Article-like long-form content rendu dans le container plein largeur.
 *  Typographie : H1 37px, intro 18px semibold gris, H2 22px + separator 88×1,
 *  liste custom (dots bleu primary), blockquote box bleu primary avec barre
 *  blanche, image radius 16px, CTA pill h=42. */

.section-rich-editorial__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Titre principal */
.section-rich-editorial__title {
    font-size: clamp(1.75rem, 2.8vw, 2.3125rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0;
    color: inherit;
}
.section-rich-editorial__title .accent,
.section-rich-editorial__title .green-text { color: var(--color-accent); }

/* Intro : 18px semibold gris #666673 (Figma exact) */
.section-rich-editorial__intro {
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    color: #666673;
    font-weight: var(--font-weight-semibold);
}
.section--bg-blue .section-rich-editorial__intro {
    color: rgba(255, 255, 255, 0.85);
}

/* Contenu WYSIWYG (H2/H3/p/ul/ol/img/figure) */
.section-rich-editorial__content {
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* H2 : 22px bold + separator 88×1 bleu en dessous */
.section-rich-editorial__content h2 {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: inherit;
    margin: var(--space-3) 0 0;
}
.section-rich-editorial__content h2::after {
    content: '';
    display: block;
    width: 88px;
    height: 1px;
    background-color: var(--color-primary);
    margin-top: var(--space-3);
}
.section--bg-blue .section-rich-editorial__content h2::after { background-color: var(--color-white); }

/* H3 : 18px semibold */
.section-rich-editorial__content h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: inherit;
    margin: var(--space-2) 0 0;
}

.section-rich-editorial__content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: inherit;
}

/* Listes custom : dots 8×8 bleu primary à la place des bullets natifs */
.section-rich-editorial__content ul {
    list-style: none;
    padding-left: var(--space-3);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.section-rich-editorial__content ul li {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: inherit;
}
.section-rich-editorial__content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
}
.section--bg-blue .section-rich-editorial__content ul li::before { background-color: var(--color-white); }

/* Liste ordonnée : garder numéros natifs (pas de custom) */
.section-rich-editorial__content ol {
    padding-left: var(--space-3);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Image : radius 16px, pleine largeur */
.section-rich-editorial__content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* Figure (image + caption italic) */
.section-rich-editorial__content figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.section-rich-editorial__content figcaption {
    font-size: 13px;
    font-style: italic;
    color: inherit;
    line-height: 1.4;
}

/* Blockquote : box bleu primary avec barre blanche à gauche, texte italic blanc 18px */
.section-rich-editorial__highlight,
.section-rich-editorial__content blockquote {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    margin: 0;
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
    display: flex;
    gap: var(--space-3);
    align-items: center;
}
.section-rich-editorial__highlight::before,
.section-rich-editorial__content blockquote::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    height: 80px;
    background-color: var(--color-white);
    align-self: center;
}

/* Sur fond bleu : inverser (box blanche + barre bleue + texte noir) */
.section--bg-blue .section-rich-editorial__highlight,
.section--bg-blue .section-rich-editorial__content blockquote {
    background-color: var(--color-white);
    color: var(--color-text);
}
.section--bg-blue .section-rich-editorial__highlight::before,
.section--bg-blue .section-rich-editorial__content blockquote::before {
    background-color: var(--color-primary);
}

/* CTA : pill bleu h=42, icône + blanc 20px, 16px bold uppercase */
.section-rich-editorial__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    height: 42px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-pill);
    font-size: var(--font-size-body);
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.02em;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color var(--transition-base);
}
.section-rich-editorial__cta:hover { background-color: var(--color-primary-dark); color: var(--color-white); }
.section-rich-editorial__cta svg { flex-shrink: 0; }

.section--bg-blue .section-rich-editorial__cta {
    background-color: var(--color-white);
    color: var(--color-primary);
}
.section--bg-blue .section-rich-editorial__cta:hover {
    background-color: var(--color-grey-100);
    color: var(--color-primary-dark);
}

/* Responsive : blockquote passe en colonne sous 640px */
@media (max-width: 640px) {
    .section-rich-editorial__highlight,
    .section-rich-editorial__content blockquote {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-3);
    }
    .section-rich-editorial__highlight::before,
    .section-rich-editorial__content blockquote::before {
        height: 4px;
        width: 60px;
    }
}
