/* Fiche d'évaluation à chaud (s'appuie sur iqraa.css et questionnaire.css) */
.ev-wrap { max-width: 980px; }
.iq-form label[hidden] { display: none !important; }

.ev-fields { display: grid; gap: 16px; }
.ev-field { display: grid; gap: 8px; }
.ev-lbl { font-weight: 600; font-size: 15px; color: var(--ink); }
.ev-statut { grid-template-columns: repeat(2, minmax(0, 240px)); }
.iq-form input.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }

/* Tableau d'appréciation */
.ev-grid { display: grid; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.ev-head, .ev-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 104px); align-items: stretch; }
.ev-head { background: var(--mint); color: var(--g-900); font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center; }
.ev-head span { padding: 11px 6px; display: grid; place-items: center; border-left: 1px solid var(--mint-2); }
.ev-head span:first-child { justify-items: start; text-align: left; padding-left: 18px; border-left: 0; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.ev-row { border-top: 1px solid var(--line); transition: background .2s; }
.ev-row:nth-child(odd) { background: #fbfdfc; }
.ev-row.is-missing { background: #fef2f2; box-shadow: inset 4px 0 0 #ef4444; }
.ev-label { padding: 13px 18px; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.45; align-self: center; }
.ev-opts { display: contents; }

.iq-form .ev-opt { display: grid; place-items: center; margin: 0; padding: 8px 4px; min-height: 54px; border-left: 1px solid var(--line); cursor: pointer; transition: background .2s; font-weight: 500; }
.iq-form .ev-opt:hover { background: var(--mint); }
.iq-form .ev-opt input { width: 22px; height: 22px; margin: 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--g); cursor: pointer; }
.iq-form .ev-opt input:focus { box-shadow: none; }
.iq-form .ev-opt:has(input:focus-visible) { outline: 3px solid rgba(16, 185, 129, .45); outline-offset: -3px; }
.iq-form .ev-o1:has(input:checked) { background: #fee2e2; }
.iq-form .ev-o1 input { accent-color: #ef4444; }
.iq-form .ev-o2:has(input:checked) { background: #fef3c7; }
.iq-form .ev-o2 input { accent-color: #f59e0b; }
.iq-form .ev-o3:has(input:checked) { background: #d1fae5; }
.iq-form .ev-o4:has(input:checked) { background: #a7f3d0; }
.iq-form .ev-o4 input { accent-color: var(--g-700); }
.ev-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ev-sec.is-done { border-color: var(--mint-2); }
.ev-sec.is-done .qz-n { background: var(--g-700); }

.ev-done-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.ev-done-btns .btn { margin-top: 0; }

/* Mobile : chaque critère devient une carte avec 4 choix */
@media (max-width: 760px) {
	.ev-grid { border: 0; border-radius: 0; background: transparent; gap: 12px; overflow: visible; }
	.ev-head { display: none; }
	.ev-row, .ev-row:nth-child(odd) { grid-template-columns: 1fr; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
	.ev-label { padding: 0 0 10px; }
	.ev-row.is-missing, .ev-row.is-missing:nth-child(odd) { background: #fef2f2; border-color: #ef4444; box-shadow: none; }
	.ev-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.iq-form .ev-opt { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.3; }
	.iq-form .ev-opt:has(input:checked) { border-color: var(--g); }
	.iq-form .ev-o1:has(input:checked) { border-color: #ef4444; }
	.iq-form .ev-o2:has(input:checked) { border-color: #f59e0b; }
	.ev-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
	.ev-statut { grid-template-columns: 1fr 1fr; }
}
