/* Pigment Caché · العربية (RTL) — chargé uniquement sur /ar/ */

/* polices arabes auto-hébergées (SIL OFL) : utilisées seulement pour les caractères arabes */
@font-face{font-family:"PC Naskh";src:url(fonts/noto-naskh-arabic-arabic-400-normal.woff2) format("woff2");font-weight:300 400;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"PC Naskh";src:url(fonts/noto-naskh-arabic-arabic-500-normal.woff2) format("woff2");font-weight:500 700;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"PC Plex Arabic";src:url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");font-weight:300 400;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"PC Plex Arabic";src:url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"PC Plex Arabic";src:url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");font-weight:600 800;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}

html[dir="rtl"]{
  --serif:"Cormorant Garamond","Cormorant","PC Naskh",Georgia,serif;
  --sans:"Inter","PC Plex Arabic",-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;
  /* pas de faux italique ni de faux gras sur l'arabe ; Cormorant garde son vrai italique (Caché) */
  font-synthesis:none;
}
html[dir="rtl"] body{font-family:var(--sans)}

/* l'espacement des lettres casse la liaison des lettres arabes */
html[dir="rtl"] body *:not(.pc-logo):not(.pc-logo *){letter-spacing:0!important}

/* hauteurs de ligne adaptées à l'arabe (les ascendantes/descendantes sont plus hautes) */
html[dir="rtl"] :is(h1:not(.h-hero__title),h2,h3,h4,h5,h6,blockquote,figcaption):not([dir="ltr"]){line-height:1.35}
html[dir="rtl"] :is(p,li,dd,dt,label,td,th){line-height:1.9}

/* flèches : pointent vers la gauche en arabe */
html[dir="rtl"] .arr{display:inline-block;transform:scaleX(-1)}
html[dir="rtl"] .pc-link:hover .arr,
html[dir="rtl"] .pc-btn:hover .arr,
html[dir="rtl"] .pc-btn:focus-visible .arr{transform:scaleX(-1) translateX(4px)}
html[dir="rtl"] .hw-card:hover .hw-view .arr{transform:scaleX(-1) translateX(3px)}

/* téléphones, e-mails, codes : toujours de gauche à droite */
html[dir="rtl"] :is(a[href^="tel:"],a[href^="mailto:"],a[href*="wa.me"]){direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] :is(input[type="email"],input[type="tel"],input[type="url"],input[name*="postcode"],input[name*="card"],#pwgc-redeem-gift-card-number){direction:ltr;text-align:right}
html[dir="rtl"] input[type="email"]::placeholder{direction:rtl}

/* sélecteur de langue */
html[dir="rtl"] .pcl-switch__menu{right:auto;left:0}
html[dir="rtl"] .pc-header__lang{margin-left:0;margin-right:auto}
html[dir="rtl"] .pcl-switch__menu a{text-align:right}

/* libellés en pseudo-éléments du thème */
html[dir="rtl"] :is(.g-form .quantity,td.actions .coupon,#wc-stripe-express-checkout-element)::before{letter-spacing:0;text-transform:none}
html[dir="rtl"] body.woocommerce-cart.pc td.actions .coupon::before,
html[dir="rtl"] body.woocommerce-checkout.pc #wc-stripe-express-checkout-element::before{left:auto;right:0}

/* flèches du visualiseur */
html[dir="rtl"] :is(.pcv-cta__a,.pcv-choice__a){transform:scaleX(-1)}
html[dir="rtl"] :is(.pcv-cta:hover,.pcv-cta:focus-visible) .pcv-cta__a{transform:scaleX(-1) translateX(5px)}

/* noms latins en italique dans une phrase arabe : bloc isolé (ponctuation à la bonne place) */
html[dir="rtl"] :is(em,i,cite){unicode-bidi:isolate}
