/* =====================================================================
   Contenu des articles — partagé entre le site public et l'éditeur TinyMCE
   (ce que vous voyez dans l'éditeur = ce qui s'affiche sur le site)
   ===================================================================== */

.mce-content-body {
    --text: #1A1A1A; --text-2: #3D4248; --muted: #6B7178; --border: #E3E3DE; --surface-2: #F0F0EC;
    --red: #C8102E; --gold: #C9A227; --navy-800: #0B1F3A;
    font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: #fff;
    max-width: 780px; margin: 20px auto !important; padding: 0 24px;
}
.mce-content-body[dir="rtl"], .mce-content-body.lang-ar { font-family: 'Noto Naskh Arabic', 'Cairo', Tahoma, sans-serif; }

.article-content, .mce-content-body { font-size: 1.12rem; line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
[dir="rtl"] .article-content, .mce-content-body.lang-ar { font-size: 1.2rem; line-height: 1.95; }

.article-content > * + *, .mce-content-body > * + * { margin-top: 1.15em; }
.article-content p, .mce-content-body p { margin: 0; }
.article-content > p:first-child::first-letter { font-family: 'Playfair Display', Georgia, serif; float: inline-start; font-size: 3.6em; line-height: .85; font-weight: 800; margin-inline-end: 10px; margin-top: 6px; color: var(--navy-800, #0B1F3A); }
[dir="rtl"] .article-content > p:first-child::first-letter { float: none; font-size: inherit; margin: 0; font-weight: inherit; color: inherit; font-family: inherit; }
[data-theme="dark"] .article-content > p:first-child::first-letter { color: var(--gold); }

.article-content h2, .article-content h3, .article-content h4,
.mce-content-body h2, .mce-content-body h3, .mce-content-body h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.3; margin-top: 1.7em; color: var(--text); }
[dir="rtl"] .article-content h2, [dir="rtl"] .article-content h3, .mce-content-body.lang-ar h2, .mce-content-body.lang-ar h3 { font-family: 'Cairo', sans-serif; }
.article-content h2, .mce-content-body h2 { font-size: 1.65rem; }
.article-content h3, .mce-content-body h3 { font-size: 1.35rem; }
.article-content h4, .mce-content-body h4 { font-size: 1.12rem; }

.article-content a, .mce-content-body a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content a:hover { text-decoration-thickness: 2px; }
.article-content strong, .mce-content-body strong { font-weight: 700; }
.article-content ul, .article-content ol, .mce-content-body ul, .mce-content-body ol { padding-inline-start: 1.4em; }
.article-content li + li, .mce-content-body li + li { margin-top: .4em; }
.article-content li::marker { color: var(--red); }
.article-content hr, .mce-content-body hr { border: 0; height: 1px; background: var(--border); margin-block: 2em; }

/* Images & figures */
.article-content img, .mce-content-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-content figure, .mce-content-body figure { margin-inline: 0; }
.article-content figure.image, .mce-content-body figure.image { display: table; margin-inline: auto; }
.article-content figure.image img { display: block; }
.article-content figcaption, .mce-content-body figcaption { font-family: 'Inter', sans-serif; font-size: .85rem; color: var(--muted); margin-top: 8px; padding-inline-start: 10px; border-inline-start: 3px solid var(--gold); caption-side: bottom; display: table-caption; }
.article-content .align-left, .article-content img[style*="float: left"], .mce-content-body .align-left { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.article-content .align-right, .article-content img[style*="float: right"], .mce-content-body .align-right { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.article-content .align-center, .mce-content-body .align-center { margin-inline: auto; display: block; }
.article-content::after { content: ''; display: table; clear: both; }

/* Citations */
.article-content blockquote, .mce-content-body blockquote { margin-inline: 0; padding: 4px 0 4px 22px; padding-inline-start: 22px; border-inline-start: 4px solid var(--red); font-style: italic; color: var(--text-2); font-size: 1.12em; }
.article-content blockquote.pull-quote, .mce-content-body blockquote.pull-quote {
    border: 0; padding: 28px 30px; text-align: center; font-style: normal; position: relative;
    font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; line-height: 1.45; color: var(--text);
    border-block: 3px solid var(--gold);
}
[dir="rtl"] .article-content blockquote.pull-quote { font-family: 'Cairo', sans-serif; }
.article-content blockquote.pull-quote::before, .mce-content-body blockquote.pull-quote::before { content: '“'; position: absolute; top: -28px; left: 50%; transform: translateX(-50%); background: var(--bg, #fff); padding-inline: 12px; font-size: 3.4rem; line-height: 1; color: var(--gold); }
.article-content blockquote cite, .mce-content-body blockquote cite { display: block; margin-top: 12px; font-family: 'Inter', sans-serif; font-size: .85rem; font-style: normal; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Encadrés */
.article-content .box, .mce-content-body .box { padding: 20px 24px; border-radius: 8px; background: var(--surface-2); border-inline-start: 4px solid var(--navy-800); }
.article-content .box > * + *, .mce-content-body .box > * + * { margin-top: .6em; }
.article-content .box h4, .mce-content-body .box h4 { margin: 0; font-family: 'Inter', sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-800); }
[data-theme="dark"] .article-content .box h4 { color: var(--gold); }
.article-content .box-key, .mce-content-body .box-key { background: rgba(201, 162, 39, .1); border-color: var(--gold); }
.article-content .box-alert, .mce-content-body .box-alert { background: rgba(200, 16, 46, .07); border-color: var(--red); }
.article-content .box-alert h4, .mce-content-body .box-alert h4 { color: var(--red); }

/* Chiffres clés */
.article-content .key-figures, .mce-content-body .key-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.article-content .kf, .mce-content-body .kf { padding: 18px; border-radius: 8px; background: var(--navy-800); color: #fff; text-align: center; }
.article-content .kf strong, .mce-content-body .kf strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 2.2rem; line-height: 1.1; color: var(--gold); }
.article-content .kf span, .mce-content-body .kf span { font-family: 'Inter', sans-serif; font-size: .85rem; color: #D5DDEA; }

/* Interview Q/R */
.article-content .qa .q, .mce-content-body .qa .q { font-weight: 700; color: var(--navy-800); }
[data-theme="dark"] .article-content .qa .q { color: var(--gold); }
.article-content .qa .q::before, .mce-content-body .qa .q::before { content: '— '; color: var(--red); }
.article-content .qa .a, .mce-content-body .qa .a { margin-top: .4em; }

/* Colonnes */
.article-content .cols-2, .mce-content-body .cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mce-content-body .cols-2 > div { outline: 1px dashed #ccc; padding: 6px; }

/* Lire aussi */
.article-content .read-also, .mce-content-body .read-also { padding: 14px 18px; border-block: 1px solid var(--border); font-weight: 600; }
.article-content .read-also span, .mce-content-body .read-also span { color: var(--red); font-family: 'Inter', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-inline-end: 8px; }
.article-content .read-also a, .mce-content-body .read-also a { color: var(--text); text-decoration: none; font-family: 'Playfair Display', Georgia, serif; }

/* Galerie */
.article-content .gallery, .mce-content-body .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.article-content .gallery img, .mce-content-body .gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 0; }
.article-content .gallery figure, .mce-content-body .gallery figure { margin: 0; }

/* Séparateur */
.article-content hr.sep-deco, .mce-content-body hr.sep-deco { height: auto; background: none; text-align: center; overflow: visible; }
.article-content hr.sep-deco::after, .mce-content-body hr.sep-deco::after { content: '◆ ◆ ◆'; color: var(--gold); letter-spacing: 1em; font-size: .8rem; }

/* Tableaux */
.article-content table, .mce-content-body table { width: 100%; border-collapse: collapse; font-size: .95rem; font-family: 'Inter', sans-serif; display: block; overflow-x: auto; }
[dir="rtl"] .article-content table { font-family: inherit; }
.article-content th, .article-content td, .mce-content-body th, .mce-content-body td { padding: 10px 14px; border: 1px solid var(--border); text-align: start; }
.article-content thead th, .article-content tr:first-child th, .mce-content-body th { background: var(--navy-800); color: #fff; font-weight: 600; }
.article-content tbody tr:nth-child(even) { background: var(--surface-2); }
.article-content table caption { caption-side: bottom; font-size: .8rem; color: var(--muted); padding-top: 8px; }

/* Vidéos (YouTube…) */
.article-content .video-embed, .mce-content-body .video-embed, .video-embed { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.article-content iframe[src*="youtube"], .article-content iframe[src*="vimeo"], .article-content iframe[src*="dailymotion"] { width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: 10px; }
.article-content pre, .mce-content-body pre { background: #0B1F3A; color: #E3E9F2; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: .9rem; direction: ltr; text-align: left; }
.article-content details, .mce-content-body details { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
.article-content summary, .mce-content-body summary { font-weight: 700; cursor: pointer; }

@media (max-width: 640px) {
    .article-content, .mce-content-body { font-size: 1.04rem; }
    .article-content .cols-2 { grid-template-columns: 1fr; }
    .article-content .align-left, .article-content .align-right, .article-content img[style*="float"] { float: none; margin: 1em auto; max-width: 100%; }
    .article-content blockquote.pull-quote { font-size: 1.25rem; padding: 24px 10px; }
}
