/*Page Fellows*/
.fellows-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 20px;
}
.fellows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Carte Fellow ── */
.fellow-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fellow-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.fellow-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;          /* carré, ratio constant peu importe la largeur de la card */
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-pale);
  overflow: hidden;
}
.fellow-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;   /* recentre vers le haut → priorise le visage */
}
.fellow-card-photo .placeholder-avatar {
  font-size: 64px;
  color: var(--green);
  opacity: .4;
}
.fellow-card-body {
  padding: 16px;
}
.fellow-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.fellow-card-title {
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Inter', 'Source Sans 3', sans-serif;
}
.fellow-card-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.fellow-theme-tag {
  font-size: .66rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid rgba(0,102,51,.2);
  font-family: 'Inter', 'Source Sans 3', sans-serif;
}
.fellow-card-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--gray);
  font-family: 'Inter', 'Source Sans 3', sans-serif;
}
.fellow-card-stats i { color: var(--green); }

/* ── Profil Fellow ── */
.fellow-profile {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 20px;
}
.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 24px;
  cursor: pointer;
  font-family: 'Inter', 'Source Sans 3', sans-serif;
  transition: gap .2s;
}
.profile-back:hover { gap: 10px; }

.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-header {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, var(--green) 0%, #004D2C 100%);
  color: white;
  align-items: center;
}
.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 4px;
  line-height: 1.2;
}
.profile-info .profile-title {
  font-size: .88rem;
  opacity: .8;
  margin-bottom: 8px;
  font-family: 'Inter', 'Source Sans 3', sans-serif;
}
.profile-info .profile-email {
  font-size: .82rem;
  opacity: .65;
  font-family: 'Inter', 'Source Sans 3', sans-serif;
}
.profile-info .profile-email i { margin-right: 6px; }

.profile-body { padding: 28px; }

.profile-section { margin-bottom: 28px; }
.profile-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}
.profile-section h2::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--gold);
  margin-top: 6px;
  border-radius: 2px;
}
.profile-bio {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--gray-dark);
}
.profile-themes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-theme-tag {
  background: var(--green-pale);
  color: var(--green);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0,102,51,.2);
  font-family: 'Inter', 'Source Sans 3', sans-serif;
}

.profile-pubs-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.profile-pub-item {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.profile-pub-item:last-child { border-bottom: none; }
.profile-pub-item:hover { background: var(--green-faint); }

.profile-pub-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
  font-family: 'Inter', 'Source Sans 3', sans-serif;
}
.profile-pub-title {
  flex: 1;
  font-weight: 600;
  font-size: .87rem;
  color: var(--dark);
  line-height: 1.4;
}
.profile-pub-year {
  font-size: .75rem;
  color: var(--gray);
  flex-shrink: 0;
  font-family: 'Inter', 'Source Sans 3', sans-serif;
}
.no-pubs {
  text-align: center;
  padding: 32px;
  color: var(--gray);
  font-style: italic;
  font-size: .88rem;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .fellows-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fellow-profile { padding: 20px 12px; }
  .profile-header { flex-direction: column; text-align: center; padding: 24px 20px; }
  .profile-body { padding: 20px; }
}
@media (max-width: 480px) {
  .fellows-grid { grid-template-columns: 1fr; }
}