/* KAMUCO Évaluations — formulaire mobile, copie imprimable, affiche QR */
.kev {
	--navy: #1E2761;
	--orange: #FF7A45;
	--glacier: #CADCFC;
	--light: #EEF3FE;
	--sub: #4A5578;
	max-width: 44rem;
	margin: 0 auto;
	font-size: 1.05rem;
	line-height: 1.5;
	color: #222;
}
.kev * { box-sizing: border-box; }

/* ---------- en-tête ---------- */
.kev-entete { margin-bottom: 1.4rem; }
.kev-logos { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; }
.kev-logos img { height: 40px; width: auto; max-width: 32%; object-fit: contain; }
.kev-entete h1 { font-size: 1.7rem; line-height: 1.2; color: var(--navy); margin: .4rem 0 .2rem; }
.kev-sous-titre { color: var(--sub); margin: 0 0 .6rem; }
.kev-intro { background: var(--light); padding: .8rem 1rem; border-radius: .6rem; margin: 0; }

/* ---------- sections ---------- */
.kev-section { margin: 1.6rem 0; }
.kev-section > h2 {
	background: var(--navy); color: #fff; font-size: 1.05rem; margin: 0 0 .8rem;
	padding: .5rem .8rem; border-radius: .4rem; display: flex; align-items: center; gap: .6rem;
}
.kev-section > h2 span {
	background: var(--orange); border-radius: 50%; width: 1.6rem; height: 1.6rem;
	display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; flex: 0 0 auto;
}
.kev-aide { color: var(--sub); font-style: italic; margin: -.4rem 0 .8rem; }

/* ---------- champs ---------- */
.kev-champ { margin: 0 0 1.1rem; border: 0; padding: 0; }
.kev-champ > label, .kev-champ > legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.kev-champ input[type=text], .kev-champ input[type=date], .kev-champ textarea, .kev-champ select {
	width: 100%; padding: .7rem .8rem; border: 1px solid var(--glacier); border-radius: .5rem;
	font-size: 1.05rem; font-family: inherit; background: #fff;
}
.kev-champ textarea { min-height: 5rem; }

