/* ---------- jeu "Complète la phrase" ---------- */
#ecran-phrases-choix .corps-page{ flex:1 1 auto; overflow-y:auto; display:flex; flex-direction:column; align-items:center; gap:12px; padding:14px 20px 28px; }
.phr-monde{ width:min(480px, 100%); display:flex; align-items:center; gap:14px; text-align:left; border-radius:24px; border:4px solid var(--tc, var(--accent)); background:#fff; color:var(--encre); padding:12px 16px; cursor:pointer; box-shadow:0 6px 0 rgba(0,0,0,.12); font-family:inherit; }
.phr-monde:active{ transform:translateY(3px); box-shadow:0 3px 0 rgba(0,0,0,.12); }
.phr-monde-ico{ flex:none; width:58px; height:58px; border-radius:18px; background:var(--tc, var(--accent)); display:flex; align-items:center; justify-content:center; font-size:32px; line-height:1; }
.phr-monde-txt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.phr-monde-nom{ font-size:17px; font-weight:800; }
.phr-monde-ar{ font-size:20px; line-height:1.5; color:#5b4d7a; direction:rtl; text-align:left; }
.phr-monde-meta{ font-size:12px; font-weight:700; color:#5b4d7a; }
.phr-monde-rec{ flex:none; display:flex; align-items:center; gap:4px; font-size:14px; font-weight:800; color:var(--attention-texte); }

#ecran-phrases .corps-page{ flex:1 1 auto; overflow-y:auto; display:flex; flex-direction:column; align-items:center; gap:14px; padding:6px 18px 22px; }
.phr-haut{ width:min(620px, 100%); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.phr-progres{ flex:1; display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:800; color:#5b4d7a; }
.phr-piste{ height:12px; border-radius:6px; background:var(--rail-vide); border:2px solid var(--rail-bord); overflow:hidden; }
.phr-piste i{ display:block; height:100%; width:0; background:var(--reussite); transition:width .3s ease; }
.phr-pastille{ display:inline-flex; align-items:center; gap:6px; background:#fff; border:3px solid var(--rail-bord); border-radius:999px; padding:2px 12px 2px 8px; font-weight:800; font-size:18px; }
.phr-pastille.pop{ animation:hudPop 450ms ease; }
.phr-pastille small{ font-size:12px; color:#5b4d7a; font-weight:700; }
.phr-langue{ align-self:center; font-size:12px; font-weight:800; color:#fff; padding:3px 12px; border-radius:999px; background:var(--copain-2); }
.phr-langue.tn{ background:var(--copain-1); }
.phr-fr{ width:min(620px, 100%); text-align:center; font-size:19px; font-weight:700; line-height:1.4; margin:0; }
.phr-carte{ width:min(620px, 100%); background:#fff; border:4px solid var(--accent); border-radius:26px; box-shadow:0 6px 0 rgba(0,0,0,.12); padding:18px 14px; }
.phr-carte.secoue{ animation:secoue 400ms ease; }
.phr-phrase{ direction:rtl; text-align:center; font-size:30px; line-height:2.2; }
.phr-txt{ white-space:pre-wrap; }
.phr-trou{ display:inline-flex; align-items:center; justify-content:center; min-width:96px; min-height:50px; padding:0 14px; margin:0 4px; vertical-align:middle; font-family:inherit; font-size:inherit; line-height:1.3; border:none; border-bottom:5px dashed var(--accent); border-radius:14px; background:#EAF3FA; color:var(--accent); cursor:default; }
.phr-trou.plein{ background:#fff; border:3px solid var(--accent); border-bottom-width:6px; color:var(--encre); cursor:pointer; animation:saute 250ms ease; }
.phr-trou.ok{ border-color:var(--reussite); background:#E6F4EA; color:#1F5E36; }
.phr-trou.ko{ border-color:var(--copain-1); background:#FBE9E4; color:#8A2F1B; }
.phr-trou.corrige{ border-color:var(--reussite); border-style:solid; background:#fff; color:#1F5E36; }
.phr-trou:focus-visible, .phr-mot:focus-visible{ outline:4px solid var(--attention); outline-offset:2px; }
.phr-banque{ width:min(620px, 100%); display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.phr-mot{ font-family:inherit; direction:rtl; font-size:26px; line-height:1.5; font-weight:700; padding:6px 20px; border-radius:20px; border:4px solid var(--accent); background:#fff; color:var(--encre); cursor:pointer; box-shadow:0 5px 0 rgba(0,0,0,.12); }
.phr-mot:active{ transform:translateY(3px); box-shadow:0 2px 0 rgba(0,0,0,.12); }
.phr-mot:disabled{ opacity:.4; cursor:default; box-shadow:none; border-color:var(--rail-bord); }
.phr-actions{ width:min(620px, 100%); display:flex; justify-content:center; }
.phr-actions .bouton-pastille-pleine{ min-width:220px; }
.phr-actions .bouton-pastille-pleine:disabled{ opacity:.4; cursor:not-allowed; }
.phr-retour{ width:min(620px, 100%); border-radius:22px; border:4px solid var(--reussite); background:#E6F4EA; padding:12px 14px; display:flex; flex-direction:column; gap:8px; animation:saute 250ms ease; }
.phr-retour.ko{ border-color:var(--copain-1); background:#FBE9E4; }
.phr-retour-titre{ margin:0; font-weight:800; font-size:16px; }
.phr-version{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:16px; padding:6px 10px; }
.phr-version-lib{ flex:none; font-size:11px; font-weight:800; color:#fff; padding:2px 8px; border-radius:999px; background:var(--copain-2); }
.phr-version-lib.tn{ background:var(--copain-1); }
.phr-version-txt{ flex:1; direction:rtl; text-align:right; font-size:24px; line-height:1.6; }
.phr-ecouter{ flex:none; width:44px; height:44px; border-radius:50%; border:3px solid var(--accent); background:#fff; font-size:20px; cursor:pointer; }
@media (max-width:420px){ .phr-phrase{ font-size:26px; } .phr-mot{ font-size:23px; padding:5px 16px; } .phr-trou{ min-width:80px; } }
.phr-vide{ width:min(480px, 100%); text-align:center; font-size:16px; font-weight:700; color:#5b4d7a; margin:24px 0; }
#ecran-phrases-choix .nombres-onglets{ margin:2px 0 4px; }
#ecran-phrases-choix .entete .guide-texte{ font-size:16px; text-align:center; line-height:1.3; }
#ecran-phrases-choix .guide-texte-ar-inline{ white-space:nowrap; }
