/* Alif et ses amis : page d'accueil pour les parents.
   Même identité que l'appli (lavande, indigo, bords épais, pastilles à ombre décalée), page statique sans build. */

@font-face{ font-family:"Lexend"; font-style:normal; font-weight:400 800; font-display:swap;
  src:url("../fonts/Lexend-latin.woff2") format("woff2"); }
@font-face{ font-family:"Noto Sans Arabic"; font-style:normal; font-weight:400 800; font-display:swap;
  src:url("../fonts/NotoSansArabic.woff2") format("woff2"); }
@font-face{ font-family:"Noto Naskh Arabic"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("../fonts/NotoNaskhArabic.woff2") format("woff2"); }

/* ---------- jetons ---------- */
:root{
  --fond:#F3EEFF; --surface:#FFFFFF; --encre:#241B4A; --encre-2:#4A4272;
  --accent:#3B2F9E; --accent-sur:#FFFFFF; --accent-doux:#E1D8F7; --bord:#C9BCEE;
  --sarcelle:#14797E; --or:#C98A0B; --or-texte:#8A5A00; --rose:#C93A69;
  --ombre-btn:rgba(36,27,74,.22); --motif:rgba(59,47,158,.07);
  --rayon:22px; --rayon-s:14px;
  --police:"Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-ar:"Noto Naskh Arabic", "Geeza Pro", "Segoe UI", serif;
  --marge:clamp(16px, 5vw, 40px);
  color-scheme:light dark;
}
@media (prefers-color-scheme: dark){
  :root{
    --fond:#16122F; --surface:#1F1A42; --encre:#EEEAFF; --encre-2:#BDB5E6;
    --accent:#A99BFF; --accent-sur:#16122F; --accent-doux:#2A2459; --bord:#3A3270;
    --sarcelle:#4FC3C8; --or:#E7B04A; --or-texte:#E7B04A; --rose:#F07A9E;
    --ombre-btn:rgba(0,0,0,.45); --motif:rgba(169,155,255,.07);
  }
}

/* ---------- base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:76px; -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--fond); color:var(--encre); font-family:var(--police); font-size:1.0625rem; line-height:1.6;
  overflow-x:hidden; }
img{ max-width:100%; height:auto; display:block; }
h1,h2,h3{ line-height:1.15; margin:0; font-weight:800; letter-spacing:-.01em; text-wrap:balance; }
p{ margin:0; }
a{ color:var(--accent); }
.ar{ font-family:var(--police-ar); font-weight:500; line-height:1.5; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
:focus-visible{ outline:3px solid var(--or); outline-offset:3px; border-radius:6px; }
.saut{ position:absolute; left:-999px; top:8px; background:var(--accent); color:var(--accent-sur); padding:10px 16px; border-radius:10px; z-index:100; }
.saut:focus{ left:8px; }

/* ---------- boutons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; min-height:56px; padding:0 30px; border-radius:999px;
  background:var(--accent); color:var(--accent-sur); font:inherit; font-weight:700; font-size:1.125rem; text-decoration:none;
  box-shadow:0 6px 0 var(--ombre-btn); transition:transform .12s, box-shadow .12s; }
.btn:hover{ transform:translateY(2px); box-shadow:0 4px 0 var(--ombre-btn); }
.btn:active{ transform:translateY(6px); box-shadow:0 0 0 var(--ombre-btn); }
.btn-petit{ min-height:44px; padding:0 18px; font-size:.95rem; white-space:nowrap; box-shadow:0 4px 0 var(--ombre-btn); }
.lien-sec{ display:inline-flex; align-items:center; min-height:44px; font-weight:600; color:var(--accent); text-underline-offset:4px; }

/* ---------- en-tête ---------- */
.entete{ position:sticky; top:0; z-index:50; background:color-mix(in srgb, var(--fond) 88%, transparent);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:2px solid var(--accent-doux); }
.entete-in{ max-width:1160px; margin:0 auto; padding:8px var(--marge); display:flex; align-items:center; gap:12px; }
.marque{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--encre); font-weight:800; margin-right:auto; white-space:nowrap; font-size:1rem; min-height:44px; min-width:44px; }
.marque img{ border-radius:10px; }
.menu{ display:none; gap:4px; }
.menu a{ padding:10px 12px; border-radius:10px; color:var(--encre-2); text-decoration:none; font-weight:500; font-size:.95rem; }
.menu a:hover{ background:var(--accent-doux); color:var(--encre); }
@media (min-width: 900px){ .menu{ display:flex; } .marque{ margin-right:0; } .entete-in .btn{ margin-left:auto; } }

