/* =========================================================
   TALENT D'OR FC — Académie
   Menu déroulant + page hub + fiches catégorie (onglets)
   Feuille additionnelle : se pose au-dessus de main-v2.css.
   ========================================================= */

/* Les menus déroulants de la nav (« Le club », « Académie ») vivent
   dans css/menu-deroulant.css, partagé par toutes les pages. */

/* =========================================================
   HUB ACADÉMIE — parcours en escalier
   ========================================================= */
.ac-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.ac-step {
  position: relative; overflow: hidden; border-radius: 3px;
  background: var(--navy); display: flex; align-items: flex-end;
  min-height: 340px; transition: transform .25s var(--ease);
}
/* Effet « escalier » : chaque palier monte un peu plus haut */
.ac-path .ac-step:nth-child(1) { min-height: 300px; }
.ac-path .ac-step:nth-child(2) { min-height: 340px; }
.ac-path .ac-step:nth-child(3) { min-height: 380px; }
.ac-path .ac-step:nth-child(4) { min-height: 420px; }
.ac-step:hover { transform: translateY(-6px); }
.ac-step img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5; transition: transform .7s var(--ease), opacity .4s;
}
.ac-step::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,14,32,.95) 12%, rgba(6,14,32,.3) 72%);
}
.ac-step:hover img { transform: scale(1.08); opacity: .7; }
.ac-step__body { position: relative; z-index: 2; padding: 26px; color: #fff; width: 100%; }
.ac-step__num { font-family: var(--display); font-size: 3.2rem; color: var(--gold); line-height: 1; }
.ac-step__body h3 { font-size: 1.25rem; text-transform: uppercase; margin: 4px 0 6px; }
.ac-step__age {
  font-family: var(--cond); font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}
.ac-step__body p { font-size: .9rem; color: rgba(255,255,255,.78); margin-top: 10px; }
.ac-step__go {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--cond); font-weight: 700; font-size: .84rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  border-bottom: 2px solid var(--gold); padding-bottom: 3px;
  transition: gap .18s ease;
}
.ac-step:hover .ac-step__go { gap: 14px; }
/* Toute la carte est cliquable */
.ac-step__link { position: absolute; inset: 0; z-index: 3; }

/* =========================================================
   FICHE CATÉGORIE — en-tête
   ========================================================= */
.cat-head { position: relative; background: var(--midnight); overflow: hidden; }
.cat-head img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .35;
}
.cat-head::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,14,32,.96), rgba(6,14,32,.5));
}
.cat-head__in {
  position: relative; z-index: 2;
  padding: clamp(44px, 6vw, 76px) 24px clamp(30px, 4vw, 44px);
  color: #fff;
}
.cat-head__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.cat-fil {
  font-family: var(--cond); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.cat-fil a:hover { color: var(--gold); }

/* Sélecteur de saison */
.cat-season { display: flex; align-items: center; gap: 10px; }
.cat-season label {
  font-family: var(--cond); font-weight: 700; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.cat-season__wrap { position: relative; }
.cat-season__wrap::after {
  content: '▾'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--gold); pointer-events: none; font-size: .8rem;
}
.cat-season select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: var(--cond); font-weight: 700; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.28); border-radius: 2px;
  padding: 9px 34px 9px 14px; cursor: pointer; transition: border-color .18s, background .18s;
}
.cat-season select:hover { background: rgba(255,255,255,.16); }
.cat-season select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
/* La liste déroulante native reste lisible (fond sombre) */
.cat-season select option { color: #14203a; background: #fff; }
.cat-season__solo {
  font-family: var(--cond); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(245,197,24,.4); border-radius: 2px; padding: 8px 14px;
}
.cat-head__row { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.cat-head h1 {
  font-size: clamp(3rem, 8vw, 6rem); color: var(--gold);
  text-transform: uppercase; line-height: .9;
}
.cat-head__txt h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: #fff; text-transform: uppercase;
}
.cat-head__txt p { color: rgba(255,255,255,.75); margin-top: 6px; max-width: 560px; }
.cat-head__meta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
}
.cat-chip {
  font-family: var(--cond); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 6px 12px; border-radius: 2px;
}

