.team-page main{background:var(--cream)}
.team-page .page-shell::before{
  width:min(25vw,330px);
  height:calc(104px + clamp(480px,58svh,610px));
  opacity:.13;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,rgba(0,0,0,.68) 56%,transparent 100%),linear-gradient(180deg,#000 0%,#000 calc(100% - 18px),transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,#000 0%,rgba(0,0,0,.68) 56%,transparent 100%),linear-gradient(180deg,#000 0%,#000 calc(100% - 18px),transparent 100%);
  mask-composite:intersect;
}
.team-page .page-shell>.site-header::before{content:none}
.team-page .page-shell>.site-header:not(.is-scrolled){background-color:transparent}
.team-hero{position:relative;z-index:1;padding:0;background:transparent}
.team-hero-layout{display:grid;width:calc(100% - max(var(--gutter),(100vw - var(--container))/2));max-width:none;min-height:clamp(480px,58svh,610px);margin:0 0 0 max(var(--gutter),(100vw - var(--container))/2);grid-template-columns:minmax(0,1.02fr) minmax(480px,.98fr);align-items:stretch;gap:0}
.team-hero-copy{display:flex;max-width:700px;flex-direction:column;justify-content:center;padding:clamp(3.2rem,5vw,5.5rem) clamp(3rem,6vw,6rem) clamp(3.2rem,5vw,5.5rem) 0}
.team-hero-copy .underlined-link{align-self:flex-start}
.team-hero h1{max-width:680px;margin:.8rem 0 1.35rem;color:var(--green-ink);font-family:var(--display);font-size:clamp(3.15rem,4.15vw,4.3rem);font-weight:400;letter-spacing:-.035em;line-height:1.02}
.team-hero h1 span{display:block;white-space:nowrap}
.team-hero-copy>p:not(.eyebrow){max-width:590px;margin:0 0 1.8rem;color:var(--muted);font-size:1.08rem;line-height:1.72}
.team-hero-photo{position:relative;min-height:0;margin:0;overflow:hidden;border-radius:0}
.team-hero-photo::before{position:absolute;z-index:1;inset:0 auto 0 0;width:26%;content:"";background:linear-gradient(90deg,var(--cream) 0%,rgba(249,247,241,.82) 24%,rgba(249,247,241,.34) 62%,rgba(249,247,241,0) 100%);pointer-events:none}
.team-hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center}

