/* ========================================
   PAHBA - Page Équipes
   ======================================== */

/* --- Catégories --- */
.teams-category {
  max-width: 1200px;
  margin: 0 auto var(--space-3xl);
}

.teams-category-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

/* --- En-tête de catégorie : titre à gauche, 2 photos à droite --- */
.teams-cat-head {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.teams-cat-info {
  flex: 1 1 240px;
  min-width: 220px;
}

.teams-cat-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--color-bordeaux);
}

.teams-cat-info h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--gradient-gold);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.teams-cat-intro {
  margin-top: var(--space-md);
  color: #555;
  line-height: 1.5;
}

.teams-cat-photos {
  flex: 0 1 300px;
  max-width: 300px;
  min-width: 220px;
  display: flex;
  gap: var(--space-md);
}

.cat-photo {
  flex: 1;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-bordeaux-light) 0%, var(--color-bordeaux) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.cat-photo:hover {
  transform: translateY(-4px);
}

.cat-photo svg {
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, 0.6);
}

.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Grille de cartes --- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

/* --- Carte équipe (info, sans photo) --- */
.team-card {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-bordeaux);
  padding: var(--space-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.team-card-icon {
  width: 30px;
  height: 30px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.team-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-bordeaux);
  line-height: 1.2;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: 0;
}

.team-meta-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.9rem;
  border-top: 1px solid rgba(114, 47, 55, 0.1);
  padding-top: var(--space-xs);
}

.team-meta dt {
  flex-shrink: 0;
  width: 5em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  white-space: nowrap;
}

.team-meta dd {
  flex: 1;
  margin: 0;
  color: #333;
  font-weight: 600;
  text-align: left;
}

/* Noms de coach : 1er nom aligné avec la valeur des années,
   suivants empilés dessous (police réduite pour tenir sur une ligne) */
.team-meta-row:last-child dd {
  font-size: 0.8rem;
  line-height: 1.4;
}
