/* Source: public/membres.php */
/* ====== Harmonisation charte (léger complément local) ====== */
.section { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.members-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 560px){ .members-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px){ .members-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px){ .members-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.member-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  border-radius: 12px;
}
.member-card:hover { transform: translateY(-2px); }

.avatar-wrap { flex: 0 0 auto; }
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;        /* évite l'étirement, remplit le cercle */
  object-position: center;  /* recentre le sujet */
  display: block;
}
.avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  font-weight: 700;
  letter-spacing: .5px;
}

.meta { min-width: 0; }
.name {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff; /* pseudo en blanc */
}
.member-card { color: inherit; text-decoration: none; }
.role-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  margin-bottom: 6px;
}
.section-head { margin-bottom: 12px; }
.since {
  font-size: 12px;
  color: #6b7280;
}

/* Accessibilité */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

