* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
}

#terrains {
  padding: 20px;
  text-align: center;
}

.separator {
  color: #888;
  font-size: 18px;
  width: 100%;
}

/* Bloc match */
.blocTerrainDouble {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 1rem auto;
}

/* Nom du terrain */
.terrain {
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Ligne équipes */
.blocJoueur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Joueurs */
.joueur {
  border: 1px solid #dee2e6;
  width: 150px;
  height: 40px;
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: #fff;
}

/* VS */
.vs {
  font-weight: bold;
  color: #e74c3c;
}

/* Boutons victoire */
.victoire {
  width: 32px;
  height: 32px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: #dee2e6;
}

/* Équipe gagnante */
.victoire.active {
  background-color: #2ecc71;
  color: white;
}

/* Équipe perdante */
.victoire.disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.blocTerrainSimple {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-width: 300px;
  max-width: 500px;
  margin: 0 auto;
}

.terrain {
  text-align: center;
  margin-bottom: 1rem;
}

.blocJoueur {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.joueur {
  border: 1px solid #dee2e6;
  width: 150px;
  height: 40px;
  margin: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: white;
  transition: all 0.3s ease;
}

.joueur.victoire {
  background-color: #2ecc71;
  color: white;
}

.joueur.defaite {
  background-color: #e74c3c;
  color: white;
}

.vs {
  font-weight: bold;
  color: #e74c3c;
  text-align: center;
}

.terrains-grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 terrains par ligne */
  gap: 2rem; /* espace entre les terrains */
}

.gagnant {
  background-color: #2ecc71;
  color: white;
}

.perdant {
  background-color: #e74c3c;
  color: white;
}