/*
Theme Name: Tchelou Média — النسخة العربية
Theme URI: https://tcheloumedia.com
Author: Tchelou Média
Description: قالب صحيفة تشيلو ميديا الإلكترونية — النسخة العربية (ar.tcheloumedia.com). يُعرض الموقع دائمًا بالعربية ومن اليمين إلى اليسار، مع قائمة للجوال وزر للانتقال إلى النسخة الفرنسية.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tchelou-media
Tags: news, rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
	--tm-red: #C82344;
	--tm-red-dark: #A11733;
	--tm-red-soft: #F07A90;
	--tm-ink: #141414;
	--tm-text: #3A3632;
	--tm-muted: #57524D;
	--tm-line: #E4E0DA;
	--tm-sand: #F4F1EC;
	--tm-paper: #FFFFFF;
	--tm-on-dark: #D6D1CB;
	--tm-on-dark-muted: #BDB8B2;
	--tm-max: 1280px;
	--tm-gutter: 24px;
	--tm-radius: 6px;
	--tm-font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--tm-font-ui: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--tm-font-body: 'Source Serif 4', Georgia, serif;
	--tm-font-ar-ui: 'Noto Kufi Arabic', Tahoma, sans-serif;
	--tm-font-ar-body: 'Noto Naskh Arabic', 'Times New Roman', serif;
	--tm-body-size: 19px;
	--tm-body-leading: 1.75;
	--tm-head-leading: 1.1;
}

body.tm-ar {
	--tm-font-head: var(--tm-font-ar-ui);
	--tm-font-ui: var(--tm-font-ar-ui);
	--tm-font-body: var(--tm-font-ar-body);
	--tm-body-size: 21px;
	--tm-body-leading: 1.95;
	--tm-head-leading: 1.45;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--tm-paper);
	color: var(--tm-ink);
	font-family: var(--tm-font-body);
	font-size: 17px;
	line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--tm-red); }
:focus-visible { outline: 3px solid var(--tm-red); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; margin: 0; padding: 12px 16px; z-index: 1000;
	background: var(--tm-paper); color: var(--tm-ink); inset-inline-start: 8px; top: 8px;
}

.tm-wrap { max-width: var(--tm-max); margin-inline: auto; padding-inline: var(--tm-gutter); }

/* Other-language snippets keep their own font */
[lang="ar"] { font-family: var(--tm-font-ar-ui); }
body.tm-ar [lang="fr"] { font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; }

