/* ============================================
   GUSTAV — equipe.css
   ============================================ */

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.team-hero {
  padding-top: calc(68px + 72px);
  padding-bottom: 72px;
  background: linear-gradient(160deg, var(--white) 0%, var(--sage-xlight) 100%);
  text-align: center;
}
.team-hero__inner { max-width: 680px; margin-inline: auto; }
.team-hero h1     { margin-bottom: 20px; }
.team-hero__lead  {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 28px;
}
.team-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--beige-mid);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-mid);
  box-shadow: var(--shadow-sm);
}

/* ════════════════════════════════════════
   TEAM GRID
   ════════════════════════════════════════ */
.team-section { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Last row : 2 cards centered */
.team-grid article:nth-child(4) { grid-column: 1; }
.team-grid article:nth-child(5) { grid-column: 2; }

.team-card {
  background: var(--off-white);
  border: 1px solid var(--beige-mid);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-light);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--beige);
  position: relative;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .5s ease;
}
.team-card:hover .team-card__photo img { transform: scale(1.04); }

.team-card__photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-style: italic;
  color: var(--sage-dark);
  background: var(--sage-light);
}

.team-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.team-card__header { display: flex; flex-direction: column; gap: 10px; }
.team-card__header h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text);
}
.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--beige-mid);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: .03em;
}
.team-card__bio {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ════════════════════════════════════════
   VALEURS
   ════════════════════════════════════════ */
.values-section { background: var(--off-white); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--beige-mid);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-sm); border-color: var(--sage-light); }
.value-card__icon {
  width: 44px; height: 44px;
  background: var(--sage-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
}
.value-card__icon svg { width: 20px; height: 20px; }
.value-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.value-card p  { font-size: .9rem; color: var(--text-mid); }

/* ════════════════════════════════════════
   CTA
   ════════════════════════════════════════ */
.team-cta { background: var(--beige); }
.team-cta__card {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
}
.team-cta__card .eyebrow { margin-bottom: 12px; }
.team-cta__card h2 { margin-bottom: 14px; }
.team-cta__card p  { margin-bottom: 28px; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid article:nth-child(4),
  .team-grid article:nth-child(5) { grid-column: auto; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .team-hero { padding-top: calc(68px + 48px); }
  .team-grid { grid-template-columns: 1fr; }
  .team-cta__card { padding: 36px 24px; }
}

/* ── Responsive équipe — 768px ── */
@media (max-width: 768px) {
  .team-hero { padding-top: calc(68px + 48px); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid article:nth-child(4),
  .team-grid article:nth-child(5) { grid-column: auto; }
  .values-grid { grid-template-columns: 1fr; }
  .team-cta__card { padding: 36px 24px; }
}

/* ── Responsive équipe — 480px ── */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-hero__badge { font-size: .72rem; padding: 8px 14px; text-align: center; }
}
