/* Avatars des stagiaires (Moov City) */
.av-chip { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; overflow: hidden; background: linear-gradient(145deg, #2a1b4a, #4a1f5a); border: 2px solid rgba(255, 140, 220, 0.55); box-shadow: 0 4px 14px rgba(255, 90, 200, 0.25); padding: 0; cursor: pointer; vertical-align: middle; }
.av-chip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.av-chip.sm { width: 40px; height: 40px; border-radius: 12px; }
.av-chip.md { width: 52px; height: 52px; border-radius: 16px; }
.av-chip.inline { width: 34px; height: 34px; border-radius: 10px; margin-right: 10px; }
.av-chip.av-empty span { color: #ffd1f0; font-weight: 800; font-size: 1.1rem; }
.av-chip.av-head { display: flex; width: 46px; height: 46px; margin: 0 auto 6px; cursor: default; }
button.av-chip:active { transform: scale(0.94); }
#trainee-list .row.av-row { grid-template-columns: auto 1fr auto; }
#order-list li.av-li { display: flex; align-items: center; justify-content: center; }
#order-list li.av-li .av-chip { margin-right: 10px; }
#session-body .item.av-item { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
#session-body .item.av-item .av-chip { grid-row: 1 / span 3; }
.av-metarow { display: flex; align-items: center; gap: 12px; }


.av-gallery { position: fixed; inset: 0; z-index: 2000; background: rgba(6, 4, 14, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: flex-end; justify-content: center; }
.av-gallery[hidden] { display: none; }
.av-sheet { width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; background: linear-gradient(180deg, #1a1030, #0c0818); border-radius: 26px 26px 0 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 18px); border: 1px solid rgba(255, 140, 220, 0.3); box-shadow: 0 -20px 60px rgba(255, 90, 200, 0.2); }
.av-sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.av-sheet header small { letter-spacing: 0.18em; font-size: 0.66rem; color: #ff9bdc; font-weight: 700; }
.av-sheet header h2 { margin: 4px 0 0; font-size: 1.4rem; color: #fff; }
.av-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; font-size: 1.4rem; line-height: 1; }
.av-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.av-tabs button { min-height: 42px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: #e9e4f5; font-weight: 700; font-size: 0.86rem; }
.av-tabs button.on { background: linear-gradient(115deg, #ff5fc1, #8f6bff); border-color: transparent; color: #fff; }
.av-tabs .av-random { margin-left: auto; background: rgba(120, 255, 220, 0.12); border-color: rgba(120, 255, 220, 0.4); color: #a9ffe8; }
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (min-width: 600px) { .av-grid { grid-template-columns: repeat(6, 1fr); } }
.av-cell { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; padding: 0; border: 2px solid transparent; background: #1c1430; }
.av-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-cell.on { border-color: #7dffe0; box-shadow: 0 0 0 3px rgba(125, 255, 224, 0.35); }
.av-cell:active { transform: scale(0.96); }
body.av-open { overflow: hidden; }
@media print { .av-chip, .av-gallery { display: none !important; } }

/* Accès stagiaires */
.share-card .share-dur { grid-template-columns: repeat(3, 1fr); margin: 10px 0 12px; }
.share-card .share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.share-live { margin: 6px 0; font-size: 1rem; }
.share-live #share-left { font-family: Impact, 'Arial Black', sans-serif; color: #53ff8b; font-size: 1.3rem; letter-spacing: 1px; }

.share-login .av-sheet { align-items: stretch; }
.share-pwd { width: 100%; min-height: 60px; margin: 12px 0; border-radius: 16px; border: 2px solid rgba(255, 140, 220, 0.5); background: #0d0a1e; color: #fff; font: 800 1.6rem/1 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.18em; text-align: center; text-transform: uppercase; }
.share-pwd:focus { outline: none; border-color: #7dffe0; }
.share-err { color: #ffb4bb; }

/* Accès stagiaires : mode salle, QR, tableau de bord */
.share-mode { grid-template-columns: 1fr 1fr; margin: 6px 0 12px; }
.sa-row { display: grid; gap: 6px; margin: 10px 0; } .sa-row > span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.sa-row .rate { grid-template-columns: repeat(3, 1fr); margin: 0; }
.sa-teams { display: grid; gap: 8px; margin: 10px 0 6px; }
.sa-team { border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 10px; background: rgba(255,255,255,0.04); }
.sa-team.sa-target { border-color: #7dffe0; cursor: pointer; }
.sa-team strong { display: block; margin-bottom: 6px; } .sa-team small { color: var(--muted); font-weight: 500; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.07); color: #fff; font-weight: 700; font-size: 0.85rem; }
.sa-chip.on { background: linear-gradient(115deg, #ff5fc1, #8f6bff); border-color: transparent; }
.sa-av { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; object-position: 50% 18%; flex: 0 0 auto; }
.share-card .share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.share-card .share-actions .draw { grid-column: 1 / -1; }
.sa-qr-sheet .av-sheet { text-align: center; }
.sa-qr { background: #fff; border-radius: 18px; padding: 14px; margin: 10px auto; width: min(100%, 420px); }
.sa-qr svg { width: 100%; height: auto; display: block; }
.sa-qr-tip { margin-bottom: 12px; }
.sa-textarea { width: 100%; min-height: 110px; margin: 10px 0; border-radius: 14px; border: 1px solid rgba(255,255,255,0.18); background: #0d0a1e; color: #fff; font: 600 1.05rem Inter, sans-serif; padding: 10px 12px; }
.sa-check { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; color: #e9e4f5; font-weight: 600; }
.sa-check input { width: 22px; height: 22px; }
.share-home { border-color: rgba(125,255,224,0.5) !important; }
.sa-board { position: fixed; inset: 0; z-index: 2100; overflow: auto; background: var(--bg, #090C14); padding: calc(env(safe-area-inset-top) + 8px) 16px calc(env(safe-area-inset-bottom) + 24px); }
.sa-board-body { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.sa-board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sa-board-top h2 { margin: 2px 0; font-size: 1.4rem; }
.sa-round-left { font-family: Impact, 'Arial Black', sans-serif; color: #53ff8b; letter-spacing: 1px; }
.sa-board-top .draw { width: auto; min-width: 160px; }
.sa-ranking { display: grid; gap: 8px; }
.sa-rank { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,95,193,0.18), rgba(95,90,255,0.18)); border: 1px solid rgba(255,140,220,0.3); }
.sa-rank.off { opacity: 0.55; }
.sa-pos { font: italic 900 1.6rem Impact, 'Arial Black', sans-serif; color: #ffd84d; text-shadow: 2px 2px #000; text-align: center; }
.sa-rank-main strong { display: block; font-size: 1.05rem; } .sa-rank-main small, .sa-rank-score small { color: var(--muted); display: block; font-size: 0.75rem; }
.sa-rank-score { text-align: right; } .sa-rank-score strong { font-size: 1.3rem; color: #7dffe0; }
.sa-team-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sa-member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sa-member { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.sa-member.idle { opacity: 0.6; } .sa-member .sa-av { width: 34px; height: 34px; border-radius: 10px; }
.sa-member strong { display: block; font-size: 0.92rem; } .sa-member small { color: var(--muted); font-size: 0.72rem; }
.sa-log { margin: 6px 0; font-size: 0.9rem; }
@media (min-width: 700px) { .sa-member-grid { grid-template-columns: repeat(3, 1fr); } .share-card .share-actions { grid-template-columns: repeat(3, 1fr); } }

/* Carte accès stagiaires · habillage Moov City */
.share-card { border-color: rgba(255,140,220,0.45); background: linear-gradient(160deg, rgba(40,16,60,0.92), rgba(12,10,30,0.95)); }
.sa-title { display: flex; flex-direction: column; margin-bottom: 10px; }
.sa-title span { font: italic 900 12px Impact, 'Arial Black', sans-serif; color: #ff79d2; letter-spacing: 2px; text-shadow: 1px 1px #000; }
.sa-title strong { font: italic 900 1.5rem Impact, 'Arial Black', sans-serif; color: #fff; text-shadow: 2px 2px #100b18, 0 0 10px #ff65bb; letter-spacing: 0.5px; }
.sa-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.sa-modes button { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 18px; border: 1.5px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: #fff; text-align: center; }
.sa-modes button strong { font: italic 900 1rem Impact, 'Arial Black', sans-serif; letter-spacing: 0.5px; }
.sa-modes button small { font-size: 0.7rem; color: #b9b0d4; line-height: 1.3; }
.sa-modes button.on { border-color: #ff6bcd; background: linear-gradient(140deg, rgba(255,95,193,0.28), rgba(143,107,255,0.28)); box-shadow: 0 0 18px rgba(255,95,193,0.35); }
.sa-ico { font-size: 1.6rem; }
.sa-field { margin: 10px 0; }
.sa-field label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #d8d2ea; font-weight: 600; margin-bottom: 8px; }
.sa-num { width: 84px; min-height: 42px; border-radius: 12px; border: 1.5px solid rgba(255,140,220,0.5); background: #0d0a1e; color: #fff; font: 800 1.1rem Inter, sans-serif; text-align: center; }
.sa-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-pills button { min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #fff; font-weight: 700; font-size: 0.85rem; }
.sa-pills button.on { background: linear-gradient(115deg, #ff5fc1, #8f6bff); border-color: transparent; }

.sa-key { border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 8px 12px; margin: 8px 0; background: rgba(255,255,255,0.04); }
.sa-key summary { cursor: pointer; color: #fff; }
.sa-key ol { padding-left: 18px; margin: 8px 0 0; }
.sa-key li { margin: 8px 0; } .sa-key li small { color: #ff79d2; font-weight: 700; letter-spacing: 1px; }
.sa-key li p { margin: 2px 0; font-size: 0.9rem; color: #e8e3f5; }
.sa-key .sa-ans { color: #3ddc84; font-weight: 700; }
/* mode classe : code, liste des stagiaires, réponses */
.sa-modes3 { grid-template-columns: 1fr 1fr 1fr; }
.sa-modes3 button { padding: 10px 6px; } .sa-modes3 button strong { font-size: 0.9rem; } .sa-modes3 button small { font-size: 0.62rem; } .sa-modes3 .sa-ico { font-size: 1.3rem; }
.sa-code { display: grid; justify-items: center; gap: 2px; margin: 10px 0; padding: 12px; border-radius: 16px; border: 1.5px dashed rgba(255,140,220,0.55); background: rgba(255,255,255,0.04); }
.sa-code small { font-size: 0.62rem; letter-spacing: 2px; color: #ff79d2; font-weight: 800; }
.sa-code strong { font: 900 2.2rem/1 Inter, sans-serif; letter-spacing: 6px; color: #fff; text-shadow: 0 0 14px rgba(255,95,193,0.5); }
.sa-code span { font-size: 0.72rem; color: #b9b0d4; }
.sa-students { display: grid; gap: 8px; }
.sa-student { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #fff; }
.sa-student img, .sa-student .sa-av { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,0.08); }
.sa-student.online { border-color: rgba(61,220,132,0.6); box-shadow: 0 0 12px rgba(61,220,132,0.2); }
.sa-student.online small { color: #3ddc84; } .sa-student.idle small { color: #ffd166; } .sa-student.off { opacity: 0.6; }
.sa-student.open { border-color: #ff6bcd; }
.sa-st-main strong { display: block; font-size: 1rem; } .sa-st-main small { display: block; font-size: 0.72rem; color: #b9b0d4; }
.sa-st-score { text-align: right; } .sa-st-score strong { display: block; font: italic 900 1.2rem Impact, 'Arial Black', sans-serif; color: #fff; } .sa-st-score small { font-size: 0.65rem; color: #b9b0d4; }
.sa-st-detail { padding: 6px 4px 10px; display: grid; gap: 8px; }
.sa-ks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; } .sa-k { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); font-size: 0.75rem; font-weight: 700; }
.sa-ans { padding: 10px 12px; border-radius: 14px; border-left: 4px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.sa-ans.ok { border-left-color: #3ddc84; } .sa-ans.ko { border-left-color: #ff4f80; }
.sa-ans p { margin: 3px 0; font-size: 0.85rem; color: #e8e3f5; }
.sa-ans-q small { display: block; font-size: 0.65rem; letter-spacing: 1px; color: #ff79d2; font-weight: 800; text-transform: uppercase; }
.sa-ans-s strong { color: #fff; } .sa-ans-o { color: #3ddc84; }
.sa-ans-act { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.sa-verdict { font-weight: 800; }
.sa-copy summary { font-size: 0.78rem; color: #ff79d2; cursor: pointer; font-weight: 700; } .sa-copy p { white-space: pre-wrap; }

.sa-fb { margin-top: 8px; }
.sa-fb-cur { border-left: 3px solid #ff4f80; padding: 6px 10px; background: rgba(255,79,128,0.1); border-radius: 10px; color: #fff; font-weight: 600; }
.sa-fb-cur small { display: block; font-size: 0.62rem; letter-spacing: 1.5px; color: #ff6b8b; font-weight: 800; }
.sa-fb-det summary { font-size: 0.8rem; color: #ff79d2; font-weight: 700; cursor: pointer; }
.sa-fb-text { width: 100%; margin: 6px 0; border-radius: 12px; border: 1.5px solid rgba(255,140,220,0.5); background: #0d0a1e; color: #fff; font: 500 0.95rem/1.4 Inter, sans-serif; padding: 10px; }

/* suivi de correction */
.sa-todo { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #ffd166; color: #2a1c00; font: 800 0.68rem/1.4 Inter, sans-serif; font-style: normal; letter-spacing: 0.3px; vertical-align: middle; }
.sa-todo.ok { background: rgba(61,220,132,0.18); color: #3ddc84; }
.sa-todo-sum { margin: 6px 0 0; color: #b9b0d4; font-size: 0.85rem; } .sa-todo-sum b { color: #ffd166; font-size: 1.05rem; } .sa-todo-sum i { color: #3ddc84; font-style: normal; font-weight: 700; }
.sa-seen-btn { width: 100%; margin: 4px 0 12px; }
.sa-old { margin-top: 12px; } .sa-old > summary { cursor: pointer; color: #b9b0d4; font-weight: 700; padding: 8px 0; }

.sa-sec { margin: 4px 0 8px; color: #ffd166; }
