/* =====================================================================
   ALF Kidz : activité « Relie les lettres »
   À charger après kidz.css et jeux.css (elle réutilise leurs styles mm-).
   ===================================================================== */

/* ---------- Dessin à relier (SVG, repère 200 × 200) ---------- */
.rl-svg{display:block;width:100%;height:auto}
.rl-decor path{fill:none;stroke:var(--bleu);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.rl-decor path.plein{fill:var(--bleu);stroke:none}
.rl-trait{fill:var(--rl-fond,var(--creme));stroke:var(--corail-fonce);stroke-width:1.8;stroke-linejoin:round}
.rl-point{fill:var(--bleu)}
.rl-point-depart{fill:var(--menthe-fonce);stroke:#fff;stroke-width:1.2}
.rl-lettre{font-family:var(--arabe);font-weight:700;font-size:11px;fill:var(--bleu);text-anchor:middle;dominant-baseline:central}
.rl-lettre.rl-depart{fill:var(--menthe-fonce);font-size:12.5px}

/* ---------- Fiches prêtes ---------- */
.mm-carte .rl-vue{background:var(--c-clair);padding:14px 22px}
.mm-carte .rl-vue .rl-svg{max-width:260px;margin:0 auto;background:#fff;border-radius:12px;box-shadow:0 8px 18px rgb(41 56 71 / .12)}

/* ---------- Feuille ---------- */
.rl-dessin{max-width:460px;margin:0 auto}
.rl-en-ligne{font-family:var(--arabe);font-weight:700;font-size:1.35em;color:var(--bleu)}
.rl-aide{margin-top:10px;border-top:2px dashed var(--filet);padding-top:10px}
.rl-aide-titre{margin:0 0 6px;text-align:center;font-family:var(--titres);font-weight:800;font-size:15px;color:var(--bleu)}
.rl-alphabet{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;justify-content:center;gap:5px}
.rl-alphabet li{display:flex;flex-direction:column;align-items:center;min-width:32px;border:2px solid var(--filet);border-radius:10px;padding:0 4px 2px}
.rl-alpha-lettre{font-family:var(--arabe);font-weight:700;font-size:20px;line-height:1.8;color:var(--bleu)}
.rl-alpha-num{font-family:Nunito,sans-serif;font-size:10px;font-weight:700;line-height:1;color:var(--gris)}
.rl-alphabet li:first-child{border-color:var(--menthe);background:var(--menthe-clair)}
.rl-nom{margin:14px 0 0;font-weight:800;color:var(--bleu);display:flex;align-items:flex-end;flex-wrap:wrap;gap:6px 10px}
.rl-ligne{flex:1 1 180px;min-height:46px;border-bottom:2px dotted var(--gris);font-family:var(--arabe);font-weight:700;font-size:30px;line-height:1.5;text-align:center;color:var(--corail-fonce)}
.rl-ligne.rl-a-repasser{color:#9AA3AD}  /* gris clair voulu : le mot est à repasser */
.rl-reponse{margin:6px 0 0;text-align:center;font-weight:800;color:var(--menthe-fonce)}

/* ---------- Impression : tout tient sur une page A4 ---------- */
@media print{
  .rl-dessin{max-width:132mm}
  .rl-aide,.rl-nom{break-inside:avoid}
  .rl-alpha-lettre{font-size:17px}
}

/* Lettres arabes isolées dans un texte français */
.hero bdi[lang="ar"],.mm-etapes bdi[lang="ar"]{font-family:var(--arabe);font-weight:700;font-size:1.25em}
