/* =====================================================================
   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; }
.mce-content-body.lang-he, [dir="rtl"][lang="he"] .article-content, [lang="he"] .article-content { font-family: 'Heebo', 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; }
[dir="rtl"][lang="he"] .article-content h2, [dir="rtl"][lang="he"] .article-content h3, .mce-content-body.lang-he h2, .mce-content-body.lang-he h3 { font-family: 'Heebo', 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; }
[dir="rtl"][lang="he"] .article-content blockquote.pull-quote { font-family: 'Heebo', 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; }
}

/* Liens externes non autorisés dans l'éditeur TinyMCE */
.mce-content-body a.link-forbidden-external {
    outline: 2px dashed #DC2626 !important;
    background: rgba(220, 38, 38, 0.12) !important;
    color: #DC2626 !important;
    text-decoration: underline wavy #DC2626 !important;
    border-radius: 3px;
    padding: 1px 4px;
    cursor: not-allowed !important;
}

/* =====================================================================
   Lecteur Audio d'article (Podcasts / Interviews sonores)
   ===================================================================== */
.article-content .article-audio,
.mce-content-body .article-audio {
    margin: 1.8em 0;
    padding: 18px 22px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
    border: 1px solid #D5DAE3;
    border-inline-start: 5px solid var(--gold, #C9A227);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(11, 31, 58, 0.04);
}
[data-theme="dark"] .article-content .article-audio {
    background: linear-gradient(135deg, #131B26 0%, #1A2634 100%);
    border-color: #2D3A4B;
}
.article-audio__player {
    display: flex;
    align-items: center;
    gap: 16px;
}
.article-audio__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy-800, #0B1F3A);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(11, 31, 58, 0.2);
}
[data-theme="dark"] .article-audio__icon {
    background: var(--gold, #C9A227);
    color: #0B1F3A;
}
.article-audio__details {
    flex: 1;
    min-width: 0;
}
.article-audio__title {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-800, #0B1F3A);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-theme="dark"] .article-audio__title {
    color: #F1F5F9;
}
.article-audio__player audio {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    outline: none;
}
.article-content .article-audio figcaption,
.mce-content-body .article-audio figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--muted, #6B7178);
    border-inline-start: 0;
    padding-inline-start: 0;
    font-style: italic;
}

/* =====================================================================
   Slider / Carrousel Photos d'article
   ===================================================================== */
.article-slider {
    position: relative !important;
    width: 100% !important;
    margin: 32px 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #06111F !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28) !important;
    user-select: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
}
.article-slider > figcaption,
.article-slider__container > figcaption {
    display: none !important;
}
.article-slider__container {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    max-height: 560px !important;
    min-height: 280px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #06111F !important;
}
@media (max-width: 768px) {
    .article-slider__container {
        aspect-ratio: 4 / 3 !important;
        min-height: 220px !important;
    }
}
.article-slider__track {
    direction: ltr !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.article-slider__track::-webkit-scrollbar {
    display: none !important;
}
.article-slider__slide {
    direction: ltr !important;
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    scroll-snap-align: start !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #06111F !important;
}
.article-slider__slide img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
}
.article-slider__caption,
.article-slider__slide figcaption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 24px 20px 14px !important;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.92) 100%) !important;
    color: #FFFFFF !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    border: none !important;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9) !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    z-index: 4 !important;
    max-height: 35% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
.article-slider__caption:empty {
    display: none !important;
}
[dir="rtl"] .article-slider__caption,
[dir="rtl"] .article-slider__slide figcaption,
.lang-ar .article-slider__caption,
.lang-ar .article-slider__slide figcaption,
html[dir="rtl"] .article-slider__caption,
html[dir="rtl"] .article-slider__slide figcaption {
    font-family: 'Cairo', sans-serif !important;
    text-align: right !important;
    direction: rtl !important;
}
[dir="rtl"][lang="he"] .article-slider__caption,
[dir="rtl"][lang="he"] .article-slider__slide figcaption,
.lang-he .article-slider__caption,
.lang-he .article-slider__slide figcaption {
    font-family: 'Heebo', sans-serif !important;
}
.article-slider__progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 6;
    overflow: hidden;
}
.article-slider__progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gold, #C9A227);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.85);
    transition: width 0.1s linear;
}
.article-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #0B1F3A;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10 !important;
    opacity: 0.95;
    user-select: none !important;
    pointer-events: auto !important;
}
.article-slider__btn--prev::before {
    content: "❮";
    display: inline-block;
    line-height: 1;
}
.article-slider__btn--next::before {
    content: "❯";
    display: inline-block;
    line-height: 1;
}
.article-slider__btn:hover {
    opacity: 1;
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.article-slider__btn--prev {
    left: 14px;
}
.article-slider__btn--next {
    right: 14px;
}
[dir="rtl"] .article-slider__btn--prev,
.lang-ar .article-slider__btn--prev {
    left: auto;
    right: 14px;
}
[dir="rtl"] .article-slider__btn--next,
.lang-ar .article-slider__btn--next {
    right: auto;
    left: 14px;
}
[dir="rtl"] .article-slider__btn--prev::before,
.lang-ar .article-slider__btn--prev::before {
    content: "❯";
}
[dir="rtl"] .article-slider__btn--next::before,
.lang-ar .article-slider__btn--next::before {
    content: "❮";
}
.article-slider__badge-group {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 6;
}
[dir="rtl"] .article-slider__badge-group,
.lang-ar .article-slider__badge-group {
    right: auto;
    left: 14px;
}
.article-slider__counter {
    position: relative;
    background: rgba(11, 31, 58, 0.82);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
}
.article-slider__play-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(11, 31, 58, 0.82);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    font-size: 0.7rem;
    transition: all 0.2s ease;
    user-select: none;
}
.article-slider__play-toggle:hover {
    background: rgba(11, 31, 58, 0.98);
    transform: scale(1.12);
}
.article-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 16px;
    background: #06111F;
}
.article-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}
.article-slider__dot:hover {
    background: rgba(255, 255, 255, 0.75);
}
.article-slider__dot.is-active {
    width: 26px;
    border-radius: 5px;
    background: var(--gold, #C9A227);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.7);
}