.team-directory{position:relative;z-index:1;padding:clamp(4.5rem,8vw,8rem) 0;background:var(--paper)}
.team-directory-header{display:grid;grid-template-columns:minmax(0,.72fr) minmax(500px,1.28fr);align-items:end;gap:3rem;margin-bottom:clamp(2.5rem,4vw,4rem)}
.team-directory-header .eyebrow{align-self:start}
.team-directory h2,.team-multidisciplinary h2{margin:0;color:var(--green-ink);font-family:var(--display);font-size:clamp(2.8rem,4.1vw,3.85rem);font-weight:400;letter-spacing:-.03em;line-height:1.02}
.team-directory h2{max-width:760px}
.profile-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:clamp(1rem,1.45vw,1.4rem)}
.profile-card{grid-column:span 2;min-width:0;background:var(--cream);border:1px solid rgba(29,76,65,.12);border-radius:8px;overflow:hidden;transition:transform .55s cubic-bezier(.22,1,.36,1),border-color .55s ease}
.profile-card:nth-child(5){grid-column:2/span 2}
.profile-card:nth-child(6){grid-column:4/span 2}
.profile-card:nth-child(7){grid-column:6/span 2}
.profile-card:hover{transform:translateY(-5px);border-color:rgba(29,76,65,.28)}
.profile-placeholder{display:grid;aspect-ratio:4/3.65;place-items:center;background:linear-gradient(145deg,#eee4d3,#f8f3e9)}
.profile-placeholder img{width:clamp(84px,8vw,120px);height:auto;opacity:.22;filter:saturate(.6)}
.profile-placeholder.has-photo{display:block;background:#e8dfd1;overflow:hidden}
.profile-placeholder.has-photo img{width:100%;height:100%;object-fit:cover;opacity:1;filter:none}
.profile-content{display:flex;min-height:238px;flex-direction:column;padding:1.2rem 1.2rem 1.15rem}
.profile-content h3{margin:0 0 .3rem;color:var(--green-ink);font-family:var(--display);font-size:1.5rem;font-weight:500;line-height:1.1}
.profile-content>p{min-height:2.8em;margin:0 0 .55rem;color:var(--muted);font-size:.8rem;line-height:1.42}
.profile-specialties{margin:0 0 1rem;padding:0;list-style:none;color:var(--muted);font-size:.72rem;line-height:1.48}
.profile-specialties li+li{margin-top:.14rem}
.profile-booking{display:inline-flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:auto;padding-top:.9rem;border-top:1px solid var(--line);color:var(--green-ink);font-size:.76rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase}
.profile-booking img{width:15px;height:15px;transition:transform .35s ease}
.profile-booking:hover img{transform:translateX(4px)}

.team-multidisciplinary{padding:clamp(4.5rem,8vw,8rem) 0;background:var(--cream-deep)}
.team-multi-layout{display:grid;grid-template-columns:minmax(340px,.82fr) minmax(0,1.18fr);align-items:center;gap:clamp(3rem,8vw,8rem)}
.team-multi-layout figure{display:grid;height:clamp(390px,38vw,540px);margin:0;place-items:center;background:var(--beige-soft);border-radius:6px}
.team-multi-layout figure img{width:min(92%,470px);height:min(92%,470px);object-fit:contain}
.team-multi-layout>div{max-width:670px}
.team-multidisciplinary h2{margin:.7rem 0 1.3rem}
.team-multidisciplinary p:not(.eyebrow){max-width:620px;margin:.8rem 0 0;color:var(--muted);line-height:1.72}

.team-guidance{padding:clamp(3rem,5vw,5rem) 0;background:var(--paper)}
.team-guidance-inner{display:flex;align-items:center;justify-content:space-between;gap:3rem;padding:clamp(2rem,3vw,3rem) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.team-guidance h2{margin:0 0 .6rem;color:var(--green-ink);font-family:var(--display);font-size:clamp(2rem,3vw,2.8rem);font-weight:400;line-height:1.05}
.team-guidance p{max-width:650px;margin:0;color:var(--muted);line-height:1.65}
.team-guidance .button{flex:0 0 auto}

.team-cta{margin:clamp(3rem,5vw,5rem) 0;padding:clamp(4rem,7vw,6.5rem) 0;background:var(--green-dark) url("../../images/equipe/equipe-cta-botanique.webp") center/cover no-repeat;color:#fff}
.team-cta-inner{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);align-items:center;gap:clamp(3rem,7vw,7rem)}
.team-cta .eyebrow{color:#e1bf91}
.team-cta h2{max-width:820px;margin:.75rem 0 0;color:#fff;font-family:var(--display);font-size:clamp(2.85rem,3.8vw,3.8rem);font-weight:400;letter-spacing:-.03em;line-height:1}
.team-cta-inner>div:last-child{max-width:510px}
.team-cta-inner>div:last-child p{margin:0 0 1.6rem;color:#dce7e3;font-size:1rem;line-height:1.65}
.team-cta .button-beige{background:var(--beige-soft);color:var(--green-ink)}
.team-cta .button-beige img{filter:none}
.team-cta .button-beige:hover{background:#ecd7bc}

@media(max-width:1024px){
  .team-hero-layout{grid-template-columns:minmax(0,1.08fr) minmax(400px,.92fr)}
  .team-hero-copy{padding-right:clamp(2rem,4vw,3.5rem)}
  .team-hero h1{font-size:clamp(3rem,5.5vw,3.8rem)}
  .team-directory-header{grid-template-columns:minmax(0,.55fr) minmax(440px,1fr)}
  .profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .profile-card,.profile-card:nth-child(5),.profile-card:nth-child(6),.profile-card:nth-child(7){grid-column:auto}
  .profile-card:last-child{grid-column:2}
}

@media(max-width:820px){
  .team-page .page-shell::before{left:-36px;width:220px;height:520px;opacity:.09}
  .team-hero-layout,.team-directory-header,.team-multi-layout,.team-cta-inner{grid-template-columns:1fr}
  .team-hero-layout{width:100%;min-height:0;margin:0}
  .team-hero-copy{width:min(calc(100% - (2 * var(--gutter))),var(--container));max-width:none;margin-inline:auto;padding:3.4rem 0 3rem}
  .team-hero h1{max-width:700px}
  .team-hero-photo{height:clamp(340px,52vw,430px)}
  .team-hero-photo::before{inset:0 0 auto;width:auto;height:20%;background:linear-gradient(180deg,var(--cream) 0%,rgba(249,247,241,.68) 34%,rgba(249,247,241,0) 100%)}
  .team-directory-header{gap:.8rem}
  .profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-card:last-child{grid-column:1/-1;width:calc(50% - .6rem);justify-self:center}
  .team-multi-layout{gap:2.5rem}
  .team-multi-layout figure{height:400px}
  .team-guidance-inner{align-items:flex-start;flex-direction:column;gap:1.5rem}
}

@media(max-width:560px){
  .team-page .page-shell::before{left:-40px;width:185px;height:460px;opacity:.075}
  .team-hero-copy{padding:2.65rem 0 2.4rem}
  .team-hero h1{max-width:23rem;font-size:clamp(2.42rem,10.8vw,2.9rem);letter-spacing:-.04em;line-height:1.02}
  .team-hero h1 span{white-space:normal}
  .team-hero-copy>p:not(.eyebrow){font-size:.96rem;line-height:1.62}
  .team-hero-photo{height:300px}
  .team-directory{padding-block:3.8rem}
  .team-directory h2,.team-multidisciplinary h2{font-size:clamp(2.25rem,9.8vw,2.75rem)}
  .profile-grid{grid-template-columns:1fr;gap:1.25rem}
  .profile-card,.profile-card:last-child{grid-column:auto;width:100%}
  .profile-placeholder{aspect-ratio:4/3.45}
  .profile-content{min-height:228px;padding:1.15rem}
  .profile-content h3{font-size:1.52rem}
  .team-multi-layout figure{height:300px}
  .team-guidance h2{font-size:2.15rem}
  .team-guidance .button{width:100%}
  .team-cta{margin-block:2.5rem;padding-block:3.5rem;background-position:center}
  .team-cta h2{font-size:clamp(2.35rem,10vw,2.8rem)}
}

@media(prefers-reduced-motion:reduce){.profile-card,.profile-booking img{transition:none}}
