/* Ton design global conservé */
.rb-members {
  background: linear-gradient(135deg, #243b5a, #1c2f4a);
  border-radius: 20px;
  padding: 40px 40px 30px;
  text-align: center;
  color: #ffffff;
  overflow: hidden; /* masque le scroll horizontal */
}

.rb-members-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
}

.rb-members-divider{
  display:block;
  width: 90px;
  height: 4px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: rgba(244,196,48,.95);
  box-shadow: 0 10px 24px rgba(244,196,48,.18);
}

/* Slider wrapper */
.rb-members-slider{
  width: 100%;
  overflow: hidden; /* pas de scroll visible */
}

/* Track: défilement infini */
.rb-members-track{
  display: flex;
  align-items: stretch;
  gap: var(--rb-gap, 24px);
  width: max-content;
  will-change: transform;
  animation: rb_members_marquee var(--rb-speed, 22s) linear infinite;
}

/* Pause au survol */
.rb-members[data-rb-pause="1"]:hover .rb-members-track{
  animation-play-state: paused;
}

/* Cartes */
.rb-member-card {
  flex: 0 0 auto;
  width: 165px;
  min-height: 160px;

  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  transition: transform .25s ease, box-shadow .25s ease;
}

.rb-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

/* Avatar */
.rb-member-avatar{
  width: var(--rb-avatar-size, 72px);
  height: var(--rb-avatar-size, 72px);
  border-radius: 999px;
  border: 3px solid #f4c430;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(244,196,48,.16);
}

.rb-member-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rb-member-initials{
  font-weight: 900;
  letter-spacing: .6px;
  color: #0b1220;
  font-size: 18px;
}

/* Textes */
.rb-member-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-member-role {
  font-size: 12px;
  opacity: 0.80;
  margin-top: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-member-type{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.90);
  background: rgba(244,196,48,.16);
  border: 1px solid rgba(244,196,48,.35);
  padding: 6px 10px;
  border-radius: 999px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bouton conservé */
.rb-members-footer {
  margin-top: 18px;
}

.rb-members-button {
  display: inline-block;
  padding: 12px 26px;
  background: #ffffff;
  color: #1c2f4a;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.rb-members-button:hover {
  background: #f4c430;
  transform: translateY(-2px);
}

/* Animation: -50% car on duplique la liste 2x */
@keyframes rb_members_marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px){
  .rb-members{ padding: 28px 18px 20px; }
  .rb-member-card{ width: 150px; min-height: 150px; }
  .rb-member-initials{ font-size: 16px; }
}
