/* Team pages CSS (d3, u20, etc.) - override rules here */

/* ==== TEAM SECTION ALIGNÉE À GAUCHE ============ */

.team-section {
  width: 100%;
  max-width: 1200px;   /* limite propre */
  margin: 0 auto 50px auto;
}

/* TITRES + TRAIT */
.team-section h2 {
  text-align: left;
  font-size: 28px;
  margin-bottom: 1em;
}

.team-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f5c518;
  margin-top: 6px;
}

/* ============ GRID =============== */
.players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cartes */
  gap: 1em;
	margin-bottom: 1em;
  }
.player img { 
	object-fit: cover;
	margin: auto;
}
/* ---------- Responsive TABLETTE ---------- */
@media (max-width: 1024px) {
  .players-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cartes */
  }
}

/* ---------- Responsive MOBILE ---------- */
@media (max-width: 768px) {

  .players-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cartes */
    gap: 12px; /* réduit l'espace entre les cartes */
  }

  .player img {
    width: 100%;
    height: auto;
    max-width: 160px;   /* << réduit la largeur réelle de la carte */
    margin: auto;
    display: block;
  }
}

/* ---------- Très petits téléphones ---------- */
@media (max-width: 480px) {

  .players-grid {
    grid-template-columns: repeat(2, 1fr); /* Toujours 2 */
    gap: 10px;
  }

  .player img {
    max-width: 140px; /* encore un peu plus petit */
  }
}