.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, .65fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  padding: clamp(72px, 10vw, 142px) max(5vw, 24px) clamp(58px, 8vw, 104px);
  color: #f7fbfa;
  background:
    radial-gradient(circle at 82% 18%, rgba(64, 206, 180, .2), transparent 26%),
    linear-gradient(126deg, #063f3b 0%, #082d35 58%, #101f35 100%);
}

.team-hero-copy {
  max-width: 940px;
}

.team-hero .eyebrow {
  color: #8ce1ce;
}

.team-hero h1 {
  max-width: 900px;
  margin: 12px 0 22px;
  font-size: clamp(2.65rem, 6vw, 5.65rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.team-hero .hero-lead {
  max-width: 790px;
  color: #d8e8e6;
}

.team-hero-aside {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.team-hero-aside strong {
  display: block;
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -.045em;
}

.team-hero-aside p {
  margin: 0;
  color: #d8e8e6;
  line-height: 1.55;
}

.team-kicker {
  color: #8ce1ce;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.team-route {
  background: #f1f7f6;
}

.team-route-head h2 {
  margin-top: 5px;
}

.team-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.team-route-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid #d4e2df;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
}

.team-route-grid span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: #fff;
  background: #0f766e;
  font-size: .73rem;
  font-weight: 800;
}

.team-route-grid h3,
.team-route-grid p {
  margin: 0;
}

.team-route-grid h3 {
  font-size: .95rem;
}

.team-route-grid p {
  margin-top: 4px;
  color: #5b6f70;
  font-size: .88rem;
}

.team-directory-band {
  background: #fff;
}

.team-controls {
  position: sticky;
  top: 74px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(2, minmax(180px, .55fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 14px;
  border: 1px solid #d6e0e2;
  border-radius: 14px;
  background: rgba(250, 252, 252, .96);
  box-shadow: 0 12px 34px rgba(20, 53, 57, .09);
  backdrop-filter: blur(13px);
}

.team-controls label {
  display: grid;
  gap: 6px;
  color: #496166;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.team-controls input,
.team-controls select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bdcdcf;
  border-radius: 9px;
  color: #132d32;
  background: #fff;
  font: inherit;
  font-size: .95rem;
  letter-spacing: normal;
  text-transform: none;
}

.team-controls input:focus,
.team-controls select:focus {
  outline: 3px solid rgba(15, 118, 110, .18);
  border-color: #0f766e;
}

.team-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  color: #54696d;
}

.team-content {
  display: grid;
  gap: 54px;
}

.team-group-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 17px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d9e3e4;
}

.team-group-head .eyebrow {
  margin-bottom: 5px;
  color: #0f766e;
}

.team-group-head h2,
.team-group-head p {
  margin: 0;
}

.team-group-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.team-group-head p:last-child {
  max-width: 760px;
  margin-top: 7px;
  color: #607377;
  line-height: 1.5;
}

.team-count {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #0b625a;
  background: #e2f3ef;
  font-weight: 850;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}

.team-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #d9e2e3;
  border-top: 4px solid #0f766e;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(21, 52, 57, .055);
}

.team-card[data-group="pilotage"] { border-top-color: #174ea6; }
.team-card[data-group="graduate-school"] { border-top-color: #7c3aed; }
.team-card[data-group="scolarite-organisation"] { border-top-color: #b45309; }

.team-card-head {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.team-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #0f766e, #174ea6);
  font-size: .9rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.team-identity {
  min-width: 0;
}

.team-identity h3 {
  margin: 1px 0 5px;
  font-size: 1.13rem;
}

.team-role {
  margin: 0;
  color: #476066;
  font-size: .9rem;
  line-height: 1.45;
}

.team-chips {
  display: flex;
  gap: 6px;
  margin: 14px 0 0 62px;
}

.team-chips span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0b625a;
  background: #e4f4f0;
  font-size: .72rem;
  font-weight: 850;
}

.team-bio {
  margin: 16px 0 0;
  color: #53696d;
  font-size: .91rem;
  line-height: 1.57;
}

.team-assignments {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #e3e9ea;
}

.team-assignments summary {
  cursor: pointer;
  color: #164e63;
  font-size: .84rem;
  font-weight: 800;
}

.team-assignments ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: #4d6266;
  font-size: .86rem;
  line-height: 1.45;
}

.team-card-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: auto;
  padding-top: 18px;
}

.team-card-contact a,
.team-source {
  color: #075f71;
  font-size: .84rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.team-source {
  display: inline-flex;
  margin-top: 11px;
}

.team-empty {
  padding: 28px;
  border: 1px solid #d8e2e3;
  border-radius: 12px;
  background: #f5f9f8;
}

.team-empty p {
  margin: 6px 0 0;
  color: #607377;
}

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

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

  .team-controls {
    position: static;
    grid-template-columns: 1fr;
  }
}

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

  .team-chips {
    margin-left: 0;
  }
}

@media print {
  .team-controls,
  .header-actions,
  .team-hero .hero-actions {
    display: none !important;
  }

  .team-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
