/* =============================================================================
   Pages arabes (/ar/) : polices et sens de lecture droite-gauche.
   Charge uniquement par les pages arabes (apres les feuilles du site).
   ============================================================================= */

/* Polices arabes (SIL OFL 1.1), sous-ensemble arabe seulement : elles s ajoutent
   aux familles du site sous le meme nom. Les caracteres latins (marques,
   modeles, chiffres) restent en Fraunces / Manrope ; les caracteres arabes
   prennent Noto Naskh Arabic (titres, a la place de Fraunces) et IBM Plex Sans
   Arabic (texte et interface, a la place de Manrope). */
@font-face { font-family: 'Fraunces Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/_i18n/fonts/noto-naskh-arabic-wght.woff2) format('woff2-variations'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Fraunces Opsz'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/_i18n/fonts/noto-naskh-arabic-wght.woff2) format('woff2-variations'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 100 449; src: url(/_i18n/fonts/ibm-plex-sans-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 450 549; src: url(/_i18n/fonts/ibm-plex-sans-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 550 900; src: url(/_i18n/fonts/ibm-plex-sans-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
/* Phase 30 : les polices de secours aux metriques de Manrope (morelli-ds.css)
   modifient la hauteur des lignes du texte arabe ; les pages arabes, sans
   decalage mesure au chargement, gardent la pile de polices d origine. */
html[lang='ar'] {
  --m-sans: "Manrope Variable", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --m-sans-caps: var(--m-sans);
}

/* L ecriture arabe est liee : pas d interlettrage, pas d italique synthetique. */
html[lang='ar'] body, html[lang='ar'] body * { letter-spacing: 0 !important; }
html[lang='ar'] :is(em, i, cite, address) { font-style: normal; }
/* Les signes diacritiques demandent un peu plus d interligne dans les titres. */
html[lang='ar'] :is(h1, h2, h3, h4) { line-height: 1.32; }
html[lang='ar'] body { line-height: 1.75; }

/* Elements toujours gauche-droite : numeros, e-mails, champs techniques. */
html[dir='rtl'] :is(input[type='tel'], input[type='email'], input[type='number'], input[type='date'], input[type='time']) { direction: ltr; text-align: right; }
html[dir='rtl'] a[href^='tel:'], html[dir='rtl'] a[href^='mailto:'] { direction: ltr; unicode-bidi: isolate; }

/* Fleches d action : orientees dans le sens de lecture. */
html[dir='rtl'] svg:has(> use[href='#m-i-arrow']) { transform: scaleX(-1); }
