/* Questionnaire – Projet e-learning Iqraa (reprend les variables et styles de iqraa.css) */
.qz-wrap { max-width: 900px; display: grid; gap: 22px; }

.qz-intro { display: flex; gap: 18px; align-items: flex-start; }
.qz-intro h2 { font-size: 22px; }
.qz-intro p { margin: 0; }
.qz-intro-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--mint); color: var(--g-700); display: grid; place-items: center; }

.qz-done { text-align: center; }
.qz-done-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 10px 24px -8px rgba(16, 185, 129, .7); }
.qz-done .btn { margin-top: 8px; }

.qz-form { margin-top: 0; gap: 20px; }

/* Indicateur de progression */
.qz-progress { position: sticky; top: 92px; z-index: 6; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; box-shadow: var(--sh); }
.admin-bar .qz-progress { top: 124px; }
.qz-progress-txt { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.qz-progress-txt strong { color: var(--g-900); font-weight: 600; }
.qz-progress-bar { height: 8px; border-radius: 99px; background: var(--mint); overflow: hidden; }
.qz-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--g-600), var(--g)); border-radius: 99px; transition: width .35s var(--ease); }

/* Cartes de question */
.qz-q { margin: 0; min-width: 0; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.5vw, 30px); box-shadow: var(--sh); transition: border-color .25s; }
.qz-q.is-done { border-color: var(--mint-2); }
.qz-q legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-size: clamp(16px, 2vw, 18px); font-weight: 700; color: var(--ink); line-height: 1.4; display: flex; gap: 12px; align-items: flex-start; }
.qz-q legend + * { clear: both; }
.qz-q legend em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 14px; align-self: center; }
.qz-n { flex: none; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 10px; background: var(--g); color: #fff; font-size: 14px; font-weight: 700; display: inline-grid; place-items: center; }
.qz-q.is-done .qz-n { background: var(--g-700); }
.qz-hint { margin: -6px 0 12px; font-size: 13px; font-weight: 600; color: var(--g-700); text-transform: uppercase; letter-spacing: .05em; }

.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.iq-form .qz-opt { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 500; font-size: 15px; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; line-height: 1.4; }
.iq-form .qz-opt:hover { border-color: var(--g); background: var(--mint); }
.iq-form .qz-opt input { flex: none; width: 22px; height: 22px; margin: 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--g); cursor: pointer; }
.iq-form .qz-opt input:focus { box-shadow: none; }
.iq-form .qz-opt:has(input:checked) { border-color: var(--g); background: var(--mint); box-shadow: 0 0 0 3px rgba(16, 185, 129, .14); }
.iq-form .qz-opt:has(input:focus-visible) { outline: 3px solid rgba(16, 185, 129, .45); outline-offset: 2px; }

.qz-other { margin-top: 12px; }
.qz-q textarea { min-height: 120px; resize: vertical; }

.qz-submit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 6px; }
.qz-submit p { margin: 0; font-size: 14px; }
.iq-form .qz-submit .btn { justify-self: center; }
.qz-submit .btn[disabled] { opacity: .7; cursor: wait; transform: none; }

@media (max-width: 782px) {
	.admin-bar .qz-progress { top: 136px; }
}
@media (max-width: 640px) {
	.qz-opts { grid-template-columns: 1fr; }
	.qz-intro { flex-direction: column; }
	.qz-progress, .admin-bar .qz-progress { top: 78px; padding: 10px 14px; }
	.qz-progress-txt { font-size: 13px; }
	.qz-progress-txt > span { display: none; }
	.qz-submit .btn { width: 100%; white-space: normal; }
	.row2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) and (min-width: 601px) {
	.admin-bar .qz-progress { top: 124px; }
}
