/* Photographies réelles fournies par PIM, identités confirmées par l’entreprise. */
.team .section-heading { margin-bottom: 62px; }
.team-gallery { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 22px 24px; margin-bottom: 62px; }
.team-photo { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.team-photo img { display: block; width: 100%; min-height: 0; object-fit: cover; }
.team-photo-main { grid-row: span 2; }
.team-photo-main img { flex: 1; aspect-ratio: 3 / 2; object-position: center; }
.team-photo-group img, .team-photo-duo img { height: clamp(150px, 16vw, 215px); }
.team-photo-group img { object-position: center 45%; }
.team-photo-duo img { object-position: center top; }
.team-photo figcaption { margin-top: 9px; color: var(--muted); font-size: .79rem; line-height: 1.5; }
@media (min-width: 701px) {
  .team-gallery { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1.08fr) minmax(0, .92fr); height: clamp(440px, 40vw, 560px); gap: 22px; }
  .team-photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
  .team-photo img, .team-photo-main img, .team-photo-group img, .team-photo-duo img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
  .team-photo-group img { object-position: center 40%; }
  .team-photo-duo img { object-position: center top; }
}
.team-leads, .team-specialists { display: grid; gap: clamp(28px, 5vw, 84px); }
.team-leads { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 58px; }
.team-specialists { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 44px; }
.team-member { min-width: 0; }
.team-role { display: flex; align-items: center; gap: 10px; color: var(--accent-text); font-size: .85rem; line-height: 1.5; margin-bottom: 24px; }
.team-role::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.team-member h3 { font-weight: 500; line-height: 1.08; letter-spacing: -.04em; text-wrap: initial; margin-bottom: 23px; }
.team-firstname { display: block; font-size: clamp(2.7rem, 3.8vw, 3.7rem); }
.team-lastname { display: block; margin-top: 3px; font-size: clamp(1.65rem, 2vw, 2.1rem); }
.team-lead .team-firstname { font-size: clamp(3.4rem, 5.4vw, 5.1rem); }
.team-lead .team-lastname { font-size: clamp(2rem, 2.7vw, 2.7rem); }
.team-bio { max-width: 510px; font-size: 1.03rem; line-height: 1.75; color: var(--ink); }
.team-background { margin-top: 18px; max-width: 490px; font-size: .88rem; line-height: 1.65; color: var(--muted); }
@media (max-width: 980px) { .team-specialists { gap: 28px; } .team-firstname { font-size: 2.7rem; } }
@media (max-width: 700px) {
  .team .section-heading { margin-bottom: 40px; }
  .team-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; margin-bottom: 36px; }
  .team-photo-main { grid-column: 1 / -1; grid-row: auto; }
  .team-photo-main img { flex: none; height: auto; aspect-ratio: 3 / 2; }
  .team-photo-group img, .team-photo-duo img { height: auto; aspect-ratio: 1; }
  .team-photo-group img { object-position: center 45%; }
  .team-photo-duo img { object-position: center; }
  .team-photo figcaption { font-size: .75rem; }
  .team-leads, .team-specialists { grid-template-columns: 1fr; gap: 0; }
  .team-leads { padding-bottom: 0; }
  .team-specialists { border: 0; padding-top: 0; }
  .team-member { padding-block: 28px 32px; border-top: 1px solid var(--line); }
  .team-role { margin-bottom: 17px; }
  .team-firstname, .team-lead .team-firstname { font-size: 3.3rem; }
  .team-lastname, .team-lead .team-lastname { font-size: 1.95rem; }
  .team-member h3 { margin-bottom: 21px; }
  .team-bio { font-size: 1rem; }
}
@media (max-width: 620px) {
  .team-gallery { grid-template-columns: minmax(0, 1fr); }
  .team-photo-group img { aspect-ratio: 16 / 10; object-position: center 45%; }
  .team-photo-duo img { aspect-ratio: 4 / 3; object-position: center top; }
}