.kev-case { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem .7rem; margin-bottom: .35rem;
	background: #F7F9FE; border: 1px solid var(--glacier); border-radius: .5rem; cursor: pointer; }
.kev-case input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.kev-case:has(input:checked) { background: #FFE8DE; border-color: var(--orange); }

.kev-ligne { padding: .6rem .7rem; margin-bottom: .5rem; background: #F7F9FE; border: 1px solid var(--glacier); border-radius: .5rem; }
.kev-item { font-weight: 600; margin: 0 0 .45rem; }
.kev-choix { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.kev-choix label { display: flex; align-items: center; gap: .4rem; font-size: .95rem; padding: .35rem .4rem; border-radius: .4rem; background: #fff; border: 1px solid var(--glacier); }
.kev-choix label:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.kev-deux { display: flex; gap: .8rem; }
.kev-deux label { flex: 1; font-size: .9rem; color: var(--sub); }
.kev-deux span { display: block; margin-bottom: .2rem; }

.kev-qcm legend { font-weight: 700; color: var(--navy); }
.kev-notes { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.kev-notes label { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .5rem 0;
	background: #F7F9FE; border: 1px solid var(--glacier); border-radius: .5rem; }
.kev-notes label:has(input:checked) { background: var(--orange); color: #fff; border-color: var(--orange); }
.kev-notes input { position: absolute; opacity: 0; }

.kev-hp { position: absolute; left: -9999px; }
.kev-rgpd { font-size: .9rem; color: var(--sub); }
.kev-btn { background: var(--navy); color: #fff; border: 0; border-radius: 2rem; padding: .8rem 1.4rem; font-size: 1.05rem; cursor: pointer; }
.kev-btn-large { width: 100%; padding: 1rem; font-size: 1.15rem; font-weight: 700; }
.kev-envoi { position: sticky; bottom: .6rem; }

.kev-merci h2 { color: var(--navy); }
.kev-score { font-weight: 700; color: var(--orange); }

/* ---------- copie imprimable ---------- */
.kev-print { max-width: 46rem; margin: 1.5rem auto; background: #fff; color: #222; }
.kev-print-entete h1 { font-size: 1.5rem; color: var(--navy); margin: .3rem 0; }
.kev-ident { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .95rem; }
.kev-ident th, .kev-ident td { border: 1px solid var(--glacier); padding: .35rem .5rem; text-align: left; }
.kev-ident th { background: var(--light); color: var(--navy); width: 18%; }
.kev-print-section { margin-top: 1rem; page-break-inside: auto; }
.kev-print-section > h2 { background: var(--navy); color: #fff; font-size: 1rem; padding: .35rem .6rem; border-radius: .3rem; }
.kev-rep { margin: .35rem 0; }
.kev-liste { margin: .2rem 0 .6rem 1rem; padding: 0; list-style: none; }
.kev-tab { width: 100%; border-collapse: collapse; margin: .5rem 0 .9rem; font-size: .92rem; }
.kev-tab caption { text-align: left; font-weight: 700; color: var(--navy); padding-bottom: .25rem; }
.kev-tab th, .kev-tab td { border: 1px solid var(--glacier); padding: .3rem .45rem; }
.kev-tab th { background: var(--light); color: var(--navy); }
.kev-val { text-align: center; white-space: nowrap; }
.kev-qcm-print { margin: .3rem 0 .6rem 1.2rem; }
.kev-qcm-print li { margin-bottom: .3rem; }
.kev-juste { color: #17663F; }
.kev-faux { color: #A32B2B; }
.kev-lignes span { display: block; border-bottom: 1px solid var(--glacier); height: 1.3rem; }
.kev-print-pied { margin-top: 1rem; border-top: 2px solid var(--navy); padding-top: .3rem; font-size: .8rem; color: var(--sub); }

/* ---------- affiche QR ---------- */
.kev-affiche { border: 2px solid var(--glacier); border-radius: .8rem; padding: 1.2rem; margin: 1.2rem 0; max-width: 30rem; text-align: center; background: #fff; }
.kev-affiche-logo { height: 46px; }
.kev-affiche-sur { color: var(--orange); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin: .5rem 0 0; }
.kev-affiche h2 { color: var(--navy); margin: .2rem 0 .8rem; }
.kev-qr svg { width: 220px; height: 220px; }
.kev-qr-vide { color: #A32B2B; }
.kev-affiche-url { word-break: break-all; font-size: .85rem; color: var(--sub); }
.kev-affiche-mode { font-weight: 700; color: var(--navy); }

/* ---------- impression ---------- */
@media print {
	body { background: #fff; }
	.kev-form, .kev-actions-noprint, .kev-filtres, #adminmenumain, #wpadminbar, #wpfooter, .notice, .kev-envoi { display: none !important; }
	.kev-copie, .kev-print { display: block !important; margin: 0; }
	.kev-print-section { break-inside: avoid; }
	.kev-tab { font-size: .8rem; }
	body.kev-impression .kev-affiche { display: none !important; }
	body.kev-impression .kev-affiche.kev-imprimer { display: block !important; border: 0; margin: 0 auto; }
	body.kev-impression .kev-qr svg { width: 12cm; height: 12cm; }
}


/* ---------- composeur de questionnaire (administration) ---------- */
.kb-composeur { max-width: 60rem; }
.kb-bloc { background: #fff; border: 1px solid #dcdcde; border-left: 4px solid #1E2761; border-radius: .3rem; padding: .9rem 1rem; margin: 0 0 1rem; }
.kb-bloc h3 { margin-top: 0; color: #1E2761; }
.kb-bloc h4 { margin: .8rem 0 .3rem; color: #4A5578; font-size: .95rem; }
.kb-section { border-left-color: #FF7A45; }
.kb-field { border-left-color: #CADCFC; margin-left: 1.2rem; background: #F7F9FE; }
.kb-barre { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.kb-num, .kb-type-nom { font-weight: 700; color: #1E2761; }
.kb-actions { display: flex; gap: .25rem; }
.kb-suppr { color: #A32B2B !important; }
.kb-champ { margin: .4rem 0; }
.kb-champ > label { display: block; font-weight: 600; color: #4A5578; margin-bottom: .15rem; font-size: .9rem; }
.kb-champ.kb-inline > label { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
.kb-champ.kb-petit input { max-width: 18rem; }
.kb-logo input { margin-right: .4rem; }
.kb-question { border: 1px dashed #CADCFC; border-radius: .3rem; padding: .6rem .8rem; margin-bottom: .6rem; background: #fff; }
.kb-reponse { display: flex; align-items: center; gap: .5rem; margin: .25rem 0; }
.kb-reponse label { display: flex; align-items: center; gap: .3rem; font-size: .85rem; color: #4A5578; white-space: nowrap; }
.kb-ajout { margin: .6rem 0 0; }
.kb-modes { margin: .8rem 0; }
.kb-enregistrer { position: sticky; bottom: 0; background: #f0f0f1; padding: .8rem 0; margin: 0; }

/* ---- Correction par le formateur ---- */
.kev-badge{display:inline-block;padding:2px 10px;border-radius:12px;background:#e8ecf5;color:#1E2761;font-size:12px;font-weight:600}
.kev-badge-attente{background:#FFE3D6;color:#B3430F}
.kev-badge-ok{background:#DDF3E4;color:#17672F}
.kev-correction{background:#fff;border:1px solid #CADCFC;border-left:5px solid #FF7A45;border-radius:6px;padding:16px 20px;margin:16px 0;max-width:980px}
.kev-correction h2{margin:0 0 4px;color:#1E2761}
.kev-correction h3{margin:20px 0 6px;color:#1E2761;border-bottom:2px solid #CADCFC;padding-bottom:4px}
.kev-corr-score{font-size:15px;margin:4px 0}
.kev-corr-bloc{margin:10px 0}
.kev-corr-bloc blockquote{margin:4px 0 8px;padding:8px 12px;background:#F3F7FE;border-left:3px solid #CADCFC;border-radius:3px}
.kev-corr-grille td,.kev-corr-grille th{text-align:center}
.kev-corr-grille td:first-child,.kev-corr-grille th:first-child{text-align:left}
.kev-note{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:10px;background:#FFE3D6;color:#B3430F;font-weight:700;font-size:.9em}
@media print{.kev-correction{display:none!important}}

.kev-corr-attendues{list-style:none;margin:4px 0 8px;padding:0}
.kev-corr-attendues li{margin:2px 0;font-size:13px}
.kev-trouve{color:#17672F}.kev-manque{color:#B3430F}

/* ---- Statistiques ---- */
.kev-stats .kev-stats-titre{font-size:15px;margin:8px 0}
.kev-kpis{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 16px}
.kev-kpi{background:#fff;border:1px solid #CADCFC;border-top:4px solid #FF7A45;border-radius:6px;padding:10px 18px;min-width:130px;color:#5a6080;font-size:13px}
.kev-kpi span{display:block;font-size:28px;font-weight:700;color:#1E2761;line-height:1.2}
.kev-stats-outils{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:8px 0 12px}
.kev-stat-section{margin:26px 0 8px;padding-bottom:4px;border-bottom:3px solid #CADCFC;color:#1E2761}
.kev-stat-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(480px,1fr));gap:16px;align-items:start}
.kev-stat-carte{background:#fff;border:1px solid #CADCFC;border-radius:6px;padding:10px 14px;break-inside:avoid;page-break-inside:avoid}
.kev-stat-carte.kev-large{grid-column:1/-1}
.kev-stat-carte svg{display:block;max-width:100%;height:auto}
.kev-stat-tete{display:flex;gap:8px;justify-content:flex-end;margin-bottom:4px}
.kev-stat-resume{margin:2px 0 4px;font-weight:600;color:#1E2761}
.kev-stats-table{margin-top:8px}
.kev-stat-citations{max-height:360px;overflow:auto;margin:8px 0 0 18px}
.kev-stat-citations li{margin:4px 0;padding:4px 8px;background:#F3F7FE;border-left:3px solid #CADCFC;list-style:none;margin-left:-18px}
@media (max-width:600px){.kev-stat-grille{grid-template-columns:1fr}}
@media print{
  #adminmenumain,#wpadminbar,#wpfooter,.kev-noprint,.notice{display:none!important}
  #wpcontent{margin-left:0!important;padding:0!important}
  .kev-stat-grille{grid-template-columns:1fr 1fr}
  .kev-stat-carte{box-shadow:none}
  .kev-stat-carte details{display:none}
}

/* ---- Classement ---- */
.kev-class-form{background:#fff;border:1px solid #CADCFC;border-radius:6px;padding:12px 16px;margin:12px 0;max-width:1000px}
.kev-class-ligne{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin:6px 0}
.kev-class-crit{margin:10px 0;padding:6px 0;border-top:1px solid #e3e8f3}
.kev-class-crit summary{cursor:pointer}
.kev-crit-section{border:1px solid #e3e8f3;border-radius:4px;margin:8px 0;padding:6px 12px}
.kev-crit-item{display:block;margin:3px 0 3px 18px}
.kev-class-titre{color:#1E2761;margin:18px 0 0}
.kev-class-sous{color:#5a6080;margin:2px 0 10px}
.kev-class-outils{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}
.kev-podium{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}
.kev-podium-carte{flex:1 1 200px;max-width:280px;background:#fff;border:1px solid #CADCFC;border-top:6px solid #CADCFC;border-radius:6px;padding:10px 14px;display:flex;flex-direction:column;gap:2px;color:#5a6080}
.kev-podium-carte strong{font-size:17px;color:#1E2761}
.kev-podium-rang{font-weight:700;color:#B3430F}
.kev-podium-carte.kev-rang-1{border-top-color:#E9B400;background:#FFF9DF}
.kev-podium-carte.kev-rang-2{border-top-color:#9AA3B5;background:#F4F6FA}
.kev-podium-carte.kev-rang-3{border-top-color:#C27C47;background:#FBF1E8}
.kev-class-table{max-width:1100px}
.kev-class-table th{background:#1E2761;color:#fff}
.kev-class-table td{vertical-align:middle}
.kev-class-table .kev-rang{font-weight:700;font-size:16px;color:#1E2761;text-align:center}
.kev-class-table tr.kev-rang-1 td{background:#FFF9DF}
.kev-class-table tr.kev-rang-2 td{background:#F4F6FA}
.kev-class-table tr.kev-rang-3 td{background:#FBF1E8}
.kev-barre{display:inline-block;width:90px;height:9px;background:#e3e8f3;border-radius:5px;vertical-align:middle;overflow:hidden}
.kev-barre span{display:block;height:100%;background:#FF7A45}
.kev-class-legende{font-size:12px;color:#5a6080;max-width:1100px}
.kev-print-entete{display:none}
@media print{
  .kev-print-entete{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #1E2761;padding-bottom:6px;margin-bottom:10px}
  .kev-print-entete img{height:46px;width:auto}
  .kev-class-form,.kev-class-outils{display:none!important}
  .kev-class-table th,.kev-podium-carte,.kev-class-table tr td{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ---------- images et sons des questions ---------- */
.kev .kev-son{display:inline-flex;align-items:center;justify-content:center;min-width:2.2rem;min-height:2.2rem;margin:0 0 0 .4rem;padding:0 .35rem;border:0;border-radius:999px;background:var(--kev-glacier,#CADCFC);color:var(--kev-navy,#1E2761);font-size:1.05rem;line-height:1;cursor:pointer;vertical-align:middle}
.kev .kev-son:hover,.kev .kev-son:focus-visible{background:var(--kev-orange,#FF7A45);color:#fff;outline:2px solid var(--kev-navy,#1E2761);outline-offset:2px}
.kev .kev-son.kev-son-on{background:var(--kev-orange,#FF7A45);color:#fff}
.kev .kev-img{display:block;max-width:100%;height:auto;max-height:22rem;margin:.5rem 0;border-radius:.5rem;border:1px solid #D6DEEF}
.kev .kev-case .kev-img{max-height:9rem;margin:0 0 .3rem}
.kev .kev-case .kev-son{margin-left:auto}
@media print{.kev .kev-son{display:none}}
.kb-outils{display:block;margin-top:.25rem}
.kb-outils .kb-media{margin-right:.3rem;font-size:.8rem;min-height:26px;line-height:1.2}
.kb-reponse .kb-outils{display:inline-block;margin:0 0 0 .3rem}
.kev .kev-lecture{box-shadow:0 0 0 2px var(--kev-orange,#FF7A45);border-radius:.4rem}
.kb-enreg{background:#F4F7FD;border:1px solid #CADCFC;border-radius:6px;padding:.5rem .75rem;margin:.4rem 0}
.kb-enreg p{margin:.3rem 0}.kb-apercu{width:100%;max-width:28rem}.kb-etat{font-weight:600;color:#1E2761}

/* ---------- questions chronométrées ---------- */
.kev .kev-chrono-barre{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:.6rem 0;padding:.5rem .7rem;background:#F4F7FD;border:1px solid #CADCFC;border-radius:.5rem}
.kev .kev-chrono-info{font-weight:700;color:#1E2761;font-variant-numeric:tabular-nums}
.kev .kev-chrono-jauge{flex:1 1 100%;height:.5rem;background:#E3EAF8;border-radius:.25rem;overflow:hidden}
.kev .kev-chrono-jauge div{height:100%;width:100%;background:#FF7A45;transition:width .25s linear}
.kev .kev-chrono-urgent .kev-chrono-info{color:#C0392B}
.kev .kev-verrou .kev-case,.kev .kev-verrou .kev-ligne,.kev .kev-verrou .kev-notes,.kev .kev-verrou input:not([type=hidden]),.kev .kev-verrou textarea,.kev .kev-verrou select,.kev .kev-verrou .kev-champ-aide{display:none}
.kev .kev-expire{opacity:.7;pointer-events:none}