/* ---------- Top bar ---------- */
.tm-topbar { background: var(--tm-ink); color: #fff; font-family: var(--tm-font-ui); font-size: 13px; }
.tm-topbar .tm-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 8px; }
.tm-topbar__right { display: flex; align-items: center; gap: 20px; }
.tm-topbar a { font-weight: 600; }
.tm-topbar__edition { color: var(--tm-on-dark-muted); }
.tm-topbar__edition a { color: #fff; font-weight: 700; }

/* ---------- Header ---------- */
.tm-header { border-bottom: 1px solid var(--tm-line); background: var(--tm-paper); }
.tm-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.tm-brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.tm-brand__logo { display: block; line-height: 0; flex-shrink: 0; }
.tm-brand__logo img { height: 64px; width: auto; }
.tm-brand__tagline { padding-inline-start: 20px; border-inline-start: 3px solid var(--tm-red); font-family: var(--tm-font-ui); line-height: 1.35; }
.tm-brand__kicker { font-size: 12px; font-weight: 800; color: var(--tm-red); }
.tm-fr .tm-brand__kicker { letter-spacing: .12em; text-transform: uppercase; }
.tm-ar .tm-brand__kicker { font-size: 15px; }
.tm-brand__slogan { font-size: 15px; font-weight: 600; color: var(--tm-text); }
.tm-header__tools { display: flex; align-items: center; gap: 12px; }

.tm-switch { display: inline-flex; border: 1.5px solid var(--tm-ink); border-radius: 999px; padding: 3px; font-family: var(--tm-font-ui); font-size: 14px; font-weight: 700; }
.tm-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 38px; padding: 0 14px; border-radius: 999px; }
.tm-switch a[aria-current="true"] { background: var(--tm-ink); color: #fff; }
.tm-switch a.tm-switch__fr { font-family: 'Archivo', sans-serif; }
.tm-switch a.tm-switch__ar { font-family: var(--tm-font-ar-ui); }
.tm-switch--light { border-color: #fff; }
.tm-switch--light a { color: #fff; }
.tm-switch--light a[aria-current="true"] { background: #fff; color: var(--tm-ink); }

.tm-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--tm-line); border-radius: 999px; background: var(--tm-paper); color: var(--tm-ink); cursor: pointer; padding: 0; }
.tm-iconbtn:hover { color: var(--tm-red); border-color: var(--tm-red); }
.tm-burger { display: none; background: var(--tm-red); border-color: var(--tm-red); color: #fff; }
.tm-burger:hover { background: var(--tm-red-dark); color: #fff; }
.tm-burger .tm-icon-close { display: none; }
.tm-menu-open .tm-burger .tm-icon-close { display: block; }
.tm-menu-open .tm-burger .tm-icon-menu { display: none; }

/* Primary nav */
.tm-nav { border-top: 1px solid var(--tm-line); }
.tm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--tm-font-ui); font-size: 15px; font-weight: 700; }
.tm-fr .tm-nav ul { text-transform: uppercase; letter-spacing: .04em; }
.tm-ar .tm-nav ul { font-size: 16px; gap: 4px 30px; }
.tm-nav a { display: block; padding: 14px 0 11px; border-bottom: 3px solid transparent; }
.tm-ar .tm-nav a { padding: 12px 0 9px; }
.tm-nav .current-menu-item > a, .tm-nav .current-cat > a, .tm-nav .current-post-ancestor > a, .tm-nav .current-menu-parent > a, .tm-nav .tm-current > a { border-bottom-color: var(--tm-red); color: var(--tm-red); }
.tm-nav .sub-menu, .tm-nav .children { display: none; }

/* Mobile panel */
.tm-panel { display: none; border-top: 1px solid var(--tm-line); background: var(--tm-paper); }
.tm-panel .tm-wrap { padding-block: 8px 24px; }
.tm-panel ul { list-style: none; margin: 0; padding: 0; font-family: var(--tm-font-ui); }
.tm-panel li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--tm-line); font-size: 18px; font-weight: 700; }
.tm-panel .current-menu-item > a, .tm-panel .current-cat > a, .tm-panel .tm-current > a { color: var(--tm-red); font-weight: 800; }
.tm-panel .sub-menu, .tm-panel .children { padding-inline-start: 16px; }
.tm-panel__other { margin-top: 18px; display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 999px; background: var(--tm-ink); color: #fff !important; font-size: 16px; font-weight: 700; }
.tm-menu-open .tm-panel { display: block; }

/* Search panel */
.tm-search { display: none; border-top: 1px solid var(--tm-line); background: var(--tm-sand); }
.tm-search-open .tm-search { display: block; }
.tm-search .tm-wrap { padding-block: 16px; }
.tm-searchform { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; font-family: var(--tm-font-ui); }
.tm-searchform label { flex: 1 1 100%; font-size: 14px; font-weight: 700; }
.tm-searchform input[type="search"] { flex: 1 1 260px; height: 48px; padding: 0 14px; border: 1.5px solid #8A847D; border-radius: var(--tm-radius); background: #fff; font-size: 16px; font-family: inherit; }
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: var(--tm-radius); background: var(--tm-red); color: #fff; font-family: var(--tm-font-ui); font-size: 16px; font-weight: 800; cursor: pointer; }
.tm-btn:hover { background: var(--tm-red-dark); color: #fff; }

@media (max-width: 960px) {
	.tm-nav, .tm-hide-sm { display: none !important; }
	.tm-burger { display: inline-flex; }
}
@media (max-width: 480px) {
	:root { --tm-gutter: 16px; }
	.tm-brand__logo img { height: 46px; }
	.tm-header__bar { padding-block: 12px; }
	.tm-header__tools { gap: 8px; }
	.tm-switch { padding: 2px; font-size: 13px; }
	.tm-switch a { min-width: 44px; height: 40px; padding: 0 10px; }
}

/* ---------- Flash ---------- */
.tm-flash { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 12px 16px; background: var(--tm-sand); border-radius: var(--tm-radius); font-family: var(--tm-font-ui); font-size: 15px; }
.tm-flash__label { flex-shrink: 0; padding: 4px 10px; border-radius: 4px; background: var(--tm-red); color: #fff; font-size: 12px; font-weight: 800; }
.tm-fr .tm-flash__label { text-transform: uppercase; letter-spacing: .08em; }
.tm-flash a { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Typography helpers ---------- */
.tm-kicker { font-family: var(--tm-font-ui); font-size: 12px; font-weight: 800; color: var(--tm-red); }
.tm-fr .tm-kicker { letter-spacing: .1em; text-transform: uppercase; }
.tm-ar .tm-kicker { font-size: 13px; }
.tm-kicker a:hover { color: var(--tm-red-dark); }
.tm-meta { font-family: var(--tm-font-ui); font-size: 14px; color: var(--tm-muted); }
.tm-section-title { margin: 0; padding-bottom: 12px; border-bottom: 3px solid var(--tm-ink); font-family: var(--tm-font-head); font-weight: 900; font-size: 26px; line-height: 1.3; }
.tm-fr .tm-section-title { text-transform: uppercase; letter-spacing: .02em; }
.tm-section-title a:hover { color: var(--tm-red); }
.tm-arrow { flex-shrink: 0; }
.tm-ar .tm-arrow { transform: scaleX(-1); }

/* ---------- Media / placeholders ---------- */
.tm-media { display: block; position: relative; border-radius: var(--tm-radius); overflow: hidden; background: var(--tm-sand); }
.tm-media img { width: 100%; height: 100%; object-fit: cover; }
.tm-media--16x9 { aspect-ratio: 16 / 9; }
.tm-media--3x2 { aspect-ratio: 3 / 2; }
.tm-media--4x3 { aspect-ratio: 4 / 3; }
.tm-media__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tm-media__ph img { width: 40%; height: auto; object-fit: contain; opacity: .35; }

/* ---------- Cards ---------- */
.tm-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tm-card__title { margin: 0; font-family: var(--tm-font-head); font-weight: 800; font-size: 21px; line-height: 1.22; }
.tm-ar .tm-card__title { font-weight: 700; font-size: 19px; line-height: 1.6; }
.tm-card__excerpt { margin: 0; font-size: 17px; line-height: 1.55; color: var(--tm-text); }

.tm-card--lead .tm-card__title { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -0.015em; margin-top: 8px; }
.tm-ar .tm-card--lead .tm-card__title { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.45; letter-spacing: 0; }
.tm-card--lead .tm-kicker { margin-top: 10px; font-size: 13px; }
.tm-card--lead .tm-card__excerpt { font-size: 20px; }
.tm-ar .tm-card--lead .tm-card__excerpt { font-size: 21px; line-height: 1.8; }

.tm-card--side { padding-bottom: 28px; border-bottom: 1px solid var(--tm-line); }
.tm-card--side:last-child { padding-bottom: 0; border-bottom: 0; }
.tm-card--side .tm-card__title { font-size: 22px; line-height: 1.2; }
.tm-ar .tm-card--side .tm-card__title { font-size: 20px; line-height: 1.6; }

.tm-card--dark .tm-card__title { font-size: 21px; }
.tm-card--dark .tm-card__title a { color: #fff; }
.tm-card--dark .tm-card__title a:hover { color: var(--tm-red-soft); }
.tm-card--dark .tm-meta { color: var(--tm-on-dark-muted); font-weight: 600; font-size: 13px; }

.tm-card--row { flex-direction: row; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--tm-line); }
.tm-card--row .tm-media { width: 104px; height: 78px; flex-shrink: 0; border-radius: 4px; }
.tm-card--row .tm-card__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.tm-ar .tm-card--row .tm-card__title { font-size: 15px; line-height: 1.6; }
.tm-card--row .tm-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* ---------- Grids ---------- */
.tm-row { display: flex; flex-wrap: wrap; gap: 40px; }
.tm-col-main { flex: 2 1 560px; min-width: 0; }
.tm-col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.tm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .tm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 600px) { .tm-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.tm-grid-3 > * { min-width: 0; }

.tm-home-top { padding-block: 32px 48px; }

/* ---------- Dossier band ---------- */
.tm-band { background: var(--tm-ink); color: #fff; }
.tm-band .tm-wrap { padding-block: 56px 64px; }
.tm-band__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.tm-band__kicker { font-family: var(--tm-font-ui); font-size: 13px; font-weight: 800; color: var(--tm-red-soft); }
.tm-fr .tm-band__kicker { letter-spacing: .14em; text-transform: uppercase; }
.tm-band__title { margin: 8px 0 0; font-family: var(--tm-font-head); font-weight: 900; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.015em; }
.tm-ar .tm-band__title { line-height: 1.4; letter-spacing: 0; }
.tm-band__intro { margin: 12px 0 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--tm-on-dark); }
.tm-band .tm-grid-3 { margin-top: 36px; }
.tm-pill-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid currentColor; border-radius: 999px; font-family: var(--tm-font-ui); font-size: 15px; font-weight: 700; }
.tm-band .tm-pill-link { color: #fff; }
.tm-band .tm-pill-link:hover { color: var(--tm-red-soft); }

/* ---------- Lists ---------- */
.tm-feed { list-style: none; margin: 0; padding: 0; }
.tm-feed li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--tm-line); }
.tm-feed__date { flex: 0 0 80px; font-family: var(--tm-font-ui); font-size: 14px; font-weight: 700; color: var(--tm-muted); }
.tm-feed__title { margin-top: 4px; font-family: var(--tm-font-head); font-size: 18px; font-weight: 700; line-height: 1.3; }
.tm-ar .tm-feed__title { line-height: 1.6; }

.tm-sections { padding-block: 8px 64px; }
.tm-sections .tm-section { margin-top: 56px; }
.tm-sections .tm-grid-3 { margin-top: 24px; }

/* ---------- Boxes ---------- */
.tm-box { padding: 28px; border-radius: 8px; background: var(--tm-sand); }
.tm-box--outline { background: transparent; border: 1.5px solid var(--tm-ink); display: flex; flex-direction: column; gap: 12px; }
.tm-box__title { margin: 0; font-family: var(--tm-font-head); font-weight: 900; font-size: 21px; line-height: 1.3; }
.tm-box__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--tm-text); }
.tm-box__cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tm-font-ui); font-size: 15px; font-weight: 700; color: var(--tm-red); }
.tm-ad { min-height: 250px; border: 1px dashed #B5AFA8; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-family: var(--tm-font-ui); font-size: 13px; font-weight: 600; color: var(--tm-muted); }
.tm-widget + .tm-widget { margin-top: 28px; }
.tm-widget .widget-title, .tm-widget h2 { margin: 0 0 12px; font-family: var(--tm-font-head); font-size: 20px; font-weight: 900; }

/* Facebook band */
.tm-facebook { padding-block: 0 64px; }
.tm-facebook__body { margin-top: 24px; }

/* ---------- Single ---------- */
.tm-single { padding-block: 28px 64px; }
.tm-crumbs { font-family: var(--tm-font-ui); font-size: 14px; color: var(--tm-muted); }
.tm-crumbs a:last-child { color: var(--tm-red); font-weight: 700; }
.tm-single__head { max-width: 920px; margin-top: 20px; }
.tm-single__title { margin: 10px 0 0; font-family: var(--tm-font-head); font-weight: 900; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.tm-ar .tm-single__title { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.4; letter-spacing: 0; }
.tm-single__dek { margin: 18px 0 0; font-size: 22px; line-height: 1.5; color: var(--tm-text); }
.tm-ar .tm-single__dek { font-size: 23px; line-height: 1.75; }
.tm-single__meta { margin-top: 22px; padding-block: 14px; border-top: 1px solid var(--tm-line); border-bottom: 1px solid var(--tm-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--tm-font-ui); font-size: 14px; color: var(--tm-muted); }
.tm-single__meta strong { color: var(--tm-ink); }
.tm-share { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-share a, .tm-share button { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--tm-sand); color: var(--tm-ink); font-family: var(--tm-font-ui); font-size: 14px; font-weight: 700; cursor: pointer; }
.tm-share a:hover, .tm-share button:hover { background: var(--tm-ink); color: #fff; }
.tm-single__grid { margin-top: 32px; gap: 56px; }
.tm-single__article { max-width: 780px; }
.tm-figure { margin: 0; }
.tm-figure figcaption { margin-top: 10px; font-family: var(--tm-font-ui); font-size: 14px; color: var(--tm-muted); }

/* Article body (block editor content) */
.tm-content { margin-top: 32px; font-size: var(--tm-body-size); line-height: var(--tm-body-leading); }
.tm-content > * { margin-block: 0 22px; }
.tm-content h2, .tm-content h3, .tm-content h4 { font-family: var(--tm-font-head); line-height: 1.25; margin-top: 36px; }
.tm-ar .tm-content h2, .tm-ar .tm-content h3 { line-height: 1.6; }
.tm-content h2 { font-size: 28px; font-weight: 900; }
.tm-content h3 { font-size: 23px; font-weight: 800; }
.tm-content a { color: var(--tm-red); text-decoration: underline; text-underline-offset: 3px; }
.tm-content ul, .tm-content ol { padding-inline-start: 1.3em; }
.tm-content li { margin-bottom: 8px; }
.tm-content blockquote, .tm-content .wp-block-quote, .tm-content .wp-block-pullquote { margin-inline: 0; padding: 8px 0; padding-inline-start: 28px; border-inline-start: 5px solid var(--tm-red); border-top: 0; border-bottom: 0; text-align: start; }
.tm-content blockquote p, .tm-content .wp-block-pullquote p { margin: 0; font-family: var(--tm-font-head); font-weight: 800; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; }
.tm-ar .tm-content blockquote p { line-height: 1.65; }
.tm-content blockquote cite, .tm-content .wp-block-quote cite { display: block; margin-top: 12px; font-family: var(--tm-font-ui); font-size: 15px; font-style: normal; color: var(--tm-muted); }
.tm-content figure { margin-inline: 0; }
.tm-content figcaption, .tm-content .wp-element-caption { font-family: var(--tm-font-ui); font-size: 14px; color: var(--tm-muted); }
.tm-content img { border-radius: var(--tm-radius); }
.tm-content iframe, .tm-content .wp-block-embed__wrapper { max-width: 100%; }
.tm-content .alignwide { margin-inline: 0; }
.tm-content table { width: 100%; border-collapse: collapse; font-family: var(--tm-font-ui); font-size: 16px; }
.tm-content th, .tm-content td { padding: 10px; border-bottom: 1px solid var(--tm-line); text-align: start; }

.tm-other { margin-top: 40px; padding: 20px 24px; border-radius: 8px; border: 1.5px solid var(--tm-ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tm-other__q { font-family: var(--tm-font-ui); font-size: 17px; font-weight: 700; }
.tm-other__cta { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--tm-ink); color: #fff !important; font-size: 15px; font-weight: 700; }
.tm-related { margin-top: 64px; }
.tm-related .tm-grid-3 { margin-top: 24px; }
.tm-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--tm-font-ui); font-size: 14px; }
.tm-tags a { padding: 6px 12px; border-radius: 999px; background: var(--tm-sand); font-weight: 600; }

/* ---------- Archive ---------- */
.tm-archive { padding-block: 32px 64px; }
.tm-archive__head { margin-bottom: 32px; }
.tm-archive__title { margin: 6px 0 0; font-family: var(--tm-font-head); font-weight: 900; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.tm-archive__desc { margin-top: 10px; max-width: 720px; font-size: 18px; color: var(--tm-text); }
.tm-archive .tm-grid-3 { row-gap: 40px; }
.tm-pagination { margin-top: 48px; font-family: var(--tm-font-ui); }
.tm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--tm-line); font-weight: 700; }
.tm-pagination .page-numbers.current { background: var(--tm-ink); color: #fff; border-color: var(--tm-ink); }
.tm-empty { padding: 48px 0; font-size: 19px; color: var(--tm-text); }

/* ---------- Footer ---------- */
.tm-stripe { display: block; width: 100%; height: 18px; }
.tm-ar .tm-stripe { transform: scaleX(-1); }
.tm-footer { background: var(--tm-ink); color: var(--tm-on-dark); font-family: var(--tm-font-ui); }
.tm-footer .tm-wrap { padding-block: 56px 32px; }
.tm-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.tm-footer__brand { flex: 1.4 1 280px; min-width: 0; }
.tm-footer__brand img { height: 64px; width: auto; }
.tm-footer__about { margin: 18px 0 20px; max-width: 360px; font-family: var(--tm-font-body); font-size: 16px; line-height: 1.6; }
.tm-ar .tm-footer__about { font-size: 18px; line-height: 1.7; }
.tm-footer__col { flex: 1 1 170px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.tm-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tm-footer__head { font-size: 13px; font-weight: 800; color: #fff; }
.tm-fr .tm-footer__head { letter-spacing: .1em; text-transform: uppercase; }
.tm-ar .tm-footer__head { font-size: 14px; }
.tm-footer a:hover { color: #fff; text-decoration: underline; }
.tm-ltr { direction: ltr; unicode-bidi: isolate; }
.tm-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3A3632; font-size: 13px; color: var(--tm-on-dark-muted); }

/* WordPress core classes */
.alignleft { float: inline-start; margin-inline-end: 1.5em; }
.alignright { float: inline-end; margin-inline-start: 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--tm-muted); }
.sticky, .bypostauthor { }

/* Texte latin (téléphones, e-mail, liens vers l'édition française) dans l'édition arabe */
.tm-ar .tm-ltr, .tm-ar [lang="fr"][dir="ltr"] { text-align: right; }

/* ---------- Sur Facebook ---------- */
.tm-facebook { padding-block: 56px 72px; border-top: 1px solid var(--tm-line); }
.tm-fb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-bottom: 12px; border-bottom: 3px solid var(--tm-ink); }
.tm-fb-head .tm-fb-title { border-bottom: 0; padding-bottom: 0; margin-top: 6px; }
.tm-fb-head .tm-pill-link { color: var(--tm-ink); }
.tm-fb-head .tm-pill-link:hover { color: var(--tm-red); }
.tm-fb-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 1100px) { .tm-fb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .tm-fb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 480px) { .tm-fb-grid { grid-template-columns: minmax(0, 1fr); } }
.tm-fb-card { min-width: 0; }
.tm-fb-card[lang="ar"] { font-family: var(--tm-font-ar-ui); text-align: right; }
.tm-fb-card[lang="fr"] { font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; text-align: left; }
.tm-fb-card__link { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.tm-fb-card__link:hover .tm-fb-card__title { color: var(--tm-red); }
.tm-fb-card__link:hover .tm-media img { transform: scale(1.03); }
.tm-fb-card .tm-media img { transition: transform .3s ease; }
.tm-fb-card__title { font-weight: 800; font-size: 16px; line-height: 1.3; color: var(--tm-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tm-fb-card[lang="ar"] .tm-fb-card__title { font-weight: 700; line-height: 1.65; }
.tm-fb-card__text { font-family: var(--tm-font-body); font-size: 15px; line-height: 1.55; color: var(--tm-text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.tm-fb-card[lang="fr"] .tm-fb-card__text { font-family: 'Source Serif 4', Georgia, serif; }
.tm-fb-card[lang="ar"] .tm-fb-card__text { font-family: var(--tm-font-ar-body); font-size: 16px; line-height: 1.8; }
.tm-fb-card__meta { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--tm-red); }
.tm-fb-card[lang="ar"] .tm-fb-card__meta { font-family: var(--tm-font-ar-ui); }
.tm-js .tm-fb-extra { display: none; }
.tm-js .tm-fb-open .tm-fb-extra { display: block; }
.tm-fb-more-wrap { margin: 36px 0 0; text-align: center; }
.tm-fb-more { background: var(--tm-ink); }
.tm-fb-more:hover { background: var(--tm-red); }
html:not(.tm-js) .tm-fb-more-wrap { display: none; }
