/* ==========================================================================
   Confrontations de squad — Roundnet Worlds 2026
   Prolonge score.css : mêmes jetons de couleur, mêmes polices, même gouttière.
   ========================================================================== */

.squads-bloc { margin: 0 0 28px; }

.squads-genre {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: var(--navy);
}

/* La grille compte six colonnes : rien ne la fera tenir sur un téléphone.
   Elle défile donc dans sa propre boîte, jamais en poussant la page. */
.squads-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
}

.squads-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  font-size: 13px;
}

.squads-table th,
.squads-table td {
  border-inline-start: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 8px 10px;
  vertical-align: top;
  text-align: start;
}
.squads-table thead th {
  border-top: 0;
  background: var(--navy);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.squads-table th:first-child,
.squads-table td:first-child { border-inline-start: 0; }

/* La colonne de gauche porte l'affiche ; elle reste visible pendant qu'on fait
   défiler les cinq duels. */
.squads-table .confrontation,
.squads-table .coin {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  min-width: 190px;
  background: var(--white);
}
.squads-table .coin { background: var(--navy); }

.confrontation-phase {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.confrontation-a,
.confrontation-b { display: block; font-weight: 600; color: var(--navy); }
.confrontation-vs {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.duel { min-width: 150px; }
.duel-camp {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.duel-paire { color: var(--navy); }
.duel-pts {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Un duel joué s'efface : c'est le duel en cours qu'on cherche. */
.duel--fini .duel-paire,
.duel--fini .duel-pts { color: var(--muted); }

.duel--bye { background: #F8FAFC; }
.duel-bye {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.duel--live { background: #FFF7ED; }
.duel--live .duel-pts { color: #B45309; }

.duel-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #B45309;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

@media (prefers-reduced-motion: no-preference) {
  .duel-badge { animation: squad-pulse 2s ease-in-out infinite; }
}
@keyframes squad-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.duel-court {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.squads-table tr.is-live .confrontation { box-shadow: inset 3px 0 0 #B45309; }

.squads-vide {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  color: var(--muted);
}

.squads-source {
  margin: 26px 0 0;
  padding: 14px 16px;
  border-inline-start: 3px solid var(--border);
  background: #F8FAFC;
  border-radius: 6px;
}
.squads-source h2 {
  margin: 0 0 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--navy);
}
.squads-source p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.squads-retour { margin: 20px 0 0; }
.squads-retour a { color: var(--navy); font-weight: 600; }
