/* ==========================================================================
   IMS Victoire — page L'équipe (Test/equipe/index.html)
   À charger après commun.css. Même langage visuel que les pages praticiens :
   bandeau dégradé, titres serif avec sous-titre en italique,
   sections alternées (ivoire · sombre · blanc).
   ========================================================================== */
html{scroll-padding-top:140px}

/* ── Bandeau ── */
.team-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:end;padding:calc(var(--nav-h) + clamp(44px,8vh,90px)) var(--pad) clamp(40px,6vh,64px);
  background:radial-gradient(ellipse 80% 120% at 70% 0%,rgba(42,42,58,.9),transparent 70%),linear-gradient(180deg,var(--night),var(--ink));}
.team-hero::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(to right,transparent,rgba(184,169,138,.4),transparent);}
.crumbs{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;margin-bottom:clamp(10px,1.6vh,16px);font-size:.66rem;font-weight:300;letter-spacing:.08em;color:rgba(240,237,230,.35);}
.crumbs li+li::before{content:'›';margin-right:.45rem;color:rgba(184,169,138,.45);}
.crumbs a{transition:color .3s}
.crumbs a:hover{color:var(--gold)}
.crumbs [aria-current]{color:rgba(240,237,230,.5)}
.team-hero h1{font-family:var(--serif);font-size:clamp(2.6rem,5.8vw,5.4rem);font-weight:300;line-height:.95;letter-spacing:-.02em;}
.team-hero h1 b{font-weight:600}
.team-hero-role{margin-top:.35em;font-family:var(--serif);font-style:italic;font-size:clamp(1.3rem,2.4vw,2rem);font-weight:300;color:var(--gold);}
.team-hero-lead{margin-top:clamp(14px,2vh,20px);font-size:clamp(.85rem,1.2vw,.95rem);font-weight:300;line-height:1.75;color:rgba(240,237,230,.55);max-width:46ch;}
.team-hero-side{display:flex;flex-direction:column;gap:clamp(20px,3vh,28px);}
/* Chiffres alignés en haut : un libellé sur deux lignes ne décale plus le chiffre */
.team-stats{display:flex;align-items:flex-start;}
.team-stat{display:flex;flex-direction:column;gap:5px;padding:0 clamp(14px,2.2vw,28px);position:relative;}
.team-stat:first-child{padding-left:0}
.team-stat+.team-stat::before{content:'';position:absolute;left:0;top:10%;width:1px;height:80%;background:linear-gradient(to bottom,transparent,rgba(184,169,138,.3),transparent);}
.team-stat-n{font-family:var(--serif);font-size:clamp(2rem,3.2vw,2.8rem);font-weight:300;line-height:1;}
.team-stat-l{font-size:.66rem;font-weight:300;letter-spacing:.1em;line-height:1.35;color:rgba(240,237,230,.4);}

/* ── Filtres par spécialité ── */
.team-filters{position:sticky;top:var(--nav-h);z-index:100;display:flex;gap:6px;flex-wrap:wrap;padding:12px var(--pad);background:rgba(5,5,8,.88);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid rgba(240,237,230,.06);}
.team-filter{font-size:.72rem;font-weight:400;letter-spacing:.06em;padding:.48rem 1rem;border:1px solid rgba(240,237,230,.14);border-radius:2px;color:rgba(240,237,230,.6);transition:border-color .3s,color .3s,background .3s;}
.team-filter:hover{border-color:rgba(184,169,138,.5);color:var(--ivory);}
.team-filter[aria-pressed="true"]{background:var(--gold);border-color:var(--gold);color:var(--ink);}
.team-filter span{opacity:.6;margin-left:.35em}

