/* ============================================================
   dispos.css — Styles pour les disponibilités
   ============================================================ */

/* ── Tableau disponibilités ──────────────────────────────── */
.dispo-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ttc-grey-900);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dispo-th {
  padding: var(--space-3) var(--space-3);
  font-size: 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ttc-grey-500);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  min-width: 60px;
  text-transform: uppercase;
}

.dispo-row td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dispo-row:last-child td {
  border-bottom: none;
}

.dispo-row:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.dispo-row--me {
  background: rgba(153, 0, 0, 0.06);
}

.dispo-row--me:hover td {
  background: rgba(153, 0, 0, 0.09) !important;
}

.dispo-row--me .dispo-name {
  color: var(--ttc-white);
  font-weight: 600;
}

.dispo-name {
  padding: var(--space-2) var(--space-4);
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--ttc-grey-100);
}

.dispo-cell {
  text-align: center;
  padding: var(--space-2);
  position: relative;
}

.dispo-match-info {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1;
}

.dispo-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.dispo-btn:hover {
  transform: scale(1.2);
}

.dispo-btn:active {
  transform: scale(0.95);
}

.dispo-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.dispo-btn--disponible {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.1);
}

.dispo-btn--disponible:hover {
  background: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.dispo-btn--indisponible {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.1);
}

.dispo-btn--indisponible:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.dispo-btn--incertain {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.dispo-btn--incertain:hover {
  background: rgba(245, 158, 11, 0.22);
}

.dispo-btn--none {
  background: transparent;
  color: var(--ttc-grey-500);
  border-color: var(--ttc-grey-800);
}

.dispo-btn--none:hover {
  background: var(--ttc-grey-900);
  border-color: var(--ttc-grey-700);
}

.dispo-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.7;
}

.me-badge {
  font-size: 9px;
  background: rgba(153, 0, 0, 0.7);
  color: var(--ttc-white);
  border-radius: 100px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  text-transform: uppercase;
  border: 1px solid rgba(153, 0, 0, 0.4);
}

.dispo-legend {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.dispo-legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ttc-grey-500);
}