/* ---------- ouverture ---------- */
.ouverture{ position:relative; padding:clamp(36px, 6vw, 84px) var(--marge) clamp(48px, 7vw, 96px);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%233B2F9E' stroke-opacity='.055' stroke-width='2'%3E%3Cpath d='M60 12 72 32 96 28 92 52 112 64 92 76 96 100 72 92 60 112 48 92 24 100 28 76 8 64 28 52 24 28 48 32Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:120px 120px; }
@media (prefers-color-scheme: dark){ .ouverture{ background-image:none; } }
.ouverture-in{ max-width:1160px; margin:0 auto; display:grid; gap:44px; align-items:center; }
.ouverture-texte{ max-width:40rem; }
h1{ font-size:clamp(2.1rem, 6.2vw, 3.45rem); }
.chapeau{ margin-top:20px; font-size:clamp(1.05rem, 2.4vw, 1.25rem); color:var(--encre-2); max-width:34rem; }
.actions{ margin-top:30px; display:flex; flex-wrap:wrap; align-items:center; gap:10px 26px; }
.note{ margin-top:18px; font-size:.95rem; color:var(--encre-2); max-width:30rem; }
@media (min-width: 980px){ .ouverture-in{ grid-template-columns:1.05fr .95fr; gap:64px; } }

/* téléphone : cadre commun à toutes les vraies captures de l'appli */
.tel{ --cadre:#241B4A; border:8px solid var(--cadre); border-radius:40px; overflow:hidden; background:var(--cadre);
  box-shadow:0 10px 0 var(--ombre-btn); line-height:0; }