/* ── Groupes (sections alternées) ── */
.team-group{padding:clamp(70px,10vh,120px) var(--pad);}
.team-group[hidden]{display:none}
.team-group--light{background:var(--ivory);color:var(--ink);}
.team-group--white{background:#fff;color:var(--ink);}
.team-group--dark{background:linear-gradient(120deg,var(--mid) 0%,#18181f 55%,var(--ink) 100%);color:var(--ivory);}
.team-group-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem 3rem;flex-wrap:wrap;margin-bottom:clamp(32px,5vh,52px);}
.doc-title{font-family:var(--serif);font-size:clamp(2rem,4vw,3.4rem);font-weight:300;line-height:1.05;}
.doc-title em{display:block;font-style:italic;color:rgba(5,5,8,.45)}
.team-group--dark .doc-title em{color:rgba(240,237,230,.45)}
.team-group-head p{font-size:.84rem;font-weight:300;line-height:1.7;max-width:48ch;color:rgba(5,5,8,.6);}
.team-group--dark .team-group-head p{color:rgba(240,237,230,.55);}

/* ── Cartes praticiens ── */
.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(220px,20vw,270px),1fr));gap:clamp(32px,4vw,52px) clamp(16px,2vw,28px);}
.doc{display:flex;flex-direction:column;gap:.9rem;}
.doc-photo{position:relative;display:block;aspect-ratio:3/4;border-radius:2px;overflow:hidden;background:var(--mid);}
/* Portraits désaturés, la couleur complète revient au survol de la carte (ou au focus clavier) */
.doc-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:bottom left;filter:saturate(.5) contrast(1.05) brightness(1.05);transition:transform .6s var(--ease-out),filter .7s var(--ease-out);}
.doc-photo::after{content:'';position:absolute;inset:auto 0 0 0;height:50%;background:linear-gradient(to top,rgba(5,5,8,.7),transparent);pointer-events:none;}
.doc-photo::before{content:'';position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--gold);transform:scaleY(0);transform-origin:bottom;transition:transform .5s var(--ease-out);z-index:2;}
.doc-photo-cta{position:absolute;left:16px;bottom:14px;z-index:1;display:inline-flex;align-items:center;gap:8px;font-size:.72rem;letter-spacing:.08em;color:var(--gold);opacity:.85;transition:opacity .3s,gap .3s var(--ease-out);}
.doc-photo-cta::after{content:'→';}
.doc:hover .doc-photo img,.doc-photo:focus-visible img{transform:scale(1.03);filter:saturate(1) contrast(1.05) brightness(1.05);}
.doc-photo:hover::before{transform:scaleY(1)}
.doc-photo:hover .doc-photo-cta{opacity:1;gap:12px}
.doc-name{font-family:var(--serif);font-size:clamp(1.25rem,1.8vw,1.5rem);font-weight:300;line-height:1.15;}
.doc-name b{font-weight:600}
.doc-name a{transition:color .3s}
.doc-name a:hover{color:var(--gold)}
.doc-role{margin-top:.3rem;font-family:var(--serif);font-style:italic;font-size:1.02rem;font-weight:300;line-height:1.3;color:var(--gold);}
.doc-intro{font-size:.8rem;font-weight:300;line-height:1.65;color:rgba(5,5,8,.6);}
.doc-tags{display:flex;flex-wrap:wrap;gap:5px;list-style:none;}
.doc-tags li{font-size:.64rem;letter-spacing:.06em;padding:.24rem .6rem;border:1px solid rgba(184,169,138,.45);border-radius:2px;color:rgba(5,5,8,.65);}
/* Variante sombre */
.team-group--dark .doc-intro{color:rgba(240,237,230,.55);}
.team-group--dark .doc-tags li{border-color:rgba(184,169,138,.3);color:rgba(240,237,230,.7);}
/* Or plus soutenu sur fond clair pour rester lisible */
.team-group--light .doc-role,.team-group--white .doc-role{color:#8f7f5f;}
.team-group--light .doc-name a:hover,.team-group--white .doc-name a:hover{color:#8f7f5f;}

/* ── Apparitions ── */
html.js .team-hero .reveal{transition-duration:1.1s}

/* ── Responsive ── */
@media(max-width:900px){
  .team-hero{grid-template-columns:1fr;align-items:start}
}
@media(max-width:600px){
  .team-stat{padding:0 10px}
  .team-grid{grid-template-columns:1fr 1fr;gap:28px 12px}
  .doc-intro,.doc-tags{display:none}
  .doc-name{font-size:1.1rem}
  .doc-role{font-size:.9rem}
}
