/*
  Styles pour la pyramide hiérarchique de l'équipe (about.html, team-details.html)
  et pour le sélecteur "Autres membres de l'équipe" du profil (team-details.html).

  Écrit en CSS classique (pas de classes Tailwind) car le CSS compilé du site
  (assets/app-*.css) est purgé au build : seules les classes déjà présentes dans
  le HTML statique existant sont incluses. Les nouvelles classes utilitaires
  générées dynamiquement en JS ne seraient donc pas stylées.
*/

.pkd-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pkd-pyramid-level-badge,
.pkd-switcher-level-badge {
  display: inline-flex;
  background: rgba(229, 231, 235, 0.7);
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.pkd-pyramid-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pkd-pyramid-connector-line {
  width: 1px;
  height: 2rem;
  background: #d1d5db;
}

.pkd-pyramid-connector svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #d1d5db;
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
}

.pkd-pyramid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 2rem;
  width: 100%;
  max-width: 64rem;
}

.pkd-pyramid-row--spaced {
  margin-bottom: 2.5rem;
}

.pkd-team-card {
  position: relative;
  display: block;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 0;
  background: none;
  font: inherit;
  padding: 0;
}

.pkd-team-card:hover {
  transform: translateY(-4px);
}

.pkd-team-card--standard {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  width: 14rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pkd-team-card--standard:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.pkd-team-card--top {
  width: 16rem;
}

.pkd-team-avatar-wrap {
  position: relative;
  display: inline-block;
}

.pkd-team-avatar {
  border-radius: 9999px;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: block;
}

.pkd-team-avatar--standard {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.5rem;
}

.pkd-team-avatar--top {
  width: 8rem;
  height: 8rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 4px solid #7bb2e7;
  transition: border-color 0.3s ease;
}

.pkd-team-card--top:hover .pkd-team-avatar--top {
  border-color: #1f2937;
}

@media (min-width: 1024px) {
  .pkd-team-avatar--top {
    width: 9rem;
    height: 9rem;
  }
}

.pkd-team-fallback {
  border-radius: 9999px;
  background: oklch(28.2% 0.091 267.935);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.pkd-team-fallback--standard {
  width: 6rem;
  height: 6rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.pkd-team-fallback--top {
  width: 8rem;
  height: 8rem;
  font-size: 1.5rem;
  border: 4px solid #7bb2e7;
}

@media (min-width: 1024px) {
  .pkd-team-fallback--top {
    width: 9rem;
    height: 9rem;
  }
}

.pkd-team-top-badge {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #7bb2e7;
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.pkd-team-name {
  font-weight: 700;
  color: #1f2937;
}

.pkd-team-name--standard {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.pkd-team-name--top {
  margin-top: 1.25rem;
  font-size: 1.5rem;
}

.pkd-team-role--standard {
  color: #000;
  font-weight: 500;
}

.pkd-team-role--top {
  color: #7bb2e7;
  font-weight: 500;
}

.pkd-team-cta {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pkd-team-cta--standard {
  background: #7bb2e7;
  color: #1f2937;
}

.pkd-team-card--standard:hover .pkd-team-cta--standard {
  background: #1f2937;
  color: #fff;
}

.pkd-team-cta--top {
  background: oklch(28.2% 0.091 267.935);
  color: #fff;
}

.pkd-team-card--top:hover .pkd-team-cta--top {
  background: #7bb2e7;
  color: #1f2937;
}

/* Cartes sans biographie ("Bientôt") */

.pkd-team-card--no-bio {
  cursor: default;
}

.pkd-team-card--no-bio:hover {
  transform: none;
}

.pkd-team-card--standard.pkd-team-card--no-bio:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.pkd-team-card--top.pkd-team-card--no-bio:hover .pkd-team-avatar--top {
  border-color: #7bb2e7;
}

.pkd-team-cta-soon {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #e5e7eb;
  color: #9ca3af;
}

.pkd-switcher-card--no-bio {
  cursor: default;
}

.pkd-switcher-card--no-bio:hover {
  background: #f9fafb;
  transform: none;
}

/* Sélecteur "Autres membres de l'équipe" (profil, team-details.html) */

.pkd-switcher-groups {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pkd-switcher-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.pkd-switcher-card {
  width: 11rem;
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 0;
  font: inherit;
}

.pkd-switcher-card:hover {
  background: rgba(123, 178, 231, 0.1);
  transform: translateY(-4px);
}

.pkd-switcher-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  display: block;
}

.pkd-switcher-fallback {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background: oklch(28.2% 0.091 267.935);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 0.75rem;
}

.pkd-switcher-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.pkd-switcher-role {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Fallback initiales sur la page de profil (team-details.html) */
.pkd-profile-initials {
  width: 8rem;
  height: 8rem;
  border-radius: 9999px;
  background: oklch(28.2% 0.091 267.935);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}
