/* Le Ballon d'Oc — 07/11/2026 — extension V2.1 aux sous-pages equipe.
   UI seulement. Aucune règle de classement, de licence, de droit ou de formulaire.
   Sélecteurs bornés aux 2 routes : equipe-classement.php / equipe-effectif.php. */

body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif){
  --team-night:#111d26;--team-red:#bb182a;--team-gold:#c9a04a;
  --team-ink:#15202a;--team-muted:#5e6a75;--team-paper:#f7f6f2;
  --team-stroke:#dddeda;
  background:var(--team-paper);color:var(--team-ink);
  font-family:system-ui,-apple-system,'Segoe UI',sans-serif;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-page{
  background:transparent;padding-top:22px;padding-bottom:44px;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-page>.container{max-width:1500px}

/* Exactement la même structure de bandeau que la fiche équipe V2.1 ; sans changer son HTML. */
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero{
  background:var(--team-night)!important;border:0;border-top:4px solid var(--team-red);
  border-radius:6px;box-shadow:none;padding:25px 30px;min-height:210px;
  grid-template-columns:112px minmax(0,1fr) 78px;gap:26px;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero::after{content:none!important;display:none!important}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero__club-logo{
  width:108px;height:108px;border-radius:8px;background:#fff;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero__identity h1{
  color:#fff;font-family:'LBD Match','LBO Oswald','Arial Narrow',Impact,sans-serif;
  font-size:clamp(32px,3.7vw,50px);line-height:1.09;font-weight:700;letter-spacing:0;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero__identity>span{color:#f18c95}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero__identity p{font-size:15px;color:#f4f4f1}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero__identity b{border-radius:4px}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero__competition-logo{border-radius:8px;background:#fff}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-nav{
  background:#fff;border:1px solid var(--team-stroke);border-radius:5px;
  box-shadow:none;margin-top:12px;margin-bottom:18px;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-nav a{
  color:#24313b;text-decoration:none;font-weight:680;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-nav a:is(:hover,:focus-visible){color:#af1325;background:#faf0f1;text-decoration:none}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-nav a.is-active{
  color:#b31529;border-color:#b31529;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-section{
  background:#fff;border:1px solid var(--team-stroke);border-radius:5px;box-shadow:none;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-section__head{
  border-bottom:1px solid var(--team-stroke);padding-bottom:13px;margin-bottom:14px;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-section__head>div>span{
  font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.075em;color:#b31b2b;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-section__head h2{
  font-family:'LBD Match','LBO Oswald','Arial Narrow',Impact,sans-serif;
  font-size:clamp(21px,2.1vw,29px);font-weight:650;letter-spacing:0;line-height:1.14;color:#17212b;
}
body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) :is(a,button,select,input,summary):focus-visible{
  outline:3px solid var(--team-gold);outline-offset:3px;
}

/* Classement : une table sportive lisible, avec son équipe toujours identifiée en vert. */
body.fo-page--equipe-classement .fo-team-ranking{margin-top:19px}
body.fo-page--equipe-classement .fo-team-ranking__intro{font-size:13px;color:var(--team-muted);line-height:1.55}
body.fo-page--equipe-classement .fo-team-ranking__scroll{
  border:1px solid #d9dee1;border-top:2px solid #1b2731;border-radius:4px;background:#fff;
  scrollbar-color:#9aa6af #f2f3f2;scrollbar-width:thin;
}
body.fo-page--equipe-classement .fo-team-ranking__table{font-size:13px;color:#1d2a35}
body.fo-page--equipe-classement .fo-team-ranking__table th{
  padding:13px 12px;background:#f0f2f3;color:#34424d;
  border-bottom:1px solid #d7dde0;font-size:11px;letter-spacing:.045em;
}
body.fo-page--equipe-classement .fo-team-ranking__table td{padding:13px 12px;border-bottom:1px solid #e8ebec}
body.fo-page--equipe-classement .fo-team-ranking__table tbody tr:nth-child(even):not(.is-current-team) td{background:#fafbfb}
body.fo-page--equipe-classement .fo-team-ranking__table tbody tr:not(.is-current-team):hover td{background:#f5f7f7}
body.fo-page--equipe-classement .fo-team-ranking__table .fo-team-ranking__pts{font-weight:800;color:#12202a}
body.fo-page--equipe-classement .fo-team-ranking__table .fo-team-ranking__club a{
  font-weight:670;text-decoration:none;color:#17232c;
}
body.fo-page--equipe-classement .fo-team-ranking__table .fo-team-ranking__club a:is(:hover,:focus-visible){color:#b31529;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body.fo-page--equipe-classement .fo-team-ranking__table tr.is-current-team td{
  background:#e5f5ea!important;color:#153e29!important;
  border-top:1px solid #82bf95;border-bottom:1px solid #82bf95;font-weight:700;
}
body.fo-page--equipe-classement .fo-team-ranking__table tr.is-current-team td:first-child{
  box-shadow:inset 4px 0 #26834e;
}
body.fo-page--equipe-classement .fo-team-ranking__table tr.is-current-team .fo-team-ranking__club a{
  color:#17402b!important;font-weight:760;
}
body.fo-page--equipe-classement .fo-team-ranking__here{
  background:#216d41;color:#fff;font-weight:760;border-radius:3px;font-size:10px;
  letter-spacing:.01em;padding:3px 6px;
}
body.fo-page--equipe-classement .fo-team-ranking__foot a{
  color:#b31b2c;font-size:13px;text-decoration:none;font-weight:730;
}
body.fo-page--equipe-classement .fo-team-ranking__foot a:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}

/* Effectif : table à lecture rapide et colonnes généreuses ; couleurs d'état inchangées. */
body.fo-page--equipe-effectif .fo-roster-layout{gap:20px;grid-template-columns:minmax(0,1fr) 290px}
body.fo-page--equipe-effectif .fo-roster-main{min-width:0}
body.fo-page--equipe-effectif .fo-roster-table-wrap{
  border:1px solid #d9dee0;border-radius:4px;scrollbar-width:thin;scrollbar-color:#a7b1b9 #f4f5f5;
}
body.fo-page--equipe-effectif .fo-roster-table{background:#fff}
body.fo-page--equipe-effectif .fo-roster-table th{
  padding:13px 11px;background:#f0f2f3;color:#35434b;border-bottom:1px solid #d6dcde;
  font-size:11px;text-transform:uppercase;letter-spacing:.045em;font-weight:750;
}
body.fo-page--equipe-effectif .fo-roster-table td{
  padding:13px 11px;border-bottom:1px solid rgba(15,28,39,.075);
  font-size:12px;line-height:1.45;
}
body.fo-page--equipe-effectif .fo-roster-identity{line-height:1.45}
body.fo-page--equipe-effectif .fo-roster-identity strong{
  font-family:system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:0;font-weight:750;
}
body.fo-page--equipe-effectif .fo-roster-player-link{text-decoration:none;color:inherit}
body.fo-page--equipe-effectif .fo-roster-player-link:is(:hover,:focus-visible){color:#ac1830;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body.fo-page--equipe-effectif .fo-roster-group td{
  background:#eef1f3!important;border-top:1px solid #cdd4d8!important;
}
body.fo-page--equipe-effectif .fo-roster-group td span{
  color:#203341;font-size:11px;letter-spacing:.075em;font-weight:770;
}
body.fo-page--equipe-effectif .fo-roster-group td b{
  border-radius:4px;background:#dbe1e5;color:#293946;
}
body.fo-page--equipe-effectif .fo-roster-side .fo-section{border-radius:5px;padding:18px}
body.fo-page--equipe-effectif .fo-roster-clubs b{border-radius:4px;background:#182b3b;color:#fff}
body.fo-page--equipe-effectif .fo-roster-opponent-link{
  border-radius:4px;box-shadow:none!important;transform:none!important;
}
body.fo-page--equipe-effectif .fo-roster-opponent-link:is(:hover,:focus-visible){background:#f5f7f7;border-color:#bbcad1}
body.fo-page--equipe-effectif .fo-roster-edit-toggle{
  border-radius:4px;box-shadow:none;background:#142535;color:#fff;
  min-height:38px;
}
body.fo-page--equipe-effectif .fo-roster-edit-toggle:is(:hover,:focus-visible){background:#a91e2e;color:#fff;transform:none;box-shadow:none}
body.fo-page--equipe-effectif .fo-roster-edit-toggle.is-active{
  background:#e7f3ec;color:#185a33;border:1px solid #a8d0b3;
}
body.fo-page--equipe-effectif .fo-roster-edit-toggle.is-active:is(:hover,:focus-visible){background:#d8eddf;color:#124727}
body.fo-page--equipe-effectif .fo-roster-count{border-radius:4px}
body.fo-page--equipe-effectif .fo-roster-special{border-radius:5px;box-shadow:none}

@media(max-width:980px){
  body.fo-page--equipe-effectif .fo-roster-layout{grid-template-columns:minmax(0,1fr)}
  body.fo-page--equipe-effectif .fo-roster-side{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-page{padding-top:14px}
  body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero{
    grid-template-columns:1fr;gap:12px;min-height:0;padding:19px 17px;
  }
  body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero__club-logo{
    width:88px;height:88px;margin-inline:auto;
  }
  body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-hero__identity h1{font-size:clamp(28px,7vw,39px)}
  body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-team-nav{overflow-x:auto;scrollbar-width:thin}
  body:is(.fo-page--equipe-classement,.fo-page--equipe-effectif) .fo-section{padding:16px 12px}
  body.fo-page--equipe-classement .fo-team-ranking__table{min-width:800px}
  body.fo-page--equipe-classement .fo-team-ranking__table th,
  body.fo-page--equipe-classement .fo-team-ranking__table td{padding:11px 8px}
  body.fo-page--equipe-effectif .fo-roster-side{grid-template-columns:1fr}
  body.fo-page--equipe-effectif .fo-roster-table{min-width:830px}
  body.fo-page--equipe-effectif .fo-roster-counts{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){
  body.fo-page--equipe-effectif .fo-roster-edit-toggle{transition:none}
}