@media (prefers-color-scheme: dark){ .tel{ --cadre:#3A3270; } }
.tel-ecran{ display:block; width:100%; height:auto; aspect-ratio:390 / 844; object-fit:cover; background:var(--fond); }
.tel-fig{ margin:0; justify-self:center; width:min(100%, 270px); }
.tel-fig figcaption, .fiche-fig figcaption{ margin-top:20px; text-align:center; font-size:.92rem; color:var(--encre-2); line-height:1.4; }

/* ouverture : la vraie démonstration du tracé, en boucle */
.demo{ margin:0; position:relative; justify-self:center; width:min(100%, 330px); }
.demo .tel{ width:min(100%, 300px); margin-left:auto; border-radius:44px; }
.demo-alif{ position:relative; margin:-52px 0 0 -4px; display:flex; align-items:flex-end; gap:6px; }
.demo-alif img{ width:clamp(92px, 24vw, 124px); filter:drop-shadow(0 6px 8px rgba(0,0,0,.22)); }
.bulle{ position:relative; background:var(--surface); color:var(--encre); border:3px solid var(--accent-doux); border-radius:18px;
  padding:10px 14px; font-weight:700; font-size:.92rem; line-height:1.35; width:min(190px, 52vw); margin-bottom:34px;
  box-shadow:0 5px 0 var(--ombre-btn); }
.bulle::before{ content:""; position:absolute; left:-11px; bottom:16px; width:16px; height:16px; background:var(--surface);
  border-left:3px solid var(--accent-doux); border-bottom:3px solid var(--accent-doux); transform:rotate(45deg); }
.demo figcaption{ margin-top:12px; font-size:.92rem; color:var(--encre-2); line-height:1.4; }

/* ---------- blocs ---------- */
.bloc{ padding:clamp(40px, 6vw, 76px) var(--marge); max-width:1160px; margin:0 auto; }
.colonne{ max-width:40rem; margin-bottom:clamp(24px, 3.5vw, 40px); }
h2{ font-size:clamp(1.7rem, 4.4vw, 2.6rem); }
.intro{ margin-top:16px; color:var(--encre-2); font-size:1.125rem; max-width:38rem; }

/* parcours : une vraie suite en quatre étapes, à côté de la vraie carte d'aventure */
.parcours-grille{ display:grid; gap:40px; align-items:start; }
@media (min-width: 900px){ .parcours-grille{ grid-template-columns:minmax(0, 1fr) 560px; gap:56px; } .cartes{ position:sticky; top:92px; } .cartes .tel-fig{ width:270px; } }
.parcours{ list-style:none; margin:0; padding:0; display:grid; gap:0; position:relative; max-width:34rem; }
.parcours li{ position:relative; display:grid; grid-template-columns:96px 1fr; column-gap:18px; padding:0 0 34px; align-content:start; }
.parcours li:last-child{ padding-bottom:0; }
.parcours li::before{ content:""; position:absolute; left:47px; top:96px; bottom:0; border-left:4px dotted var(--bord); }
.parcours li:last-child::before{ display:none; }
.parcours-rang{ position:absolute; left:-4px; top:-4px; z-index:2; width:28px; height:28px; border-radius:50%; background:var(--accent); color:var(--accent-sur);
  font-weight:800; font-size:.85rem; display:grid; place-items:center; }
.parcours-ar{ grid-row:1 / span 2; width:96px; height:96px; border-radius:50%; background:var(--surface); border:4px solid var(--accent);
  display:grid; place-items:center; font-size:2.7rem; color:var(--accent); box-shadow:0 5px 0 var(--ombre-btn); padding-bottom:8px; }
.parcours li:nth-child(2) .parcours-ar{ font-size:1.55rem; }
.parcours li:nth-child(3) .parcours-ar{ font-size:1.85rem; }
.parcours-phrase{ font-size:1.25rem !important; line-height:1.25; text-align:center; padding:0 8px 4px; }
.parcours h3{ font-size:1.3rem; align-self:end; }
.parcours p{ margin-top:6px; color:var(--encre-2); }

/* formes des lettres */
.bloc-formes{ position:relative; }
.formes{ background:var(--surface); border:3px solid var(--accent-doux); border-radius:var(--rayon); padding:clamp(18px, 3vw, 32px); }
.formes-choix{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.lettre-choix{ width:56px; height:56px; border-radius:16px; border:3px solid var(--bord); background:var(--fond); color:var(--encre);
  font:inherit; cursor:pointer; display:grid; place-items:center; font-size:1.8rem; padding:0 0 6px; transition:background .12s, border-color .12s; }
.lettre-choix:hover{ border-color:var(--accent); }
.lettre-choix[aria-pressed="true"]{ background:var(--accent); border-color:var(--accent); color:var(--accent-sur); }
.formes-4{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; }
.formes-4 li{ background:var(--fond); border-radius:var(--rayon-s); padding:10px 8px 14px; text-align:center; }
.forme-glyphe{ display:block; font-size:clamp(3.4rem, 11vw, 5.2rem); line-height:1.35; color:var(--accent); min-height:1.35em; }
.forme-nom{ display:block; font-weight:600; color:var(--encre-2); font-size:.95rem; }
@media (min-width: 700px){ .formes-4{ grid-template-columns:repeat(4, 1fr); } }

/* langues : un tableau, c'est bien un tableau */
.mots{ width:100%; border-collapse:separate; border-spacing:0; background:var(--surface); border:3px solid var(--accent-doux); border-radius:var(--rayon); overflow:hidden; }
.mots th, .mots td{ padding:14px 16px; text-align:left; }
.mots thead th{ background:var(--accent-doux); font-size:.9rem; font-weight:700; color:var(--encre); }
.mots tbody th{ font-weight:600; }
.mots tbody tr + tr > *{ border-top:2px solid var(--accent-doux); }
.mots td{ font-size:clamp(1.5rem, 4.5vw, 2rem); color:var(--accent); text-align:right; line-height:1.5; }
.mots thead th:nth-child(n+2){ text-align:right; }
.mot-emoji{ display:inline-block; width:1.7em; font-size:1.3em; vertical-align:middle; }
@media (max-width: 480px){ .mots th, .mots td{ padding:12px 9px; } .mots tbody th{ font-size:.95rem; } .mot-emoji{ width:1.45em; } .mots tbody th{ white-space:nowrap; } }

/* jeux : une liste, et les vrais écrans à côté */
.jeux-grille{ display:grid; gap:40px; align-items:start; }
@media (min-width: 960px){ .jeux-grille{ grid-template-columns:minmax(0, 1fr) 500px; gap:64px; } }
.jeux{ list-style:none; margin:0; padding:0; display:grid; }
.jeux li{ display:flex; gap:16px; align-items:flex-start; padding:15px 0; border-top:2px solid var(--accent-doux); }
.jeux li:last-child{ border-bottom:2px solid var(--accent-doux); }
.jeux li > span{ font-size:1.7rem; line-height:1.3; width:2.2rem; text-align:center; flex:none; }
.jeux b{ display:block; font-weight:700; }
.jeux small{ display:block; color:var(--encre-2); font-size:.95rem; line-height:1.45; }
.jeux-ecrans{ display:flex; gap:22px; justify-content:center; align-items:flex-start; }
.jeux-ecrans .tel-fig{ width:min(46%, 232px); }
.jeux-ecrans .tel{ border-width:7px; border-radius:34px; }
@media (min-width: 960px){ .jeux-ecrans{ position:sticky; top:92px; } }

/* parents : le vrai espace parents et l'écran de l'enfant */
.parents-grille{ display:grid; gap:44px; align-items:center; }
@media (min-width: 900px){ .parents-grille{ grid-template-columns:minmax(0, 1fr) 560px; gap:64px; } }
.points{ list-style:none; margin:24px 0 20px; padding:0; display:grid; gap:12px; }
.points li{ padding-left:34px; position:relative; }
.points li::before{ content:""; position:absolute; left:0; top:.35em; width:20px; height:20px; border-radius:50%; background:var(--sarcelle); }
.points li::after{ content:""; position:absolute; left:6px; top:calc(.35em + 4px); width:5px; height:9px; border:solid var(--surface); border-width:0 2.5px 2.5px 0; transform:rotate(45deg); }
.parents-ecrans{ display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-start; gap:28px 24px; }
.parents-ecrans .tel-fig{ width:min(100%, 200px); }
.parents-ecrans .tel{ border-width:6px; border-radius:30px; }
.fiche-fig{ margin:0; width:min(100%, 336px); }
.fiche{ display:block; width:100%; height:auto; border-radius:18px; border:3px solid var(--accent-doux); box-shadow:0 8px 0 var(--accent-doux); background:#fff; }
@media (min-width: 900px){ .fiche-fig{ margin-top:120px; } }

/* installation : une suite de gestes */
.install-grille{ display:grid; gap:40px; align-items:start; }
.install{ max-width:44rem; }
.install-tel{ width:min(100%, 250px); }
@media (min-width: 900px){ .install-grille{ grid-template-columns:minmax(0, 1fr) 250px; gap:72px; } }
.onglets{ display:inline-flex; gap:6px; padding:6px; background:var(--accent-doux); border-radius:999px; margin-bottom:26px; }
.onglets button{ min-height:44px; padding:0 20px; border-radius:999px; border:0; background:none; font:inherit; font-weight:600; color:var(--encre-2); cursor:pointer; }
.onglets button[aria-selected="true"]{ background:var(--accent); color:var(--accent-sur); }
.etapes{ list-style:none; margin:0; padding:0; display:grid; gap:22px; counter-reset:geste; }
.etapes[hidden]{ display:none; }
.etapes li{ counter-increment:geste; display:grid; grid-template-columns:58px 1fr; column-gap:16px; }
.etapes li::before{ content:counter(geste); grid-row:1 / span 2; width:58px; height:58px; border-radius:50%; border:4px solid var(--accent); background:var(--surface);
  color:var(--accent); font-weight:800; font-size:1.5rem; display:grid; place-items:center; box-shadow:0 4px 0 var(--ombre-btn); }
.etapes b{ font-weight:700; align-self:end; }
.etapes li > span{ color:var(--encre-2); font-size:.98rem; }
.adresse{ white-space:nowrap; text-decoration:underline; text-decoration-color:var(--bord); text-underline-offset:4px; }

/* questions */
.faq{ max-width:44rem; border-top:2px solid var(--accent-doux); }
.faq details{ border-bottom:2px solid var(--accent-doux); }
.faq summary{ list-style:none; cursor:pointer; min-height:56px; padding:14px 40px 14px 0; position:relative; font-weight:700; display:flex; align-items:center; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:""; position:absolute; right:6px; top:50%; width:10px; height:10px; border:solid var(--accent); border-width:0 3px 3px 0;
  transform:translateY(-70%) rotate(45deg); transition:transform .15s; }
.faq details[open] summary::after{ transform:translateY(-30%) rotate(-135deg); }
.faq details p{ padding:0 0 20px; color:var(--encre-2); max-width:36rem; }

/* appel final */
.final{ padding:0 var(--marge) clamp(56px, 8vw, 96px); }
.final-in{ max-width:1160px; margin:0 auto; background:var(--accent); color:var(--accent-sur); border-radius:36px; padding:clamp(28px, 5vw, 56px);
  display:grid; gap:24px; align-items:center; justify-items:start; }
.final-in img{ width:clamp(110px, 22vw, 190px); }
.final h2{ font-size:clamp(1.6rem, 4vw, 2.4rem); }
.final p{ margin:12px 0 24px; font-size:1.125rem; opacity:.92; max-width:32rem; }
.final .btn{ background:var(--accent-sur); color:var(--accent); box-shadow:0 6px 0 rgba(0,0,0,.25); }
@media (min-width: 700px){ .final-in{ grid-template-columns:auto 1fr; gap:48px; } }
@media (prefers-color-scheme: dark){ .final-in{ background:#2A2459; color:var(--encre); } .final .btn{ background:var(--accent); color:var(--accent-sur); } }

/* pied */
.pied{ border-top:2px solid var(--accent-doux); padding:32px var(--marge) 48px; text-align:center; color:var(--encre-2); font-size:.95rem; display:grid; gap:10px; }
.pied-liens{ display:flex; justify-content:center; flex-wrap:wrap; gap:4px 20px; }
.pied-liens a{ display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:0 4px; }
.pied-note{ font-size:.85rem; }

@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } .btn{ transition:none; } }


/* ---------- en-têtes de section avec Alif ---------- */
.entete-bloc{ display:flex; flex-direction:column-reverse; align-items:flex-start; gap:14px; margin-bottom:clamp(24px, 3.5vw, 40px); }
.entete-bloc .colonne{ margin-bottom:0; }
.mascotte-bloc{ width:clamp(84px, 22vw, 118px); height:auto; flex:none; filter:drop-shadow(0 5px 6px rgba(0,0,0,.2)); }
.mascotte-bloc-haut{ display:block; margin-bottom:14px; }
@media (min-width: 760px){
  .entete-bloc{ flex-direction:row; align-items:flex-end; justify-content:space-between; gap:32px; }
  .mascotte-bloc{ width:clamp(120px, 12vw, 160px); }
  .mascotte-bloc-haut{ width:120px; }
}

/* ---------- bande tunisienne ---------- */
.bande{ background:var(--accent-doux); }
.bande .mots, .bande .formes{ border-color:var(--bord); }
.points-large{ margin:0 0 clamp(28px, 4vw, 44px); gap:14px; font-size:1.125rem; }
.points-large li{ padding-left:38px; }
.points-large li::before{ width:24px; height:24px; top:.25em; }
.points-large li::after{ left:8px; top:calc(.25em + 4px); width:6px; height:11px; }

/* rangée de téléphones : défile sur mobile, trois colonnes sur ordinateur */
.tel-rang{ display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 calc(-1 * var(--marge)) clamp(36px, 5vw, 60px);
  padding:6px var(--marge) 26px; scrollbar-width: thin; }
.tel-rang .tel-fig{ flex:0 0 min(70vw, 250px); scroll-snap-align:center; }
@media (min-width: 900px){
  .tel-rang{ display:grid; grid-template-columns:repeat(3, 1fr); overflow:visible; margin:0 0 clamp(40px, 5vw, 64px); padding:6px 0 26px; }
  .tel-rang .tel-fig{ width:min(100%, 270px); }
}

/* mots : la colonne tunisienne ressort */
.compar-grille{ display:grid; gap:24px; align-items:center; margin-bottom:clamp(32px, 4vw, 52px); }
@media (min-width: 900px){ .compar-grille{ grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr); gap:56px; } }
.compar-texte h3{ font-size:clamp(1.4rem, 3vw, 1.9rem); }
.mots td{ color:var(--encre-2); }
.mots thead th.tn{ background:var(--accent); color:var(--accent-sur); }
.mots td.tn{ color:var(--accent); font-weight:700; background:color-mix(in srgb, var(--accent) 9%, var(--surface)); }

/* une même phrase, dite de deux façons */
.phrase{ background:var(--surface); border:4px solid var(--accent); border-radius:28px; padding:clamp(20px, 3.5vw, 36px); box-shadow:0 8px 0 var(--ombre-btn); }
.phrase-fr{ text-align:center; font-weight:700; font-size:clamp(1.1rem, 2.6vw, 1.4rem); margin-bottom:18px; }
.phrase-duo{ display:grid; gap:14px; }
.phrase-duo > div{ border-radius:20px; padding:16px 20px; text-align:center; background:var(--fond); }
.phrase-lang{ display:block; font-size:.92rem; font-weight:600; color:var(--encre-2); margin-bottom:2px; }
.phrase-ar{ display:block; font-size:clamp(2.1rem, 6vw, 3rem); line-height:1.5; }
.phrase-tn{ background:var(--accent) !important; color:var(--accent-sur); }
.phrase-tn .phrase-lang{ color:var(--accent-sur); opacity:.9; }
@media (min-width: 640px){ .phrase-duo{ grid-template-columns:1fr 1fr; } }

/* parcours : cartes 2D et 3D */
.cartes{ display:flex; gap:20px; justify-content:center; align-items:flex-start; }
.cartes .tel-fig{ width:min(46%, 232px); }
.cartes .tel{ border-width:7px; border-radius:34px; }
@media (min-width: 900px){ .cartes .tel{ border-width:8px; border-radius:40px; } }

/* formes + démonstration du tracé */
.formes-grille{ display:grid; gap:36px; align-items:start; }
.formes-grille > .tel-fig{ width:min(100%, 240px); }
@media (min-width: 900px){ .formes-grille{ grid-template-columns:minmax(0, 1fr) 250px; gap:56px; } }


/* ---------- sélecteur de langue ---------- */
.langue{ display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:48px; padding:0 14px; border-radius:999px; border:2px solid var(--bord);
  color:var(--encre); font-weight:600; font-size:.95rem; text-decoration:none; white-space:nowrap; background:transparent; }
.langue:hover{ background:var(--accent-doux); }
.langue[lang="ar"]{ font-family:var(--police-ar); font-size:1.05rem; font-weight:700; }
@media (min-width: 900px){ .menu + .langue{ margin-left:0; } }
/* petits écrans : on garde le logo et on libère la place pour la langue et le bouton */
@media (max-width: 430px){ .marque span{ display:none; } .entete-in{ gap:10px; } .langue{ padding:0 12px; } .btn-petit{ padding:0 14px; } }

/* ---------- version arabe : de droite à gauche ---------- */
html[lang="ar"]{ --police:"Noto Sans Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif; }
html[lang="ar"] body{ font-size:1.125rem; line-height:1.85; }
html[lang="ar"] *{ letter-spacing:0 !important; }   /* l'espacement casserait la liaison des lettres arabes */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3{ line-height:1.4; font-weight:800; }
html[lang="ar"] h1{ font-size:clamp(2rem, 5.6vw, 3.2rem); }
html[lang="ar"] .chapeau, html[lang="ar"] .intro{ line-height:1.9; }
html[lang="ar"] .btn, html[lang="ar"] .btn-petit{ font-weight:700; }
html[lang="ar"] .ar{ font-weight:500; }
html[lang="ar"] .mots tbody th{ font-weight:600; }

html[dir="rtl"] .saut{ left:auto; right:-999px; }
html[dir="rtl"] .saut:focus{ left:auto; right:8px; }
html[dir="rtl"] .marque{ margin-right:0; margin-left:auto; }
@media (min-width: 900px){ html[dir="rtl"] .marque{ margin-left:0; } html[dir="rtl"] .entete-in .btn{ margin-left:0; margin-right:0; } html[dir="rtl"] .langue{ margin-inline-start:auto; } }
html[dir="rtl"] .demo .tel{ margin-left:0; margin-right:auto; }
html[dir="rtl"] .demo-alif{ margin:-26px -4px 0 0; }
html[dir="rtl"] .bulle::before{ left:auto; right:-11px; border-left:0; border-right:3px solid var(--accent-doux); transform:rotate(-45deg); }
html[dir="rtl"] .parcours li::before{ left:auto; right:47px; border-left:0; border-right:4px dotted var(--bord); }
html[dir="rtl"] .parcours-rang{ left:auto; right:-4px; }
html[dir="rtl"] .mots th, html[dir="rtl"] .mots td, html[dir="rtl"] .mots thead th:nth-child(n+2){ text-align:right; }
html[dir="rtl"] .points li{ padding-left:0; padding-right:34px; }
html[dir="rtl"] .points li::before{ left:auto; right:0; }
html[dir="rtl"] .points li::after{ left:auto; right:6px; }
html[dir="rtl"] .points-large li{ padding-left:0; padding-right:38px; }
html[dir="rtl"] .points-large li::after{ left:auto; right:8px; }
html[dir="rtl"] .faq summary{ padding:14px 0 14px 40px; }
html[dir="rtl"] .faq summary::after{ right:auto; left:6px; }
html[dir="rtl"] .lien-sec{ text-underline-offset:6px; }
