/* 🧱 Grille des membres */
.team-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  padding: 2rem 0;
}

/* 📇 Carte membre */
.team-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.team-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.team-card-content {
  padding: 1rem;
}

.team-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2em;
  color: #111;
}

.team-card p {
  margin: 0.25rem 0;
  color: #444;
  font-size: 0.95em;
}

.team-card .role {
  font-weight: bold;
  color: #222;
}

.team-card .official-title {
  font-size: 0.9em;
  color: #666;
}

/* 🔘 Bouton "Voir la biographie" */
.team-bio-button {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #f1f1f1;
  color: #333;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid #ccc;
  margin-top: 0.8em;
}

.team-bio-button:hover {
  background-color: #e0e0e0;
  color: #111;
}

.team-card-content a.wp-block-button__link {
  margin-top: 1rem; /* espace au-dessus du bouton */
  display: inline-block;
}

