/* Arabic (RTL) version: loaded after style-rtl.css on /ar/ pages */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap");

:root {
  --font: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-heading: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;

}

html[dir="rtl"] body {
  line-height: 1.8;
}

/* Arabic letters must stay joined: no tracking, no uppercase, no fake italics */
html[dir="rtl"] *,
html[dir="rtl"] *::before,
html[dir="rtl"] *::after {
  letter-spacing: 0 !important;
}
html[dir="rtl"] * {
  text-transform: none !important;
}
html[dir="rtl"] em,
html[dir="rtl"] i,
html[dir="rtl"] cite {
  font-style: normal;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  line-height: 1.5;
  font-weight: 700;
}

/* Latin fragments (emails, acronyms, phone numbers) keep their own direction */
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"] {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"] {
  text-align: right;
}

/* Mirror the next / back arrow icons */
html[dir="rtl"] svg:has(polyline[points="12 5 19 12 12 19"]),
html[dir="rtl"] svg:has(polyline[points="12 19 5 12 12 5"]) {
  transform: scaleX(-1);
}

/* Cairo has tall ascenders/descenders: give the logo lines room */
html[dir="rtl"] .logo-name {
  line-height: 1.35;
  font-weight: 700;
}
html[dir="rtl"] .logo-tag {
  line-height: 1.5;
  margin-top: 0.125rem;
}
@media (max-width: 767px) {
  html[dir="rtl"] .header .logo-name {
    font-size: 1.125rem;
    white-space: nowrap;
  }
  html[dir="rtl"] .header .logo-tag {
    font-size: 0.6875rem;
    white-space: nowrap;
  }
}
html[dir="rtl"] .nav-actions .btn,
html[dir="rtl"] .lang-btn {
  line-height: 1.2;
}
html[dir="rtl"] .nav-actions .btn {
  padding-block: 0.6rem;
}

/* Hero titles: the Latin display line-height (≈1.05) clips Arabic letters */
html[dir="rtl"] h1,
html[dir="rtl"] h1 * {
  line-height: 1.45 !important;
  font-style: normal !important;
}
html[dir="rtl"] .text-gradient {
  padding-bottom: 0.1em;
}

/* Le nom de marque reste en lettres latines (Psychologue24) */
html[dir="rtl"] .logo-name {
  direction: ltr;
  unicode-bidi: isolate;
}
