/* Blocs statiques des fiches et articles : aucun contrôle de carrousel. */
.editorial-page { min-width: 0; }
.editorial-banner { position: relative; min-width: 0; border: 1px solid var(--rs-interface); background: linear-gradient(145deg, #0d1b30, var(--rs-background)); }
.editorial-banner::before { content: ''; position: absolute; right: 8px; top: 7px; width: 24px; height: 9px; border-top: 1px solid var(--rs-interface); border-right: 1px solid var(--rs-interface); transform: skewX(-35deg); pointer-events: none; z-index: 1; }
.editorial-banner::after { content: ''; position: absolute; bottom: -1px; left: 1.25rem; width: 36px; height: 2px; background: var(--rs-accent); pointer-events: none; }
.editorial-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 480px; object-fit: cover; }
.editorial-image { border-block: 1px solid var(--rs-interface); }
.editorial-banner-body { padding: clamp(1.25rem, 3vw, 2rem); }
.editorial-banner h1 { color: var(--rs-text); font-family: 'Oxanium', system-ui, sans-serif; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.2; letter-spacing: .025em; margin: .5rem 0; }
.editorial-label { font-family: 'Oxanium', system-ui, sans-serif; color: var(--rs-accent); font-size: .8rem; letter-spacing: .06em; margin: 0 0 .6rem; }
.editorial-intro, .editorial-meta { color: #d5dae4; font-family: 'Exo 2', system-ui, sans-serif; margin: .75rem 0 0; }
.editorial-meta { font-size: .85rem; }
.editorial-section { margin-top: 2.5rem; }
.editorial-section-title { display: flex; align-items: center; gap: .75rem; color: var(--rs-text); font-family: 'Oxanium', system-ui, sans-serif; font-size: clamp(1.4rem, 2.3vw, 1.8rem); line-height: 1.3; }
.editorial-section-title::before { content: ''; width: 5px; height: 1em; flex: 0 0 5px; background: var(--rs-accent); transform: skewY(-25deg); }
.editorial-section-title::after { content: ''; height: 1px; flex: 1; background: var(--rs-interface); opacity: .65; }
/* Contenus libres communs aux pages, fiches Univers et articles. */
:where(.editorial-content) {
    --wp--style--global--content-size: 72ch;
    --wp--style--global--wide-size: 960px;
    min-width: 0;
    color: #d5dae4;
    font-family: 'Exo 2', system-ui, sans-serif;
    line-height: 1.75;
    display: flow-root;
}
:where(.editorial-content) :where(h1, h2, h3, h4, h5, h6) {
    color: var(--rs-text);
    font-family: 'Oxanium', system-ui, sans-serif;
    line-height: 1.35;
}
/* Faible spécificité : les styles et dimensions explicites de WordPress restent prioritaires. */
:where(.editorial-content) > :where(:not(.alignleft):not(.alignright)),
:where(.editorial-content) :where(.wp-block-group__inner-container, .is-layout-constrained) > :where(:not(.alignleft):not(.alignright)) {
    max-width: min(100%, var(--wp--style--global--content-size));
    margin-inline: auto;
}
:where(.editorial-content) > .alignwide,
:where(.editorial-content) :where(.wp-block-group__inner-container, .is-layout-constrained) > .alignwide {
    max-width: min(100%, var(--wp--style--global--wide-size));
}
:where(.editorial-content) > .alignfull,
:where(.editorial-content) :where(.wp-block-group__inner-container, .is-layout-constrained) > .alignfull {
    max-width: 100%;
    margin-inline: 0;
}
:where(.editorial-content) > :where(* + *),
:where(.editorial-content) :where(.wp-block-group__inner-container, .is-layout-constrained) > :where(* + *) { margin-block-start: 1.25rem; }
:where(.editorial-content) > :where(h2, h3, h4, h5, h6):not(:first-child) { margin-block-start: 2rem; }
:where(.editorial-content) > :first-child { margin-block-start: 0; }
:where(.editorial-content) > :last-child { margin-block-end: 0; }
.article-content { max-width: none; margin: 2rem auto 0; }
:where(.editorial-content) :where(img, video) { max-width: 100%; height: auto; }
:where(.editorial-content) :where(figure, .wp-caption, iframe) { max-width: 100%; }
:where(.editorial-content) :where(.aligncenter) { margin-inline: auto; }
:where(.editorial-content) :where(figcaption, .wp-caption-text) { font-size: .875em; line-height: 1.5; overflow-wrap: anywhere; }
:where(.editorial-content) :where(.wp-block-column, .wp-block-group, .wp-block-gallery, .wp-block-gallery > figure) { min-width: 0; }
/* Les ratios natifs WordPress et les réglages explicites gardent la priorité. */
:where(.editorial-content) :where(iframe[src*="youtube.com/embed/"], iframe[src*="youtube-nocookie.com/embed/"], iframe[src*="player.vimeo.com/video/"]) {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}
:where(.editorial-content) :where(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
:where(.editorial-content) :where(blockquote) { border-left: 2px solid var(--rs-accent); padding-left: 1.25rem; }
.editorial-return { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; }
.editorial-return a { display: inline-flex; align-items: center; min-height: 44px; font-family: 'Oxanium', system-ui, sans-serif; font-size: .85rem; text-underline-offset: .25em; }
@media (max-width: 600px) {
    .editorial-section { margin-top: 2rem; }
    .article-content { margin-top: 1.5rem; }
}
