/* Design system — 7. Formats de questions (formats.js) */
/* Texte à lire et écoute */
.q-passage { background: #fffdf6; border: 3px solid var(--line); border-left: 8px solid var(--yel); border-radius: 18px; padding: 12px 16px; margin: 6px 0 12px }
.q-passage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px }
.q-passage-text { font-size: 1.3rem; line-height: 1.8 }
.q-passage-text p { margin: 0 0 8px }
.q-passage-text mark { background: #fff1b8; border-radius: 4px; padding: 0 2px }
.q-audio { display: flex; gap: 10px; justify-content: center; margin: 6px 0 12px; flex-wrap: wrap }
/* Mise en page large */
.q-body.wide { grid-template-columns: 1fr; max-width: none; margin-left: 0; margin-right: 0 }
.q-body.wide .q-right { max-width: 760px; width: 100%; margin: 0 auto }
/* multi */
.choice-btn.sel { border-color: var(--B); background: var(--Bb) }
.fmt-check { width: 100%; margin-top: 12px }
/* order : révélation */
.order-slots .slot.good { border-style: solid; border-color: var(--C); background: var(--Cc) }
/* text */
.text-ans { display: flex; justify-content: center }
.text-input { width: 100%; max-width: 420px; font-size: 2rem; font-weight: 800; text-align: center; padding: 10px 14px; border: 4px solid var(--line); border-radius: 18px; font-family: inherit; color: var(--B) }
.text-input:focus { outline: none; border-color: var(--B) }
.text-input.good { border-color: var(--C); color: var(--C); background: var(--Cc) }
.kb { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: center }
.kb-row { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center }
.kb-key { min-width: 40px; height: 44px; border: 3px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.25rem; font-weight: 800; box-shadow: 0 3px 0 var(--line) }
.kb-key.wide { min-width: 160px }
.kb-row.accents .kb-key { background: #fff8e6 }
.ld-row { display: flex; gap: 3px; justify-content: center; margin: 6px 0; font-size: 1.5rem; font-weight: 900; letter-spacing: 1px }
.ld { min-width: 1em; border-bottom: 3px solid var(--line) }
.ld.ok { color: var(--C); border-color: var(--C) }
.ld.no { color: #c7c2b4 }
/* match */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.match-col { display: flex; flex-direction: column; gap: 10px }
.match-item { border: 3px solid var(--line); background: #fff; border-radius: 16px; min-height: 58px; padding: 8px 12px; font-size: 1.2rem; font-weight: 800; box-shadow: 0 4px 0 var(--line); display: flex; align-items: center; justify-content: center; gap: 8px }
.match-item.sel { border-color: var(--B); background: var(--Bb) }
.match-item.paired { border-color: var(--pair, var(--C)); background: #f1faf6; background: color-mix(in srgb, var(--pair, var(--C)) 14%, #fff); opacity: 1 }
.match-item.wrong { animation: shake .4s; border-color: var(--red) }
/* sort */
.sort-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 60px; padding: 10px; border: 3px dashed var(--line); border-radius: 18px; margin-bottom: 12px }
.sort-item { border: 3px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 1.2rem; font-weight: 800; min-height: var(--touch); box-shadow: 0 3px 0 var(--line) }
.sort-item.sel { border-color: var(--B); background: var(--Bb); transform: translateY(-3px) }
.sort-item.in { box-shadow: none; padding: 4px 8px; font-size: 1rem; min-height: 0; border-width: 2px }
.sort-bins { display: grid; gap: 10px }
.sort-bin { border: 4px solid var(--ink); border-radius: 18px; background: #fbfaf6; min-height: 120px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 1.1rem }
.sort-bin.wrong { animation: shake .4s; border-color: var(--red) }
.sort-in { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center }
/* cloze */
.cloze-text { font-size: 1.5rem; line-height: 2.3; font-weight: 700; text-align: center }
.cloze-gap { min-width: 80px; border: none; border-bottom: 4px dashed #c7c2b4; background: #fff8e6; border-radius: 8px 8px 0 0; font-size: 1.4rem; font-weight: 900; color: var(--B); padding: 0 8px }
.cloze-gap.sel { background: var(--Bb); border-bottom-color: var(--B) }
.cloze-gap.filled { border-bottom-style: solid }
.cloze-gap.wrong { background: #ffe5e5; border-bottom-color: var(--red); color: var(--red) }
.cloze-gap.good { background: var(--Cc); border-bottom-color: var(--C); color: var(--C) }
.cloze-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px }
.chip-btn { border: 3px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 1.2rem; font-weight: 800; min-height: var(--touch); box-shadow: 0 3px 0 var(--line) }
/* tapwords */
.tapwords { font-size: 1.6rem; line-height: 2.4; text-align: center; font-weight: 700 }
.tw { border: 3px solid transparent; background: #fff; border-radius: 10px; font-size: inherit; font-weight: inherit; padding: 0 8px; border-bottom: 3px dotted var(--line); min-height: 44px; min-width: 44px; line-height: 1.3 }
.tw:hover { background: var(--Bb) }
.tw.sel { border-color: var(--B); background: var(--Bb) }
.tw.right { border-color: var(--C); background: var(--Cc) }
.tw.wrong { border-color: var(--red); background: #ffe5e5; animation: shake .4s }
/* hotspot */
.hotspot { display: flex; justify-content: center }
.hotspot svg { max-width: 100%; height: auto }
.hotspot [data-hot] { cursor: pointer }
.hotspot .hot-right { outline: 4px solid var(--C); filter: drop-shadow(0 0 6px var(--C)) }
.hotspot .hot-wrong { opacity: .4 }
/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px }
.step { border: 3px solid var(--line); border-radius: 18px; padding: 12px 14px; background: #fff }
.step.todo { opacity: .45 }
.step.todo .step-body, .step.todo .step-prompt { display: none }
.step.now { border-color: var(--org); box-shadow: 0 4px 0 #f5c99c }
.step.ok { border-color: var(--C) }
.step.miss { border-color: #f4a6a6 }
.step-head { display: flex; align-items: center; gap: 8px; font-size: 1.1rem }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900 }
.step.ok .step-num { background: var(--C) }
.step-prompt { font-size: 1.25rem; font-weight: 700; margin: 6px 0 }
.step.ok .pad, .step.miss .pad, .step.ok .kb, .step.miss .kb, .step.ok .fmt-check, .step.miss .fmt-check { display: none }
.step-fb { font-weight: 800; margin-top: 6px }
.step-fb.good { color: var(--C-strong) }
.step-fb.bad { color: var(--red) }
@media (max-width: 560px) { .match { gap: 8px } .match-item { font-size: 1rem } .cloze-text, .tapwords { font-size: 1.25rem } }