/* =========================================================
   ONGLETS (effectif / staff / calendrier / classements / palmarès)
   ========================================================= */
.cat-tabs {
  position: sticky; top: 80px; z-index: 40;
  background: var(--navy); border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cat-tabs__in {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.cat-tabs__in::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto; background: none; border: 0; cursor: pointer;
  font-family: var(--cond); font-weight: 700; font-size: .92rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); padding: 18px 20px;
  position: relative; transition: color .18s;
  white-space: nowrap;
}
.cat-tab::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 3px; background: var(--gold);
  transform: scaleX(0); transition: transform .22s var(--ease);
}
.cat-tab:hover { color: #fff; }
.cat-tab.is-active { color: #fff; }
.cat-tab.is-active::after { transform: scaleX(1); }

.cat-panel { display: none; }
.cat-panel.is-active { display: block; animation: catIn .3s ease both; }
@keyframes catIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Bandeau « données à compléter » */
.cat-todo {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff8e0; border: 1px solid #f0dda0; border-left: 4px solid var(--gold);
  border-radius: 3px; padding: 14px 18px; margin-bottom: 26px;
  font-size: .92rem; color: #6b5a1e;
}
.cat-todo b { display: block; font-family: var(--cond); letter-spacing: .06em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 2px; }

/* =========================================================
   EFFECTIF
   ========================================================= */
.eff-group { margin-bottom: 34px; }
.eff-group__t {
  font-family: var(--cond); font-weight: 700; font-size: .84rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.eff-group__t::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.eff-group__t i { font-style: normal; color: var(--muted); font-weight: 600; }

/* 4 colonnes : des cartes assez grandes pour que la photo se lise sans clic. */
.eff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eff-card {
  position: relative; background: var(--navy); border-radius: 3px;
  overflow: hidden; aspect-ratio: 3/4;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .22s var(--ease), box-shadow .22s;
}
.eff-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(8,18,38,.22); }
.eff-card__num {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--display); font-size: 2.9rem; line-height: 1;
  color: rgba(255,255,255,.16);
}
.eff-card__body { position: relative; z-index: 2; padding: 16px; }
.eff-card__nom {
  font-family: var(--display); font-size: 1.25rem; color: #fff;
  text-transform: uppercase; line-height: 1.05;
}
.eff-card__poste {
  font-family: var(--cond); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-top: 4px;
}
.eff-card__fait {
  font-size: .74rem; color: rgba(255,255,255,.6); margin-top: 6px; line-height: 1.35;
}
/* Silhouette de fond */
.eff-card__ghost {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3.4rem; opacity: .12; color: #fff;
}
/* Joueur confirmé (donnée réelle) */
.eff-card--reel { background: linear-gradient(160deg, var(--navy-light), var(--navy)); }
.eff-card--reel::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold);
}
/* Emplacement en attente */
.eff-card--vide { background: #eeeade; border: 1px dashed #c9c2b2; }
.eff-card--vide .eff-card__num { color: rgba(20,32,58,.14); }
.eff-card--vide .eff-card__ghost { color: var(--navy); opacity: .1; }
.eff-card--vide .eff-card__nom {
  color: #a79f8c; font-family: var(--cond); font-size: .76rem;
  font-weight: 600; letter-spacing: .1em;
}
.eff-card--vide .eff-card__poste { color: var(--muted); }

/* =========================================================
   STAFF
   ========================================================= */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* Toutes les cartes ont le même gabarit — visuel plein cadre au format
   portrait, puis rôle et nom — qu'il y ait une photo ou non. */
.staff-card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: 3px;
  overflow: hidden; text-align: center;
  display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s var(--ease);
}
.staff-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(8,18,38,.14); }
.staff-card__av {
  width: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center;
  background: var(--bg-soft); border: 0; padding: 0; overflow: hidden;
}
.staff-card__txt { flex: 1; padding: 16px; }
/* Sans photo : cadre crème hachuré et initiale, plutôt qu'une pastille vide. */
.staff-card__av--sans {
  background:
    repeating-linear-gradient(135deg, rgba(20,32,58,.03) 0 10px, transparent 10px 20px),
    #eeeade;
  border-bottom: 1px dashed #c9c2b2; color: var(--navy);
}
/* Monogramme : les deux premières lettres dans un rond centré. */
.staff-card__ini {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--gold);
  font-family: var(--display); font-size: 2.1rem; line-height: 1;
  color: var(--navy); letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(8,18,38,.1);
}
.staff-card__ini .ico { width: 2rem; height: 2rem; color: var(--gold-dark); }
.staff-card__role {
  font-family: var(--cond); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark);
}
.staff-card__nom {
  font-family: var(--display); font-size: 1.15rem; text-transform: uppercase;
  color: var(--navy); margin-top: 6px;
}
.staff-card__nom.est-vide {
  font-family: var(--cond); font-size: .82rem; color: #a79f8c;
  letter-spacing: .08em; font-weight: 600;
}

