/* Design system — 3. Session et formats de questions */
/* ===================== Session ===================== */
.s-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px }
.progress { flex: 1; height: 18px; background: #fff; border: 3px solid var(--line); border-radius: 999px; overflow: hidden }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yel), var(--org)); transition: width .4s }
.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap }
.learn-link { font-weight: 800; font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px }
.learn-link:hover { background: var(--Bb) }
.q-prompt-row { display: flex; gap: 12px; align-items: flex-start }
.q-prompt { flex: 1; font-size: 1.45rem; font-weight: 700; line-height: 1.5 }
.q-prompt .eq { font-size: 3rem; font-weight: 900; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 6px 0 }
.q-prompt .eq .op { color: var(--muted) }
.ans-box { display: inline-block; min-width: 1.6em; padding: 0 .2em; text-align: center; border: 4px dashed #c7c2b4; border-radius: 14px; color: #c7c2b4; line-height: 1.2; vertical-align: middle; font-weight: 900 }
.ans-box.filled { border-style: solid; border-color: var(--B); color: var(--B) }
.ans-box.good { border-style: solid; border-color: var(--C); color: var(--C) }
.solo-box { text-align: center; font-size: 2.6rem; font-weight: 900; margin-bottom: 10px; min-height: 0; display: flex; justify-content: center; align-items: center; gap: 8px }
.solo-box:empty { display: none }
.solo-box .unit { font-size: 1.6rem; color: var(--muted) }
.q-body { display: grid; grid-template-columns: 1fr 290px; gap: 18px; margin-top: 14px }
.q-body.noviz { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto }
.q-body.noviz .q-left { display: none }
.q-left, .q-right { min-width: 0 } /* un visuel large défile dans .q-viz au lieu d'élargir la page */
@media (max-width: 860px) { .q-body { grid-template-columns: 1fr } .q-prompt { font-size: 1.25rem } .q-prompt .eq { font-size: 2.4rem } }
.q-viz { background: #fbfaf6; border: 3px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 120px; overflow-x: auto }
.q-viz:empty { display: none }
.q-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px }
.key { font-size: 1.8rem; font-weight: 900; padding: 10px 0; border-radius: 16px; background: #fff; box-shadow: 0 5px 0 var(--line); border: 3px solid var(--line) }
.key:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line) }
.key.ok { grid-column: span 3; background: var(--C-strong); color: #fff; border-color: var(--C-strong-edge); box-shadow: 0 5px 0 var(--C-strong-edge); font-size: 1.4rem }
.key.del { background: #fff1f3 }
.key:disabled { opacity: .45 }
.choices-grid { display: grid; gap: 10px }
.choice-btn { border: 3px solid var(--line); background: #fff; border-radius: 18px; padding: 12px 10px; font-size: 1.3rem; font-weight: 800; box-shadow: 0 4px 0 var(--line); min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-direction: column }
.choice-btn svg { max-width: 100%; height: auto }
.choice-btn:hover:not(:disabled) { border-color: var(--B) }
.choice-btn.right { background: var(--Cc); border-color: var(--C); opacity: 1 }
.choice-btn.wrong { background: #ffe5e5; border-color: var(--red); animation: shake .4s }
.choice-btn:disabled:not(.right):not(.wrong) { opacity: .55 }
.order-slots { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px }
.order-slots .slot { min-width: 64px; min-height: 52px; border: 3px dashed #c7c2b4; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 900; padding: 0 6px }
.small-undo { margin-top: 10px }
.q-feedback { text-align: center; font-size: 1.25rem; font-weight: 900; min-height: 2em; margin: 12px 0 6px; display: flex; flex-direction: column; align-items: center; justify-content: center }
.q-feedback.good { color: var(--C-strong) }
.q-feedback.bad { color: var(--red) }
.q-feedback.hint { color: var(--ink) }
.q-next { width: 100%; animation: pop .5s }

.end { text-align: center }
.end .trophy { font-size: 5.5rem; animation: bob 2s infinite }
.end h2 { font-size: 2rem; margin: 6px 0 }
.end .lead { font-size: 1.25rem }
.end-stars { font-size: 2.1rem; letter-spacing: 3px; margin: 8px 0 16px }
.end-skills { display: grid; gap: 8px; max-width: 520px; margin: 0 auto }
.end-skill { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: #fbfaf6; border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; text-align: left; font-weight: 700 }

