/* Toumaï Maps -- Arabic version: Cairo font and the right-to-left mirror of
   the rules of chrome.css, accueil.css, pages.css and site.css that use a
   physical side (left/right). Loaded only by the Arabic pages and by the
   editor in Arabic, after the other stylesheets. Cairo: SIL OFL (fonts/OFL-Cairo.txt). */
@font-face {
  font-family: "Cairo";
  src: url("fonts/cairo-arabic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
[lang="ar"] body, [lang="ar"] button, [lang="ar"] input, [lang="ar"] select, [lang="ar"] textarea {
  font-family: "Cairo", "Rubik", system-ui, sans-serif;
}
/* Latin text kept as is inside Arabic pages: brand, numbers, phone, e-mail */
.ltr, bdi[dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
[lang="ar"] .brand > span:first-of-type { font-family: "Rubik", system-ui, sans-serif; }
/* Arabic has no capitals: uppercase only spaces letters out on Latin text */
[lang="ar"] .s-head h2, [lang="ar"] .legal-text h2, [lang="ar"] h2 { letter-spacing: 0; }

/* chrome.css */
@media (max-width: 960px) { [dir="rtl"] .lang-switch { margin-left: 0; margin-right: auto; } }
[dir="rtl"] .wa { right: auto; left: 18px; }

/* accueil.css */
[dir="rtl"] .stat { border-right: 0; border-left: 1px solid rgba(255,255,255,.15); }
[dir="rtl"] .stat:last-child { border-left: 0; }
[dir="rtl"] .s-head h2 { border-left: 0; border-right: 6px solid var(--yellow); padding-left: 0; padding-right: 16px; }
[dir="rtl"] .custom { border-left: 0; border-right: 5px solid var(--t-ris); }
[dir="rtl"] .step { border-left: 0; border-right: 5px solid var(--navy); }
[dir="rtl"] .step .n { left: auto; right: 22px; }
[dir="rtl"] .map-card .badge { left: auto; right: 10px; }
[dir="rtl"] .map-card .soon { right: auto; left: 10px; }
[dir="rtl"] .prov { text-align: right; }
[dir="rtl"] summary::after { right: auto; left: 20px; }
[dir="rtl"] .s-head p { margin-left: auto; margin-right: 0; }
[dir="rtl"] .band .step { border-right-color: var(--yellow); }
[dir="rtl"] .band > .wrap > p { text-align: right; margin-left: auto; margin-right: 0; }
[dir="rtl"] .band summary::after, [dir="rtl"] summary::after { margin-left: 0; }

/* pages.css */
[dir="rtl"] .choice ul, [dir="rtl"] .domain ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .depts div { border-left: 0; border-right: 4px solid var(--t-loc); }
[dir="rtl"] .legal-text h2 { border-left: 0; border-right: 6px solid var(--yellow); padding-left: 0; padding-right: 12px; }

/* site.css (payment page) */
[dir="rtl"] .card h2, [dir="rtl"] body > h2 { border-left: 0; border-right: 8px solid #eab308; padding-left: 0; padding-right: 16px; }
[dir="rtl"] .price s { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .soon-badge { left: auto; right: 10px; }

/* Editor (web/index.html?lang=ar): the panel is mirrored, the map sheet
   keeps the French layout (owner's choice A, 03/11/2026); only its texts run
   right to left, aligned right (centred ones stay centred). */
[dir="rtl"] #map { direction: ltr; font-family: "Cairo", "Rubik", sans-serif; }
[dir="rtl"] #map .el-title-main, [dir="rtl"] #map .el-title-sub, [dir="rtl"] #map .carton-name,
[dir="rtl"] #map #el-source span, [dir="rtl"] #map #el-crs span, [dir="rtl"] #map #el-author span,
[dir="rtl"] #map .brand-text { direction: rtl; unicode-bidi: plaintext; }
[dir="rtl"] #map #el-legend, [dir="rtl"] #map #legend-body { direction: rtl; text-align: right; }

/* Custom-map price grid (commander.html#tarifs-sur-mesure) mirrored */
[dir="rtl"] .price-table caption, [dir="rtl"] .price-table thead th:first-child, [dir="rtl"] .price-table tbody th { text-align: right; }
[dir="rtl"] .price-table th, [dir="rtl"] .price-table td { text-align: left; }
[dir="rtl"] .price-extras ul { padding-left: 0; padding-right: 20px; }
@media (max-width: 640px) { [dir="rtl"] .price-table td { text-align: right; } }
[dir="rtl"] .grid-promo { border-left: 0; border-right: 4px solid var(--yellow); }
[dir="rtl"] .price-table td s { margin-right: 0; margin-left: 4px; }
/* design « SIRCI aux couleurs de Toumaï » (18/11/2026) en arabe */
[dir="rtl"] .hero { text-align: right; }
[dir="rtl"] .pa .ic { border-right: 0; border-left: 3px solid #0b1f3a; }
[dir="rtl"] .stat { border-right: 0; border-left: 1px solid #c9d6e2; }
[dir="rtl"] .stat:last-child { border-left: 0; }
[dir="rtl"] .s-head h2 { border: 0; padding: 0; }
[dir="rtl"] .s-head h2::before { display: none; }
[dir="rtl"] .s-head p { margin: 0; }
