/* Test de niveau (mise à jour 1.20, 20/11/2026). Couleurs du site ; mode sombre ; téléphone d'abord. */
:root { --navy: #13233f; --teal: #0e6e6b; --teal-soft: #d8ecea; --gold: #b8892b; --bg: #eef3f2; --card: #fff; --ink: #14202e; --muted: #566572; --line: #d6dfde; --on: #fff7e3; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #0d1524; --card: #142038; --ink: #e7edf0; --muted: #9eaebb; --line: #26375a; --teal: #45b3ab; --teal-soft: #173a3c; --on: #3a3018; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 "Figtree", "Segoe UI", system-ui, sans-serif; }
.tn-barre { background: var(--navy); padding: 12px 16px; }
.tn-barre a { color: #fff; text-decoration: none; font-family: "Young Serif", Georgia, serif; font-size: 1.1rem; }
.tn-barre span { color: #d4a647; font-family: "Figtree", sans-serif; font-size: .8rem; letter-spacing: .08em; margin-left: 6px; }
.tn-page { max-width: 900px; margin: 0 auto; padding: 20px 16px 48px; }
.tn-carte { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.tn-carte h1 { font-family: "Young Serif", Georgia, serif; font-weight: 400; color: var(--teal); margin: 0 0 8px; font-size: 1.6rem; }
.tn-carte h2 { margin: 0 0 6px; font-size: 1.1rem; }
.tn-sur { margin: 0; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.tn-doux { color: var(--muted); }
.tn-petit { font-size: .88rem; margin-top: 16px; }
.tn-info { background: var(--teal-soft); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.tn-info ul { margin: 6px 0 0; padding-inline-start: 20px; }
.tn-info li { margin-bottom: 6px; }
.tn-ko { background: #fbe3df; color: #7a1f14; }
.tn-btn { display: inline-block; background: var(--teal); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font: 700 1.05rem "Figtree", sans-serif; text-decoration: none; cursor: pointer; }
.tn-btn:disabled { opacity: .4; cursor: default; }
.tn-form label { display: block; font-weight: 600; margin: 12px 0 4px; }
.tn-form input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: var(--ink); }
.tn-form .tn-btn { margin-top: 18px; }
.tn-chargement { text-align: center; color: var(--muted); }

.tn-tete { margin-bottom: 12px; }
.tn-progres { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.tn-progres span { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.tn-n { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.tn-consigne { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.tn-cons-ar { margin: 0; font: 600 1.35rem/1.6 "Noto Naskh Arabic", serif; }
.tn-cons-fr { margin: 0; color: var(--muted); font-size: .92rem; }
.tn-enonce { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 18px; }
.tn-texte { width: 100%; background: var(--bg); border-radius: 12px; padding: 12px 16px; font: 1.35rem/1.9 "Noto Naskh Arabic", serif; }
.tn-texte h2 { font-size: 1.4rem; margin: 0 0 4px; color: var(--teal); }
.tn-texte p { margin: 0; }
.tn-image { max-width: 380px; max-height: 300px; width: 100%; object-fit: contain; border-radius: 10px; }
.tn-mot { margin: 0; font: 700 2.6rem/1.5 "Noto Naskh Arabic", serif; }
.tn-ligne-q { display: flex; align-items: center; gap: 10px; }
.tn-q { margin: 0; font: 600 1.55rem/1.8 "Noto Naskh Arabic", serif; text-align: center; }
.tn-son { border: 2px solid var(--teal); background: var(--card); color: var(--teal); border-radius: 50%; cursor: pointer; font-size: 1.3rem; width: 48px; height: 48px; flex: none; }
.tn-son.grand { width: 96px; height: 96px; font-size: 2.6rem; }
.tn-son.petit { width: 44px; height: 44px; font-size: 1.15rem; }
.tn-son.mini { width: 34px; height: 34px; font-size: .9rem; border-width: 1px; }
.tn-son.joue { background: var(--teal); color: #fff; }
.tn-choix { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tn-choix.deux { grid-template-columns: 1fr 1fr; }
.tn-choix.images { grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .tn-choix.images { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 620px) { .tn-choix:not(.images):not(.deux) { grid-template-columns: 1fr 1fr; } }
.tn-c { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 14px; padding: 10px; cursor: pointer; font: 600 1.45rem/1.6 "Noto Naskh Arabic", serif; }
.tn-c:hover { border-color: var(--teal); }
.tn-c.on { border-color: var(--gold); background: var(--on); box-shadow: 0 0 0 3px rgba(184, 137, 43, .25); }
.tn-choix.images .tn-c { flex-direction: column; min-height: 150px; padding: 6px; }
.tn-c img { width: 100%; height: 150px; object-fit: contain; }
@media (min-width: 620px) { .tn-c img { height: 170px; } }
.tn-contexte { margin: 0; color: var(--muted); font-style: italic; text-align: center; }
.tn-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tn-nsp { border: 1px dashed var(--muted); background: transparent; color: var(--muted); border-radius: 999px; padding: 10px 18px; font: 600 1rem "Figtree", sans-serif; cursor: pointer; }
.tn-nsp:hover { border-color: var(--ink); color: var(--ink); }
.tn-nsp span { font-family: "Noto Naskh Arabic", serif; }
.tn-manque { display: inline-flex; align-items: center; justify-content: center; border-style: dashed; border-color: var(--muted); color: var(--muted); cursor: help; }
.tn-bravo { text-align: center; font: 700 1.6rem "Noto Naskh Arabic", serif; color: var(--gold); }
.tn-dictee { display: flex; flex-direction: column; gap: 10px; }
.tn-champ { font: 600 1.8rem/1.6 "Noto Naskh Arabic", serif; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-align: right; }
.tn-clavier { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tn-clavier button { min-width: 42px; height: 46px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; font: 600 1.3rem "Noto Naskh Arabic", serif; cursor: pointer; }
.tn-clavier button.large { min-width: 90px; font: 600 1rem "Figtree", sans-serif; }
.tn-aide { margin: 0; color: var(--muted); font-size: .88rem; text-align: center; }
.tn-fin { text-align: center; }
.tn-etoile { font-size: 3rem; margin: 0; }
.tn-resultat { font-size: 1.25rem; font-weight: 700; color: var(--teal); }
