/* ===== EQUIPE-GRID — Bloc-type CSS (chargé dynamiquement) ===== */
/* Styles partagés des cartes équipe — utilisé par equipe_grid et equipe_immo_grid */

/* ===== TEAM CARD LINK ===== */
a.team-card-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

/* ===== TEAM CARD ANIMATIONS ===== */
.team-card.hiding {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-no-result {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted-dark);
  font-size: 1rem;
  grid-column: 1 / -1;
  display: none;
}

/* ===== TEAM GRID ===== */
.team-section {
  background: var(--bg-cream);
  padding: 0 4rem 4rem;
}

.team-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* ===== TEAM CARD ===== */
.team-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card__image {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.5s;
}

.team-card:hover .team-card__image img {
  filter: grayscale(0%);
}

.team-card__placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

.team-card__info {
  padding: 1rem 1.25rem;
}

.team-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.team-card__role {
  font-size: 0.7rem;
  color: var(--text-muted-dark);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== OVERLAY ON HOVER ===== */
.team-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.team-card:hover .team-card__overlay {
  opacity: 1;
}

.team-card__overlay-name {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.team-card:hover .team-card__overlay-name {
  transform: translateY(0);
  opacity: 1;
}

.team-card__overlay-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s ease 0.18s, opacity 0.4s ease 0.18s;
}

.team-card:hover .team-card__overlay-role {
  transform: translateY(0);
  opacity: 1;
}

.team-card__overlay-team {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--abenex-orange);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s ease 0.26s, opacity 0.4s ease 0.26s;
}

.team-card:hover .team-card__overlay-team {
  transform: translateY(0);
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .team-section { padding: 0 1.5rem 4rem; }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-card__placeholder {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
