:root { --fond: #fbfaf6; --encre: #1e1f24; --gris: #6b6d76; --ligne: #e6e3da; --carte: #fff; --citron: #e9f04a; --citron-fonce: #b8bf12; --ok: #1f9d55; --ok-fond: #e2f6ea; --ko: #d7394a; --ko-fond: #fde8eb; --bleu: #2f6fed; --bleu-fond: #e6eefe; --rose-fond: #fdeaf1; --jaune-fond: #fff5cc; --vert-fond: #e7f6df; --violet-fond: #efe9fd; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 500 17px/1.5 ui-rounded, "SF Pro Rounded", system-ui, sans-serif; background: var(--fond); color: var(--encre); min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
main { width: min(100%, 720px); margin: 0 auto; padding: 18px 16px 90px; display: flex; flex-direction: column; gap: 14px; }
h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 21px; letter-spacing: -.01em; }
h3 { font-size: 17px; }
p.sous { color: var(--gris); }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.retour { color: var(--gris); text-decoration: none; font-size: 15px; }
.carte { background: var(--carte); border: 1.5px solid var(--ligne); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.carte.cliquable { text-decoration: none; transition: transform .15s; }
.carte.cliquable:active { transform: scale(.98); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--citron); padding: 3px 9px; border-radius: 99px; }
.bouton { display: block; width: 100%; background: var(--encre); color: #fff; padding: 15px; border-radius: 16px; font-weight: 800; text-align: center; transition: transform .1s, opacity .2s; }
.bouton:active { transform: scale(.98); }
.bouton:disabled { opacity: .35; cursor: default; }
.bouton.citron { background: var(--citron); color: var(--encre); }
.bouton.clair { background: var(--carte); color: var(--encre); border: 1.5px solid var(--ligne); }
.onglets { display: flex; gap: 6px; background: #efece3; padding: 5px; border-radius: 16px; position: sticky; top: 8px; z-index: 5; }
.onglets button { flex: 1; padding: 10px; border-radius: 12px; font-weight: 800; color: var(--gris); }
.onglets button[aria-pressed="true"] { background: var(--carte); color: var(--encre); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.mem { border-radius: 16px; padding: 12px 14px; }
.mem.bleu { background: var(--bleu-fond); } .mem.jaune { background: var(--jaune-fond); } .mem.vert { background: var(--vert-fond); } .mem.rose { background: var(--rose-fond); } .mem.violet { background: var(--violet-fond); }
.mem b.t { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
table.t { border-collapse: collapse; width: 100%; font-size: 15px; }
table.t th, table.t td { border: 1.5px solid var(--ligne); padding: 5px 9px; text-align: left; }
table.t th { background: #f3f1e9; }
.op { font: 700 19px ui-monospace, monospace; }
code, .m { font: 600 .92em ui-monospace, "SF Mono", monospace; background: #f1efe6; padding: 1px 6px; border-radius: 6px; }
.prog { display: flex; gap: 4px; }
.prog i { flex: 1; height: 7px; border-radius: 9px; background: var(--ligne); }
.prog i.ok { background: var(--ok); } .prog i.ko { background: var(--ko); } .prog i.now { background: var(--encre); }
.question { font-size: 21px; font-weight: 800; line-height: 1.25; }
.consigne { color: var(--gris); font-size: 15px; }
.choix { display: flex; flex-direction: column; gap: 9px; }
.choix button { text-align: left; background: var(--carte); border: 2px solid var(--ligne); padding: 13px 15px; border-radius: 16px; transition: border-color .15s, background-color .15s; }
.choix button:active:not(:disabled) { transform: scale(.985); }
.choix button.bon { border-color: var(--ok); background: var(--ok-fond); }
.choix button.mauvais { border-color: var(--ko); background: var(--ko-fond); }
.champ { width: 100%; background: var(--carte); border: 2px solid var(--ligne); border-radius: 16px; padding: 14px 15px; font: inherit; font-size: 19px; }
.champ:focus { outline: none; border-color: var(--encre); }
.champ.bon { border-color: var(--ok); background: var(--ok-fond); } .champ.mauvais { border-color: var(--ko); background: var(--ko-fond); }
.retour-q { border-radius: 16px; padding: 13px 15px; animation: monter .25s ease-out; }
.retour-q.bon { background: var(--ok-fond); } .retour-q.mauvais { background: var(--ko-fond); }
.retour-q b { display: block; }
@keyframes monter { from { opacity: 0; transform: translateY(8px); } }
.mots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 10px; border-radius: 16px; background: var(--carte); border: 2px dashed var(--ligne); }
.mots button { background: #f1efe6; padding: 9px 13px; border-radius: 12px; font-weight: 700; }
.mots.rep button { background: var(--citron); }
.mots.final button { cursor: default; }
.phrase { font-size: 24px; font-weight: 800; line-height: 1.35; }
.phrase .ok { color: var(--ok); } .phrase .flou { color: #b57b00; } .phrase .ko { color: var(--ko); text-decoration: underline wavy; }
.rang { display: flex; gap: 9px; }
.rang > * { flex: 1; }
.micro.ecoute { background: var(--ko); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.bilan .ligne { display: flex; align-items: center; gap: 10px; }
.bilan .barre { flex: 1; height: 10px; background: var(--ligne); border-radius: 9px; overflow: hidden; }
.bilan .barre i { display: block; height: 100%; background: var(--ok); }
.bilan .barre i.bas { background: var(--ko); } .bilan .barre i.moy { background: #e2a400; }
.gros { font-size: 54px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
