/* Riva Photography Courchevel : réglages des langues ajoutées (pt, ar, ru, zh), chargé uniquement sur /pt/ /ar/ /ru/ /zh/.
   Les polices Riva gardent les lettres latines ; les glyphes arabes et chinois passent sur Amiri / Noto Kufi Arabic
   et Noto Serif SC / Noto Sans SC (chargées dans le <head> de ces pages). */

/* ---------- Chinois simplifié ---------- */
html[lang="zh-Hans"] {
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html[lang="zh-Hans"] .hero-fullscreen .hero-big-title span,
html[lang="zh-Hans"] .page-hero h1 em,
html[lang="zh-Hans"] body.home-float:not([data-city]) .hero-float-title,
html[lang="zh-Hans"] body.home-float[data-city] .hero-float-title,
html[lang="zh-Hans"] .loc-spots li strong, html[lang="zh-Hans"] .ce-title {
  font-family: "Playfair Display", "Noto Serif SC", "Songti SC", serif !important;
}
html[lang="zh-Hans"] .loc-more summary, html[lang="zh-Hans"] .ce-when, html[lang="zh-Hans"] .ce-note {
  font-family: "Inter", "Noto Sans SC", "PingFang SC", sans-serif;
}
/* Pas d'italique synthétique en chinois : l'accent passe par la couleur déjà définie sur <em> */
html[lang="zh-Hans"] body * { font-style: normal !important; }
html[lang="zh-Hans"] body { line-break: strict; word-break: normal; }
html[lang="zh-Hans"] p, html[lang="zh-Hans"] li { line-height: 1.8; }

/* ---------- Arabe ---------- */
html[lang="ar"] {
  --serif: "Cormorant Garamond", "Amiri", "Geeza Pro", serif;
  --sans: "Inter", "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", sans-serif;
}
html[lang="ar"] .hero-fullscreen .hero-big-title span,
html[lang="ar"] .page-hero h1 em,
html[lang="ar"] body.home-float:not([data-city]) .hero-float-title,
html[lang="ar"] body.home-float[data-city] .hero-float-title,
html[lang="ar"] .loc-spots li strong, html[lang="ar"] .ce-title {
  font-family: "Playfair Display", "Amiri", serif !important;
}
html[lang="ar"] .loc-more summary, html[lang="ar"] .ce-when, html[lang="ar"] .ce-note {
  font-family: "Inter", "Noto Kufi Arabic", sans-serif;
}
/* L'espacement entre lettres casse la liaison des lettres arabes ; pas de majuscules ni d'italique en arabe */
html[lang="ar"] body *, html[lang="ar"] body *::before, html[lang="ar"] body *::after { letter-spacing: 0 !important; }
html[lang="ar"] body * { font-style: normal !important; }
html[lang="ar"] p, html[lang="ar"] li { line-height: 1.85; }

/* Sens de lecture : la page est en dir="rtl". Les carrousels gardent leur mécanique gauche-droite
   (le défilement et les flèches sont calculés en LTR dans script.js), seul leur contenu se lit de droite à gauche. */
html[dir="rtl"] .hc-track, html[dir="rtl"] .hero-cats-list, html[dir="rtl"] .reviews-scroll,
html[dir="rtl"] .occasions-scroll, html[dir="rtl"] .cities-scroll, html[dir="rtl"] .team-bts-track,
html[dir="rtl"] .sig-chips, html[dir="rtl"] .sig-deck { direction: ltr; }
html[dir="rtl"] .hc-track > *, html[dir="rtl"] .hero-cats-list > *, html[dir="rtl"] .reviews-scroll > *,
html[dir="rtl"] .occasions-scroll > *, html[dir="rtl"] .cities-scroll > *, html[dir="rtl"] .team-bts-track > *,
html[dir="rtl"] .sig-chips > *, html[dir="rtl"] .sig-deck > * { direction: rtl; }
/* Numéros de téléphone, prix et chiffres restent lisibles de gauche à droite */
html[dir="rtl"] .trust-price, html[dir="rtl"] .pricing-row-price, html[dir="rtl"] .kb-fig { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .loc-more { text-align: right; }
html[dir="rtl"] .ce-note { margin-left: 0; margin-right: 10.5rem; }
@media (max-width: 720px) { html[dir="rtl"] .ce-note { margin-right: 0; } }

/* ---------- Russe ---------- */
/* Les mots russes sont plus longs : on évite les débordements dans les titres et les boutons */
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3 { overflow-wrap: break-word; hyphens: auto; }
html[lang="pt"] h1, html[lang="pt"] h2, html[lang="pt"] h3 { overflow-wrap: break-word; }

/* Correctifs après captures (2026-10-12) */
html[lang="zh-Hans"] .hero-azur, html[lang="ar"] .hero-azur { font-style: normal !important; }
html[dir="rtl"] .hero-caro, html[dir="rtl"] .hero-caro-zone { direction: ltr; }
html[dir="rtl"] .hc-lbl { direction: rtl; }
html[lang="zh-Hans"] body.home-float .hero-float-title .hero-azur,
html[lang="ar"] body.home-float .hero-float-title .hero-azur { font-style: normal !important; }
