/* onMuve · site en arabe : corrections droite à gauche (chargée après les autres styles).
   Ne retourne pas : téléphone de démo, cartes/plans, photos, logos, prix, noms de marque. */

/* ---------- Polices arabes ---------- */
html[dir=rtl] body,
html[dir=rtl] body :is(h1,h2,h3,h4,p,a,span,b,small,strong,em,i,li,div,button,input,select,option,textarea,label,summary,blockquote,figcaption,nav,footer){
 font-family:'IBM Plex Sans Arabic','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
 letter-spacing:0!important}
/* mot manuscrit bleu des titres : calligraphie arabe (ruqʿa) au lieu de Caveat */
html[dir=rtl] em.x-main,
html[dir=rtl] .s-titre em{font-family:'Aref Ruqaa','IBM Plex Sans Arabic',serif!important;font-weight:700!important;line-height:1.1!important;font-size:1.12em!important}
html[dir=rtl] .s-titre em{font-size:1.18em!important}

/* ---------- À ne pas retourner : téléphone de démo, sélecteur d'heure, plan, défilé d'avis, photo des catégories ---------- */
html[dir=rtl] #tel,
html[dir=rtl] .rs-roue,
html[dir=rtl] .vx-attr,
html[dir=rtl] .c3d,
html[dir=rtl] .av-rang{direction:ltr}
html[dir=rtl] .av-c{direction:rtl;text-align:right}
html[dir=rtl] .vx-attr{unicode-bidi:isolate}
/* bloc pleine largeur (100vw) : en RTL la marge gauche est ignorée, on passe par la droite */
html[dir=rtl] .c3d{margin-left:0!important;margin-right:calc(50% - 50vw)!important}
/* textes latins seuls (e-mail, prix) */
html[dir=rtl] input[type=email]{direction:ltr;text-align:right}
html[dir=rtl] input[type=email]::placeholder{text-align:right}

/* ---------- Barre du haut et menus déroulants ---------- */
html[dir=rtl] .s-logo{background-position:right center}
html[dir=rtl] .nv-b:after{transform-origin:right}
html[dir=rtl] .nv-pan-in{text-align:right}
html[dir=rtl] .nv-veh i{right:auto;left:13px}
html[dir=rtl] .nv-veh:hover i{transform:translateX(-3px)}
html[dir=rtl] .nv-cote{border-left:0;border-right:1px solid #ececf0}
html[dir=rtl] .nv-lg-pan{right:auto;left:-2px}
html[dir=rtl] .nv-lg-it small{margin-left:0;margin-right:4px}
html[dir=rtl] .qr-pan{right:auto;left:-60px}
html[dir=rtl] .pd2 .pd2-nvlg .nv-lg-pan{left:auto;right:0}
/* flèche « trajet » des listes : pointe vers la gauche */
html[dir=rtl] svg:has(> path[d="M3 12h18M13 6l6 6-6 6"]){transform:scaleX(-1)}

/* ---------- Menu téléphone ---------- */
html[dir=rtl] .mm-g summary i{border-right:0;border-left:2px solid #8e8e93;transform:rotate(-45deg) translate(2px,-2px)}
html[dir=rtl] .mm-g[open] summary i{transform:rotate(135deg)}

/* ---------- Sections ---------- */
html[dir=rtl] .x-chauf .x-h,html[dir=rtl] .x-chauf .x-p{text-align:right;margin-left:auto;margin-right:0}
html[dir=rtl] .ch-duo{margin-right:0;margin-left:-24px}
html[dir=rtl] .b-offres em{margin-left:0;margin-right:auto}
html[dir=rtl] .av-c small{margin-left:0;margin-right:auto}
html[dir=rtl] .pg-note.g{text-align:right;margin-left:auto;margin-right:0}
html[dir=rtl] .fq ul,html[dir=rtl] .pg-corps ul,html[dir=rtl] .pg-corps ol{padding-left:0;padding-right:20px}

/* ---------- Formulaires ---------- */
html[dir=rtl] .fm{text-align:right}
html[dir=rtl] .fm select{background-position:left 16px center;padding-right:16px;padding-left:40px}
html[dir=rtl] .pg-boite.fm > p.fm-ok,html[dir=rtl] .pg-boite.fm > p.fm-msg{text-align:right}
/* champ piège : hors écran sans créer de défilement horizontal en RTL */
html[dir=rtl] .fm-piege{left:auto!important;right:0!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0;pointer-events:none}
html[dir=rtl] .vx{text-align:right}
html[dir=rtl] .vx-ch span,html[dir=rtl] .vx-aide,html[dir=rtl] .vx-ok{padding-left:0;padding-right:4px}

/* ---------- Message « Bientôt » ---------- */
html[dir=rtl] .toast{padding:12px 18px 12px 12px}

/* prix de la démo (« 7 € », « +1 € ») : gardés dans l'ordre latin */
html[dir=rtl] [data-px],html[dir=rtl] [data-px-plus]{direction:ltr;unicode-bidi:isolate}
/* interrupteurs des cartes (hors téléphone) : activé = bouton à gauche, comme une app en arabe */
html[dir=rtl] .x-bento .tg{transform:scaleX(-1)}
/* largeur du message : sur une ligne tant que possible (sinon il se replie sur la moitié de l'écran) */
html[dir=rtl] .toast{width:max-content}
