/* ===========================
   TEAM SECTION
   =========================== */
   
.team-members {
  margin-top: var(--s12); /* au lieu de gros gap implicite */
}

.team-members-header {
  margin-bottom: var(--s12);
}

.team-members-title {
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  font-weight: 500;
  color: var(--t1);
  letter-spacing: -0.02em;
  margin-top: var(--s2);
}

/* ===========================
   GRID
   =========================== */

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s6);
}

/* ===========================
   CARD
   =========================== */

.member-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;

  border: 1px solid var(--b-1);
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.02);

  transition: all .25s ease;
  position: relative;
  overflow: hidden;

  border-radius: var(--r3);
}

.member-card:hover {
  border-color: rgba(99,102,241,.4);
  box-shadow:
    0 20px 40px rgba(0,0,0,.35),
    0 0 20px rgba(99,102,241,.15);
  transform: translateY(-6px);
}

.member-card:hover .member-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===========================
   PHOTO
   =========================== */

.member-photo {
  width: 100%;
  aspect-ratio: 3/4;
 transition: transform .4s ease;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.06), transparent 40%),
    linear-gradient(160deg, rgba(99,102,241,.25), rgba(56,189,248,.12));
}

.member-initials {
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.16em;
  font-family: var(--mono);
}

/* ===========================
   INFO
   =========================== */

.member-info {
  padding: var(--s6);
}

.member-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 4px;
}

.member-role {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-l);
  font-weight: 500;
}

/* ===========================
   ARROW
   =========================== */

.member-arrow {
  position: absolute;
  bottom: var(--s5);
  right: var(--s5);

  font-size: 1rem;
  color: var(--brand-l);

  opacity: 0;
  transform: translateX(-6px);

  transition: all .25s ease;
}

/* ===========================
   PROFIL PAGE
   =========================== */

/* Colonne gauche sticky (photo + meta) */
.profil-left {
  position: sticky;
  top: 80px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

/* Status pill sous la photo */
.profil-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 5px 12px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--rfull);
  font-size: 10px;
  color: var(--green-l);
  font-family: var(--mono);
  letter-spacing: .05em;
  width: fit-content;
}
.profil-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,.6);
  animation: dot-pulse 2s infinite;
}

/* Méta items (lieu, rôle, GitHub…) */
.profil-sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--b-1);
  border-radius: var(--r3);
}
.profil-meta-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-xs);
  color: var(--t3);
  line-height: 1.4;
}
.profil-meta-item i {
  width: 14px;
  font-size: 11px;
  color: var(--brand-l);
  flex-shrink: 0;
  text-align: center;
}
.profil-meta-link {
  color: var(--brand-l);
  text-decoration: none;
  transition: color var(--t1s);
}
.profil-meta-link:hover { color: var(--t1); }

/* Sections du côté droit */
.profil-section {
  margin-top: var(--s10);
}
.profil-section-title {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t1);
  font-weight: 600;
  margin-bottom: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.profil-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--b-1);
}

/* Barres de compétences */
.profil-skills {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.profil-skill-row { display: flex; flex-direction: column; gap: var(--s2); }
.profil-skill-header { display: flex; justify-content: space-between; align-items: center; }
.profil-skill-name  { font-size: var(--fs-xs); color: var(--t2); font-weight: 500; }
.profil-skill-level { font-size: var(--fs-xs); color: var(--t4); font-family: var(--mono); }
.profil-skill-bar   { height: 3px; background: var(--b-1); border-radius: var(--rfull); overflow: hidden; }
.profil-skill-fill  { height: 100%; border-radius: var(--rfull); background: linear-gradient(90deg, var(--brand), var(--brand-l)); }

/* Timeline de contributions */
.profil-timeline { display: flex; flex-direction: column; }
.profil-timeline-item { display: flex; gap: var(--s4); }

.profil-timeline-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 4px;
}
.profil-timeline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-l);
  box-shadow: 0 0 8px var(--brand-glow);
  flex-shrink: 0;
}
.profil-timeline-line {
  width: 1px; flex: 1;
  background: var(--b-1);
  margin-top: 4px;
  min-height: var(--s8);
}
.profil-timeline-item:last-child .profil-timeline-line { display: none; }

.profil-timeline-body { flex: 1; padding-bottom: var(--s8); }
.profil-timeline-name { font-size: var(--fs-sm); font-weight: 600; color: var(--t1); margin-bottom: 2px; }
.profil-timeline-sub  { font-size: var(--fs-xs); color: var(--brand-l); letter-spacing: .04em; margin-bottom: var(--s2); }
.profil-timeline-desc { font-size: var(--fs-xs); color: var(--t3); line-height: 1.7; }

/* Responsive profil */
@media (max-width: 768px) {
  .profil-layout { grid-template-columns: 1fr; }
  .profil-left   { position: static; }
  .profil-photo  { aspect-ratio: 4/3; }
}

.profil {
  padding: var(--s24) var(--s12);
  max-width: 1000px;
  margin: 0 auto;
}

.profil-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s24) var(--s6);
}

.profil-back {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--t3);
  text-decoration: none;
  margin-bottom: var(--s12);
}

.profil-back:hover {
  color: var(--brand-l);
}

.profil-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--s16);
}

.profil-photo {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r3);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.06), transparent 40%),
    linear-gradient(160deg, rgba(99,102,241,.25), rgba(56,189,248,.12));
}

.profil-initials {
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.16em;
  font-family: var(--mono);
}

.profil-name {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-5xl));
  font-weight: 500;
  color: var(--t1);
  margin: var(--s3) 0;
}

.profil-bar {
  font-size: var(--fs-xs);
  color: var(--t3);
  letter-spacing: 0.06em;
}

.profil-divider {
  width: 40px;
  height: 1px;
  background: var(--brand-l);
  margin: var(--s8) 0;
}

.profil-bio {
  font-size: var(--fs-sm);
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: var(--s5);
}

.profil-expertise {
  margin-top: var(--s10);
}

.profil-expertise-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t1);
  font-weight: 600;
  margin-bottom: var(--s3);
}

.profil-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.team-ticker {
  margin: var(--s20) 0;
  padding: 24px 0;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(99,102,241,.08),
    transparent
  );
}

.team-ticker-track {
  display: flex;
  width: max-content;
  animation: teamTicker 18s linear infinite;
}

.team-ticker:hover .team-ticker-track {
  animation-play-state: paused;
}

.team-ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: max-content;
}

.team-ticker-item {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--t3);
  white-space: nowrap;
  padding: 0 var(--s6);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.team-ticker-sep {
  color: var(--brand-l);
  margin-left: var(--s6);
  opacity: .55;
}

@keyframes teamTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}