/* ==========================================================================
   Adaptations RTL (arabe) — chargées uniquement quand la langue est RTL.
   Le thème est en LTR par défaut : ici on inverse uniquement ce qui doit l'être,
   sans toucher aux largeurs (sinon la grille déborde).
   ========================================================================== */

/* --- Typographie arabe --------------------------------------------------- */
body,
.brand, .brand-text,
h1, h2, h3, h4, h5, h6,
input, textarea, select, button,
.card-title, .section-title, .widget-title, .entry-content {
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}
body { font-size: 16.5px; line-height: 1.9; }
h1, h2, h3, h4 { line-height: 1.5; letter-spacing: 0; }
.entry-content { line-height: 2; }

/* --- Listes et citations ------------------------------------------------- */
ul, ol { padding-left: 0; padding-right: 1.5rem; }
blockquote { border-left: 0; border-right: 4px solid var(--accent); padding: .4rem 1.25rem .4rem 0; }
th, td { text-align: right; }

/* --- Accents directionnels ---------------------------------------------- */
.section-title { padding: .4rem 0 .5rem .9rem; }
.cat-card { border-left: 0; border-right: 4px solid var(--accent); }
.toc { border-left: 0; border-right: 4px solid var(--accent); }
.entry-content blockquote { border-left: 0; border-right: 4px solid var(--accent); }

/* Icônes directionnelles : on retourne les flèches */
.tool-tile-arrow, .breadcrumbs .sep { display: inline-block; transform: scaleX(-1); }

/* --- Champs de formulaire ------------------------------------------------ */
.search-form input[type="search"],
.field input, .field select, .field textarea { text-align: right; }

/* --- Marges internes qui doivent basculer -------------------------------- */
.rank-list li::before { text-align: center; }
.card-meta, .entry-meta { justify-content: flex-start; }

/* --- Pied de page -------------------------------------------------------- */
.footer-grid ul, .footer-col ul { padding-right: 0; }

/* --- Sécurité : rien ne doit dépasser horizontalement -------------------- */
html, body { overflow-x: hidden; }
.container { max-width: var(--maxw); }
