/* ===== EQUIPE-DETAIL.CSS - Team member detail page styles ===== */

/* ===== PAGE OVERRIDE ===== */
html { overflow-x: hidden; }

/* ===== MEMBER HERO CONTENT ===== */
.member-hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 3rem;
}

.member-hero__photo {
  width: 300px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
  margin-bottom: -140px;
  border: 2px solid var(--bg-cream);
}

.member-hero__photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%);
}

.member-hero__photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-navy);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
}

.member-hero__info {
  flex: 1;
  align-self: flex-end;
  padding-bottom: 2.5rem;
}

.member-hero__badge--grade { background: var(--accent); }
.member-hero__badge--equipe { background: var(--abenex-orange); }
.member-hero__badge--bureau { background: rgba(255,255,255,0.15); }

.member-detail {
  padding-top: 100px;
}

/* Desktop : aligner le début du texte avec le titre de la sidebar (padding 2rem) */
.member-detail__body {
  padding-top: 2rem;
}

/* ===== TESTIMONIAL (conditionnel) ===== */
.member-testimonial {
  background: var(--bg-cream);
  padding: 0 4rem 5rem;
}

.member-testimonial__inner {
  max-width: 900px;
  margin: 0 auto;
}

.member-testimonial__quote {
  margin: 0;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(3, 114, 255, 0.04);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.member-testimonial__author {
  margin-top: 1.25rem;
  padding-left: 2.5rem;
}

.member-testimonial__author strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.member-testimonial__author span {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PAGE OVERRIDES: article-nav image (portrait style) ===== */
.article-nav__image {
  width: 60px;
  height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-nav__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-nav__image--placeholder {
  background: var(--bg-navy);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

.article-nav__link:hover .article-nav__image img {
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .member-hero { padding: 7rem 2rem 0; }
  .member-detail { padding: 4rem 2rem; }
  .member-detail__body { padding-top: 0; }
}

@media (max-width: 768px) {
  .member-hero {
    padding: 7rem 1.5rem 0;
  }
  .member-hero__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .member-hero__photo {
    width: 200px;
    margin-top: 2.5rem;
    margin-bottom: 0;
  }

  .member-hero__info {
    position: relative;
    z-index: 10;
    padding-bottom: 2rem;
  }

  .member-detail {
    padding: 3rem 1.5rem 4rem;
  }

  .member-sidebar {
    position: static;
  }

  .member-testimonial {
    padding: 0 1.5rem 4rem;
  }

  .member-testimonial__quote {
    padding: 1.5rem;
  }

  .member-testimonial__author {
    padding-left: 1.5rem;
  }

  .article-nav__image {
    width: 45px;
    height: 60px;
  }

  .floating-nav {
    top: auto;
    bottom: 2rem;
    transform: none;
  }

  .floating-nav.docked {
    transform: translateY(20px);
  }
}

@media (max-width: 480px) {
  .member-hero { padding: 6rem 1rem 0; }
  .member-detail { padding: 3rem 1rem; }
  .member-hero__photo { width: 160px; margin-top: 2rem; margin-bottom: 0; }
}
