.qcm { padding-top: 28px; padding-bottom: 20px; min-height: 60vh; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.packs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 18px; }
.pack { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.pack:hover { border-color: var(--orange); }
.pack h3 { font-size: 1.25rem; }
.pack p { margin: 0; color: var(--muted); }
.stats { font-size: .9rem; color: var(--muted); }

.matiere { margin-top: 26px; }
.matiere h3 { font-size: 1.15rem; border-bottom: 2px solid var(--orange); padding-bottom: 4px; }
.chap { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.chap .t { font-weight: 700; }
.chap .m { font-size: .85rem; color: var(--muted); }
.chap .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .chap { grid-template-columns: 1fr; } .chap .acts { justify-content: flex-start; } }

.unlock { background: var(--orange-soft); border: 1px solid #f6c39d; border-radius: 12px; padding: 16px; margin-top: 18px; }
.unlock form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.unlock input { flex: 1 1 200px; width: auto; }
.msg { font-size: .9rem; margin-top: 6px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }

.quizhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bar { height: 8px; background: #e7ebf2; border-radius: 99px; overflow: hidden; margin: 12px 0 18px; }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .25s; }
.timer { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.question { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.question .q { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 0 0 16px; }
.choices { display: grid; gap: 10px; }
.choice { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 1rem Inter, sans-serif; color: var(--ink); cursor: pointer; display: flex; gap: 10px; align-items: flex-start; min-height: 48px; }
.choice:hover:not([disabled]) { border-color: var(--navy-2); }
.choice .k { flex: 0 0 26px; height: 26px; border-radius: 8px; background: #eef1f6; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--navy); }
.choice.sel { border-color: var(--navy); background: #f1f4fa; }
.choice.good { border-color: var(--green); background: var(--green-soft); }
.choice.bad { border-color: var(--red); background: var(--red-soft); }
.choice[disabled] { cursor: default; }
.expl { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f4f6fa; border-left: 4px solid var(--navy); }
.expl.good { border-color: var(--green); }
.expl.bad { border-color: var(--red); }
.navq { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.score { font-family: Display, Inter, sans-serif; font-weight: 900; font-size: 3rem; color: var(--navy); line-height: 1; }
.review { margin-top: 18px; }
.review .item { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.review .item.ko { border-left-color: var(--red); }
.review .item p { margin: 4px 0 0; font-size: .95rem; }
.review .ans { color: var(--green); font-weight: 700; }
.review .your { color: var(--red); }
