/* ═══════════════════════════════════════════════════════════════════
   SCHOENFELD COACH VIEW — CSS
   Styles pour le tableau d'exercices et la colonne TEMPO
   Brad Schoenfeld PhD — Périodisation 52 semaines
═══════════════════════════════════════════════════════════════════ */

/* ── Tableau exercices ── */
.scv-ex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: #e5e7eb;
  table-layout: auto;
}
.scv-ex-table thead tr {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.scv-ex-table th {
  padding: 0.45rem 0.6rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}
.scv-ex-table td {
  padding: 0.5rem 0.6rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.scv-ex-row:hover {
  background: rgba(255,255,255,0.03);
}
.scv-ex-compound {
  background: rgba(250,204,21,0.03);
}

/* ── Colonne Tempo (nouvelle) ── */
.scv-eth-tempo {
  white-space: nowrap;
  text-align: center;
}

/* Badge tempo principal */
.scv-tempo-badge {
  display: inline-block;
  background: rgba(99,102,241,0.15);   /* indigo translucide */
  color: #a5b4fc;                        /* indigo clair */
  border: 1px solid rgba(99,102,241,0.30);
  border-radius: 6px;
  padding: 0.18rem 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: help;                          /* title tooltip au hover */
  transition: background 0.15s;
  font-family: 'Courier New', monospace; /* alignement chiffres */
}
.scv-tempo-badge:hover {
  background: rgba(99,102,241,0.28);
  color: #c4b5fd;
}

/* Variante isométrique */
.scv-tempo-iso {
  background: rgba(245,158,11,0.12);   /* ambre */
  color: #fbbf24;
  border-color: rgba(245,158,11,0.30);
}
.scv-tempo-iso:hover {
  background: rgba(245,158,11,0.22);
}

/* ── Autres badges exercice ── */
.scv-set-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.3rem;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
.scv-set-drop  { background: rgba(239,68,68,0.2);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.scv-set-rp    { background: rgba(168,85,247,0.2); color: #d8b4fe; border: 1px solid rgba(168,85,247,0.3); }
.scv-set-myo   { background: rgba(6,182,212,0.2);  color: #67e8f9; border: 1px solid rgba(6,182,212,0.3); }
.scv-set-ss    { background: rgba(34,197,94,0.2);  color: #86efac; border: 1px solid rgba(34,197,94,0.3); }

.scv-compound-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(250,204,21,0.15);
  color: #fde68a;
  border: 1px solid rgba(250,204,21,0.25);
  border-radius: 4px;
  padding: 0.08rem 0.3rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.scv-rir-badge {
  display: inline-block;
  background: rgba(20,184,166,0.15);
  color: #5eead4;
  border: 1px solid rgba(20,184,166,0.25);
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.scv-ex-name {
  font-weight: 600;
  color: #f1f5f9;
}
.scv-ex-cue {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.2rem;
  line-height: 1.4;
}
.scv-ex-prog-note {
  font-size: 0.7rem;
  color: rgba(250,204,21,0.7);
  margin-top: 0.15rem;
}
.scv-ex-name-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

/* ── Colonnes largeurs ── */
.scv-eth-order  { width: 2rem;  text-align: center; color: rgba(255,255,255,0.3); font-size: 0.72rem; }
.scv-eth-name   { min-width: 160px; }
.scv-eth-muscle { width: 90px;  color: rgba(255,255,255,0.6); }
.scv-eth-sets   { width: 3.5rem; text-align: center; }
.scv-eth-reps   { width: 4.5rem; text-align: center; }
.scv-eth-rir    { width: 3rem;  text-align: center; }
.scv-eth-rest   { width: 4rem;  text-align: center; color: rgba(255,255,255,0.6); }
.scv-eth-tempo  { width: 5rem;  text-align: center; }
.scv-eth-type   { width: 2.5rem; text-align: center; }

/* ── Responsive : masquer la colonne Muscle sur très petit écran ── */
@media (max-width: 480px) {
  .scv-eth-muscle { display: none; }
  .scv-eth-tempo  { width: 4rem; }
  .scv-tempo-badge { font-size: 0.66rem; padding: 0.14rem 0.3rem; }
}

/* ── Modal semaine ── */
.scv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.scv-modal-overlay.hidden { display: none; }

.scv-modal-box {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}
.scv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.scv-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}
.scv-modal-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.scv-modal-close:hover { background: rgba(255,255,255,0.12); }

/* ── Durée badge ── */
.scv-dur-ok   { background: rgba(34,197,94,0.15);  color: #86efac; border: 1px solid rgba(34,197,94,0.25);  border-radius: 6px; padding: .15rem .45rem; font-size: .72rem; font-weight: 700; }
.scv-dur-warn { background: rgba(245,158,11,0.15); color: #fde68a; border: 1px solid rgba(245,158,11,0.25); border-radius: 6px; padding: .15rem .45rem; font-size: .72rem; font-weight: 700; }
.scv-dur-over { background: rgba(239,68,68,0.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.25);  border-radius: 6px; padding: .15rem .45rem; font-size: .72rem; font-weight: 700; }
