/* Version arabe : chargée après styles-rtl.css (styles.css retourné par rtlcss, voir outils-generation-site/build_rtl.py).
   Police arabe libre (IBM Plex Sans Arabic, licence OFL) ; les caractères latins et les chiffres restent en DIN (déclarée plus bas sous le nom « DIN Arabe »). */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../assets/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../assets/fonts/IBMPlexSansArabic-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
/* La police DIN du site retourne elle-même parenthèses, crochets et guillemets en chevrons (fonction « rtla ») : dans un texte de droite à
   gauche le navigateur les retourne déjà, ils s'affichaient donc à l'envers, « )texte( ». Pour l'arabe, DIN est déclarée sous un autre nom,
   sans ces caractères : ils viennent alors de la police suivante de la liste, qui les affiche dans le bon sens. */
@font-face { font-family: "DIN Arabe"; src: url("../assets/fonts/NeoDIN-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0020-0027, U+002A-003B, U+003D, U+003F-005A, U+005C, U+005E-007A, U+007C, U+007E-00AA, U+00AC-00BA, U+00BC-1FFF, U+2000-2038, U+203B-2BFF; }
@font-face { font-family: "DIN Arabe"; src: url("../assets/fonts/NeoDIN-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0020-0027, U+002A-003B, U+003D, U+003F-005A, U+005C, U+005E-007A, U+007C, U+007E-00AA, U+00AC-00BA, U+00BC-1FFF, U+2000-2038, U+203B-2BFF; }
html[lang="ar"] { --sh-font: "DIN Arabe", "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif; }
/* l'écriture arabe est liée : aucun espacement entre les lettres, pas de capitales */
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.75; }
/* titres : l'arabe monte et descend plus que le latin, l'interligne serré du site couperait les lettres */
html[lang="ar"] :is(h1, h2, h3, h4, .h-hero, .h-section) { line-height: 1.32; }
html[lang="ar"] .h-hero { line-height: 1.25; }
html[lang="ar"] :is(.eyebrow, .btn, .text-link, .main-nav a, .card h3) { line-height: 1.5; }
/* schémas et graphiques : dessinés de gauche à droite, ils gardent leur sens ; seuls les libellés sont en arabe */
html[lang="ar"] svg { direction: ltr; }
html[lang="ar"] svg text { unicode-bidi: plaintext; }
/* nombres suivis d'une unité latine, pourcentages, valeurs signées : gardés dans leur ordre de lecture (balises posées par finalize_lang.py) */
html[lang="ar"] bdi { unicode-bidi: isolate; }
/* flèches des boutons et des liens : vers la gauche */
html[lang="ar"] :is(.btn, .text-link, .cta, .rm-step-cta) i svg, html[lang="ar"] .cta__arrow svg { transform: scaleX(-1); }
/* champs de saisie techniques (adresses, nombres) : de gauche à droite */
html[lang="ar"] input[type="email"], html[lang="ar"] input[type="tel"], html[lang="ar"] input[type="url"], html[lang="ar"] input[type="number"] { direction: ltr; text-align: right; }