/* =========================================================
   CALENDRIER
   ========================================================= */
/* Trois matchs par ligne : la liste tient sur un écran sans défilement
   interminable. On retombe à deux, puis à un, quand la place manque. */
.cal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* Une carte match : un bandeau de contexte (compétition | issue) posé sur
   l'affiche du match (date | domicile — score — extérieur), comme une
   feuille de match. Les deux informations du bandeau sont rejetées aux
   extrémités : elles ne se touchent jamais. */
.cal-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  border-left: 4px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.cal-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.cal-card__body {
  flex: 1; display: grid; grid-template-columns: 58px 1fr;
  align-items: center; gap: 12px; padding: 12px 14px;
}
.cal-card:hover { box-shadow: 0 12px 28px rgba(8,18,38,.1); transform: translateY(-2px); }
.cal-card--joue { border-left-color: var(--gold); }
.cal-card--avenir { border-left-color: var(--grass, #2fa36b); }
/* Le liseré porte l'issue du match dès qu'elle est connue. */
.cal-card--victoire { border-left-color: var(--grass, #2fa36b); }
.cal-card--nul { border-left-color: #b9b2a0; }
.cal-card--defaite { border-left-color: #c0503f; }

/* Date : plus de pastille, le bandeau porte déjà le fond crème.
   Un filet suffit à la séparer de l'affiche. */
.cal-card__date {
  text-align: center; border-right: 1px solid var(--line); padding-right: 14px;
}
.cal-card__date b {
  display: block; font-family: var(--display); font-size: 1.7rem;
  line-height: 1; color: var(--navy);
}
.cal-card__date span {
  display: block; font-family: var(--cond); font-weight: 700; font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-top: 3px;
}
.cal-card__date i {
  display: block; font-style: normal; font-family: var(--cond);
  font-size: .72rem; color: var(--muted); margin-top: 5px;
}
.cal-card__date-txt {
  display: block; font-family: var(--cond); font-weight: 700; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
}

.cal-card__main { text-align: center; min-width: 0; }
/* Dans le bandeau : simple texte, la couleur suffit à le poser. */
.cal-card__comp {
  font-family: var(--cond); font-weight: 700; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Le tour prolonge la compétition, en navy : « LA DULE CUP · FINALE ». */
.cal-card__tour { color: var(--navy); font-weight: 700; }
.cal-card__tour::before { content: '·'; margin: 0 5px; color: var(--muted); }
.cal-card__match {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  font-family: var(--display); font-size: .95rem; text-transform: uppercase; color: #7d8798;
  line-height: 1.1; overflow-wrap: anywhere;
}
/* Chaque équipe se colle au score : sans ça, elles héritent du centrage
   du bloc et flottent loin du « vs ». */
.cal-card__eq { text-align: left; }
.cal-card__eq--dom { text-align: right; }
/* Notre équipe ressort de l'adversaire, d'un coup d'œil. */
.cal-card__match .est-nous { color: var(--navy); }
.cal-card__score {
  font-family: var(--display); font-size: 1.4rem; background: var(--gold);
  color: var(--navy); padding: 3px 14px; border-radius: 2px; white-space: nowrap;
}
.cal-card__vs {
  font-family: var(--cond); font-weight: 700; font-size: .74rem;
  letter-spacing: .12em; color: var(--muted);
}
.cal-card__detail {
  font-family: var(--font); font-size: .8rem; color: var(--muted);
  margin: 6px 0 0; text-align: center; text-transform: none;
}

.cal-tag {
  display: inline-block; flex: none;
  font-family: var(--cond); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; white-space: nowrap;
  background: var(--white); color: var(--navy); border: 1px solid var(--line);
}
.cal-tag--avenir { color: var(--grass, #2fa36b); border-color: rgba(47,163,107,.35); }
/* Match joué, score non publié : on met en avant l'issue */
.cal-tag--issue { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.cal-tag--victoire { background: rgba(47,163,107,.12); color: #1f7d51; border-color: rgba(47,163,107,.35); }
.cal-tag--nul { color: #6f6857; }
.cal-tag--defaite { background: rgba(192,80,63,.1); color: #a8412f; border-color: rgba(192,80,63,.3); }
/* Filtres du calendrier + message quand la sélection ne donne rien */
/* Bandeau de filtres générique (calendrier, classements…) : une ligne par
   axe, chacune annoncée par son intitulé, pour qu'on comprenne qu'ils se
   combinent. Les pastilles elles-mêmes sont les .clst-chip communes. */
.fbar {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: 12px 16px; display: grid; gap: 10px; margin-bottom: 22px;
}
.fbar__ligne { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fbar__ligne + .fbar__ligne { border-top: 1px solid var(--line); padding-top: 10px; }
.fbar__lab {
  font-family: var(--cond); font-weight: 700; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  min-width: 84px;
}
.cal-card[hidden] { display: none; }
.cal-vide {
  font-family: var(--cond); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-size: .84rem; padding: 18px 2px;
}

/* =========================================================
   CLASSEMENT
   ========================================================= */
/* Intitulé de compétition / de rubrique au-dessus des tableaux */
.clst__titre {
  font-family: var(--cond); font-weight: 700; font-size: .84rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 18px;
}
.clst { margin-bottom: 30px; }
.clst__t {
  font-family: var(--display); font-size: 1.2rem; text-transform: uppercase;
  color: var(--navy); background: var(--gold);
  padding: 10px 18px; border-radius: 3px 3px 0 0;
}
.clst__wrap { overflow-x: auto; }
.clst table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--line); border-top: 0; min-width: 420px;
}
.clst th {
  font-family: var(--cond); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.clst th.num, .clst td.num { text-align: center; width: 70px; }
.clst td {
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  font-size: .95rem; color: var(--ink);
}
.clst tr:last-child td { border-bottom: 0; }
.clst td.pos {
  font-family: var(--display); font-size: 1.1rem; color: var(--gold-dark);
  text-align: center; width: 60px;
}
.clst td.eq { font-weight: 600; }
.clst td.pts { font-family: var(--display); font-size: 1.1rem; color: var(--navy); text-align: center; }
.clst tr.nous { background: rgba(245,197,24,.12); }
.clst tr.nous td.eq { color: var(--navy); }
.clst tr.nous td.eq::after {
  content: 'Nous'; font-family: var(--cond); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: var(--navy);
  color: var(--gold); padding: 2px 7px; border-radius: 2px; margin-left: 10px;
}
.clst__src { font-size: .78rem; color: var(--muted); margin-top: 10px; }

/* --- Phase finale (tableau d'élimination directe) ---
   Un tour = une colonne ; les matchs s'empilent dedans. On lit de gauche
   (premiers tours) à droite (finale), comme un vrai tableau. */
.pfin { margin: 4px 0 26px; }
.pfin__t {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 1.2rem; text-transform: uppercase;
  color: var(--navy); margin-bottom: 16px;
}
.pfin__t .ico { color: var(--gold-dark); width: 1.2em; height: 1.2em; }
.pfin__rounds {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; align-items: start;
}
.pfin__round-t {
  font-family: var(--cond); font-weight: 700; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark);
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid var(--gold);
}
.pfin__match {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 3px; padding: 12px 14px; margin-bottom: 10px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  font-family: var(--display); font-size: .92rem; text-transform: uppercase;
  color: #7d8798; line-height: 1.15; overflow-wrap: anywhere;
}
.pfin__eq { text-align: left; }
.pfin__eq--dom { text-align: right; }
/* Le qualifié ressort ; notre club en navy même s'il perd. */
.pfin__eq.est-gagnant { color: var(--navy); }
.pfin__eq.est-nous { color: var(--gold-dark); }
.pfin__eq.est-nous.est-gagnant { color: var(--navy); }
.pfin__score {
  font-family: var(--display); font-size: 1.1rem; background: var(--gold);
  color: var(--navy); padding: 2px 12px; border-radius: 2px; white-space: nowrap;
}
.pfin__vs {
  font-family: var(--cond); font-weight: 700; font-size: .72rem;
  letter-spacing: .12em; color: var(--muted);
}
/* Intitulé de compétition / portée, au-dessus des tableaux */
.clst__titre {
  font-family: var(--cond); font-weight: 700; font-size: .84rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 18px;
}

/* Bande de sélection des compétitions (onglet Classements) : la mise en
   page vient de .chips, dans le bandeau .fbar. */
/* Pastille de filtre, partagée par les classements, l'effectif et le
   calendrier. Le compteur est un badge intégré, pas un chiffre flottant. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.clst-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--cond); font-weight: 700; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.clst-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.clst-chip.is-active {
  background: var(--navy); color: var(--gold); border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(8,18,38,.18);
}
.clst-chip i {
  font-style: normal; font-size: .68rem; line-height: 1;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(20,32,58,.07); color: var(--muted);
}
.clst-chip.is-active i { background: rgba(255,255,255,.16); color: var(--gold); }

/* Un seul bloc compétition visible à la fois (bascule JS) */
.clst-comp { display: none; }
.clst-comp.is-active { display: block; }

/* =========================================================
   PALMARÈS
   ========================================================= */
.palm { display: grid; gap: 12px; }
.palm-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 3px; padding: 20px 24px;
}
.palm-row__an { font-family: var(--display); font-size: 1.8rem; color: var(--gold-dark); line-height: 1; }
.palm-row__t { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; color: var(--navy); }
.palm-row__d { font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* État vide générique */
.cat-empty {
  background: var(--white); border: 1px dashed #c9c2b2; border-radius: 3px;
  padding: 44px 24px; text-align: center; color: var(--muted);
}
.cat-empty__ic { font-size: 2.2rem; opacity: .5; margin-bottom: 10px; }
.cat-empty b { display: block; font-family: var(--display); font-size: 1.15rem;
  text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }

/* =========================================================
   NAVIGATION ENTRE CATÉGORIES (bas de fiche)
   ========================================================= */
.cat-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-switch a {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: 18px; text-align: center; transition: .2s var(--ease);
}
.cat-switch a:hover { border-color: var(--gold); transform: translateY(-3px); }
.cat-switch a.is-current { background: var(--navy); border-color: var(--navy); }
.cat-switch b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--gold); }
.cat-switch span { font-family: var(--cond); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
.cat-switch a.is-current span { color: rgba(255,255,255,.7); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .ac-path { grid-template-columns: repeat(2, 1fr); }
  .ac-path .ac-step:nth-child(n) { min-height: 320px; }
  .eff-grid { grid-template-columns: repeat(3, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
  .cat-tabs { top: 66px; }
  .cal-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .cal-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ac-path { grid-template-columns: 1fr; }
  .eff-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: 1fr; }
  .cat-switch { grid-template-columns: repeat(2, 1fr); }
  .palm-row { grid-template-columns: 1fr; gap: 8px; }
  .cat-head__row { gap: 12px; }
  .cat-tab { padding: 15px 14px; font-size: .84rem; }
  .eff-card__num { font-size: 2.3rem; }
  .eff-card__nom { font-size: 1.05rem; }
  .staff-card__ini { width: 80px; height: 80px; font-size: 1.8rem; }
}

/* --- Photos de profil (effectif / staff) ---
   Surtout ne pas repasser .eff-card__ghost en position:relative : il doit
   rester en absolute/inset:0 (voir plus haut), sinon il retombe dans le flux,
   sa hauteur tombe à zéro (la photo est en absolute) et rien ne s'affiche. */
.eff-card__ghost { overflow: hidden; }
/* object-position haut : un recadrage centré coupe la tête sur les photos
   en pied, qui sont la majorité ici. On sacrifie le bas de l'image. */
.eff-card__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 12%;
}
.staff-card__photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
}

/* Le fond « silhouette » est volontairement à 12 % d'opacité ; une vraie photo
   doit être pleinement visible. Le voile ne couvre que le tiers bas, juste ce
   qu'il faut pour que le nom reste lisible. Rien ne change sans photo. */
.eff-card__ghost--photo { opacity: 1; }
.eff-card__ghost--photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,18,38,.9) 0%, rgba(8,18,38,.55) 22%, rgba(8,18,38,0) 55%),
    linear-gradient(to bottom, rgba(8,18,38,.5) 0%, rgba(8,18,38,0) 26%);
}
/* --- Filtre par poste (onglet Effectif) --- */
.eff-group[hidden] { display: none; }

/* Sur une photo claire, le numéro en filigrane disparaît : on le renforce. */
.eff-card--photo .eff-card__num {
  color: rgba(255,255,255,.72); text-shadow: 0 2px 10px rgba(8,18,38,.55);
}

/* --- Agrandissement : calque cliquable + loupe au survol --- */
.eff-card__zoom {
  position: absolute; inset: 0; z-index: 3;
  background: none; border: 0; padding: 0; cursor: zoom-in;
}
.eff-card__loupe {
  position: absolute; top: 10px; left: 10px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(8,18,38,.55); color: #fff;
  opacity: 0; transition: opacity .2s var(--ease);
}
.eff-card__zoom:hover .eff-card__loupe,
.eff-card__zoom:focus-visible .eff-card__loupe { opacity: 1; }

/* Le bouton porte aussi .staff-card__av : il en reprend taille et forme. */
.staff-card__av--zoom { position: relative; padding: 0; cursor: zoom-in; }
.staff-card__loupe {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: inherit; background: rgba(8,18,38,.45); color: #fff;
  opacity: 0; transition: opacity .2s var(--ease);
}

.staff-card__av--zoom:hover .staff-card__loupe,
.staff-card__av--zoom:focus-visible .staff-card__loupe { opacity: 1; }

/* --- Fiche photo agrandie ---
   Volontairement compacte : un panneau centré au format portrait, sur un
   fond à peine voilé, pour qu'on garde la page sous les yeux. */
.phlb {
  position: fixed; inset: 0; z-index: 90; padding: 24px;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,18,38,.45);
}
.phlb.open { display: flex; }
.phlb__panel {
  position: relative; width: min(92vw, 360px);
  background: var(--white); border-top: 3px solid var(--gold); border-radius: 3px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(4,9,20,.4);
}
.phlb__panel img {
  display: block; width: 100%; height: auto; max-height: 62vh;
  object-fit: cover; background: var(--navy);
}
.phlb__x {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  background: rgba(8,18,38,.55); color: #fff; border: 0; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer; transition: .2s;
}
.phlb__x:hover { background: var(--gold); color: var(--navy); }
.phlb__bar { display: flex; align-items: center; gap: 8px; padding: 12px 10px; }
.phlb__cap {
  flex: 1; text-align: center; font-family: var(--cond); font-weight: 600;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
}
.phlb__nav {
  width: 32px; height: 32px; flex: none; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--navy);
  border-radius: 2px; cursor: pointer; line-height: 1; transition: .2s;
}
.phlb__nav:hover { background: var(--gold); border-color: var(--gold); }
