/* ============================================================
   RTL Overrides — Arabic layout
   Chargé uniquement quand lang=ar (dir=rtl)
   ============================================================ */

body, * { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important; }

/* Direction globale */
body { direction: rtl; text-align: right; }

/* Navbar RTL — flux naturel droite → gauche */
nav ul { flex-direction: row; direction: rtl; align-items: center; }
nav ul li a.active { border-left: none; border-right: 3px solid #ff6b35; }
.nav-action { margin-left: 0 !important; margin-right: 10px; }

/* Lang switcher — alignement vertical + séparation */
.lang-switcher { display: flex; align-items: center; margin-right: 15px; }
.lang-switcher a { display: inline-flex; align-items: center; }
.flag-icon { margin-right: 0; margin-left: 6px; }

/* Header : logo à droite, nav à gauche */
.header-content { flex-direction: row-reverse; }

/* Article body */
.article-body ul, .article-body ol { padding-left: 0; padding-right: 20px; }
.page-body ul, .page-body ol { padding-left: 0; padding-right: 20px; }

/* Footer */
.footer-bottom { flex-direction: row-reverse; }

/* Stats bar */
.stats-grid { direction: ltr; } /* chiffres toujours LTR */

/* Breadcrumb */
.breadcrumb-nav { direction: rtl; }
.breadcrumb-nav span { margin: 0 8px; }

/* Form */
.form-group label { text-align: right; }

/* Blog back link */
.article-section .read-more { direction: rtl; }

/* Sidebar admin — non affecté (toujours LTR) */
.sidebar, .main-wrapper { direction: ltr; }
