/* =============================================================
   eleve.css — Styles spécifiques au mode élève (grand format)
   ============================================================= */

body { font-size: 18px; }

/* ── Header élève ──────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 10;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(7, 10, 18, .95), rgba(7, 10, 18, .80));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
h1 { margin: 0; font-size: 22px; letter-spacing: .3px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ── Boutons (nécessaires pour l'overlay) ──────────────────── */
button {
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15, 23, 42, .65); border: 1px solid var(--line);
  color: var(--text); border-radius: 12px; padding: 9px 12px; font-size: 14px;
  outline: none; transition: background .15s; user-select: none;
}
button:active { transform: translateY(1px); }
button.primary {
  background: linear-gradient(135deg, var(--accent), rgba(34, 211, 238, .55));
  color: #05101c; border-color: transparent; font-weight: 700;
  box-shadow: 0 10px 26px rgba(34, 211, 238, .20);
}
button.ghost {
  background: rgba(15, 23, 42, .45); border: 1px dashed rgba(148, 163, 184, .38); color: #cbd5e1;
}

/* ── Indicateur live ───────────────────────────────────────── */
#liveIndicator {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
#liveDot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}

/* ── Sélecteur de classe ───────────────────────────────────── */
select {
  background: rgba(15, 23, 42, .65);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 15px;
  outline: none;
  min-width: 200px;
}

/* ── Bouton retour ─────────────────────────────────────────── */
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15, 23, 42, .55);
  border: 1px dashed rgba(148, 163, 184, .38);
  color: #cbd5e1;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.btn-back:hover { background: rgba(15, 23, 42, .75); }

/* ── KPI Bar ───────────────────────────────────────────────── */
#kpiBar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, .60);
}
#kpiBar .badge        { font-size: 14px; padding: 5px 12px; }
#kpiBar .warn-badge   { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .12); }
#kpiBar .good-badge   { border-color: rgba(34, 197, 94, .45);  background: rgba(34, 197, 94, .12);  }

/* ── Tableau grand format ──────────────────────────────────── */
.tableWrap { padding: 16px; overflow: auto; }

table     { min-width: 860px; border-spacing: 0 10px; }
thead th  { font-size: 14px; padding: 10px 12px; }
tbody td  { font-size: 18px; padding: 14px 12px; }

.name     { gap: 14px; }
.name .flag { width: 12px; height: 12px; }
.name .txt  { font-size: 20px; }

.chip     { font-size: 14px; padding: 4px 12px; }
.chip strong { font-size: 16px; }

.badge.bonus-badge {
  font-size: 13px;
  border-color: rgba(34, 197, 94, .50);
  background: rgba(34, 197, 94, .15);
  color: #bbf7d0;
}

/* ── Overlay sélection fichier ─────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 14, .92);
  backdrop-filter: blur(8px);
}
.auth-box {
  background: rgba(15, 23, 42, .96);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 20px; padding: 36px 40px;
  width: min(420px, 94vw);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
}
.auth-box h2   { margin: 0 0 6px 0; font-size: 22px; }
.auth-sub      { color: var(--muted); font-size: 14px; margin: 0 0 24px 0; line-height: 1.5; }
.auth-logo     { font-size: 48px; text-align: center; margin-bottom: 16px; }
.auth-err      { color: #fca5a5; font-size: 13px; min-height: 18px; margin: 10px 0 0 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  table   { min-width: 600px; }
  body    { font-size: 16px; }
  tbody td { font-size: 16px; padding: 12px 10px; }
  .name .txt { font-size: 17px; }
}
