.team { color: var(--cream); background: var(--forest); }
.team-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr); width: 100%; margin: 0 auto 0 0; padding: 0 32px 28px 0; }
.team-media { grid-area: 1 / 1; position: relative; aspect-ratio: 16 / 9; min-width: 0; }
.team-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgb(0 56 44 / .08) 55%, rgb(0 56 44 / .18) 78%, rgb(0 56 44 / .48) 100%); }
.team-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.team-heading { grid-area: 2 / 1 / 3 / 3; position: relative; z-index: 1; margin: -.68em 0 0 32px; font: 750 clamp(56px, 6.6vw, 104px)/1 Fraunces, Georgia, serif; letter-spacing: .025em; font-variation-settings: "SOFT" 0, "WONK" 1; }
.team-heading > span:first-child { color: var(--cream); }
.team-title-accent { color: var(--mustard); }
.team-award { grid-area: 1 / 2; width: clamp(180px, 18vw, 300px); max-width: 90%; height: auto; align-self: center; justify-self: center; }
.team-presentations { grid-area: 3 / 1 / 4 / 3; display: grid; grid-template-columns: clamp(64px, 9vw, 128px) minmax(0, 1fr) auto; column-gap: clamp(20px, 3vw, 44px); margin: 30px 0 0 32px; }
.team-hash { grid-area: 1 / 1; align-self: start; color: var(--mustard); font: 900 clamp(80px, 10vw, 142px)/.95 Fraunces, Georgia, serif; font-optical-sizing: none; font-variation-settings: "opsz" 9, "wght" 900, "SOFT" 0, "WONK" 1; }
.team-biographies { grid-area: 1 / 2; display: grid; gap: 26px; min-width: 0; touch-action: pan-y pinch-zoom; }
.team-bio { min-width: 0; }
.team-bio[hidden] { display: none; }
.team-bio h3 { margin: 0 0 14px; font: 750 clamp(28px, 3vw, 44px)/1.1 Fraunces, Georgia, serif; font-variation-settings: "SOFT" 0, "WONK" 1; letter-spacing: .05em; }
.team-bio p { margin: 6px 0 0; font: 400 clamp(18px, 1.8vw, 25px)/1.45 Fraunces, Georgia, serif; letter-spacing: .025em; }
.team-controls { grid-area: 1 / 3; align-self: end; display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.team-controls[hidden] { display: none; }
.team-controls button { width: 48px; height: 44px; border: 0; background: transparent; color: var(--cream); font: 400 28px/1 Georgia, serif; }
.team-controls button:hover { color: var(--mustard); }
.team-controls button:focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }
.team-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.team.is-carousel .team-biographies { display: block; position: relative; height: var(--team-bio-height); }
.team.is-carousel .team-bio { position: absolute; inset: 0 0 auto; }
@media (max-width: 799px) {
  .team-layout { width: 100%; display: block; padding: 0 0 22px; }
  .team-media { width: min(100%, 88svh); margin-inline: 0; }
  .team-heading { margin: -.68em 20px 0; font-size: clamp(38px, 10vw, 64px); }
  .team-award { display: none; }
  .team-presentations { grid-template-columns: 46px minmax(0, 1fr); gap: 0 16px; margin: 30px 24px 0; }
  .team-hash { font-size: 64px; }
  .team-bio h3 { font-size: clamp(24px, 6.4vw, 34px); line-height: 1.14; margin-bottom: 14px; }
  .team-bio p { font-size: 17px; line-height: 1.45; }
  .team-controls { grid-area: 2 / 2; margin-top: 16px; }
}
@media (max-width: 359px) {
  .team-presentations { margin-inline: 18px; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; }
  .team-heading { margin-inline: 18px; font-size: 36px; }
  .team-hash { font-size: 54px; }
  .team-bio h3 { font-size: 23px; }
}
@media (max-height: 600px) {
  .team-layout { padding-bottom: 16px; }
  .team-presentations { margin-top: 22px; }
}


/* Le groupe # + présentation est centré sur desktop uniquement. */
@media (min-width: 800px) {
  .team-presentations { grid-template-columns: minmax(108px, 1fr) clamp(64px, 9vw, 128px) minmax(0, 680px) minmax(108px, 1fr); column-gap: clamp(20px, 3vw, 44px); }
  .team-hash { grid-area: 1 / 2; align-self: center; }
  .team-biographies { grid-area: 1 / 3; text-align: left; }
  .team-controls { grid-area: 1 / 4; }
}
