/* ═══════════════════════════════════════════════════════════════════════════
   Habillage v2 du portail FHSW (en-tête, menu, accueil)
   Se charge APRÈS style.css / portal.css / experience.css : il réutilise leurs variables
   (--fond, --carte, --texte, --bleu…) et ne touche pas aux pages internes.
   ═══════════════════════════════════════════════════════════════════════════ */
body.espace{
  --doux:var(--texte-doux);--vdoux:var(--texte-vdoux);--bord:var(--bordure);--bord2:rgba(148,163,184,.30);
  --accent:var(--bleu);--accent2:var(--bleu-clair);
  background:var(--fond);color:var(--texte);
}
html[data-theme="clair"] body.espace{--accent2:#1d4ed8;--bord2:rgba(19,35,54,.26);--or:#b45309}
body.espace a{text-decoration:none}
.wrap{max-width:1280px;margin:0 auto;padding:0 16px}

/* ── En-tête + menu ─────────────────────────────────── */
.hd{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--fond) 90%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--bord)}
.hd-in{display:flex;align-items:center;gap:12px;height:58px}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0;color:var(--texte)}
.logo-img{width:48px;height:48px;object-fit:contain;flex-shrink:0}
.logo b{display:block;font-size:15px;letter-spacing:.4px;line-height:1.05}
.logo small{display:block;font-size:10px;color:var(--vdoux);letter-spacing:.8px;font-weight:700}
.menu{display:flex;align-items:center;gap:2px;margin-left:8px;flex:1;min-width:0}
.mi{position:relative}
.mi>button,.mi>a{display:flex;align-items:center;gap:5px;padding:8px 10px;border-radius:9px;border:0;background:none;font:inherit;font-weight:600;font-size:13.5px;color:var(--doux);cursor:pointer}
.mi>button:hover,.mi>a:hover,.mi.ouvert>button{background:var(--carte2);color:var(--texte)}
.mi.actif>a,.mi.actif>button{color:var(--texte);box-shadow:inset 0 -2px var(--accent)}
.mi>button .car{font-size:9px;opacity:.7;transition:transform .15s}
.mi.ouvert>button .car{transform:rotate(180deg)}
.mega{display:none;position:absolute;top:calc(100% + 6px);left:0;background:var(--carte);border:1px solid var(--bord2);border-radius:14px;box-shadow:var(--ombre);padding:16px;gap:22px;z-index:60}
.mi:hover>.mega::before{content:"";position:absolute;top:-8px;left:0;right:0;height:8px}
.mi.ouvert>.mega{display:flex}
.mega h4{margin:0 0 6px;font-size:10.5px;letter-spacing:1.1px;text-transform:uppercase;color:var(--vdoux)}
.mega a{display:block;padding:5px 8px;margin:0 -8px;border-radius:7px;color:var(--doux);font-size:13px;white-space:nowrap}
.mega a:hover{background:var(--carte2);color:var(--texte)}
.mega .col{min-width:170px}
.mega-eq{flex-direction:column;gap:10px;min-width:560px}
.mi.ouvert>.mega-eq{display:flex}
.eq-tete{display:flex;align-items:center;justify-content:space-between;gap:10px}
.eq-grille{display:grid;grid-template-columns:repeat(13,1fr);gap:6px}
.eq-grille a{padding:5px;margin:0;display:grid;place-items:center;border:1px solid transparent;border-radius:9px}
.eq-grille a:hover{border-color:var(--bord2);background:var(--carte2)}
.eq-grille img{width:28px;height:28px;object-fit:contain}
.seg{display:inline-flex;border:1px solid var(--bord2);border-radius:9px;overflow:hidden;white-space:nowrap}
.seg button{border:0;background:none;padding:5px 11px;font:inherit;font-size:12px;font-weight:700;color:var(--doux);cursor:pointer}
.seg button.on{background:var(--accent);color:#fff}
.droite{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}
.ib{border:1px solid var(--bord2);background:var(--carte);border-radius:9px;padding:6px 10px;font:inherit;font-size:13px;font-weight:600;color:var(--doux);white-space:nowrap;cursor:pointer;line-height:1.35}
.ib:hover{color:var(--texte);border-color:var(--accent2)}
.btn-dg{display:flex;align-items:center;gap:6px;line-height:1.1;padding:8px 12px;border-radius:10px;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff!important;font-weight:800;font-size:12.5px;box-shadow:0 4px 14px rgba(99,102,241,.35);white-space:nowrap}
.burger{display:none}
.mob-seg{display:none}

/* ── Accueil ─────────────────────────────────────────── */
.etat{background:var(--fond2);border-bottom:1px solid var(--bord)}
.etat-in{display:flex;align-items:center;gap:14px;height:42px;overflow:hidden}
.pastille{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--doux);white-space:nowrap}
.pastille i{width:8px;height:8px;border-radius:50%;background:var(--vert);box-shadow:0 0 0 4px rgba(47,191,113,.18)}
.ticker{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;flex:1;padding:4px 0}
.ticker::-webkit-scrollbar{display:none}
.tk{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:4px 10px;border:1px solid var(--bord);border-radius:9px;background:var(--carte);font-size:12px;font-weight:700;color:var(--texte)}
.tk img{width:18px;height:18px;object-fit:contain}
.tk .sc{min-width:14px;text-align:center}
.tk .p{color:var(--vdoux)}
.tk em{font-style:normal;font-size:10px;color:var(--vdoux);font-weight:700;margin-left:2px}

main.accueil2{padding:18px 0 40px}
.grille{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
.c{background:var(--carte);border:1px solid var(--bord);border-radius:12px;padding:14px;min-width:0}
.c-t{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.c-t h2{margin:0;font-size:12px;letter-spacing:1.1px;text-transform:uppercase;color:var(--doux);display:flex;align-items:center;gap:7px}
.c-t h2::before{content:"";width:3px;height:14px;border-radius:2px;background:var(--accent)}
.plus{font-size:12px;font-weight:700;color:var(--accent2);white-space:nowrap}
.plus:hover{text-decoration:underline}
.span8{grid-column:span 8}.span4{grid-column:span 4}.span12{grid-column:span 12}

.une{display:grid;grid-template-columns:1.35fr 1fr;gap:14px}
.une-vedette{position:relative;border-radius:11px;overflow:hidden;min-height:280px;display:flex;align-items:flex-end;background:linear-gradient(160deg,#0b3d91,#0f172a 60%,#1e1b4b);isolation:isolate}
.une-vedette .img{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.55;z-index:-1}
.une-vedette::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,8,18,.92) 8%,rgba(5,8,18,.15) 70%);z-index:-1}
.une-txt{padding:16px;color:#fff}
.tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:1px;padding:3px 8px;border-radius:999px;background:rgba(59,130,246,.9);color:#fff;text-transform:uppercase}
.une-txt h3{margin:8px 0 4px;font-size:21px;line-height:1.15;font-weight:800;color:#fff}
.une-txt p{margin:0;font-size:12.5px;color:#cbd5e1}
.une-txt a.lire{display:inline-block;margin-top:8px;font-size:12px;font-weight:800;color:#fff;border-bottom:1px solid rgba(255,255,255,.5)}
.une-liste{display:flex;flex-direction:column;gap:2px}
.une-it{display:grid;grid-template-columns:44px 1fr;gap:10px;align-items:center;text-align:left;border:0;background:none;padding:8px;border-radius:9px;border-left:3px solid transparent;font:inherit;color:var(--texte);cursor:pointer}
.une-it:hover{background:var(--carte2)}
.une-it.on{background:var(--carte2);border-left-color:var(--accent)}
.une-it .vig{width:44px;height:44px;border-radius:9px;background:linear-gradient(135deg,var(--c1,#1d4ed8),var(--c2,#0f172a));display:grid;place-items:center;font-size:19px}
.une-it b{display:block;font-size:13px;line-height:1.25}
.une-it small{color:var(--vdoux);font-size:11px}
.une-barre{height:2px;background:var(--bord);border-radius:2px;margin-top:10px;overflow:hidden}
.une-barre i{display:block;height:100%;width:0;background:var(--accent)}

table.t{width:100%;border-collapse:collapse;font-size:12.5px}
.t th{font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:var(--vdoux);text-align:left;padding:4px 6px;font-weight:700}
.t td{padding:5px 6px;text-align:left;border-top:1px solid var(--bord);font-variant-numeric:tabular-nums;color:var(--texte)}
.t th:first-child,.t td:first-child{text-align:left;width:26px;color:var(--vdoux)}
.t th:nth-child(2),.t td:nth-child(2){text-align:left}
.t td:nth-child(2){font-weight:700}
.t td.pts{font-weight:800}
.eqc{display:flex;align-items:center;gap:8px;color:var(--texte)}
.eqc img{width:20px;height:20px;object-fit:contain}
.onglets{display:flex;gap:4px;flex-wrap:wrap}
.onglets button{border:1px solid var(--bord);background:none;border-radius:8px;padding:4px 10px;font:inherit;font-size:11.5px;font-weight:700;color:var(--doux);cursor:pointer}
.onglets button.on{background:var(--accent);border-color:var(--accent);color:#fff}

.matchs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.m{border:1px solid var(--bord);border-radius:10px;padding:8px 10px;background:var(--carte2);display:block;color:var(--texte)}
a.m:hover{border-color:var(--accent2)}
.m .l{display:flex;align-items:center;gap:8px;justify-content:space-between;font-weight:700;font-size:12.5px}
.m .l span{display:flex;align-items:center;gap:7px}
.m img{width:18px;height:18px;object-fit:contain}
.m small{display:block;font-size:10px;color:var(--vdoux);margin-bottom:4px;font-weight:700;letter-spacing:.6px;text-transform:uppercase}
.m .perd{color:var(--vdoux)}

.men-top{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;background:var(--carte2);margin-bottom:6px}
.men-top .n{font-size:26px;font-weight:900;color:var(--accent2);line-height:1}
.men-top small{color:var(--vdoux);display:block;font-size:11px}
.men-top b{color:var(--texte)}
.men-l{display:grid;grid-template-columns:20px 1fr auto;gap:8px;align-items:center;padding:6px 2px;border-top:1px solid var(--bord);font-size:12.5px;color:var(--texte)}
.men-l:first-child{border-top:0}
.men-l i{font-style:normal;color:var(--vdoux);font-weight:700}
.men-l small{color:var(--vdoux)}

.fil{display:flex;flex-direction:column}
.fi{display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--bord);font-size:12.5px;color:var(--texte)}
.fi:first-child{border-top:0}
.fi .ic{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:14px;background:var(--carte2)}
.fi small{color:var(--vdoux);font-size:11px;white-space:nowrap}

.cs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cs h5{margin:0 0 6px;font-size:10.5px;letter-spacing:1px;color:var(--vdoux);text-transform:uppercase}
.cs-l{display:flex;align-items:center;gap:8px;padding:4px 0;font-size:12.5px;font-weight:700;border-top:1px solid var(--bord);color:var(--texte)}
.cs-l span:last-child{margin-left:auto;font-variant-numeric:tabular-nums}
.cs-l img{width:18px;height:18px;object-fit:contain}
.sep-wc{font-size:10px;color:var(--or);letter-spacing:1px;font-weight:800;margin:6px 0 2px}
.vide-c{color:var(--vdoux);font-size:12.5px;padding:8px 0}

.club{background:linear-gradient(135deg,rgba(124,58,237,.18),rgba(37,99,235,.14)),var(--carte);border-color:rgba(99,102,241,.45)}
.club-t{display:flex;align-items:center;gap:12px}
.club-t img{width:52px;height:52px;object-fit:contain}
.club-t h3{margin:0;font-size:17px;color:var(--texte)}
.club-t small{color:var(--doux)}
.club-st{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.club-st div{background:var(--carte2);border-radius:9px;padding:8px;text-align:center}
.club-st b{display:block;font-size:17px;color:var(--texte)}
.club-st small{font-size:10px;color:var(--vdoux);letter-spacing:.6px;text-transform:uppercase}
.club-liens{display:flex;flex-wrap:wrap;gap:6px}
.club-liens a{font-size:12px;font-weight:700;padding:5px 10px;border-radius:8px;border:1px solid var(--bord2);background:var(--carte);color:var(--texte)}
.club-liens a:hover{border-color:var(--accent2)}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width:1180px){
  .logo small{display:none}
  .mi>button,.mi>a{padding:8px 8px;font-size:13px}
  #btnConn .cx-t{display:none}#btnConn .cx-i{display:inline}
}
@media (max-width:1050px){
  .span8,.span4{grid-column:span 12}
  .une{grid-template-columns:1fr}
}
@media (max-width:1100px){
  .burger{display:inline-flex}
  .hd{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--fond)}
  .menu{display:none;position:fixed;inset:58px 0 0 0;background:var(--fond);flex-direction:column;align-items:stretch;padding:12px 16px 30px;margin:0;gap:4px;overflow:auto;z-index:70}
  .menu.ouvert{display:flex}
  .mi>button,.mi>a{width:100%;justify-content:space-between;padding:12px;font-size:15px;background:var(--carte)}
  .mega{position:static;display:none;box-shadow:none;border:0;padding:6px 4px 10px;flex-direction:column;gap:6px;background:none}
  .mi.ouvert>.mega{display:flex}
  .mega-eq{min-width:0}
  .eq-grille{grid-template-columns:repeat(7,1fr)}
  .mob-seg{display:block}
  #segNiveau{display:none}
  .droite .ib.txt .cx-t{display:none}.droite .ib.txt .cx-i{display:inline}
  .hd-in{gap:8px}
}
@media (max-width:560px){
  .wrap{padding:0 12px}
  .logo b{display:none}
  .dg-long{display:none}
  .btn-dg{padding:8px 10px}
  .une-txt h3{font-size:18px}
  .cs{grid-template-columns:1fr}
  .etat-in .pastille span.long{display:none}
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLEINE LARGEUR + TABLEAUX COMPACTS (10 oct. 2026, demande de Yan)
   Objectif : sur un écran 1920×1080, les pages occupent toute la largeur, et
   les tableaux sont condensés à GAUCHE avec des colonnes aussi étroites que
   possible (on gagne de la place en alignant davantage de choses à l'horizontale).
   Ce bloc est volontairement en FIN de espace.css (chargé en dernier) ; pour
   annuler tout le changement, supprimer simplement ce bloc.
   ═══════════════════════════════════════════════════════════════════════════ */
.wrap{max-width:none;padding-left:clamp(10px,calc(1.1vw / var(--zf,1)),22px);padding-right:clamp(10px,calc(1.1vw / var(--zf,1)),22px)}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main,body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .page-pleine,body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-home,
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) [class$="-page"],body.espace [class*="-page "]{max-width:none;width:100%;box-sizing:border-box}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel{max-width:none}

/* Tableaux : collés à gauche, largeur = contenu, colonnes serrées */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel table:not(.news-body table):not(.clst-table):not(.line-editor-board table),
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .page-pleine table:not(.news-body table):not(.clst-table):not(.line-editor-board table){
  width:auto!important;max-width:100%;margin-left:0!important;margin-right:auto;
  border-collapse:collapse;table-layout:auto}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel table:not(.news-body table):not(.clst-table):not(.line-editor-board table) :is(th,td),
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .page-pleine table:not(.news-body table):not(.clst-table):not(.line-editor-board table) :is(th,td){
  padding:3px 6px!important;white-space:nowrap;width:1%;line-height:1.25}
/* La colonne qui contient le nom/texte long peut prendre le reste sans s'étirer */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table :is(td.nom,td.name,td.player,td:first-child:has(a)){width:auto}
/* Défilement horizontal plutôt que débordement si un tableau est quand même large */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel{overflow-x:auto}

/* Grilles de pages internes qui avaient une largeur maximale propre (page équipe /
   alignements) : on les libère aussi pour qu'elles occupent toute la largeur. */
body.espace :is(.team-summary-grid,.line-unit-grid,.roster-card-board,.team-lines-grid,.line-overtime-grid){
  max-width:none!important;width:100%}


/* ═══════════════════════════════════════════════════════════════════════════
   STYLE COMMUN DES PAGES INTERNES (10 oct. 2026) — cohérence visuelle
   S'applique à tous les tableaux .compact-table (joueurs, gardiens, calendrier,
   transactions, finances, statistiques, meneurs, etc.). Classement (.clst-table)
   et Trios (.line-editor-board) gardent leur style actuel, que Yan aime déjà.
   ═══════════════════════════════════════════════════════════════════════════ */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table.compact-table{font-size:17px;font-variant-numeric:tabular-nums}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table.compact-table thead th{position:static;background:var(--carte2);
  font-size:10.5px;letter-spacing:.5px;text-transform:uppercase;color:var(--vdoux);font-weight:800;
  border-bottom:2px solid var(--bord2)}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table.compact-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--carte2) 55%,transparent)}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table.compact-table tbody tr:hover{background:color-mix(in srgb,var(--accent) 14%,transparent)}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table.compact-table tbody td{border-bottom:1px solid var(--bord)}
/* Texte (nom, équipe) à gauche ; chiffres à droite, collés à leur en-tête */
/* Toutes les colonnes sont TOUJOURS alignées à gauche (voir règle finale en bas de fichier) */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table.compact-table td a{color:var(--texte);font-weight:600}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table.compact-table td a:hover{color:var(--accent2)}

/* Filtres au-dessus des tableaux : une seule rangée serrée */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel form:not(.login-panel form){display:flex;flex-wrap:wrap;align-items:end;gap:6px 10px;margin-bottom:8px}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel form label{display:flex;flex-direction:column;gap:2px;font-size:10.5px;
  color:var(--vdoux);text-transform:uppercase;letter-spacing:.4px;font-weight:700}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel form :is(select,input:not([type=checkbox]):not([type=radio])){
  font:inherit;font-size:12.5px;padding:4px 7px;border:1px solid var(--bord2);border-radius:6px;
  background:var(--carte);color:var(--texte);max-width:170px}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel form button{font:inherit;font-size:12.5px;font-weight:700;padding:5px 12px;
  border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:#fff;cursor:pointer}

/* Titres de pages et de panneaux : plus petits, mêmes partout */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel>h2,body.espace .portal-heading h1{font-size:16px;letter-spacing:-.2px;margin:0 0 8px}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel{padding:10px 12px;border-radius:8px}

/* ═══ LARGEUR COMPLÈTE (1080p) — renforcé 10 oct. 2026 ═══
   Tout le contenu occupe 100 % de la fenêtre; seules marges latérales minces. */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .wrap,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.wrap,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-home,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .page-pleine,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) [class$="-page"],
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .etat-in,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .hd-in{
  max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;
  padding-left:14px!important;padding-right:14px!important;box-sizing:border-box!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .portal-panel{width:100%!important;max-width:none!important;box-sizing:border-box}
/* Les enfants directs de la page s'étirent aussi */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main>*{max-width:none!important}
/* Tableaux principaux : pleine largeur de leur panneau (colonnes serrées, mais la
   table remplit l'écran au lieu de laisser un grand vide à droite) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel>table.compact-table,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main>table.compact-table,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .page-pleine>table.compact-table{width:100%!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.compact-table :is(th,td){width:auto}


/* ═══ Top 5 de la ligue (accueil) ═══ */
.span12{grid-column:span 12}
.top5{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.top5-c{background:var(--carte2);border:1px solid var(--bord);border-radius:10px;padding:8px 10px}
.top5-c h3{margin:0 0 4px;font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:var(--accent2);font-weight:800}
.top5-l{display:grid;grid-template-columns:16px 1fr auto;gap:6px;align-items:center;padding:3px 0;border-top:1px solid var(--bord);font-size:12.5px;color:var(--texte)}
.top5-l:first-of-type{border-top:0;font-weight:700}
.top5-l i{font-style:normal;color:var(--vdoux);font-weight:700;font-size:11px}
.top5-l small{color:var(--vdoux)}
.top5-l b{font-variant-numeric:tabular-nums}

/* Aperçu de l'article en place (À la une) */
.apercu-btn{background:none;border:0;border-bottom:1px solid rgba(255,255,255,.5);padding:0 0 0 0;margin:8px 0 0 12px;cursor:pointer;font:inherit;font-size:12px;font-weight:800;color:#fff}
.une-apercu{grid-column:1/-1;margin-top:6px;padding:12px 14px;border:1px solid var(--bord);border-radius:10px;background:var(--carte2);max-height:520px;overflow:auto;font-size:13.5px;line-height:1.6;color:var(--texte)}
.une-apercu[hidden]{display:none}
.une-apercu img{max-width:100%;height:auto}
.une-apercu iframe{width:100%;min-height:480px;border:0}
.top5-l .eqc{display:inline-flex;align-items:center;gap:6px}
.top5-l .eqc img{width:18px;height:18px;object-fit:contain}

/* Portrait du joueur à GAUCHE du nom (img{display:block} global le mettait au-dessus) */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .player-link-portrait{display:inline-block!important;width:24px;height:24px;vertical-align:middle;margin:0 6px 0 0;flex:0 0 24px}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) a:has(>.player-link-portrait){display:inline-flex;align-items:center;white-space:nowrap}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) td:has(>a>.player-link-portrait){white-space:nowrap}
/* Abréviation d'équipe remplacée par le logo seul (texte gardé pour lecteurs d'écran / tri) */
.sr-abbr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.team-identity[title]>img,.team-identity[title] .inline-team-logo{width:22px;height:22px;flex-basis:22px}

/* ═══ NOUVELLES (journal du portail) — refonte 10 oct. 2026 ═══ */
.nv .nv-bar{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;margin:4px 0 12px}
.nv .nv-chips{display:flex;flex-wrap:wrap;gap:6px}
.nv .nv-chips a{padding:5px 11px;border:1px solid var(--bord2);border-radius:999px;font-size:12.5px;font-weight:700;color:var(--doux);background:var(--carte)}
.nv .nv-chips a small{color:var(--vdoux);font-weight:600;margin-left:3px}
.nv .nv-chips a.on{background:var(--accent);border-color:var(--accent);color:#fff}.nv .nv-chips a.on small{color:#e0e7ff}
.nv .nv-search{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.nv .nv-search :is(input,select,button){font:inherit;font-size:12.5px;padding:6px 9px;border:1px solid var(--bord2);border-radius:7px;background:var(--carte);color:var(--texte)}
.nv .nv-search input[type=search]{min-width:230px}
.nv .nv-search button{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700;cursor:pointer}
.nv-sub{font-size:14px;margin:0 0 6px}.nv-vide{padding:30px 0;color:var(--vdoux)}
/* Grille de cartes */
.nv-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.nv-card{display:flex;flex-direction:column;background:var(--carte);border:1px solid var(--bord);border-radius:12px;overflow:hidden;color:var(--texte);transition:transform .15s,border-color .15s}
.nv-card:hover{transform:translateY(-2px);border-color:var(--accent)}
.nv-img{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#1d4ed8,#0f172a);overflow:hidden}
.nv-img img{width:100%;height:100%;object-fit:cover}
.nv-img.logo{display:grid;place-items:center;background:linear-gradient(135deg,#1e3a8a,#0f172a 70%)}
.nv-img.logo img{width:46%;height:70%;object-fit:contain;filter:drop-shadow(0 4px 14px rgba(0,0,0,.4))}
.nv-txt{display:flex;flex-direction:column;gap:6px;padding:11px 13px 13px;flex:1}
.nv-tag{align-self:flex-start;font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--accent2)}
.nv-txt b{font-size:15.5px;line-height:1.25}
.nv-ex{font-size:12.5px;line-height:1.5;color:var(--doux)}
.nv-txt small{margin-top:auto;color:var(--vdoux);font-size:11px}
.nv-feature{grid-column:span 2;flex-direction:row}
.nv-feature .nv-img{flex:1.25;aspect-ratio:auto;min-height:260px}
.nv-feature .nv-txt{flex:1;justify-content:center;padding:18px 20px}
.nv-feature .nv-txt b{font-size:23px;line-height:1.18}
.nv-feature .nv-ex{font-size:13.5px}
.nv-cards-sm{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.nv-cards-sm .nv-txt b{font-size:13.5px}
/* Page d'article */
.nv-article{max-width:1400px}
.nv-crumb{font-size:12px;color:var(--vdoux);margin-bottom:8px}.nv-crumb a{color:var(--doux)}
.nv-head{display:flex;gap:16px;align-items:center;margin-bottom:10px}
.nv-head-logo{width:78px;height:78px;object-fit:contain;flex:0 0 78px}
.nv-head h2{font-size:clamp(22px,calc(2.4vw / var(--zf,1)),32px);line-height:1.15;letter-spacing:-.4px;margin:4px 0 6px}
.nv-meta{margin:0;font-size:12.5px;color:var(--vdoux)}
.nv-article .news-reactions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 12px}
.nv-content .news-document{height:min(calc(88vh / var(--zf,1)),1400px)}
.nv-edit{margin:14px 0;font-size:13px}
.nv-pn{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}
.nv-pn a{display:block;padding:11px 14px;border:1px solid var(--bord);border-radius:10px;background:var(--carte);font-weight:700;font-size:13.5px;color:var(--texte)}
.nv-pn a small{display:block;color:var(--accent2);font-size:11px;margin-bottom:3px}.nv-pn .nv-next{text-align:right}
.nv-pn a:hover{border-color:var(--accent)}
.nv-related h3{font-size:14px;margin:0 0 8px}
/* Éditeur */
.nv-form .nv-row{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.nv-form .nv-grow{flex:1;min-width:240px}
.nv-form label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--vdoux);margin:8px 0 3px}
.nv-form :is(input:not([type=file]),select,textarea){width:100%;box-sizing:border-box}
.nv-tools{display:flex;gap:12px;align-items:center;margin-bottom:4px;flex-wrap:wrap}
.nv-file{display:inline-block!important;margin:0!important;padding:6px 12px;border:1px dashed var(--bord2);border-radius:8px;cursor:pointer;text-transform:none!important;letter-spacing:0!important;font-size:12.5px!important;color:var(--texte)!important}
.nv-primary{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;font-weight:700}
.nv-media{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}.nv-media figure{margin:0;width:170px}.nv-media img{width:170px;height:110px;object-fit:cover;border-radius:8px}
.nv-media figcaption{display:flex;flex-direction:column;gap:4px;margin-top:4px}.nv-media button{font:inherit;font-size:11px;padding:3px 6px;cursor:pointer}
@media (max-width:900px){.nv-feature{grid-column:auto;flex-direction:column}.nv-feature .nv-img{min-height:0;aspect-ratio:16/9}.nv-pn{grid-template-columns:1fr}.nv-head-logo{width:56px;height:56px;flex-basis:56px}}
/* Accueil : Matchs à droite des nouvelles — liste défilable, 2 colonnes de cartes */
section[aria-labelledby="mt-t"] .matchs{grid-template-columns:repeat(2,minmax(0,1fr));max-height:420px;overflow:auto;padding-right:2px}

/* Journalistes : signatures, portraits, page « La rédaction » */
.nv-img img{object-position:center 22%}
.nv-card-by{display:flex;align-items:center;gap:0}
.nv-card-by img{width:24px;height:24px;border-radius:50%;object-fit:cover;border:2px solid var(--carte);margin-right:-6px;position:relative}
.nv-card-by img:last-of-type{margin-right:8px}
.nv-by{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 4px}
.nv-by-i{display:flex;align-items:center;gap:9px;padding:5px 12px 5px 5px;border:1px solid var(--bord);border-radius:999px;background:var(--carte);color:var(--texte)}
.nv-by-i img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:center 20%}
.nv-by-i b{display:block;font-size:13px}.nv-by-i small{display:block;color:var(--vdoux);font-size:11px}
.nv-pick{display:flex;flex-wrap:wrap;gap:8px}
.nv-pickit{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:5px 10px 5px 8px;border:1px solid var(--bord2);border-radius:999px;cursor:pointer;text-transform:none!important;letter-spacing:0!important;font-size:13px!important;color:var(--texte)!important}
.nv-pickit input{width:auto!important}
.nv-pickit img{width:32px;height:32px;border-radius:50%;object-fit:cover;object-position:center 20%}
.nv-pickit:has(input:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,transparent)}
.nv-journo{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px;margin-bottom:16px}
.nv-j{display:flex;gap:14px;padding:14px;border:1px solid var(--bord);border-radius:12px;background:var(--carte)}
.nv-j img{width:120px;height:120px;border-radius:14px;object-fit:cover;object-position:center 20%;flex:0 0 120px}
.nv-j h2{font-size:17px;margin:0 0 2px}.nv-role{margin:0 0 6px;color:var(--accent2);font-weight:700;font-size:12.5px}.nv-bio{margin:0 0 6px;font-size:12.5px;line-height:1.5;color:var(--doux)}
.nv-jform{grid-column:1/-1;max-width:760px}

.nv-edit-top{display:flex;gap:14px;align-items:center;margin:0 0 10px;padding:7px 12px;border:1px solid var(--bord);border-left:3px solid var(--accent);border-radius:8px;background:var(--carte);font-size:13px}
.nv-edit-top .nv-primary-link{font-weight:800;color:var(--accent2)}

.nv-hero{margin:0 0 14px;border-radius:12px;overflow:hidden;background:var(--carte2);max-height:460px}
.nv-hero img{display:block;width:100%;max-height:460px;object-fit:cover;object-position:center 30%}
.nv-inline{display:inline}.nv-inline button{font:inherit;font-size:11px;padding:3px 6px;cursor:pointer}

/* Bandeau des matchs en défilement horizontal */
.ticker.tk-marquee{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.tk-track{display:flex;gap:8px;width:max-content;animation:tkscroll 60s linear infinite}
.ticker.tk-marquee:hover .tk-track{animation-play-state:paused}
@keyframes tkscroll{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 4px))}}
@media (prefers-reduced-motion:reduce){.tk-track{animation:none}.ticker.tk-marquee{overflow-x:auto}}

/* ═══ ARTICLES : lecture confortable + éditeur visuel (10 oct. 2026) ═══ */
.nv-prose{max-width:880px;font-size:16.5px;line-height:1.78;color:var(--texte);overflow-wrap:anywhere}
.nv-prose::after{content:"";display:block;clear:both}
.nv-prose p{margin:0 0 1.05em}
.nv-prose h2{font-size:1.55em;line-height:1.25;margin:1.5em 0 .5em;letter-spacing:-.3px}
.nv-prose h3{font-size:1.2em;line-height:1.3;margin:1.35em 0 .4em;color:var(--accent2)}
.nv-prose h4{font-size:1em;text-transform:uppercase;letter-spacing:.5px;margin:1.2em 0 .3em;color:var(--doux)}
.nv-prose a{color:var(--accent2);text-decoration:underline;text-underline-offset:2px}
.nv-prose ul,.nv-prose ol{margin:0 0 1.1em;padding-left:1.5em}.nv-prose li{margin:.25em 0}
.nv-prose blockquote{margin:1.2em 0;padding:.6em 1.1em;border-left:4px solid var(--accent);background:var(--carte2);border-radius:0 8px 8px 0;color:var(--doux);font-style:italic}
.nv-prose hr{border:0;border-top:1px solid var(--bord2);margin:1.6em 0}
.nv-prose pre,.nv-prose code{font-family:ui-monospace,Consolas,monospace;font-size:.9em;background:var(--carte2);border-radius:6px}.nv-prose pre{padding:12px;overflow:auto}.nv-prose code{padding:1px 5px}
.nv-prose img{max-width:100%;height:auto;border-radius:8px}
.nv-prose img.nv-img-s{width:25%}.nv-prose img.nv-img-m{width:50%}.nv-prose img.nv-img-l{width:75%}
.nv-prose img.nv-img-full{width:100%;display:block;margin:1em 0}
.nv-prose img.nv-img-center{display:block;margin:1em auto}
.nv-prose img.nv-img-left{float:left;margin:.3em 1.3em .8em 0}
.nv-prose img.nv-img-right{float:right;margin:.3em 0 .8em 1.3em}
/* Tableaux collés : lisibles, défilables sur petit écran */
.nv-prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:1.2em 0;font-size:.92em;line-height:1.45;font-variant-numeric:tabular-nums}
.nv-prose th,.nv-prose td{padding:6px 11px;border:1px solid var(--bord2);text-align:left;vertical-align:top}
.nv-prose thead th,.nv-prose tr:first-child th{background:var(--carte2);font-size:.82em;text-transform:uppercase;letter-spacing:.4px;color:var(--vdoux);white-space:nowrap}
.nv-prose tbody tr:nth-child(even) td{background:color-mix(in srgb,var(--carte2) 55%,transparent)}
.nv-prose tbody tr:hover td{background:color-mix(in srgb,var(--accent) 12%,transparent)}
.nv-prose caption{caption-side:top;text-align:left;font-weight:700;padding:0 0 6px;color:var(--doux)}
/* En-tête d'article : navigation en haut à droite */
.nv-head{align-items:flex-start}
.nv-head>div:first-of-type{flex:1;min-width:0}
.nv-pn-top{display:flex;gap:6px;margin-left:auto;flex:0 0 auto}
.nv-pn-top a{padding:6px 12px;border:1px solid var(--bord2);border-radius:8px;background:var(--carte);font-size:12.5px;font-weight:700;color:var(--texte);white-space:nowrap}
.nv-pn-top a:hover{border-color:var(--accent);color:var(--accent2)}
@media (max-width:700px){.nv-head{flex-wrap:wrap}.nv-pn-top{margin-left:0;width:100%}}
/* Éditeur visuel */
.nv-btn{display:inline-block;padding:6px 12px;border:1px solid var(--bord2);border-radius:8px;background:var(--carte);color:var(--texte);cursor:pointer;font:inherit;font-size:12.5px;font-weight:700;margin:0!important;text-transform:none!important;letter-spacing:0!important}
.nv-btn:hover{border-color:var(--accent)}
.nv-cover{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}
.nv-cover-prev{width:240px;aspect-ratio:16/9;border:1px dashed var(--bord2);border-radius:10px;overflow:hidden;display:grid;place-items:center;text-align:center;color:var(--vdoux);font-size:12.5px;background:var(--carte2)}
.nv-cover-prev img{width:100%;height:100%;object-fit:cover}
.nv-cover-act{display:flex;flex-direction:column;gap:8px;align-items:flex-start;max-width:420px}
.nv-cover-act details summary{cursor:pointer;font-size:12px;color:var(--vdoux)}
.nv-modes{display:flex;gap:6px;align-items:center;margin-bottom:6px;flex-wrap:wrap}
.nv-modes button{font:inherit;font-size:12.5px;font-weight:700;padding:6px 14px;border:1px solid var(--bord2);border-radius:8px 8px 0 0;background:var(--carte);color:var(--doux);cursor:pointer}
.nv-modes button.on{background:var(--accent);border-color:var(--accent);color:#fff}
.nv-tbar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px;border:1px solid var(--bord2);border-bottom:0;border-radius:8px 8px 0 0;background:var(--carte2);position:sticky;top:58px;z-index:5}
.nv-tbar button,.nv-imgbtn{font:inherit;font-size:12.5px;padding:5px 9px;border:1px solid var(--bord2);border-radius:6px;background:var(--carte);color:var(--texte);cursor:pointer;margin:0!important;text-transform:none!important;letter-spacing:0!important}
.nv-tbar button:hover,.nv-imgbtn:hover{border-color:var(--accent)}
.nv-tbar .sep{width:1px;height:22px;background:var(--bord2);margin:0 4px}
.nv-tbar.htmlmode button:not([id]),.nv-tbar.htmlmode [data-cmd],.nv-tbar.htmlmode [data-block]{opacity:.35;pointer-events:none}
.nv-imgmsg{margin-left:auto;font-size:12px}
.nv-wys{min-height:380px;padding:16px 18px;border:1px solid var(--bord2);border-radius:0 0 8px 8px;background:var(--carte);max-width:none;outline:none}
.nv-wys:focus{border-color:var(--accent)}
.nv-wys:empty::before{content:attr(data-placeholder);color:var(--vdoux)}
.nv-wys[hidden],.nv-form textarea[hidden]{display:none!important}
.nv-wys img{cursor:pointer}.nv-wys img.sel{outline:3px solid var(--accent);outline-offset:2px}
#body{font-family:ui-monospace,Consolas,monospace;font-size:12.5px;min-height:380px;border-radius:0 0 8px 8px}
.nv-imgpop{position:absolute;z-index:80;display:flex;gap:4px;align-items:center;flex-wrap:wrap;max-width:560px;padding:7px 9px;border:1px solid var(--accent);border-radius:10px;background:var(--carte);box-shadow:0 10px 30px rgba(0,0,0,.45);font-size:12px;color:var(--vdoux)}
.nv-imgpop[hidden]{display:none}
.nv-imgpop button{font:inherit;font-size:12px;padding:4px 8px;border:1px solid var(--bord2);border-radius:6px;background:var(--carte2);color:var(--texte);cursor:pointer}
.nv-imgpop button:hover{border-color:var(--accent)}.nv-imgpop .danger{color:#f87171}
.nv-imgpop .sep{width:1px;height:20px;background:var(--bord2);margin:0 4px}
.nv-ins{padding:0;border:0;background:none;cursor:pointer}.nv-ins img{width:170px;height:110px;object-fit:cover;border-radius:8px;border:2px solid transparent}.nv-ins:hover img{border-color:var(--accent)}
.nv-media figure{margin:0}

/* Accueil : la page tient exactement dans l'écran (aucun défilement vertical sur écran de bureau) */
@media (min-width:1101px) and (min-height:640px){
  html:has(main.accueil2) body.espace{height:calc(100vh / var(--zf,1));display:flex;flex-direction:column;overflow:hidden}
  html:has(main.accueil2) body.espace>*{flex-shrink:0}
  html:has(main.accueil2) body.espace>main.accueil2{flex:1 1 0;min-height:0;padding:10px 0 8px;display:flex;flex-direction:column}
  main.accueil2 .grille{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr);height:100%}
  main.accueil2 .grille>.c{min-height:0!important;height:100%;display:flex;flex-direction:column;position:relative;box-sizing:border-box}
  main.accueil2 .c.span12 .une{flex:1;min-height:0;height:auto;grid-template-columns:minmax(0,2.1fr) minmax(320px,1fr);gap:18px;align-items:stretch}
  main.accueil2 .une-vedette{min-height:0!important;height:100%}
  main.accueil2 .une>div:nth-child(2){display:flex;flex-direction:column;min-height:0}
  main.accueil2 .une-liste{flex:1;min-height:0;overflow:auto;gap:6px}
  main.accueil2 .une-txt{padding:26px 30px}
  main.accueil2 .une-txt h3{font-size:clamp(26px,calc(2.6vw / var(--zf,1)),42px);max-width:900px}
  main.accueil2 .une-txt p{font-size:15px;max-width:820px}
  main.accueil2 .une-it{padding:9px 12px;grid-template-columns:56px 1fr;gap:14px}
  main.accueil2 .une-it .vig{width:56px;height:56px;border-radius:11px}
  main.accueil2 .une-it b{font-size:14.5px}main.accueil2 .une-it small{font-size:12px}
  /* Aperçu de l'article : superposé (n'agrandit pas la page) */
  main.accueil2 .une-apercu{position:absolute;inset:52px 14px 14px;z-index:30;max-height:none;overflow:auto;background:var(--carte);box-shadow:0 12px 40px rgba(0,0,0,.5)}
}
@media (max-width:1100px){main.accueil2 .c.span12 .une{grid-template-columns:1fr}main.accueil2 .une-vedette{min-height:320px}}

/* Couvertures : l'image entière est toujours visible (aucune coupe), quelle que soit sa taille; fond flou assorti */
.nv-img.fit{position:relative;background:#0b1220}
.nv-img.fit::before{content:"";position:absolute;inset:-24px;background:var(--bgimg) center/cover;filter:blur(26px) brightness(.55)}
.nv-img.fit img{position:relative;object-fit:contain;object-position:center}
.une-vedette .img.fit{opacity:1;overflow:hidden}
.une-vedette .img.fit::before{content:"";position:absolute;inset:-30px;background:var(--bgimg) center/cover;filter:blur(30px) brightness(.45)}
.une-vedette .img.fit::after{content:"";position:absolute;inset:0;background:var(--bgimg) center/contain no-repeat}
.nv-cover-prev img{object-fit:contain!important;background:#0b1220}

/* Glisser-déposer : zones qui réagissent */
.nv-wys.drop,#body.drop{outline:3px dashed var(--accent);outline-offset:-3px;background:color-mix(in srgb,var(--accent) 10%,var(--carte))}
.nv-wys.drop::after{content:"⬇ Déposez ici — l’image s’insère à l’endroit du curseur";position:sticky;display:block;bottom:10px;margin:10px auto 0;width:max-content;padding:8px 16px;border-radius:999px;background:var(--accent);color:#fff;font:700 13px system-ui;pointer-events:none}
.nv-cover-prev{cursor:pointer;transition:border-color .15s,background .15s}.nv-cover-prev:hover,.nv-cover-prev.drop{border-color:var(--accent);border-style:solid;background:color-mix(in srgb,var(--accent) 12%,var(--carte2))}
.nv-cover-prev.drop::after{content:"⬇ Déposez l’image de couverture";position:absolute;font-weight:700;color:var(--accent2)}
.nv-cover-prev{position:relative}
.nv-ins{cursor:grab}.nv-ins:active{cursor:grabbing}

/* Redimensionner / déplacer les images dans l'éditeur */
#nv-handle{position:absolute;z-index:90;width:18px;height:18px;border-radius:5px;background:var(--accent);border:2px solid #fff;cursor:nwse-resize;box-shadow:0 2px 8px rgba(0,0,0,.5)}
#nv-handle[hidden],#nv-sizelbl[hidden]{display:none}
#nv-sizelbl{position:absolute;z-index:91;padding:3px 9px;border-radius:999px;background:rgba(0,0,0,.78);color:#fff;font:700 12px system-ui;pointer-events:none}
body.nv-resizing{user-select:none;cursor:nwse-resize}
.nv-wys img[width]{height:auto}
.nv-wys img{cursor:grab}

/* Accès rapide aux équipes : logos à droite du menu (remplace l'ancien menu « Équipes ») */
.menu .eq-rapide{display:flex;align-items:center;gap:3px;margin-left:10px;padding:0 0 0 12px;border-left:1px solid var(--bord2);flex:1 1 0;min-width:0;overflow-x:auto;scrollbar-width:none}
.menu .eq-rapide::-webkit-scrollbar{display:none}
.menu .eq-rapide a{flex:0 0 auto;display:grid;place-items:center;padding:3px;border-radius:7px;border:1px solid transparent}
.menu .eq-rapide a:hover{background:var(--carte2);border-color:var(--bord2);transform:translateY(-1px)}
.menu .eq-rapide img{width:24px;height:24px;object-fit:contain}
@media (max-width:1100px){.menu .eq-rapide{flex-wrap:wrap;margin:8px 0 0;padding:10px 0 0;border-left:0;border-top:1px solid var(--bord2);overflow:visible}.menu .eq-rapide img{width:28px;height:28px}}

/* ═══ CALENDRIER (refonte 10 oct. 2026) ═══ */
.cal .cal-bar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end;margin-bottom:10px}
.cal .cal-bar label{display:flex;flex-direction:column;gap:2px;font-size:10.5px;color:var(--vdoux);text-transform:uppercase;letter-spacing:.4px;font-weight:700}
.cal .cal-bar select{font:inherit;font-size:12.5px;padding:5px 8px;border:1px solid var(--bord2);border-radius:7px;background:var(--carte);color:var(--texte);max-width:200px}
.cal .cal-bar button{font:inherit;font-size:12.5px;font-weight:700;padding:6px 12px;border:1px solid var(--bord2);border-radius:7px;background:var(--carte);color:var(--texte);cursor:pointer}
.cal-seg{display:inline-flex;border:1px solid var(--bord2);border-radius:9px;overflow:hidden}
.cal-seg a{padding:6px 12px;font-size:12.5px;font-weight:700;color:var(--doux);background:var(--carte);white-space:nowrap}
.cal-seg a.on{background:var(--accent);color:#fff}
.cal-sum{display:flex;gap:14px;align-items:center;margin-bottom:10px}.cal-sum b{display:block;font-size:17px}.cal-sum small{color:var(--vdoux)}.cal-sum a{margin-left:auto;font-weight:700}
.cal-nav{display:flex;align-items:center;gap:12px;margin-bottom:8px;padding:8px 12px}
.cal-title{flex:1;text-align:center}.cal-title b{display:block;font-size:20px}.cal-title small{color:var(--vdoux)}
.cal-arrow{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;border:1px solid var(--bord2);background:var(--carte);font-size:18px;font-weight:800;color:var(--texte)}
.cal-arrow:hover{border-color:var(--accent)}.cal-arrow.off{opacity:.3;pointer-events:none}
.cal-jump{padding:7px 12px;border-radius:8px;background:var(--accent);color:#fff!important;font-size:12.5px;font-weight:700}
.cal-strip{display:flex;gap:4px;overflow-x:auto;padding:4px 2px 10px;scrollbar-width:thin}
.cal-strip a{flex:0 0 auto;min-width:34px;text-align:center;padding:5px 7px;border-radius:8px;border:1px solid var(--bord);background:var(--carte);font-size:12px;font-weight:700;color:var(--vdoux)}
.cal-strip a.done{color:var(--texte);background:var(--carte2)}
.cal-strip a.part{border-color:var(--accent)}
.cal-strip a.next{border-color:#22c55e;color:#22c55e}
.cal-strip a.on{background:var(--accent);border-color:var(--accent);color:#fff}
.cal-strip a.sp{background:transparent;border-style:dashed;color:var(--accent)}
.cal-strip a.sp.off{opacity:.35;pointer-events:none}
.cal-rev{font-size:12px;font-weight:700;color:#22c55e}
.cal-games{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.cal-g{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border:1px solid var(--bord);border-radius:12px;background:var(--carte);color:var(--texte);transition:transform .12s,border-color .12s}
a.cal-g:hover{transform:translateY(-2px);border-color:var(--accent)}
.cal-g.pending{background:var(--carte2)}
.cal-t{display:flex;align-items:center;gap:10px;padding:5px 0;color:var(--vdoux)}
.cal-t b{flex:1;font-size:14px;font-weight:600}.cal-t i{font-style:normal;font-size:22px;font-weight:800;min-width:26px;text-align:right;font-variant-numeric:tabular-nums}
.cal-t.win{color:var(--texte)}.cal-t.win b{font-weight:800}
.cal-f{display:flex;gap:8px;align-items:center;margin-top:4px;padding-top:8px;border-top:1px solid var(--bord);font-size:11.5px;color:var(--vdoux)}
.cal-tag{padding:2px 8px;border-radius:999px;background:var(--carte2);font-weight:800;letter-spacing:.4px;text-transform:uppercase;font-size:10.5px}
.cal-tag.ot{background:color-mix(in srgb,#f59e0b 25%,transparent);color:#f59e0b}
.cal-f em{margin-left:auto;font-style:normal;color:var(--accent2);font-weight:700}
.cal-table tr.pend td{color:var(--vdoux)}
.cal-table td.res-V{color:#22c55e;font-weight:800}.cal-table td.res-D{color:#ef4444;font-weight:800}
.cal-top{display:flex;gap:12px;align-items:center}
.cal-view{display:inline-flex;border:1px solid var(--bord2);border-radius:9px;overflow:hidden}
.cal-view a{display:grid;place-items:center;width:38px;height:34px;font-size:18px;background:var(--carte);color:var(--doux)}
.cal-view a.on{background:var(--accent);color:#fff}

/* ═══ RÈGLE GÉNÉRALE : tableaux condensés, toutes les colonnes alignées à GAUCHE, partout ═══ */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table :is(th,td){text-align:left!important}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table :is(th,td) :is(a,span,b,i,em){text-align:left}
.clst-table td:not(.eq),.clst-table th:not(.eq){text-align:left!important}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table.compact-table :is(th,td){white-space:nowrap}
/* Sélecteur d'équipe : un seul logo (le bouton en affiche déjà un) */
.cal-bar [data-team-select-logo],.nv-search [data-team-select-logo]{display:none!important}

/* Tableaux condensés : ils prennent la largeur de leur contenu, collés à gauche (pas étirés sur toute la page) */
html body.espace table:not(.clst-table):not(.nv-keep-width){width:auto!important;min-width:0!important;max-width:100%;margin-left:0!important;margin-right:auto!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .page-pleine>table.compact-table{width:auto!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) table:not(.clst-table) :is(th,td){padding-left:10px;padding-right:14px}
/* Priorité finale : les tableaux ne s'étirent pas (bat la règle « pleine largeur » plus haut) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel>table.compact-table,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main>table.compact-table,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .page-pleine>table.compact-table,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-scroll>table.compact-table,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel table.schedule-table,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.compact-table{width:auto!important;min-width:0!important;max-width:100%;margin-left:0!important;margin-right:auto!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.compact-table :is(th,td){width:auto!important}

/* Matchs du jour : trois étoiles + meilleurs, visibles directement */
.today-stars{margin:8px 0 4px}.today-stars h3,.today-best h3{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--vdoux);margin:0 0 4px}
.today-stars ol{margin:0;padding-left:18px;font-size:12.5px;font-weight:700}.today-stars li{margin:1px 0}
.today-stars li:nth-child(1)::marker{content:"⭐ "}.today-stars li:nth-child(2)::marker{content:"⭐⭐ "}.today-stars li:nth-child(3)::marker{content:"⭐⭐⭐ "}
.today-stars ol{padding-left:44px}
.today-best{margin:8px 0}.today-best table{font-size:12px}.today-best th{font-weight:700;white-space:nowrap}.today-best td{white-space:normal!important}
.today-note{font-size:12px;color:var(--vdoux);margin:6px 0}
/* Matchs du jour — alignement propre (étoiles à gauche, colonnes fixes) */
.today-stars ol{display:none}
.ts-list{display:grid;gap:3px}
.ts-row{display:grid;grid-template-columns:52px 1fr;align-items:center;justify-items:start;text-align:left;font-size:12.5px;font-weight:700;min-height:24px}
.ts-st{font-size:11px;letter-spacing:-1px;white-space:nowrap;text-align:left}
.ts-who{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;text-align:left}
.today-game .player-link-portrait{width:22px!important;height:22px!important;border-radius:50%;object-fit:cover;vertical-align:middle;margin:0 4px 0 0}
.today-best table{width:100%!important}
.today-best th{width:92px;vertical-align:middle;text-align:left!important}
.today-best td{vertical-align:middle;text-align:left!important;line-height:1.7}
.today-best tr:nth-child(even){background:transparent!important}
.today-best tr:nth-child(4n+2),.today-best tr:nth-child(4n+1){background:transparent}
.today-best sup,.today-best sub{vertical-align:baseline;font-size:inherit}
/* Matchs du jour : le (1) / (2) des buts reste centré avec le nom et le portrait */
.today-best td,.ts-who{line-height:24px}
.today-best td a,.ts-who a{display:inline-flex!important;align-items:center;vertical-align:middle!important;line-height:24px;height:24px}
.today-best td a .player-link-portrait,.ts-who a .player-link-portrait{margin:0 5px 0 0!important;vertical-align:middle!important}
.today-best td{font-size:12.5px}
/* Correctif : nom et (1) sur la même ligne de base (lien en ligne simple) */
.today-best td a,.ts-who a{display:inline!important;height:auto!important;line-height:inherit!important;vertical-align:baseline!important}
.today-best td a .player-link-portrait,.ts-who a .player-link-portrait{display:inline-block!important;vertical-align:middle!important;position:relative;top:-1px;margin:0 5px 0 0!important}
.today-best td,.ts-who{line-height:26px}

/* Meneurs : plus gros logo + portrait du joueur */
.mn-logo{width:30px;height:30px;object-fit:contain;vertical-align:middle;margin-right:8px}
.team-stat-grid .compact-table th{white-space:nowrap}
.team-stat-grid .compact-table th>a,.team-stat-grid .compact-table th{font-size:13.5px}
.team-stat-grid .compact-table th>a{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
.team-stat-grid .compact-table td{font-size:14px;font-weight:800;vertical-align:middle}
.team-stat-grid .compact-table tr{height:44px}
.team-stat-grid .player-link-portrait,.cal-bar~* .mn-logo{width:36px!important;height:36px!important;border-radius:50%;object-fit:cover;margin:0!important}
.team-stat-grid .mn-logo{vertical-align:middle}
.schedule-table .player-link-portrait{width:30px!important;height:30px!important;border-radius:50%;object-fit:cover}
/* Meneurs : tout sur UNE ligne (logo · portrait · nom · stat), un peu plus gros */
html body.espace .team-stat-grid .compact-table th{display:table-cell;white-space:nowrap;vertical-align:middle}
html body.espace .team-stat-grid .compact-table th>img.mn-logo{display:inline-block!important;width:36px!important;height:36px!important;margin:0 8px 0 0!important;vertical-align:middle}
html body.espace .team-stat-grid .compact-table th>a{display:inline-flex!important;flex-direction:row;align-items:center;gap:8px;vertical-align:middle;white-space:nowrap}
html body.espace .team-stat-grid .player-link-portrait{width:42px!important;height:42px!important;flex:0 0 auto}
html body.espace .team-stat-grid .compact-table tr{height:52px}
html body.espace .team-stat-grid .compact-table td{padding-left:16px}
html body.espace .team-stat-grid .portal-panel{overflow-x:visible}
.schedule-table .mn-logo{width:32px!important;height:32px!important}
/* Meneurs : cartes plus larges, la stat ne chevauche plus le nom */
html body.espace .team-stat-grid{grid-template-columns:repeat(auto-fill,minmax(350px,1fr))!important}
html body.espace .team-stat-grid .compact-table{width:100%!important;table-layout:auto}
html body.espace .team-stat-grid .compact-table th{width:100%;max-width:0;overflow:hidden;text-overflow:ellipsis}
html body.espace .team-stat-grid .compact-table th>a{max-width:100%;overflow:hidden;text-overflow:ellipsis}
html body.espace .team-stat-grid .compact-table td{width:72px;min-width:72px;white-space:nowrap;padding-left:12px;padding-right:6px}
/* Correctif Meneurs : annule la règle qui écrasait le nom à 0 de largeur */
html body.espace .team-stat-grid .compact-table th{width:auto!important;max-width:none!important;overflow:visible!important;text-overflow:clip}
html body.espace .team-stat-grid .compact-table th>a{max-width:none!important;overflow:visible!important}
html body.espace .team-stat-grid .compact-table{table-layout:auto}
html body.espace .team-stat-grid .compact-table td{width:auto!important;min-width:56px}
/* Meneurs : de l'air entre les onglets, les filtres et les cartes */
html body.espace .meneurs .team-tabs{margin:6px 0 16px!important}
html body.espace .meneurs .schedule-filters{margin:0 0 22px!important;padding-bottom:6px;align-items:flex-end}
html body.espace .meneurs .team-stat-grid{margin-top:8px;gap:16px}

/* Boutons « Afficher » inutiles : les filtres s'appliquent directement */
button[data-auto-hidden],input[data-auto-hidden]{display:none!important}

/* Portrait absent : initiales (ex. Max Sasson → MS), même taille que les portraits */
img.player-link-portrait.pp-init{border-radius:50%;object-fit:cover}

/* Barres de défilement sombres (plus de barre blanche sous les tableaux) */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) *{scrollbar-width:thin;scrollbar-color:#3b4a66 transparent}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) *::-webkit-scrollbar{height:8px;width:8px}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) *::-webkit-scrollbar-track{background:transparent}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) *::-webkit-scrollbar-thumb{background:#3b4a66;border-radius:8px}
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) *::-webkit-scrollbar-corner{background:transparent}
body.espace .player-profile-identity img{border-radius:0;object-fit:contain}
/* Sélecteur d'équipe : un seul logo partout (le bouton de choix en affiche déjà un) */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) [data-team-select-logo]{display:none!important}

/* Tableaux larges : la première colonne (nom / équipe) reste visible pendant le défilement horizontal */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .schedule-scroll>table.compact-table :is(thead,tbody) tr>:first-child{position:sticky;left:0;z-index:2;background:var(--carte);box-shadow:1px 0 0 var(--bord)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .schedule-scroll>table.compact-table thead tr>:first-child{background:var(--carte2);z-index:3}

/* Connexion : espace du club (raccourcis du DG connecté) */
.login-panel{max-width:none}
.club-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin:14px 0}
.club-actions a{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid var(--bord2);border-radius:10px;background:var(--carte);color:var(--texte);transition:border-color .12s,transform .12s}
.club-actions a:hover{border-color:var(--accent);transform:translateY(-1px)}
.club-actions a b{font-size:14px}.club-actions a small{font-size:11.5px;color:var(--vdoux)}
.menu .mon-club{display:inline-flex;align-items:center;gap:6px}.menu .mon-club img{width:20px;height:20px;object-fit:contain}
/* À la une : la photo de couverture ouvre l'article */
.une-vedette .img{cursor:pointer}
.une-vedette .img:hover{filter:brightness(1.08)}

/* Sélecteur de saison (archives) */
.saison-sel{font:inherit;font-size:12.5px;font-weight:700;padding:5px 8px;border:1px solid var(--bord2);border-radius:8px;background:var(--carte);color:var(--texte);cursor:pointer}
.archive-bar{background:color-mix(in srgb,var(--or,#b45309) 18%,transparent);border-bottom:1px solid var(--or,#b45309);padding:7px 16px;font-size:13px;text-align:left}
.archive-bar a{margin-left:10px;font-weight:700;text-decoration:underline}

/* Bandeau des logos de clubs (Effectifs) */
.club-strip{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0 12px}
.club-strip a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:3px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(255,255,255,.04);text-decoration:none}
.club-strip a.all{padding:0 12px;font-size:13px;font-weight:700}
.club-strip a:hover{background:rgba(255,255,255,.12)}
.club-strip a.on{border-color:#4da3ff;background:rgba(77,163,255,.22)}
.club-strip img{width:36px;height:36px;object-fit:contain;display:block}

.sths-badge{display:inline-block;padding:1px 5px;margin-right:4px;border-radius:4px;background:#1e5fbf;color:#fff;font:800 10px/14px system-ui,sans-serif;letter-spacing:.5px;vertical-align:middle}

th.sortable a{color:inherit;text-decoration:none;cursor:pointer;white-space:nowrap}
th.sortable a:hover,th.sorted a{color:#4da3ff}

/* Archives : cartes de saison sans débordement */
.archives-grille{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))!important;align-items:start}
.archives-carte{display:flex;flex-wrap:wrap;gap:6px 8px;align-content:flex-start;min-width:0;overflow:hidden;box-sizing:border-box}
.archives-carte .titre{flex:0 0 100%;margin-bottom:2px!important}
.archives-carte a{margin:0!important;padding:3px 9px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.05);white-space:nowrap;text-decoration:none;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.archives-carte a:hover{background:rgba(77,163,255,.2)}

/* En-têtes longs : retour à la ligne sur 2 lignes */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table thead th{white-space:normal!important;max-width:104px!important;min-width:44px;line-height:1.2;vertical-align:bottom;overflow-wrap:normal;word-break:normal}
html body.espace main .compact-table thead th.sortable a{white-space:normal!important}

/* Comparer : suggestions de joueurs */
.compare-suggest{position:absolute;z-index:50;left:0;top:100%;min-width:260px;max-height:320px;overflow:auto;background:#0f1a2e;border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:4px;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.compare-suggest button{display:block;width:100%;text-align:left;background:none;border:0;color:inherit;padding:6px 10px;border-radius:6px;cursor:pointer;font:inherit;font-size:13px}
.compare-suggest button:hover{background:rgba(77,163,255,.25)}
.compare-suggest span{display:block;padding:6px 10px;opacity:.7;font-size:13px}

th.js-sort{cursor:pointer;user-select:none}
th.js-sort:hover,th.js-sort[data-dir=asc],th.js-sort[data-dir=desc]{color:#4da3ff}

/* Fiche joueur : vue d'ensemble compacte */
.player-profile .profile-quickstats{padding:8px 12px!important;margin-top:6px!important}
.player-profile .profile-quickstats h2{font-size:13px!important;margin:0 0 4px!important}
.player-profile .profile-ratings{padding:8px 12px!important}
.player-profile .profile-ratings h2{font-size:13px!important;margin:0 0 4px!important}
.player-profile .player-rating-grid{gap:4px!important}
.player-profile .player-rating{padding:3px 6px!important;min-width:0!important}
.player-profile .player-rating span{font-size:10px!important}
.player-profile .player-rating strong{font-size:15px!important}
.player-profile .profile-quickstats td,.player-profile .profile-quickstats th{padding:3px 10px!important}

.compare-suggest button{display:flex!important;align-items:center;gap:8px}
.compare-suggest button img{width:22px;height:22px;object-fit:contain;flex:0 0 22px}
.compare-suggest .nologo{display:inline-block;width:22px;flex:0 0 22px}
.compare-suggest .cs-n{flex:1}
.compare-suggest .cs-pos{font-size:11px;font-weight:800;opacity:.85;background:rgba(77,163,255,.2);border-radius:4px;padding:1px 6px}

/* Comparer : en-têtes joueurs + écarts */
.compare-table th.cmp-th{text-align:left!important;vertical-align:bottom;min-width:190px;max-width:none!important;white-space:normal!important}
.cmp-head{display:flex!important;align-items:center;gap:10px;text-decoration:none}
.cmp-head .compare-photo{position:static!important;width:44px!important;height:44px!important;border-radius:50%;object-fit:cover;object-position:top;background:rgba(255,255,255,.08);flex:0 0 44px;margin:0!important}
.cmp-id{display:flex;flex-direction:column;line-height:1.2;text-transform:none}
.cmp-id b{font-size:13px;color:#fff;letter-spacing:0}
.cmp-id small{font-size:11px;color:#8fb4ff;letter-spacing:.3px}
.cmp-cell{white-space:nowrap}
.cmp-best{color:#34d399!important;font-weight:800}
.cmp-worst{color:#f87171}
.cmp-diff{margin-left:7px;font-size:11px;font-weight:700;padding:0 5px;border-radius:4px}
.cmp-diff.mid{color:#fbbf24;background:rgba(251,191,36,.12)}
.cmp-diff.bad{color:#f87171;background:rgba(248,113,113,.14)}
.cmp-total th,.cmp-total td{background:rgba(77,163,255,.08);font-weight:800}

html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compare-table thead th.cmp-th{max-width:none!important;min-width:210px!important;white-space:normal!important}
html body.espace main .compare-table .cmp-id b{white-space:nowrap}
.cmp-diff.neu{color:#9fb3d1;background:rgba(159,179,209,.14)}

/* Comparer : portraits grands et uniformes */
html body.espace main .compare-table .cmp-head .compare-photo{width:88px!important;height:88px!important;flex:0 0 88px!important;border-radius:12px!important;object-fit:cover;object-position:top center;background:#1b2740}
.cmp-head .cmp-initials{display:flex;align-items:center;justify-content:center;font-weight:800;font-size:30px;color:#cdd9ee;background:#2b3a55!important}
.cmp-head .cmp-initials[hidden]{display:none}
.cmp-head .cmp-id b{font-size:15px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compare-table thead th.cmp-th{min-width:250px!important}

html body.espace main .compare-table .cmp-head .player-link-portrait{width:88px!important;height:88px!important;flex:0 0 88px!important;max-width:none!important;border-radius:12px!important;object-fit:cover;object-position:top center;background:#1b2740;margin:0!important}
html body.espace main .compare-table .cmp-head .player-link-portrait.pp-init{object-fit:contain}

/* Effectifs : un tableau par club */
.club-group-title{margin:18px 0 6px;font-size:18px}
.club-group-title a{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.club-group-title img{width:34px;height:34px;object-fit:contain}
.club-group-title+.portal-panel{margin-top:0}

/* Fiche joueur : vue d'ensemble pleine largeur (Informations | Cotes | Admissibilité) */
.player-profile .profile-overview{display:grid;grid-template-columns:minmax(260px,1fr) minmax(340px,1.15fr) minmax(260px,1fr);gap:10px;align-items:start;width:100%}
.player-profile .profile-overview[hidden]{display:none}
.player-profile .profile-overview>.portal-panel{margin:0!important;min-width:0}
.player-profile .profile-overview .player-rating-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.player-profile .profile-overview .profile-details th,.player-profile .profile-overview .profile-details td{padding:3px 8px!important;font-size:12.5px}
.player-profile .profile-quickstats{width:100%}
.player-profile .profile-grid{grid-template-columns:1fr!important}
@media (max-width:1000px){.player-profile .profile-overview{grid-template-columns:1fr}}

/* Fiche joueur : listes Informations / Admissibilité propres (une colonne, sans chevauchement) */
html body.espace .player-profile table.profile-details,.player-card .player-profile table.profile-details{display:block!important;width:100%!important;max-width:none!important}
html body.espace .player-profile table.profile-details tbody,.player-card .player-profile table.profile-details tbody{display:grid!important;grid-template-columns:1fr!important;gap:0!important;width:100%}
.player-profile .profile-overview table.profile-details tbody{grid-template-columns:1fr!important}
html body.espace .player-profile table.profile-details tr,.player-card .player-profile table.profile-details tr{display:flex!important;justify-content:space-between;align-items:baseline;gap:10px;width:100%}
html body.espace .player-profile table.profile-details th,html body.espace .player-profile table.profile-details td,.player-card .player-profile table.profile-details th,.player-card .player-profile table.profile-details td{width:auto!important;max-width:none!important;white-space:normal!important;text-align:left}
html body.espace .player-profile table.profile-details td,.player-card .player-profile table.profile-details td{text-align:right;font-weight:700}
.player-profile .profile-overview .profile-eligibility a{display:inline-block;margin-top:6px;font-size:12px}

/* Fiche joueur : condensé à gauche, largeur = contenu */
.player-profile .profile-overview{grid-template-columns:repeat(3,max-content)!important;justify-content:start!important;width:auto!important;gap:10px!important}
.player-profile .profile-overview>.portal-panel{width:max-content!important;max-width:100%}
html body.espace .player-profile table.profile-details,.player-card .player-profile table.profile-details{display:table!important;width:auto!important}
html body.espace .player-profile table.profile-details tbody,.player-card .player-profile table.profile-details tbody{display:table-row-group!important;width:auto}
html body.espace .player-profile table.profile-details tr,.player-card .player-profile table.profile-details tr{display:table-row!important;width:auto}
html body.espace .player-profile table.profile-details th,html body.espace .player-profile table.profile-details td,.player-card .player-profile table.profile-details th,.player-card .player-profile table.profile-details td{display:table-cell;padding:3px 10px 3px 0!important;text-align:left!important;white-space:nowrap!important;font-weight:inherit}
html body.espace .player-profile table.profile-details td,.player-card .player-profile table.profile-details td{font-weight:700;padding-right:14px!important}
.player-profile .profile-overview .player-rating-grid{grid-template-columns:repeat(4,max-content)!important;gap:4px 6px!important}
.player-profile .profile-quickstats{width:max-content!important;max-width:100%}
.player-profile .profile-quickstats table{width:auto!important}

/* Fiche joueur v3 : Informations en tuiles (plusieurs par ligne) · Cotes sur UNE ligne · Admissibilité en tuiles */
.player-profile .profile-overview{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;grid-template-columns:none!important}
.player-profile .profile-overview>.portal-panel{width:100%!important;max-width:none!important}
html body.espace .player-profile table.profile-details,.player-card .player-profile table.profile-details{display:block!important;width:100%!important}
html body.espace .player-profile table.profile-details tbody,.player-card .player-profile table.profile-details tbody{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:6px 10px!important;width:100%}
html body.espace .player-profile table.profile-details tr,.player-card .player-profile table.profile-details tr{display:flex!important;flex-direction:column;gap:1px;width:auto;padding:4px 8px;border:1px solid rgba(255,255,255,.07)!important;border-radius:6px;background:rgba(255,255,255,.03);min-width:0}
html body.espace .player-profile table.profile-details th,.player-card .player-profile table.profile-details th{display:block;padding:0!important;font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;opacity:.65;white-space:normal!important}
html body.espace .player-profile table.profile-details td,.player-card .player-profile table.profile-details td{display:block;padding:0!important;font-size:13px;font-weight:700;white-space:normal!important;overflow-wrap:anywhere}
.player-profile .profile-overview .player-rating-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(48px,1fr))!important;gap:4px!important;width:100%}
.player-profile .profile-overview .player-rating{padding:3px 2px!important;text-align:center}
.player-profile .profile-overview .profile-ratings .muted{margin:4px 0 0!important}

.player-profile .profile-contract,.player-profile [data-profile-panel=apercu]:has(>table:not(.profile-details):not(.schedule-table)){padding:8px 12px!important}
.player-profile .profile-contract h2{font-size:13px!important;margin:0 0 4px!important}
.player-profile .profile-contract table{width:auto!important}

.player-profile .profile-eligibility{width:100%}
.player-profile .profile-movements table{width:auto!important}
.player-profile [data-profile-panel] p a[data-player-card-ignore]{font-size:12px}

.player-profile .player-pos-full{color:#8fb4ff}

/* Fiche joueur : le plus compact possible (moins de défilement) */
html body.espace .player-profile table.profile-details tbody,.player-card .player-profile table.profile-details tbody{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important;gap:4px 6px!important}
html body.espace .player-profile table.profile-details tr,.player-card .player-profile table.profile-details tr{padding:2px 7px!important;gap:0!important}
html body.espace .player-profile table.profile-details th,.player-card .player-profile table.profile-details th{font-size:9.5px!important}
html body.espace .player-profile table.profile-details td,.player-card .player-profile table.profile-details td{font-size:12px!important}
.player-profile .profile-overview{gap:6px!important}
.player-profile .profile-overview>.portal-panel,.player-profile .profile-contract,.player-profile .profile-quickstats{padding:6px 10px!important}
.player-profile .profile-overview h2,.player-profile .profile-contract h2,.player-profile .profile-quickstats h2{font-size:12px!important;margin:0 0 3px!important}
.player-profile .profile-contract td,.player-profile .profile-contract th,.player-profile .profile-quickstats td,.player-profile .profile-quickstats th{padding:2px 10px!important;font-size:12px}
.player-profile .profile-overview .player-rating strong{font-size:14px!important}
.player-profile .profile-heading,.player-profile .profile-navigation{margin-bottom:4px!important}
.player-profile .portal-panel{margin-top:6px!important}

/* Carte joueur : utilise toute la hauteur disponible (moins de défilement) */
html body .player-card{max-height:calc(97dvh / var(--zf,1))!important;height:auto!important}
html body .player-card .player-card-shell{height:auto!important;max-height:calc(97dvh / var(--zf,1))!important}
html body .player-card .player-card-body{max-height:calc(calc(97dvh / var(--zf,1)) - 44px)}
.player-profile>p[data-profile-panel]{margin:2px 0!important;font-size:12px}

/* Correctif : le corps de la carte ne doit pas s'écraser à 0 de hauteur */
html body .player-card .player-card-shell{display:flex!important;flex-direction:column}
html body .player-card .player-card-body{flex:0 1 auto!important;min-height:120px!important;overflow-y:auto!important}

/* Fiche joueur : onglet Échanges lisible */
.trade-list{display:flex;flex-direction:column;gap:8px}
.trade-card{border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(255,255,255,.03);padding:8px 12px}
.trade-card header{font-size:12px;opacity:.75;margin-bottom:6px}
.trade-sides{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:start}
.trade-side h3{font-size:13px;margin:0 0 4px;display:flex;align-items:center;gap:6px}
.trade-side h3 em{font-style:normal;font-size:11px;opacity:.7}
.trade-side ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.trade-side li{padding:2px 9px;border-radius:999px;background:rgba(255,255,255,.08);font-size:12px}
.trade-side li.me{background:rgba(52,211,153,.2);color:#6ee7b7;font-weight:800}
.trade-side li.muted{background:none;opacity:.6}
.trade-side.get h3{color:#34d399}.trade-side.give h3{color:#8fb4ff}
.trade-arrow{align-self:center;opacity:.5;font-size:18px}
@media(max-width:700px){.trade-sides{grid-template-columns:1fr}.trade-arrow{display:none}}

/* Échanges : aucun texte en gras */
.trade-card,.trade-card *{font-weight:400!important}
.trade-side li.me{background:rgba(52,211,153,.28);color:#6ee7b7}

.club-group-title.farm{font-size:15px;margin-top:10px;opacity:.9}
.club-group-title small{font-size:11px;opacity:.7;margin-left:4px}

.load-more{display:inline-block;margin:6px 10px 14px 0;padding:6px 14px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.05);text-decoration:none}
.load-more:hover{background:rgba(77,163,255,.25)}

.roster-kind{margin:18px 0 4px;font-size:16px;opacity:.85}

/* ═══ Auto-ajustement général (toutes les pages, sauf éditeur d'alignements) ═══ */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.portal-home{width:100%;max-width:none;padding-inline:clamp(8px,calc(1.6vw / var(--zf,1)),26px);box-sizing:border-box}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table{font-size:clamp(11px,calc(.55vw / var(--zf,1)) + 6px,13.5px)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table th,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table td{padding:clamp(2px,calc(.25vw / var(--zf,1)),5px) clamp(5px,calc(.55vw / var(--zf,1)),10px)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-scroll,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel{max-width:100%;overflow-x:auto}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters{display:flex;flex-wrap:wrap;gap:6px clamp(6px,calc(1vw / var(--zf,1)),14px);align-items:flex-end}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters label{min-width:0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters input[type=search],html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters input:not([type]),html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters input[type=text]{min-width:90px;width:clamp(90px,calc(14vw / var(--zf,1)),190px)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters input[type=number]{width:clamp(56px,calc(6vw / var(--zf,1)),80px)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .team-tabs,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .subtabs,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-heading{flex-wrap:wrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-heading h1{font-size:clamp(18px,calc(1.6vw / var(--zf,1)) + 8px,28px)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel h2{font-size:clamp(13px,calc(.5vw / var(--zf,1)) + 9px,17px)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel{padding:clamp(6px,calc(.8vw / var(--zf,1)),14px)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main img.team-heading-logo{width:clamp(28px,calc(3vw / var(--zf,1)),48px);height:auto}
@media (max-width:1200px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table th{font-size:10px;letter-spacing:.2px}
 .club-strip a{min-width:38px;height:38px}.club-strip img{width:30px;height:30px}
 .player-profile .player-rating-grid{grid-template-columns:repeat(auto-fit,minmax(40px,1fr))!important}
}
@media (max-width:900px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table th{white-space:normal;max-width:70px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters{flex-direction:row}
 .club-strip{gap:4px}.club-strip a{min-width:32px;height:32px;padding:2px}.club-strip img{width:24px;height:24px}
 .compare-table th.cmp-th{min-width:150px!important}
 .cmp-head .compare-photo{width:56px!important;height:56px!important;flex-basis:56px!important}
}
@media (max-width:640px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table{font-size:11px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel{padding:6px}
 .trade-sides{grid-template-columns:1fr}
}

/* ═══ Version mobile (téléphone / petite fenêtre) ═══ */
html:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)),body:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)){max-width:100%;overflow-x:hidden}
img,svg,video{max-width:100%}
@media (max-width:760px){
 /* En-têtes et filtres */
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-heading{gap:6px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-heading a{font-size:12px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters{gap:6px 8px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters label{font-size:11px;flex:1 1 120px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters input,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters select{width:100%!important;max-width:100%;box-sizing:border-box}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters .choice-chips,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters [data-choice]{flex-wrap:wrap}
 /* Onglets et boutons : défilement horizontal au lieu de déborder */
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .team-tabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;padding-bottom:4px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .team-tabs a{flex:0 0 auto;white-space:nowrap}
 /* Tableaux : première colonne collée, défilement horizontal fluide */
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-scroll,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel{-webkit-overflow-scrolling:touch}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table{font-size:11px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .compact-table td{padding:3px 5px}
 /* Bandeau de logos des clubs : défile à l'horizontale sur une ligne */
 .club-strip{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}
 .club-strip a{flex:0 0 auto}
 .club-strip.elig-strip{flex-wrap:wrap;overflow:visible}
 .club-group-title{font-size:15px}
 .club-group-title img{width:26px;height:26px}
 /* Grilles (meneurs, aujourd'hui, archives) : une colonne */
 .archives-grille{grid-template-columns:1fr!important}
 .mn-grid,.today-best,.today-stars{grid-template-columns:1fr!important}
 /* Comparer */
 .compare-picker,.compare-picker label{width:100%}
 .compare-table th.cmp-th{min-width:128px!important}
 .cmp-head{flex-direction:column;align-items:flex-start;gap:4px}
 .cmp-head .compare-photo,.cmp-head .player-link-portrait{width:64px!important;height:64px!important;flex-basis:64px!important}
 .cmp-diff{margin-left:3px;font-size:10px}
 /* Fiche joueur (carte) : plein écran */
 .player-card{width:calc(100vw / var(--zf,1))!important;max-width:calc(100vw / var(--zf,1))!important;max-height:calc(100dvh / var(--zf,1))!important;border-radius:0!important;margin:0}
 .player-card .player-card-shell{max-height:calc(100dvh / var(--zf,1))!important;height:calc(100dvh / var(--zf,1))!important}
 .player-card .player-card-body{max-height:none!important;flex:1 1 auto!important}
 .player-profile .profile-heading{flex-wrap:wrap}
 .player-profile .profile-money-summary{flex-wrap:wrap;gap:6px}
 .player-profile .profile-navigation{overflow-x:auto;flex-wrap:nowrap}
 .player-profile .profile-navigation button{flex:0 0 auto;white-space:nowrap}
 html body.espace .player-profile table.profile-details tbody,.player-card .player-profile table.profile-details tbody{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .player-profile .profile-overview .player-rating-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 /* Échanges, cartes diverses */
 .trade-sides{grid-template-columns:1fr}.trade-arrow{display:none}
 /* Pagination */
 .schedule-pagination{flex-wrap:wrap;gap:8px}
 .load-more{padding:8px 12px}
 /* Calendrier */
 .cal-strip{overflow-x:auto;flex-wrap:nowrap}
 .cal-strip a{flex:0 0 auto}
 /* Match */
 .game-scoreboard{flex-wrap:wrap}
}
@media (max-width:420px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.portal-home{padding-inline:6px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-heading h1{font-size:18px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .schedule-filters label{flex-basis:46%}
 html body.espace .player-profile table.profile-details tbody,.player-card .player-profile table.profile-details tbody{grid-template-columns:1fr!important}
 .player-profile .profile-overview .player-rating-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .cmp-head .compare-photo,.cmp-head .player-link-portrait{width:52px!important;height:52px!important;flex-basis:52px!important}
}
/* Cibles tactiles confortables */
@media (pointer:coarse){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main button,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .team-tabs a,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .subtab-btn{min-height:38px}
 .club-strip a{min-width:42px;height:42px}
}

.filters-toggle{display:none}
@media (max-width:760px){
 .filters-toggle{display:inline-flex;align-items:center;margin:6px 0;padding:8px 14px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.06);color:inherit;font:inherit}
 form.schedule-filters.folded{display:none!important}
}

/* Espoirs / Choix / Repêchage */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .pr-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:6px 0 10px}
body.espace .pr-filters .club-strip{margin:0}
body.espace .pr-search{max-width:260px;padding:6px 10px;border-radius:8px;border:1px solid rgba(128,128,128,.4);background:transparent;color:inherit;font:inherit}
body.espace .club-group-title a{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
body.espace .club-group-title small,.draft-round h2 small,.pick-card h3 small{font-size:.7em;font-weight:400;opacity:.65;margin-left:6px}
body.espace .pick-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:8px 0}
body.espace .pick-card{border:1px solid rgba(128,128,128,.3);border-radius:10px;padding:10px 12px}
body.espace .pick-card h3{margin:0 0 8px;font-size:1rem}
body.espace .pick-card h3 a{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
body.espace .pick-year{display:flex;align-items:center;gap:10px;padding:3px 0;border-top:1px solid rgba(128,128,128,.15)}
body.espace .pick-year>b{min-width:42px}
body.espace .pick-chips{display:flex;flex-wrap:wrap;gap:4px}
body.espace .pick-chip{display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:12px;border:1px solid rgba(128,128,128,.4);font-size:.82rem}
body.espace .pick-chip.traded{background:rgba(80,140,255,.15)}
body.espace .pick-chip.cond{border-style:dashed}
body.espace .draft-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px}
body.espace .draft-pick{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid rgba(128,128,128,.3);border-radius:8px;min-width:0}
body.espace .draft-pick.pending{opacity:.75;border-style:dashed}
body.espace .draft-pick .dp-no{min-width:26px;font-weight:700;opacity:.7}
body.espace .draft-pick .dp-logos{position:relative;display:inline-flex}
body.espace .draft-pick .dp-from{position:absolute;right:-8px;bottom:-6px;background:#fff;border-radius:50%;line-height:0;padding:1px}
body.espace .draft-pick .dp-txt{display:flex;flex-direction:column;min-width:0;margin-left:6px}
body.espace .draft-pick .dp-club{font-weight:400;font-size:.78rem;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.espace .draft-pick .dp-sel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.espace .draft-candidates{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
body.espace .draft-candidates span{padding:3px 9px;border:1px solid rgba(128,128,128,.3);border-radius:12px;font-size:.85rem}
body.espace .draft-candidates span[hidden]{display:none}
body.espace .draft-pick .dp-logos{display:inline-flex;align-items:center;gap:4px}
body.espace .draft-pick .dp-arrow{font-style:normal;opacity:.6;font-size:.8rem}
body.espace .pick-chip img{object-fit:contain}

/* Repêchage : une ligne par choix */
body.espace .draft-picks{display:flex;flex-direction:column;gap:0;width:max-content;max-width:100%}
body.espace .draft-pick{border:0;border-bottom:1px solid rgba(128,128,128,.18);border-radius:0;padding:4px 6px;gap:10px}
body.espace .draft-pick.pending{border-style:solid;opacity:.8}
body.espace .draft-pick .dp-no{min-width:34px;text-align:left}
body.espace .draft-pick .dp-logos{min-width:68px}
body.espace .draft-pick .dp-txt{flex-direction:row;align-items:center;gap:16px;margin-left:0}
body.espace .draft-pick .dp-club{min-width:170px;font-size:.92rem;opacity:1}
body.espace .draft-pick .dp-sel{min-width:200px}
body.espace .draft-pick:hover{background:rgba(255,255,255,.05)}

/* Choix de repêchage : matrice clubs x années */
body.espace .pick-matrix td{vertical-align:top;text-align:left;padding:5px 8px;border-bottom:1px solid rgba(128,128,128,.18)}
body.espace .pick-matrix .pick-chips{max-width:250px}
body.espace .pick-matrix .pm-club a{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none;white-space:nowrap}

/* Choix de repêchage : cartes par année, comme MaFranchise */
body.espace .choix-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:6px 0 14px}
body.espace .choix-annee{background:rgba(20,27,55,.92);border:1px solid rgba(255,255,255,.09);border-radius:12px;padding:.8rem 1rem}
body.espace .choix-annee h3{font-size:.88rem;margin:0 0 .5rem}
body.espace .choix-row{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:.35rem 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:.82rem}
body.espace .choix-row:last-child{border-bottom:0}
body.espace .choix-row .ronde{min-width:64px;color:#a9b8d0}
body.espace .choix-row [data-team-identity]{display:inline-flex;align-items:center;gap:6px}
body.espace .choix-row .propre{color:#7d8ea6;font-size:.7rem}

/* Choix échangés cliquables + fenêtre de l'échange */
body.espace button.choix-row{width:100%;background:none;border:0;border-bottom:1px solid rgba(255,255,255,.05);color:inherit;font:inherit;font-size:.82rem;text-align:left;cursor:pointer;border-radius:6px}
body.espace button.choix-row:hover{background:rgba(77,163,255,.12)}
.trade-pop-bg{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}
.trade-pop{position:relative;background:#141b37;border:1px solid rgba(255,255,255,.15);border-radius:14px;padding:18px 20px;max-width:460px;width:100%;color:#e8eefc}
.trade-pop h3{margin:0 0 4px;font-size:1rem}
.trade-pop .tp-x{position:absolute;top:8px;right:12px;background:none;border:0;color:inherit;font-size:1.4rem;cursor:pointer}
.trade-pop .tp-date{font-size:.8rem;opacity:.7;margin:8px 0}
.trade-pop .tp-side{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid rgba(255,255,255,.1)}
.trade-pop .tp-side b{font-weight:400;font-size:.78rem;opacity:.7}

/* Match : compact, à gauche, onglets */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .game-report .game-scoreboard{display:flex;flex-wrap:wrap;gap:10px 28px;justify-content:flex-start;align-items:center;margin:4px 0 10px}
body.espace .game-report .game-scoreboard>div{display:flex;align-items:center;gap:12px;padding:6px 14px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(255,255,255,.03)}
body.espace .game-report .game-scoreboard a{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none;font-weight:600}
body.espace .game-report .game-scoreboard img{width:34px;height:34px;object-fit:contain}
body.espace .game-report .game-scoreboard strong{font-size:1.7rem;line-height:1}
body.espace .game-report .game-section{padding:10px 12px;margin-bottom:10px}
body.espace .game-report .game-section h1{font-size:1.05rem;margin:0 0 4px}
body.espace .game-report .game-section h2,body.espace .game-report .game-section h3,body.espace .game-report .game-section h4{font-size:.9rem;margin:8px 0 4px}
body.espace .game-report .game-section table{width:auto;max-width:100%;border-collapse:collapse;font-size:.82rem;margin:4px 0 10px}
body.espace .game-report .game-section th,body.espace .game-report .game-section td{text-align:left;padding:3px 9px;vertical-align:top}
body.espace .game-report .game-section th{white-space:nowrap}
body.espace .game-report .game-section tr:nth-child(even) td{background:rgba(255,255,255,.03)}
body.espace .game-report .game-pane[hidden]{display:none}
body.espace .game-report .game-tabs{margin:4px 0 8px}

/* Repêchage : plusieurs tours côte à côte */
body.espace .draft-rounds{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,max-content));gap:12px;align-items:start;justify-content:start}
body.espace .draft-rounds .draft-round{margin:0}
body.espace .draft-rounds .draft-picks{width:auto}
body.espace .draft-pick .dp-txt{gap:10px}
body.espace .draft-pick .dp-club{min-width:130px}
body.espace .draft-pick .dp-sel{min-width:120px}

/* Page équipe : tuiles plus condensées */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .club-dashboard{gap:8px;margin-bottom:8px}
body.espace .club-dashboard .portal-panel{padding:8px 12px}
body.espace .club-dashboard .section-heading{margin-bottom:4px}
body.espace .club-dashboard h2{font-size:.95rem;margin:0}
body.espace .club-dashboard .club-game-row{padding:2px 0}
body.espace .club-pulse a{padding:6px 12px}
body.espace .club-pulse strong{font-size:1.2rem}
body.espace .club-leaders .compact-table th,body.espace .club-leaders .compact-table td{padding:3px 7px;text-align:left}
@media(min-width:1100px){body.espace .club-dashboard .club-leaders{grid-column:span 1}}

/* Page équipe : Organisation + Saison compactes, côte à côte */
body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .team-summary-grid{display:flex!important;flex-wrap:wrap;gap:10px;align-items:flex-start;justify-content:flex-start;grid-template-columns:none!important}
body.espace .team-summary-grid>.portal-panel{width:auto;flex:0 1 auto;padding:8px 12px;margin:0}
body.espace .team-summary-grid h2{font-size:.95rem;margin:0 0 4px}
body.espace .team-summary-grid .compact-table th,body.espace .team-summary-grid .compact-table td{padding:2px 8px;font-size:.8rem;line-height:1.25}
body.espace .team-summary-grid .coach-identity img{width:30px!important;height:36px!important;object-fit:cover;border-radius:4px}
body.espace .team-summary-grid .coach-identity small{font-size:.6rem;opacity:.7}
body.espace .season-tiles{display:grid;grid-template-columns:repeat(3,minmax(88px,auto));gap:6px}
body.espace .season-tiles span{display:flex;flex-direction:column;padding:4px 10px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.03)}
body.espace .season-tiles small{font-size:.68rem;opacity:.7;text-transform:uppercase}
body.espace .season-tiles b{font-size:1.15rem;line-height:1.1}
body.espace .season-tiles em{font-style:normal;font-size:.66rem;opacity:.65;white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .team-summary-grid>.portal-panel{width:auto!important;flex:0 1 auto}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .team-summary-grid{width:100%}

/* Tuile Organisation en haut à gauche */
@media(min-width:1200px){html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-dashboard:not(.club-dashboard-secondary){grid-template-columns:repeat(3,minmax(0,1fr))}}
body.espace .club-org .compact-table th{white-space:nowrap}
body.espace .club-org .compact-table td{white-space:nowrap}

/* Page équipe : indicateurs, stats avec rang, Top 5 (repris de Ma Franchise) */
body.espace .club-metrics a{cursor:default;min-width:110px}
body.espace .club-statrank small,body.espace .club-top5 small{opacity:.65;font-weight:400;font-size:.7em;margin-left:6px}
body.espace .statrank-grid{display:flex;flex-wrap:wrap;gap:6px}
body.espace .statrank-grid>div{display:flex;flex-direction:column;gap:2px;padding:6px 10px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.03);min-width:150px}
body.espace .statrank-grid small{margin:0;font-size:.66rem;text-transform:uppercase;opacity:.7}
body.espace .statrank-grid b{font-size:1.05rem}
body.espace .rk{font-style:normal;font-size:.68rem;padding:1px 7px;border-radius:10px;align-self:flex-start}
body.espace .rk-haut{background:rgba(60,180,110,.25);color:#7be0a4}
body.espace .rk-mid{background:rgba(160,170,190,.2);color:#c5cddd}
body.espace .rk-bas{background:rgba(230,90,90,.25);color:#ff9a9a}
body.espace .top5-grid{display:flex;flex-wrap:wrap;gap:8px}
body.espace .top5-cat{min-width:190px;flex:1 1 190px;padding:6px 10px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:rgba(255,255,255,.03)}
body.espace .top5-cat h4{margin:0 0 4px;font-size:.7rem;text-transform:uppercase;opacity:.7}
body.espace .top5-cat>div{display:flex;justify-content:space-between;gap:10px;font-size:.82rem;padding:1px 0}
body.espace .top5-cat b{color:#6fb4ff}
body.espace .club-top5,body.espace .club-statrank{margin-bottom:10px}

/* Cartes Pro / Farm (reprises de Ma Franchise) */
body.espace .club-cards2{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:10px;margin-bottom:10px}
body.espace .club-card2{border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:10px 14px;background:rgba(20,27,55,.6)}
body.espace .club-card2 header{display:flex;gap:12px;align-items:center;margin-bottom:6px}
body.espace .club-card2 header img{width:48px;height:48px;object-fit:contain}
body.espace .club-card2 header small{font-size:.62rem;letter-spacing:.06em;opacity:.65}
body.espace .club-card2 h3{margin:0;font-size:1.05rem}
body.espace .club-card2 h3 a{color:inherit;text-decoration:none}
body.espace .club-card2 header span{display:block;font-size:.72rem;opacity:.75}
body.espace .club-card2 dl{margin:0}
body.espace .club-card2 dl>div{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border-top:1px solid rgba(255,255,255,.07);font-size:.8rem}
body.espace .club-card2 dl>div.sub{font-size:.7rem;opacity:.75;padding:1px 0;border-top:0}
body.espace .club-card2 dt{opacity:.75}
body.espace .club-card2 dd{margin:0;text-align:right}
body.espace .club-card2 footer{display:flex;gap:14px;margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.07)}
body.espace .club-card2 footer b{color:#6fb4ff;font-size:1rem}
body.espace .club-card2 footer small{opacity:.7;font-size:.68rem}

/* Même hauteur pour les tuiles d'une même rangée */
body.espace .club-cards2{align-items:stretch}
body.espace .club-card2{display:flex;flex-direction:column;height:100%;box-sizing:border-box}
body.espace .club-card2 footer{margin-top:auto}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-dashboard{align-items:stretch}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-dashboard>.portal-panel{height:100%;box-sizing:border-box;margin:0}
body.espace .statrank-grid>div{flex:1 1 150px}
body.espace .top5-cat{align-self:stretch}

/* Panneau d'indicateurs à droite des cartes Pro / Farm */
body.espace .club-cards2{grid-template-columns:repeat(2,minmax(340px,1fr)) minmax(150px,200px)}
@media(max-width:1100px){body.espace .club-cards2{grid-template-columns:1fr}}
body.espace .club-side{display:flex;flex-direction:column;gap:6px;height:100%;box-sizing:border-box}
body.espace .club-side a{flex:1;display:flex;flex-direction:column;justify-content:center;padding:4px 12px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(20,27,55,.6);text-decoration:none;color:inherit;cursor:default}
body.espace .club-side span{font-size:.64rem;text-transform:uppercase;opacity:.7}
body.espace .club-side strong{font-size:1.15rem;line-height:1.1}
body.espace .team-logo-only img{vertical-align:middle}
body.espace .club-movement .team-logo-only{margin:0 3px}

/* Page équipe : tuiles compactes, largeur = contenu, alignées à gauche */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-cards2{display:flex!important;flex-wrap:wrap;gap:10px;align-items:stretch;justify-content:flex-start;grid-template-columns:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-cards2>.club-card2{flex:0 0 440px;max-width:100%}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-cards2>.club-side{flex:0 0 150px;height:auto}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-dashboard:not(.club-dashboard-secondary){display:flex!important;flex-wrap:wrap;gap:10px;align-items:stretch;grid-template-columns:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-dashboard>.portal-panel{width:auto!important;flex:0 1 360px;max-width:100%}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-statrank,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-top5{width:fit-content!important;max-width:100%}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-activity{width:fit-content!important;min-width:420px;max-width:100%}
body.espace .statrank-grid>div{flex:0 0 auto;min-width:140px}
body.espace .top5-cat{flex:0 0 auto;min-width:175px}

/* 1080p : stats d'équipe à droite des cartes et des tuiles */
@media(min-width:1500px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2){display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:12px;align-items:start;grid-auto-flow:row dense}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>*{grid-column:1/-1}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-cards2,
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard{grid-column:1}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-statrank{grid-column:2;grid-row:span 2;width:auto!important;align-self:stretch}
 body.espace main.team-page:has(.club-cards2) .club-card2{flex:0 0 440px!important}
}

body.espace .club-card2{height:auto!important;min-height:0!important}
body.espace .club-cards2>.club-side{height:auto}

/* 1080p (ajustement) : stats + Top 5 empilés à droite, tuiles du bas en une seule rangée */
@media(min-width:1500px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-statrank{grid-row:auto;align-self:start}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-top5{grid-column:2;width:auto!important;align-self:start}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2) .club-dashboard:not(.club-dashboard-secondary){flex-wrap:nowrap}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2) .club-dashboard>.portal-panel{flex:1 1 0;min-width:0}
 body.espace main.team-page:has(.club-cards2) .statrank-grid>div{flex:1 1 130px}
 body.espace main.team-page:has(.club-cards2) .top5-cat{flex:1 1 150px;min-width:0}
}

/* 1080p (v3) : Finances à droite des cartes ; Prochain + Cinq derniers à gauche, stats à droite ; Top 5 dessous */
@media(min-width:1500px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-finance{grid-column:2;width:auto!important;align-self:stretch;margin:0}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard{grid-column:1}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-statrank{grid-column:2;align-self:stretch}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-top5{grid-column:1/-1;width:auto!important}
 body.espace main.team-page:has(.club-cards2) .top5-cat{flex:1 1 170px}
}

/* 1080p (v4) : Cartes | Prochain + Cinq derniers | Finances sur une rangée ; stats puis Top 5 dessous */
@media(min-width:1840px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2){grid-template-columns:max-content max-content minmax(0,1fr)!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard{grid-column:2!important;flex-wrap:nowrap!important;align-self:stretch}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard>.portal-panel{flex:0 0 auto!important;width:auto!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard>.portal-panel:first-child{width:230px!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard>.portal-panel:nth-child(2){width:270px!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-finance{grid-column:3!important;align-self:stretch}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-statrank{grid-column:1/-1!important}
}

/* Derniers mouvements : lignes compactes avec pastille de type */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-activity{width:100%!important}
body.espace .move-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(520px,1fr));gap:0 20px}
body.espace .move-row{display:grid;grid-template-columns:84px 62px minmax(0,1fr);gap:8px;align-items:center;padding:4px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:.8rem}
body.espace .move-row time{font-size:.7rem;opacity:.65;white-space:nowrap}
body.espace .move-kind{font-size:.62rem;font-weight:600;padding:2px 7px;border-radius:10px;text-align:center;background:rgba(160,170,190,.2);color:#c5cddd}
body.espace .mk-trade{background:rgba(111,180,255,.2);color:#8cc4ff}
body.espace .mk-in{background:rgba(60,180,110,.22);color:#7be0a4}
body.espace .mk-out{background:rgba(230,90,90,.22);color:#ff9a9a}
body.espace .mk-staff{background:rgba(220,180,80,.22);color:#f0cf7a}
body.espace .move-row>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px}

/* Bandeau des logos : tous les clubs visibles sans défilement (1080p, même avec « Mon club ») */
@media (min-width:1101px){
 .menu .eq-rapide{gap:2px;padding-left:10px;margin-left:8px;overflow:hidden}
 .menu .eq-rapide a{padding:1px}
 .menu .eq-rapide img{width:clamp(14px,calc((calc(100vw / var(--zf,1)) - 1330px)/26),24px);height:clamp(14px,calc((calc(100vw / var(--zf,1)) - 1330px)/26),24px)}
}

/* Historique des échanges : une carte par échange, "X reçoit" */
body.espace .trade-history{display:grid;grid-template-columns:repeat(auto-fill,minmax(480px,1fr));gap:8px;margin:8px 0}
body.espace .trade-card2{border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:8px 12px;background:rgba(20,27,55,.55)}
body.espace .trade-card2>header{display:flex;justify-content:space-between;font-size:.72rem;margin-bottom:6px;opacity:.85}
body.espace .trade-sides{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.espace .trade-sides section{border-left:3px solid rgba(111,180,255,.45);padding-left:10px;min-width:0}
body.espace .trade-sides h3{margin:0 0 4px;font-size:.88rem;font-weight:400}
body.espace .trade-sides h3 a{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none;font-weight:600}
body.espace .trade-sides h3 small{opacity:.6;font-size:.7rem}
body.espace .trade-sides ul{list-style:none;margin:0;padding:0;font-size:.82rem}
body.espace .trade-sides li{padding:2px 0;border-bottom:1px solid rgba(255,255,255,.05)}
body.espace .trade-sides li.asset-pick{color:#f0cf7a}
body.espace .trade-sides li em{font-style:normal;font-size:.62rem;padding:1px 6px;border-radius:8px;background:rgba(160,170,190,.2);margin-left:4px}
@media(max-width:700px){body.espace .trade-history{grid-template-columns:1fr}body.espace .trade-sides{grid-template-columns:1fr}}

/* Différences de cotes */
body.espace .diff-table td,body.espace .diff-table th{padding:2px 7px;text-align:left;font-size:.8rem}
body.espace .diff-table sup{font-size:.62rem;margin-left:1px}
body.espace .d-up{color:#7be0a4}
body.espace .d-down{color:#ff9a9a}

/* ===== Écrans 4K / grands écrans : agrandissement forcé RETIRÉ (26 oct. 2026, demande de Yan) — la page utilise la vraie largeur de l'écran. Règles retirées : zoom 1,333 / 1,6 / 2 dès 2300 / 3000 / 3500 px; script du même nom dans layout_top.php. =====
   --zf = facteur d'agrandissement; les unités vh/vw du site sont divisées par --zf pour rester justes.
   Les pages de l'éditeur d'alignements (trios, gestion d'équipe) ne sont pas touchées. */




/* Bande de logos du menu : remplit tout l'espace jusqu'au sélecteur de saison (les logos s'étirent/rétrécissent ensemble) */
@media (min-width:1101px){
 .menu .eq-rapide{overflow:hidden;justify-content:space-between;gap:0}
 .menu .eq-rapide a{flex:1 1 0;min-width:0;max-width:40px;padding:2px}
 .menu .eq-rapide img{width:100%;max-width:32px;height:auto;aspect-ratio:1/1}
}

/* ===== Logos du menu : liste normale / liste déroulante « Équipes ▼ » quand c'est trop étroit ===== */
.menu .eq-rapide .eq-toggle{display:none}
.menu .eq-rapide .eq-liste{display:flex;align-items:center;justify-content:space-between;flex:1 1 0;min-width:0}
@media (min-width:1101px){.menu .eq-rapide .eq-liste{gap:0}}
.menu .eq-rapide.eq-compact{position:relative;flex:0 0 auto;overflow:visible!important;border-left:1px solid var(--bord2);margin-left:8px;padding:0 0 0 8px;flex-wrap:nowrap}
.menu .eq-rapide.eq-compact .eq-toggle{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--bord2);border-radius:8px;background:var(--carte2);color:inherit;font:inherit;font-weight:600;cursor:pointer}
.menu .eq-rapide.eq-compact .eq-liste{display:none}
.menu .eq-rapide.eq-compact.open .eq-liste{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;position:absolute;top:calc(100% + 10px);left:0;z-index:300;width:max-content;max-width:92vw;padding:12px;border:1px solid var(--bord2);border-radius:12px;background:var(--carte);box-shadow:0 12px 40px rgba(0,0,0,.45)}
.menu .eq-rapide.eq-compact .eq-liste a{display:grid;place-items:center;max-width:none;flex:none;padding:5px;border-radius:8px}
.menu .eq-rapide.eq-compact .eq-liste img{width:36px;max-width:none;height:36px;aspect-ratio:auto}
@media (max-width:700px){.menu .eq-rapide.eq-compact.open .eq-liste{grid-template-columns:repeat(5,1fr)}}
/* Lightning de Tampa Bay : le logo sombre disparaît sur le thème sombre quand il est petit → fin liseré clair */
html:not([data-theme="clair"]) .menu .eq-rapide a[title*="Tampa"] img{filter:drop-shadow(0 0 1px rgba(255,255,255,.3))}

/* Espoirs : liste d'un club longue → deux colonnes côte à côte (empilées sur écran étroit) */
.pr-split{display:block}
@media (min-width:1500px){
 html body.espace .pr-split.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
 html body.espace .pr-split.two>.portal-panel{width:100%!important;margin:0}
 html body.espace .pr-split.two th:nth-child(9),html body.espace .pr-split.two td:nth-child(9){display:none}
 html body.espace .pr-split.two td:nth-child(5) .team-name,html body.espace .pr-split.two td:nth-child(5) span{white-space:nowrap}
}

/* Logos d'équipes : jamais déformés (certains PNG ne sont pas carrés) — ils gardent leurs proportions dans leur boîte */
body.espace img[src*="logonhl"],body.espace img[src*="/Saison/images/"],body.espace .club-strip img,body.espace .team-heading-logo,body.espace .mini-team img,body.espace img[data-team-identity],body.espace img.team-logo-auto{object-fit:contain;object-position:center}

/* « Mon club » : logo du club bien visible dans le menu */
.menu .mon-club{gap:8px}
.menu .mon-club img{width:32px!important;height:32px!important;object-fit:contain;filter:drop-shadow(0 0 2px rgba(0,0,0,.35))}

/* ===== Page équipe : fenêtres de largeur moyenne / étroite (sous le 1080p) — grille propre, tout remplit la largeur ===== */
@media (max-width:1839px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2){display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;grid-auto-flow:row dense;align-items:stretch}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>*{grid-column:1/-1!important;width:auto!important;min-width:0!important;max-width:none!important;margin-top:0;margin-bottom:0}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-cards2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr)) 170px!important;gap:10px;align-items:stretch}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-cards2>.club-card2{flex:none!important;width:auto!important;max-width:none!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-cards2>.club-side{width:auto!important;height:auto}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard:not(.club-dashboard-secondary){grid-column:span 4!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;flex-wrap:nowrap}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard:not(.club-dashboard-secondary)>.portal-panel{width:auto!important;flex:none!important;max-width:none!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-finance{grid-column:span 2!important;align-self:stretch}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-finance table{width:100%} html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard:not(.club-dashboard-secondary){order:1}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-finance{order:2}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-statrank,
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-top5,
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-activity,
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard-secondary{order:3}
}
@media (max-width:1100px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-cards2{grid-template-columns:1fr!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-cards2>.club-side{flex-direction:row;flex-wrap:wrap}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard:not(.club-dashboard-secondary),
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-finance{grid-column:1/-1!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard:not(.club-dashboard-secondary){grid-template-columns:1fr!important}
}

/* Barre de défilement horizontal du haut (miroir de celle du bas, voir top-scroll.js) */
.top-scroll{display:none;overflow-x:auto;overflow-y:hidden;height:14px;margin:0 0 4px;scrollbar-width:thin}
.top-scroll>div{height:1px}

/* Colonnes figées (nom d'équipe / joueur) : fond TOUJOURS opaque (--carte2 est translucide : on le pose sur --carte), même au survol */
.clst-table tbody tr td.eq{background:var(--carte)!important}
.clst-table tbody tr:nth-child(even) td.eq{background:linear-gradient(var(--carte2),var(--carte2)),var(--carte)!important}
.clst-table tbody tr:hover td.eq{background:linear-gradient(rgba(47,111,237,.16),rgba(47,111,237,.16)),var(--carte)!important}
.clst-table th.eq{background:linear-gradient(var(--carte2),var(--carte2)),var(--carte)!important}
.clst-table td.eq,.clst-table th.eq{background-clip:padding-box;box-shadow:1px 0 0 var(--bord)}
html body.espace .schedule-scroll>table.compact-table tbody tr>:first-child{background:var(--carte)!important}
html body.espace .schedule-scroll>table.compact-table tbody tr:nth-child(even)>:first-child{background:linear-gradient(var(--carte2),var(--carte2)),var(--carte)!important}
html body.espace .schedule-scroll>table.compact-table tbody tr:hover>:first-child{background:linear-gradient(rgba(47,111,237,.14),rgba(47,111,237,.14)),var(--carte)!important}
html body.espace .schedule-scroll>table.compact-table thead tr>:first-child{background:linear-gradient(var(--carte2),var(--carte2)),var(--carte)!important}

/* Classement : le nom de la division (Atlantique, Pacifique…) reste figé à gauche pendant le défilement horizontal */
.clst-table .clst-div-hdr td{overflow:visible}
.clst-table .clst-div-fige{position:sticky;left:12px;display:inline-block;z-index:2;white-space:nowrap}

/* ===== Listes déroulantes quand c'est trop long (pastilles années / tours…) ===== */
.strip-dropdown{position:relative;display:inline-block;vertical-align:middle}
.strip-dropdown>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--bord2);border-radius:10px;background:var(--carte2);font-weight:700;min-height:38px}
.strip-dropdown>summary::-webkit-details-marker{display:none}
.strip-dropdown>summary::after{content:"▼";font-size:.65em;opacity:.7}
.strip-dropdown[open]>summary::after{content:"▲"}
.strip-dropdown>nav{position:absolute;z-index:200;left:0;top:calc(100% + 6px);display:flex;flex-wrap:wrap;gap:6px;width:max-content;max-width:min(92vw,420px);padding:10px;border:1px solid var(--bord2);border-radius:12px;background:var(--carte);box-shadow:0 12px 40px rgba(0,0,0,.45)}
.strip-dropdown:not([open])>nav{display:none}

/* ===== Menu mobile : « Équipes » aligné comme les autres entrées (plus de trait / décalage à gauche) ===== */
@media (max-width:1100px){
 .menu .eq-rapide.eq-compact{border-left:0!important;margin:0!important;padding:0!important;width:100%;flex:0 0 auto}
 .menu .eq-rapide.eq-compact .eq-toggle{width:100%;justify-content:space-between;padding:12px 14px;border-radius:10px}
 .menu .eq-rapide.eq-compact.open .eq-liste{position:static;width:auto;max-width:none;margin-top:8px;box-shadow:none;grid-template-columns:repeat(6,1fr)}
}
@media (max-width:480px){.menu .eq-rapide.eq-compact.open .eq-liste{grid-template-columns:repeat(5,1fr)}}

/* ===== MOBILE (≤700px) : lisibilité, zones tactiles, rien de coupé ===== */
@media (max-width:700px){
 html{-webkit-text-size-adjust:100%}
 html body.espace input,html body.espace select,html body.espace textarea{font-size:16px}
 html body.espace .portal-heading{flex-wrap:wrap;gap:6px}
 html body.espace .portal-heading h1{font-size:1.35rem;line-height:1.2}
 html body.espace main,html body.espace .page-pleine,html body.espace .page-simple{padding-left:10px;padding-right:10px}
 /* zones tactiles */
 html body.espace .team-tabs a,html body.espace .team-tabs button,html body.espace .club-circuit-switch a,html body.espace .cal-seg a,html body.espace .choice-option,html body.espace .clst-circuits a{min-height:40px;display:inline-flex;align-items:center}
 /* barres de pastilles / logos : une seule rangée qu'on fait glisser du doigt */
 html body.espace .club-strip{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:4px}
 html body.espace .club-strip>*{flex:0 0 auto}
 html body.espace .choice-control{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 html body.espace .choice-control>*{flex:0 0 auto}
 html body.espace .clst-onglets{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}
 html body.espace .clst-onglets>*{flex:0 0 auto;white-space:nowrap}
 /* filtres : un champ par ligne */
 html body.espace .schedule-filters{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 html body.espace .schedule-filters label{display:flex;flex-direction:column;gap:4px}
 html body.espace .schedule-filters input,html body.espace .schedule-filters select{width:100%}
 /* classement : colonne équipe plus étroite */
 .clst-table td.eq a,.clst-table td.eq{font-size:.78rem}
 .clst-table td.eq img{width:18px;height:18px}
 .clst-table td{padding:.45rem .4rem}
 /* page équipe */
 html body.espace .club-finance table,html body.espace .club-finance td,html body.espace .club-finance th{width:100%!important;white-space:normal}
 html body.espace .club-finance td{text-align:left!important}
 html body.espace .statrank-grid>div,html body.espace .top5-cat{flex:1 1 calc(50% - 8px)!important;min-width:0}
 /* fiche joueur : informations sur 2 colonnes */
 html body.espace .player-profile table.profile-details tbody,.player-card .player-profile table.profile-details tbody{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 /* match : tableaux Buts / Tirs l'un sous l'autre, textes qui passent à la ligne */
 html body.espace .game-pane td,html body.espace .game-pane th,html body.espace .game-report td{white-space:normal!important}
 html body.espace .game-pane :is(.game-split,.game-tables,.game-two){display:block!important}
 html body.espace .game-report .game-scoreboard{gap:8px}
 html body.espace .game-report .game-scoreboard>div{flex:1 1 140px;padding:6px 8px}
 /* tableaux larges : le défilement latéral reste, avec un léger indice d'ombre à droite */
 html body.espace .schedule-scroll{-webkit-overflow-scrolling:touch;background:linear-gradient(to right,var(--carte),var(--carte)) local,linear-gradient(to left,rgba(255,255,255,.07),transparent 18px) scroll right/18px 100% no-repeat}
 /* popups & cartes : plein écran utile */
 html body.espace .player-card{width:100vw!important;max-height:96dvh!important}
 html body.espace .trade-pop{width:94vw}
 /* espoirs / repêchage : cartes en une colonne */
 html body.espace .choix-grid,html body.espace .draft-rounds{grid-template-columns:1fr!important}
 html body.espace .pr-split.two{display:block}
}

/* Thème clair : cartes de club (aperçu d'équipe) — fond clair, séparateurs et chiffres lisibles */
html[data-theme="clair"] body.espace .club-card2{background:var(--carte,#fff);border-color:rgba(19,26,43,.14)}
html[data-theme="clair"] body.espace .club-card2 dl>div,html[data-theme="clair"] body.espace .club-card2 footer{border-top-color:rgba(19,26,43,.1)}
html[data-theme="clair"] body.espace .club-card2 footer b{color:#1f5fbf}
/* Sous-menu d'équipe en liste déroulante : une colonne, liens pleine largeur, alignés à gauche */
.strip-dropdown>nav.team-tabs{flex-direction:column;flex-wrap:nowrap;gap:2px;width:max-content;min-width:230px;max-width:min(92vw,320px);max-height:70vh;overflow:auto;margin:0}
.strip-dropdown>nav.team-tabs a{display:block;text-align:left;width:100%;box-sizing:border-box}
/* Transactions : tableau condensé (largeur = contenu), colonne « Mouvement » plafonnée */
main table:has(.transaction-text){width:auto!important;max-width:100%}
main .transaction-text{max-width:760px}
/* Connexion : texte sur grand écran, icône 👤 quand le menu burger est actif */
.ib.txt .cx-i{display:none}


/* ── Classement mobile (inspiré de nhl.com) : rang + logo, puis PJ · V · D · DP · P (+/− ) sans défilement.
      « Toutes les colonnes » rouvre le tableau complet (défilement horizontal, colonne équipe figée). ── */
.clst-plus{display:none}
@media (max-width:700px){
  .clst-plus{display:inline-flex;align-items:center;margin:0 0 10px;padding:7px 12px;border:1px solid var(--bord2);border-radius:8px;background:var(--carte);color:var(--texte);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
  .clst-plus[aria-pressed="true"]{border-color:var(--accent,#2f6fed);color:var(--accent2,var(--texte))}
  #clst-zone:not(.clst-tout) .clst-table .mh,
  #clst-zone:not(.clst-tout) .clst-table .clst-nom{display:none}
  #clst-zone:not(.clst-tout) .clst-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto}
  #clst-zone:not(.clst-tout) .clst-table :is(th,td){padding:.55rem .35rem;text-align:center!important}
  #clst-zone:not(.clst-tout) .clst-table th.eq,#clst-zone:not(.clst-tout) .clst-table td.eq{text-align:left!important;width:1%}
  #clst-zone:not(.clst-tout) .clst-table td.eq img{width:26px;height:26px}
  #clst-zone:not(.clst-tout) .clst-table td.eq a{gap:0}
  #clst-zone:not(.clst-tout) .clst-table th.eq{font-size:0}
  #clst-zone:not(.clst-tout) .clst-table th.eq::after{content:"Équipe";font-size:11px;letter-spacing:.04em}
  #clst-zone:not(.clst-tout) .clst-table td.fort{font-weight:800}
  #clst-zone:not(.clst-tout) .clst-scroll{overflow-x:visible}
}
/* Tableaux de stats en mobile (voir mobile-tables.js) */
.mt-plus{display:none}
@media (max-width:700px){
  .mt-plus{display:inline-flex;align-items:center;margin:0 0 10px;padding:7px 12px;border:1px solid var(--bord2);border-radius:8px;background:var(--carte);color:var(--texte);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
  .mt-plus[hidden]{display:none}
  body.mt-compact main table .mt-h{display:none}
  body.mt-compact main section.schedule-scroll{overflow-x:visible}
  body.mt-compact main table:not(.clst-table){min-width:0!important;max-width:100%!important}
  body.mt-compact main table:not(.clst-table) :is(th,td){padding-left:6px;padding-right:8px}
  body.mt-compact main .transaction-text{min-width:0}
}
@media (max-width:700px){
  main table:has(.transaction-text){width:100%!important;table-layout:auto}
  main .transaction-text{min-width:0!important;max-width:none}
  main table:has(.transaction-text) :is(th,td){padding-left:6px;padding-right:8px;white-space:normal}
}
/* Colonne « Équipe » (cellule d'en-tête de ligne) : jamais coupée à 70 px (Finances, Masse salariale, Moyennes…) */
html body.espace main .compact-table tbody th{max-width:none!important;min-width:max-content}
html body.espace main .compact-table thead th:first-child{max-width:none!important;min-width:110px}
/* Santé financière (pages d'équipe) — mêmes couleurs que la page Finances */
.fin-panel td.fin-bad,.fin-panel small.fin-bad{color:#ff6b62}
.fin-panel td.fin-mid{color:#f0b53c}
.fin-panel td.fin-good,.fin-panel small.fin-good{color:#4cc98a}
html[data-theme="clair"] .fin-panel td.fin-bad,html[data-theme="clair"] .fin-panel small.fin-bad{color:#c0261c}
html[data-theme="clair"] .fin-panel td.fin-mid{color:#a86a00}
html[data-theme="clair"] .fin-panel td.fin-good,html[data-theme="clair"] .fin-panel small.fin-good{color:#16794a}
/* En-tête très étroit : le sélecteur de saison (comptes autorisés) ne doit pas pousser le menu ☰ hors de l'écran */
@media (max-width:560px){.droite .saison-sel{max-width:74px;padding:6px 2px;font-size:12px}.droite{gap:5px}.droite .ib{min-width:32px}}

/* ── Tableaux de stats : hiérarchie calme (comme Finances) ──
      noms (équipes/joueurs) plus gros que les chiffres ; chiffres normaux et en retrait ; en-têtes discrets, sans gras. ── */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.fin-table):not(.compare-table) thead th,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.fin-table):not(.compare-table) thead th a{font-size:10.5px;font-weight:500;letter-spacing:.3px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.fin-table):not(.compare-table) tbody td{font-size:11.5px;font-weight:400;color:var(--texte-doux,var(--texte))}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.fin-table):not(.compare-table) tbody th,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.fin-table):not(.compare-table) tbody th a,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.fin-table):not(.compare-table) tbody td:first-child a{font-size:13px;font-weight:400;letter-spacing:0;color:var(--texte)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.fin-table):not(.compare-table) tbody td strong{font-weight:400}
/* Équipes dans les tableaux/listes : nom complet sur ordinateur, abréviation sur mobile */
.team-identity .tn-a{display:none}
@media (max-width:700px){
  .team-identity .tn-f{display:none}
  .team-identity .tn-a{display:inline;letter-spacing:.2px}
}
/* Tableaux restants (Meneurs, Statistiques d'équipe, Profondeur…) : pas de chiffres en gras */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table:not(.clst-table):not(.compare-table):not(.fin-table) tbody td,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table:not(.clst-table):not(.compare-table):not(.fin-table) tbody td strong,
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table:not(.clst-table):not(.compare-table):not(.fin-table) tbody td b{font-weight:400}
/* Fiche joueur : cartes « Admissibilité et clauses » — le libellé ne déborde plus sur la carte voisine, même en fenêtre réduite ;
   puces des échanges : espace horizontal rétabli. */
html body.espace .player-profile table.profile-details tbody,.player-card .player-profile table.profile-details tbody{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))!important}
html body.espace .player-profile table.profile-details tr,.player-card .player-profile table.profile-details tr{min-width:0;overflow:hidden}
html body.espace .player-profile table.profile-details th,html body.espace .player-profile table.profile-details td,.player-card .player-profile table.profile-details th,.player-card .player-profile table.profile-details td{min-width:0!important;max-width:100%!important;width:auto!important;box-sizing:border-box;white-space:normal!important;overflow-wrap:anywhere}
@media (max-width:560px){html body.espace .player-profile table.profile-details tbody,.player-card .player-profile table.profile-details tbody{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
html body.espace .trade-side li{padding:2px 9px!important}
/* En-têtes de tableaux : le libellé passe sur deux lignes au lieu de déborder sur la colonne voisine */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table:not(.clst-table):not(.compare-table) thead th{white-space:normal!important;overflow-wrap:break-word;line-height:1.2;vertical-align:bottom;max-width:125px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table:not(.clst-table):not(.compare-table) thead th :is(a,button,span){white-space:normal!important;overflow-wrap:break-word}
/* Défilement horizontal : la colonne figée (Nom) touche le bord gauche du cadre — plus d'espace où le texte des colonnes suivantes
   se voit passer par-dessus/à côté quand on fait défiler. */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .schedule-scroll{padding-left:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) .schedule-scroll>table.compact-table :is(thead,tbody) tr>:first-child{padding-left:10px!important}
/* Filtres par colonne (col-filters.js) — ligne de cases de recherche sous les en-têtes, comme Prospects.php de STHS */
tr[hidden]{display:none!important}
html body.espace main table[data-col-filters] thead .cf-row th{padding:3px 4px;text-align:left}
html body.espace main table[data-col-filters] .cf-row input{width:100%;min-width:60px;box-sizing:border-box;font-size:11px;padding:3px 6px;border:1px solid var(--bord2);border-radius:5px;background:var(--carte2);color:var(--texte)}
html body.espace main table[data-col-filters] thead th[data-cf-sort]{cursor:pointer;user-select:none}
html body.espace main table[data-col-filters] thead th.cf-asc::after{content:" ▲";font-size:.8em;opacity:.7}
html body.espace main table[data-col-filters] thead th.cf-desc::after{content:" ▼";font-size:.8em;opacity:.7}
/* Barre de filtres (pages avec plusieurs tableaux, ex. Effectifs : un champ par colonne) */
.cf-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0 12px;padding:8px;border:1px solid var(--bord2);border-radius:10px;background:var(--carte)}
.cf-bar label{flex:1 1 84px;min-width:76px;max-width:150px;margin:0}
.cf-bar input{width:100%;box-sizing:border-box;font-size:11.5px;padding:4px 7px;border:1px solid var(--bord2);border-radius:6px;background:var(--carte2);color:var(--texte)}
.cf-bar .cf-count{margin-left:auto;font-size:12px;color:var(--texte-doux,var(--texte))}
/* Matchs du jour — « Meilleurs de la partie » : logo du club (plus de nom), buteurs, puis gardien sur une ligne */
.today-best .tb-side{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--bord,rgba(255,255,255,.08))}
.today-best .tb-side:first-of-type{border-top:0}
.today-best .tb-logo{flex:0 0 auto;display:block;width:30px;padding-top:1px}
.today-best .tb-logo img{display:block;width:26px;height:26px;object-fit:contain}
.today-best .tb-lines{min-width:0;flex:1}
.today-best .tb-buts{font-size:.84rem;line-height:1.5}
.today-best .tb-gard{font-size:.78rem;color:var(--texte-doux,var(--texte));margin-top:3px;line-height:1.4}
.today-best .tb-st{display:inline-block;margin-left:4px;font-size:.72rem;opacity:.85;white-space:nowrap}
/* Thème clair : le logo du Lightning de Tampa Bay (clair) disparaît sur fond clair → fin contour bleu foncé, partout où il apparaît */
html[data-theme="clair"] img[src*="/TAM."],html[data-theme="clair"] img[src*="/TBL."]{filter:drop-shadow(0 0 .7px #0b2a5b) drop-shadow(0 0 .7px #0b2a5b) drop-shadow(0 0 .7px #0b2a5b)}
/* Finances d'un club : les deux chiffres qui comptent (masse estimée de saison, fonds actuels), en tête */
.fin-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:0 0 12px}
.fin-kpi{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border:1px solid var(--bord2);border-left:4px solid var(--bord2);border-radius:10px;background:var(--carte)}
.fin-kpi span{font-size:.78rem;color:var(--texte-doux,var(--texte));text-transform:uppercase;letter-spacing:.4px}
.fin-kpi b{font-size:1.7rem;font-weight:400;line-height:1.15}
.fin-kpi small{font-size:.78rem;color:var(--texte-doux,var(--texte))}
.fin-kpi.fin-bad{border-left-color:#ff6b62}.fin-kpi.fin-bad b{color:#ff6b62}
.fin-kpi.fin-mid{border-left-color:#f0b53c}.fin-kpi.fin-mid b{color:#f0b53c}
.fin-kpi.fin-good{border-left-color:#4cc98a}.fin-kpi.fin-good b{color:#4cc98a}
html[data-theme="clair"] .fin-kpi.fin-bad{border-left-color:#c0261c}html[data-theme="clair"] .fin-kpi.fin-bad b{color:#c0261c}
html[data-theme="clair"] .fin-kpi.fin-mid{border-left-color:#a86a00}html[data-theme="clair"] .fin-kpi.fin-mid b{color:#a86a00}
html[data-theme="clair"] .fin-kpi.fin-good{border-left-color:#16794a}html[data-theme="clair"] .fin-kpi.fin-good b{color:#16794a}
/* Cases de recherche par colonne : discrètes (fond transparent, simple trait dessous), plus de grosses cases blanches */
html body.espace main table.cf-table thead .cf-row th{padding:2px 4px 5px;text-align:left;background:transparent}
html body.espace main table.cf-table .cf-row input{width:0;min-width:100%;box-sizing:border-box;font:inherit;font-size:11px;padding:2px 2px;border:0!important;border-bottom:1px solid var(--bord2)!important;border-radius:0!important;background:transparent!important;color:var(--texte);box-shadow:none!important;outline:0}
html body.espace main table.cf-table .cf-row input::placeholder{color:var(--texte-vdoux,var(--texte-doux));opacity:.45}
html body.espace main table.cf-table .cf-row input:focus{border-bottom-color:var(--accent,#2f6fed)!important;background:rgba(127,127,127,.08)!important}
/* Fiche joueur en fenêtre : le nom est déjà dans la barre du haut (pas deux fois) ; le nom complet de l'équipe passe à la ligne au lieu d'être coupé */
.player-card .player-profile .profile-heading h1{display:none}
html body.espace .player-profile table.profile-details td .team-identity,.player-card .player-profile table.profile-details td .team-identity{display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px 6px;white-space:normal!important;max-width:100%}
html body.espace .player-profile table.profile-details td .tn-f,.player-card .player-profile table.profile-details td .tn-f{white-space:normal!important;overflow-wrap:anywhere;min-width:0}
/* Effectifs : la recherche par nom est en premier dans la rangée de filtres — même taille que les autres champs */
html body.espace .schedule-filters label.roster-nom{order:-1;flex:0 0 auto;min-width:0;font-weight:inherit}
html body.espace .schedule-filters label.roster-nom input{width:170px;min-width:0;box-sizing:border-box;font-size:inherit;padding:inherit;border-color:var(--bord2)}
/* ═══ TEST : Effectifs au style du module Transaction (Gestion DG's) — actif avec ?ui=tx (body.eff-tx) ═══
   en-têtes sombres et discrets, colonnes serrées et centrées, cotes colorées selon la valeur (80+ / 70+ / 60+), colonne triée en bleu,
   rangées paires plus sombres, nom figé à gauche ; filtres en petites pastilles. Les montants restent comme avant. */
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx){border-collapse:collapse!important;font-size:1.08rem!important;width:auto!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th{background:#080e1c!important;color:#3a5878!important;font-weight:700!important;letter-spacing:.3px!important;text-transform:uppercase!important;padding:4px 9px!important;text-align:left!important;font-size:.88rem!important;border-bottom:1px solid rgba(255,255,255,.06)!important;white-space:nowrap}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th:first-child{text-align:left!important;padding-left:8px!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th a{color:inherit!important;text-decoration:none;font-size:inherit!important;font-weight:inherit!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th.tx-tri,body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th.tx-tri a{color:#93c5fd!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td{padding:3px 9px!important;text-align:left!important;color:#6a8aaa!important;font-size:1.08rem!important;font-weight:400!important;background:transparent;white-space:nowrap}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr:nth-child(even) td{background:rgba(0,0,0,.22)!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr:hover td{background:rgba(59,130,246,.12)!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td:first-child{text-align:left!important;padding-left:8px!important;color:#c8daf0!important;font-weight:600!important;background:#0a1120!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr:nth-child(even) td:first-child{background:#070c18!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr:hover td:first-child{background:#132444!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td:first-child a{color:#c8daf0!important;font-size:1.14rem!important;font-weight:600!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td .team-identity{font-size:1.04rem}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-hi{color:#f1f5f9!important;font-weight:600!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-md{color:#e2e8f0!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-lo{color:#cbd5e1!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-dim{color:#94a3b8!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-mt{color:#475569!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.tx-pos{color:#94a3b8!important;letter-spacing:.2px}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th{background:#e9eef7!important;color:#52627f!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th.tx-tri,html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th.tx-tri a{color:#1d4ed8!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td{color:#475569!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr:nth-child(even) td{background:rgba(0,0,0,.04)!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td:first-child,html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td:first-child a{background:#fff!important;color:#1e293b!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr:nth-child(even) td:first-child{background:#f4f7fc!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-hi{color:#16a34a!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-md{color:#1d4ed8!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-lo{color:#b45309!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-dim{color:#475569!important}
/* filtres : petites pastilles et champs sombres, comme les filtres du module Transaction */
body.eff-tx .schedule-filters label{font-size:.9rem!important;color:#5a78a8!important;text-transform:uppercase;letter-spacing:.3px}
body.eff-tx .schedule-filters .choice-option{font-size:.92rem!important;line-height:1!important;padding:.34rem .75rem!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.12)!important;background:transparent!important;color:#7d8ea6!important;min-height:0!important;height:auto!important}
body.eff-tx .schedule-filters .choice-option:hover{color:#c8daf0!important}
body.eff-tx .schedule-filters .choice-option.selected{background:rgba(59,130,246,.18)!important;border-color:rgba(59,130,246,.45)!important;color:#93c5fd!important}
body.eff-tx .schedule-filters input[type=number],body.eff-tx .schedule-filters input[type=search],body.eff-tx .schedule-filters select{background:#0d1427!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:5px!important;color:#d6e4ff!important;font-size:1rem!important;padding:.32rem .65rem!important;height:auto!important;min-height:0!important}
body.eff-tx .schedule-filters input[type=number]{width:62px}
body.eff-tx .club-strip a.all,body.eff-tx .club-strip a:not(:has(img)){font-size:.95rem!important;padding:.34rem .75rem!important;height:auto!important}
.eff-tx-lien{font-size:.78rem;margin-left:12px}
/* TEST (suite) — mêmes police et tailles que le module Transaction (Source Sans 3 ; en-têtes et texte .7rem, cotes .65rem), colonnes serrées sur le contenu */
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx),body.eff-tx main .schedule-filters,body.eff-tx main .club-strip a,body.eff-tx main .choice-option{font-family:'Source Sans 3',system-ui,sans-serif!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx){table-layout:auto!important;width:max-content!important;min-width:0!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th{font-size:.88rem!important;padding:4px 9px!important;max-width:none!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td{font-size:1.08rem!important;padding:3px 9px!important;max-width:none!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-hi,body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-md,body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-lo,body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-dim,body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.sc-mt{font-size:1rem!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.tx-pos{font-size:1rem!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td:first-child a{font-size:1.14rem!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td img.player-link-portrait{width:26px!important;height:26px!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr{height:auto!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) .cf-row th{padding:1px 3px 3px!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) .cf-row input{min-width:0!important;width:100%!important;font-size:.58rem!important;padding:1px 2px!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) .cf-row input::placeholder{font-size:.56rem}
body.eff-tx main .schedule-scroll{padding:0!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th,body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td{min-width:0!important}
/* TEST : le cadre du tableau prend la largeur de son contenu (comme Transaction), pas toute la largeur de l'écran */
body.eff-tx main section.portal-panel.schedule-scroll{width:fit-content!important;max-width:100%!important}
/* TEST : colonnes de cotes aussi serrées que dans Transaction (≈ 26 px) */
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th{padding:3px 3px!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td{padding:2px 3px!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th:first-child,body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td:first-child{padding-left:8px!important;padding-right:8px!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) .cf-row th{padding:1px 1px 3px!important}
/* TEST : sélecteurs renforcés (battent les règles générales de tableaux) — colonnes de cotes serrées ; la case de recherche ne compte plus dans la largeur de colonne */
html body.eff-tx.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th{padding:3px 3px!important}
html body.eff-tx.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td{padding:2px 3px!important}
html body.eff-tx.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th:first-child,html body.eff-tx.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td:first-child{padding-left:8px!important;padding-right:8px!important}
html body.eff-tx.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) .cf-row th{padding:1px 1px 3px!important}
html body.eff-tx.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) .cf-row input{width:0!important;min-width:100%!important}

/* Style « Transaction » pour TOUS les tableaux de stats du portail (plus seulement ?ui=tx) : le corps de page porte la classe eff-tx.
   Exceptions : Classement (.clst-table), comparateurs (.compare-table), Finances (.fin-table, couleurs de santé), classe .no-tx. */
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody th{text-align:left!important;color:#c8daf0!important;font-weight:600!important;font-size:.72rem!important;padding:2px 8px!important;background:#0a1120!important;white-space:nowrap}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody th a{color:#c8daf0!important;font-weight:600!important;font-size:.72rem!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr:nth-child(even) th{background:#070c18!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.transaction-text,body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td.tx-gauche{text-align:left!important;white-space:normal!important}
html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody th,html[data-theme="clair"] body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody th a{background:#fff!important;color:#1e293b!important}
/* Mobile : un tableau filtrable ne garde qu'UNE case de recherche (le nom), plus large et facile à toucher — les autres colonnes se filtrent sur ordinateur */
@media (max-width:700px){
  html body.espace main table.cf-table .cf-row th:not(:first-child) input{display:none}
  html body.espace main table.cf-table .cf-row th:not(:first-child){padding:0!important}
  html body.espace main table.cf-table .cf-row th:first-child input{width:100%!important;min-width:100%!important;font-size:16px!important;padding:6px 8px!important;min-height:34px;border:1px solid var(--bord2)!important;border-radius:8px!important;background:var(--carte2)!important}
  html body.eff-tx.espace main table.schedule-table thead th{white-space:nowrap}
}
/* Répertoire (grand tableau) : largeurs fixées d'avance (colgroup) + table-layout:fixed → chargement et filtrage beaucoup plus rapides */
body.eff-tx main table.schedule-table.rt-fixed:not(.compare-table):not(.fin-table):not(.no-tx),html body.espace main table.schedule-table.rt-fixed{table-layout:fixed!important;width:var(--rt-w)!important;min-width:0!important;max-width:none!important}
main table.rt-fixed td,main table.rt-fixed th{overflow:hidden;text-overflow:ellipsis}
@media (max-width:700px){
  main table.rt-fixed{table-layout:auto!important;width:auto!important}
  main table.rt-fixed colgroup{display:none}
}
/* Gestion de l equipe - Joueurs statuts : tableau au style Effectifs (classe schedule-table) */
.player-status{width:fit-content;max-width:100%;overflow:visible;background:transparent;border:0;padding:0}
.player-status td a{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.player-status td a img.player-link-portrait,.player-status td a .player-link-badge{width:20px;height:20px;flex:none}
.player-status td input[type=checkbox]{width:14px;height:14px;margin:0;accent-color:#3b9dff;vertical-align:middle}
.player-status button{margin-top:10px}


/* Tous les tableaux alignés à gauche (sauf Classement, éditeur d'alignements, comparateurs) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table:not(.clst-table):not(.compare-table) :is(th,td){text-align:left!important}
.player-status td,.player-status th{text-align:left!important}

.status-help{display:grid;grid-template-columns:max-content 1fr;gap:2px 12px;font-size:.72rem;margin:.3rem 0 .6rem;max-width:880px}
.status-help dt{font-weight:700;color:#93c5fd}
.status-help dd{margin:0}
@media(max-width:700px){.status-help{grid-template-columns:1fr}.status-help dd{margin-bottom:4px}}

.line-saves-dialog{max-width:640px;width:calc(100% - 32px)}
.line-saves-dialog input[type=text]{width:100%;margin:.4rem 0}
.line-saves-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 0;border-top:1px solid rgba(255,255,255,.08)}
.line-saves-row strong{margin-right:2px}
.line-injury-bar button{margin:0 2px}

/* Fenêtre « Remplacer … ? » des trios */
.line-replace-dialog{max-width:560px;width:calc(100% - 32px);padding:18px 20px}
.line-replace-dialog h2{margin:0 0 8px;font-size:1.05rem}
.line-replace-dialog p{margin:0 0 12px;font-size:.85rem;line-height:1.35}
.line-replace-dialog select{display:block;width:100%;margin:0 0 14px;padding:.5rem .6rem;border-radius:6px;border:1px solid rgba(255,255,255,.18);background:#0d1427;color:#e6eefc;font-size:.85rem}
.line-replace-dialog>div{display:flex;gap:8px;justify-content:flex-end}
.line-replace-dialog button{padding:.5rem .9rem;border-radius:6px;border:1px solid rgba(255,255,255,.18);background:#16213a;color:#e6eefc;cursor:pointer;font-size:.85rem}
.line-replace-dialog button.line-waiver-confirm{background:#2563eb;border-color:#3b82f6;color:#fff;font-weight:600}
.line-replace-dialog button:hover{filter:brightness(1.15)}

/* ═══ Résumé de la ligue (resume.php) — tableau de bord à onglets ═══ */
main.rv2{max-width:none}
main.rv2 .rv-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 18px;margin:0 0 10px}
main.rv2 .rv-head h1{margin:0;font-size:1.35rem}
main.rv2 .rv-head h1 span{font-size:.75rem;font-weight:700;color:#93c5fd;border:1px solid rgba(147,197,253,.4);border-radius:999px;padding:1px 9px;vertical-align:middle;margin-left:6px}
main.rv2 .rv-chips{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto;font-size:.72rem}
main.rv2 .rv-chips>*{padding:3px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;text-decoration:none;color:inherit;opacity:.85}
main.rv2 .rv-chips a:hover{opacity:1;border-color:rgba(59,130,246,.6)}
/* bande des matchs */
main.rv2 .rv-ticker{display:flex;align-items:stretch;gap:6px;margin-bottom:12px;background:rgba(8,14,28,.55);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:6px}
main.rv2 .rv-scroll{display:flex;gap:6px;overflow-x:auto;scroll-behavior:smooth;flex:1;min-width:0;scrollbar-width:none;align-items:stretch}
main.rv2 .rv-scroll::-webkit-scrollbar{display:none}
main.rv2 .rv-arrow{flex:none;width:28px;border:0;border-radius:6px;background:rgba(255,255,255,.06);color:inherit;font-size:1.3rem;cursor:pointer}
main.rv2 .rv-arrow:hover{background:rgba(59,130,246,.25)}
main.rv2 .rv-sep{flex:none;writing-mode:vertical-rl;transform:rotate(180deg);font-size:.62rem;text-transform:uppercase;letter-spacing:1px;color:#5a78a8;text-align:center;padding:0 4px}
main.rv2 .rv-tk{flex:none;width:74px;display:flex;flex-direction:column;gap:2px;padding:5px 7px;border-radius:7px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);color:inherit;text-decoration:none;font-size:.8rem}
main.rv2 a.rv-tk:hover{border-color:rgba(59,130,246,.6);background:rgba(59,130,246,.1)}
main.rv2 .rv-tk .r{display:flex;align-items:center;justify-content:space-between;gap:4px;opacity:.7}
main.rv2 .rv-tk .r.win{opacity:1;font-weight:800}
main.rv2 .rv-tk .r img{width:22px;height:22px;object-fit:contain}
main.rv2 .rv-tk small{font-size:.6rem;text-align:center;opacity:.6;letter-spacing:.3px}
/* grille de cartes */
main.rv2 .rv-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.85fr);gap:12px;align-items:stretch;margin-bottom:12px}
main.rv2 .rv-stack{display:flex;flex-direction:column;gap:12px}
main.rv2 .rv-wide{grid-column:1/3}
main.rv2 .rv-card{background:rgba(10,17,32,.75);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;min-width:0}
main.rv2 .rv-card>header{display:flex;align-items:center;gap:8px;margin-bottom:8px}
main.rv2 .rv-card h2{margin:0;font-size:.95rem}
main.rv2 .rv-hint{margin-left:auto;font-size:.68rem;opacity:.6}
main.rv2 .rv-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-left:auto}
main.rv2 .rv-tabs.rv-sub{margin:0 0 8px}
main.rv2 .rv-tabs button{border:1px solid rgba(255,255,255,.12);background:transparent;color:inherit;border-radius:999px;padding:3px 11px;font-size:.7rem;cursor:pointer;opacity:.75}
main.rv2 .rv-tabs button:hover{opacity:1}
main.rv2 .rv-tabs button.on{background:rgba(59,130,246,.22);border-color:rgba(59,130,246,.55);color:#bfdbfe;opacity:1;font-weight:700}
main.rv2 .rv-body{flex:1 1 0;min-height:0;overflow:auto}
main.rv2 .rv-body[hidden],main.rv2 [data-p][hidden]{display:none}
main.rv2 h3{margin:.5rem 0 .25rem;font-size:.7rem;text-transform:uppercase;letter-spacing:.5px;color:#7fa6d8}
main.rv2 h3 small{text-transform:none;letter-spacing:0;opacity:.7;font-weight:400}
main.rv2 .rv-note{margin:0 0 6px;font-size:.68rem;opacity:.65}
main.rv2 .rv-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
main.rv2 .rv-two[hidden]{display:none}
/* tableaux condensés */
main.rv2 .rv-t{width:100%;border-collapse:collapse;font-size:.74rem}
main.rv2 .rv-t th,main.rv2 .rv-t td{text-align:left;padding:2px 4px;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.05)}
main.rv2 .rv-t thead th{font-size:.62rem;text-transform:uppercase;letter-spacing:.4px;color:#5a78a8;font-weight:700;padding-bottom:4px}
main.rv2 .rv-t tbody th{font-weight:600}
main.rv2 .rv-t td b{color:#e8f0fa}
main.rv2 .rv-t tr:hover td,main.rv2 .rv-t tr:hover th{background:rgba(59,130,246,.08)}
main.rv2 .rv-t tr.rv-line td,main.rv2 .rv-t tr.rv-line th{border-top:2px solid rgba(255,90,90,.6)}
main.rv2 .rv-t tr.rv-out{opacity:.8}
main.rv2 .rv-t .team-identity img{width:20px;height:20px}
/* listes */
main.rv2 .rv-list{list-style:none;margin:0;padding:0}
main.rv2 .rv-list li{display:flex;align-items:center;gap:8px;padding:4px 2px;border-bottom:1px solid rgba(255,255,255,.06);font-size:.78rem}
main.rv2 .rv-list li img{width:22px;height:22px;object-fit:contain;flex:none}
main.rv2 .rv-list li b{margin-left:auto;font-variant-numeric:tabular-nums}
main.rv2 .rv-list li small{opacity:.6;font-size:.66rem}
main.rv2 .rv-list li:hover{background:rgba(59,130,246,.07)}
main.rv2 .rv-list li a{color:inherit;font-weight:600;text-decoration:none}
main.rv2 .rv-list li a:hover{text-decoration:underline}
main.rv2 .rv-star{color:#facc15;min-width:3em;font-size:.72rem}
main.rv2 .rv-lines{list-style:none;margin:0 0 4px;padding:0}
main.rv2 .rv-lines li{font-size:.72rem;padding:2px 0;border-bottom:1px solid rgba(255,255,255,.05);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){main.rv2 .rv-grid{grid-template-columns:1fr}main.rv2 .rv-wide{grid-column:auto}main.rv2 .rv-two{grid-template-columns:1fr}main.rv2 .rv-chips{margin-left:0}}

/* trois colonnes de cartes à hauteur naturelle : aucune tuile à moitié vide */
main.rv2 .rv-cols{display:grid;grid-template-columns:minmax(0,1.55fr) repeat(3,minmax(0,1fr));gap:12px;align-items:start}
main.rv2 .rv-col{display:flex;flex-direction:column;gap:12px;min-width:0}
main.rv2 .rv-card{display:block}
main.rv2 .rv-body{overflow:visible;max-height:none}
main.rv2 .rv-rank{min-width:1.4em;text-align:center;font-weight:800;color:#93c5fd;font-size:.74rem}
main.rv2 .rv-delta{min-width:2.6em;text-align:right;font-size:.7rem;opacity:.6}
main.rv2 .rv-delta.up,main.rv2 .rv-up{color:#4ade80;opacity:1}
main.rv2 .rv-delta.down,main.rv2 .rv-down{color:#f87171;opacity:1}
main.rv2 .rv-list li span:not([class]){flex:1 1 auto;min-width:0}
@media(max-width:1500px){main.rv2 .rv-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){main.rv2 .rv-cols{grid-template-columns:1fr}}
main.rv2 .rv-card{overflow:visible}
main.rv2 .rv-t{table-layout:auto}
main.rv2 .rv-card .rv-body>div{overflow:visible}

/* ═══ Aucun espace vide dans les tuiles (demande de Yan, 17 oct. 2026) ═══
   Les tuiles épousent leur contenu : en largeur (pas de tuile de 355 px pour un tableau de 240 px) et en hauteur (pas de tuile étirée à la
   hauteur de sa voisine). Ne touche ni le Résumé (rv2) ni les éditeurs d'alignements. Vérifié par balayage de ~30 pages. */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .team-stat-grid,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .pr-split{display:flex!important;flex-wrap:wrap;gap:12px;align-items:flex-start;grid-template-columns:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .team-stat-grid>.portal-panel,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .pr-split>.portal-panel{width:fit-content!important;flex:0 0 auto;max-width:100%}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .team-stat-grid .compact-table{width:auto!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) :is(div,section):has(>.portal-panel){align-items:start}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .trade-history{align-items:start!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .club-dashboard>.portal-panel{height:auto!important;align-self:start!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.portal-home:not(.rv2)>.portal-panel{width:fit-content!important;max-width:100%}

/* Résumé : une ligne reste sur UNE ligne — la valeur ne passe jamais à la ligne, ce sont les noms qui raccourcissent (…) au besoin */
main.rv2 .rv-list li{flex-wrap:nowrap;white-space:nowrap}
main.rv2 .rv-list li>a,main.rv2 .rv-list li>span:not(.rv-star):not(.rv-rank):not(.rv-delta){min-width:0;overflow:hidden;text-overflow:ellipsis}
main.rv2 .rv-list li small{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
main.rv2 .rv-list li small .team-identity{min-width:0;max-width:100%;overflow:hidden}
main.rv2 .rv-list li small .tn-f{overflow:hidden;text-overflow:ellipsis}
main.rv2 .rv-list li b{flex:none;white-space:nowrap}
main.rv2 .rv-list li .team-identity{min-width:0}

/* Statistiques d'équipe (tuiles Bilan, À domicile, Unités spéciales…) : lignes CONDENSÉES comme les autres tableaux du site, au lieu de 52 px par ligne */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .team-stat-grid .compact-table:not(:has(img,.player-link-portrait)) tr{height:auto!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .team-stat-grid .compact-table:not(:has(img,.player-link-portrait)) th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .team-stat-grid .compact-table:not(:has(img,.player-link-portrait)) td{padding:3px 8px!important;font-size:.78rem!important;line-height:1.25;font-weight:600;white-space:nowrap;vertical-align:middle}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .team-stat-grid .compact-table:not(:has(img,.player-link-portrait)) td{font-weight:800;color:#e2e8f0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .team-stat-grid .compact-table:not(:has(img,.player-link-portrait)) th{color:#8fa8c8;font-weight:600}
html body.espace main:not(.rv2) .team-stat-grid>.portal-panel:not(:has(img,.player-link-portrait)){padding:8px 10px}

/* Espoirs : liste répartie en 3 colonnes (2 si plus étroit, 1 sur mobile) — la répartition est refaite par un petit script de espoirs.php */
html body.espace main:not(.rv2) .pr-split.multi{display:flex!important;flex-wrap:nowrap;gap:14px;align-items:flex-start}
html body.espace main:not(.rv2) .pr-split.multi>.portal-panel{flex:0 0 auto;width:fit-content!important;margin:0}
html body.espace .pr-split.multi th:nth-child(9),html body.espace .pr-split.multi td:nth-child(9){display:none}
html body.espace .pr-split.multi td:nth-child(5) .team-name,html body.espace .pr-split.multi td:nth-child(5) span{white-space:nowrap}
@media(max-width:1100px){html body.espace main:not(.rv2) .pr-split.multi{flex-direction:column}}
.vh-txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Espoirs : en-têtes sur deux lignes quand c'est plus court que le texte (ex. « Repêché / par » au-dessus d'un simple logo) */
html body.espace .pr-split.multi thead th{white-space:normal!important;line-height:1.1;vertical-align:bottom}
html body.espace .pr-split.multi thead th:nth-child(5){width:62px;max-width:62px;min-width:0}
html body.espace .pr-split.multi tbody td:nth-child(5){width:62px;text-align:left}
/* Espoirs : colonne « Repêché par » = un logo → on la resserre au minimum (le titre passe sur 2 lignes : « Repêché / par ») */
html body.espace .pr-split.multi thead th:nth-child(5){width:38px!important;max-width:60px!important;padding-left:3px!important;padding-right:3px!important;letter-spacing:.1px!important;font-size:.6rem!important;line-height:1.05}
html body.espace .pr-split.multi tbody td:nth-child(5){width:38px!important;padding-left:3px!important;padding-right:3px!important}
html body.espace .pr-split.multi .cf-row th:nth-child(5) input,html body.espace .pr-split.multi .cf-row td:nth-child(5) input{min-width:0!important;width:100%!important}
/* 1080p (v5) : Finances sur 3 rangées ; stats et Top 5 sous les cartes (plus de vide sous Cartes / Prochain rendez-vous) */
@media(min-width:1500px){
  html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-finance{grid-row:auto / span 3!important}
  html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-statrank,
  html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-top5{grid-column:1 / 3!important;align-self:stretch}
}
@media(min-width:1500px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-statrank,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-top5,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-activity{width:auto!important;max-width:none!important;justify-self:stretch}
}

/* Profondeur : 4 colonnes (Centres, Ailiers gauches, Ailiers droits, Défenseurs + Gardiens dessous) ; style des tableaux Effectif ; colonnes et lignes alignées d'une tuile à l'autre */
@media(min-width:1100px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid{display:grid!important;grid-template-columns:repeat(4,max-content)!important;gap:10px!important;align-items:start!important;justify-content:start}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.dp-C{grid-column:1;grid-row:1 / span 2}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.dp-LW{grid-column:2;grid-row:1 / span 2}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.dp-RW{grid-column:3;grid-row:1 / span 2}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.dp-D{grid-column:4;grid-row:1}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.dp-G{grid-column:4;grid-row:2}
}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.portal-panel{width:auto!important;padding:8px 10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid h2{margin:0 0 4px!important;font-size:.9rem}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid table{table-layout:fixed;width:300px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-c1{width:160px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-c2{width:36px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-c3{width:36px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-c4{width:48px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid tbody tr{height:28px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid tbody td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid thead th{vertical-align:middle!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-name{display:flex;align-items:center;gap:6px;min-width:0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-name a{display:inline-flex!important;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .player-link-portrait{width:22px!important;height:22px!important;margin:0!important;flex:0 0 auto}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-r{font-size:.62rem;opacity:.7;line-height:1;flex:0 0 auto}

/* Statistiques équipe : tuiles empilées en colonnes (aucun vide sous les tuiles courtes) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .stat-masonry{display:block!important;column-width:230px;column-gap:10px;max-width:1500px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .stat-masonry>.portal-panel{display:inline-block;width:100%!important;break-inside:avoid;margin:0 0 10px!important;box-sizing:border-box}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .stat-masonry .compact-table{width:100%!important}
@media(min-width:1400px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;justify-content:stretch}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.portal-panel{min-width:0!important;overflow:hidden}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid table,html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid table{width:100%!important;table-layout:fixed!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.dp-C,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.dp-LW,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.dp-RW{grid-row:1}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid>.dp-G{grid-column:5;grid-row:1}
}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid thead th{height:22px!important;padding-top:3px!important;padding-bottom:3px!important;line-height:1.1!important}

/* Calendrier d'équipe : barre d'outils compacte, panneau des colonnes discret */
html body.espace #schedule-columns:not([hidden]){display:inline-block;width:auto;padding:4px 10px;margin:0 0 8px}
html body.espace #schedule-columns summary{font-size:.78rem;font-weight:600;cursor:pointer}
html body.espace .cal-bar{align-items:center}


/* Calendrier d'équipe : vue « vrai calendrier » (une case par Day, 6 Day par rangée) */
.cal-grid{display:grid;grid-template-columns:48px repeat(6,minmax(118px,150px));gap:6px;align-items:stretch;justify-content:start;margin:6px 0}
.cal-grid .cg-w{align-self:center;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#5a6a8c}
.cal-grid .cg-d{display:grid;grid-template-rows:auto 1fr auto;gap:2px;padding:6px 8px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:rgba(20,27,55,.6);color:inherit;text-decoration:none;min-height:78px}
.cal-grid .cg-d.off{opacity:.45;background:transparent;border-style:dashed;min-height:78px}
.cal-grid .cg-n{font-size:.66rem;font-weight:700;text-transform:uppercase;color:#8fa8c8}
.cal-grid .cg-o{display:flex;align-items:center;gap:6px;min-width:0;font-size:.8rem}
.cal-grid .cg-o i{font-style:normal;font-size:.66rem;opacity:.65}
.cal-grid .cg-o b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-grid .cg-s{font-size:.82rem;white-space:nowrap}
.cal-grid .cg-s em{font-style:normal;font-size:.7rem;font-weight:700;margin-left:4px}
.cal-grid .cg-d.win{border-color:rgba(76,201,138,.55);background:rgba(76,201,138,.1)}.cal-grid .cg-d.win .cg-s em{color:#4cc98a}
.cal-grid .cg-d.loss{border-color:rgba(255,107,98,.5);background:rgba(255,107,98,.08)}.cal-grid .cg-d.loss .cg-s em{color:#ff6b62}
.cal-grid .cg-d.otl{border-color:rgba(240,181,60,.55);background:rgba(240,181,60,.08)}.cal-grid .cg-d.otl .cg-s em{color:#f0b53c}
.cal-grid .cg-d.pending .cg-s em{color:#8fa8c8}
.cal-grid a.cg-d:hover{border-color:#93c5fd}
@media(max-width:900px){.cal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cal-grid .cg-w{grid-column:1/-1}}

/* Calendrier de la ligue : grille équipes × Days (6 Day par semaine) */
.lg-wrap{margin:6px 0}
.lg-grid{border-collapse:separate;border-spacing:3px;width:auto}
.lg-grid thead th{font-size:.68rem;font-weight:700;text-transform:uppercase;color:#5a6a8c;text-align:left;padding:2px 6px;white-space:nowrap}
.lg-grid .lg-team{padding:0 6px 0 2px;text-align:left}
.lg-grid .lg-team a{display:inline-flex;align-items:center}
.lg-grid .lg-c{width:112px;height:30px;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:rgba(20,27,55,.5)}
.lg-grid .lg-c.off{border-style:dashed;background:transparent;opacity:.4}
.lg-grid .lg-c>a,.lg-grid .lg-c>span{display:flex;align-items:center;gap:6px;height:100%;padding:0 8px;color:inherit;text-decoration:none;white-space:nowrap}
.lg-grid .lg-c i{font-style:normal;font-size:.62rem;opacity:.65;width:16px}
.lg-grid .lg-c b{font-size:.78rem;font-weight:700}
.lg-grid .lg-c.win{border-color:rgba(76,201,138,.55);background:rgba(76,201,138,.12)}
.lg-grid .lg-c.loss{border-color:rgba(255,107,98,.5);background:rgba(255,107,98,.1)}
.lg-grid .lg-c.otl{border-color:rgba(240,181,60,.55);background:rgba(240,181,60,.1)}
.lg-grid .lg-c a:hover{background:rgba(59,130,246,.15);border-radius:6px}

/* Match : bandeau de score, pointage par période, sommaire en deux colonnes */
.gm-hero{display:flex;align-items:center;justify-content:flex-start;gap:14px;margin:6px 0 10px;flex-wrap:wrap}
.gm-hero .gm-team{display:flex;align-items:center;gap:12px;padding:10px 16px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(20,27,55,.6);color:inherit;text-decoration:none;min-width:330px}
.gm-hero .gm-team img{width:72px;height:72px;object-fit:contain}
.gm-hero .gm-team span{display:flex;flex-direction:column;min-width:0;flex:1}
.gm-hero .gm-team small{font-size:.62rem;text-transform:uppercase;letter-spacing:.5px;color:#8fa8c8}
.gm-hero .gm-team b{font-size:1.15rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gm-hero .gm-team strong{font-size:2.6rem;line-height:1;margin-left:auto;opacity:.65}
.gm-hero .gm-team.win{border-color:rgba(76,201,138,.6);background:rgba(76,201,138,.08)}
.gm-hero .gm-team.win strong{opacity:1;color:#4cc98a}
.gm-hero .gm-mid{display:flex;flex-direction:column;align-items:center;gap:4px}
.gm-hero .gm-tag{font-size:.74rem;font-weight:800;letter-spacing:.6px;text-transform:uppercase;padding:3px 12px;border-radius:12px;background:rgba(147,197,253,.15);color:#93c5fd}
.gm-hero .gm-mid small{font-size:.7rem;color:#8fa8c8;white-space:nowrap}
html body.espace main.game-report .game-revenu{display:inline-block;width:auto;padding:8px 12px;margin:0 0 10px}
html body.espace main.game-report .game-avant{padding:8px 12px;margin:0 0 10px;width:fit-content;max-width:100%}
.gm-sum{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;align-items:start}
.gm-per{border-collapse:collapse;width:100%}
.gm-per th,.gm-per td{padding:6px 10px;vertical-align:top;text-align:left;font-size:.8rem;border-bottom:1px solid rgba(255,255,255,.06)}
.gm-per thead th{font-size:.68rem;text-transform:uppercase;letter-spacing:.4px;color:#5a6a8c;background:#080e1c}
.gm-per .gm-pl{width:96px;font-size:.72rem;color:#93c5fd;white-space:nowrap}
.gm-per .gm-ev{white-space:nowrap;padding:2px 0;display:flex;align-items:center;gap:4px}
.gm-per .gm-ev img,.gm-tile .gm-ev img{width:20px;height:20px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:2px}
.gm-none{color:#475569}
.gm-side{display:flex;flex-direction:column;gap:10px}
.gm-tile{border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:8px 12px;background:rgba(20,27,55,.5)}
.gm-tile h3,.gm-tile summary{margin:0 0 4px;font-size:.7rem;text-transform:uppercase;letter-spacing:.5px;color:#8fa8c8;cursor:default}
.gm-tile summary{cursor:pointer}
.gm-tile .gm-ev{font-size:.8rem;padding:2px 0;white-space:nowrap;display:flex;align-items:center;gap:4px}
@media(max-width:1100px){.gm-sum{grid-template-columns:1fr}.gm-hero .gm-team{min-width:0;flex:1 1 280px}}
.gm-line{border-collapse:collapse;width:auto}
.gm-line th,.gm-line td{padding:3px 9px;font-size:.8rem;text-align:left;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.06)}
.gm-line thead th{font-size:.68rem;text-transform:uppercase;letter-spacing:.4px;color:#5a6a8c;background:#080e1c;text-align:center}
.gm-line thead tr:nth-child(2) th{color:#8fa8c8}
.gm-line tbody td:not(.gm-tm){text-align:center;min-width:30px}
.gm-line .gm-gap{width:22px;border:0;background:transparent}
.gm-line .gm-tm .team-identity{display:inline-flex;align-items:center;gap:6px}
html body.espace main.game-report .gm-line{width:auto!important}
html body.espace main.game-report .gm-line td,html body.espace main.game-report .gm-line th{width:auto}

/* Match (ajustements) : tout condensé, aucun défilement, largeur = contenu */
html body.espace main.game-report .game-avant,html body.espace main.game-report .game-pane{width:fit-content!important;max-width:100%;overflow:visible!important}
html body.espace main.game-report .game-avant .schedule-scroll,html body.espace main.game-report .game-pane .schedule-scroll{overflow:visible!important;width:auto!important}
html body.espace main.game-report .game-tabs{overflow:visible!important;flex-wrap:wrap}
html body.espace main.game-report .gm-line{width:max-content!important;table-layout:auto!important}
html body.espace main.game-report .gm-line th,html body.espace main.game-report .gm-line td{width:auto!important;padding:2px 8px}
html body.espace main.game-report .gm-line .gm-tm{min-width:210px;text-align:left}
html body.espace main.game-report .gm-line tbody td:not(.gm-tm),html body.espace main.game-report .gm-line thead th{min-width:30px;text-align:center}
html body.espace main.game-report .gm-line .gm-gap{min-width:14px!important;width:14px!important;padding:0}
html body.espace main.game-report .gm-sum{grid-template-columns:max-content 330px!important;justify-content:start;gap:10px}
html body.espace main.game-report .gm-per{width:auto!important}
html body.espace main.game-report .gm-per th,html body.espace main.game-report .gm-per td{padding:3px 10px;font-size:.78rem}
html body.espace main.game-report .gm-per .gm-ev{padding:1px 0}
html body.espace main.game-report .gm-per .gm-ev img,html body.espace main.game-report .gm-tile .gm-ev img{width:18px;height:18px}
html body.espace main.game-report .gm-tile{padding:6px 10px}
html body.espace main.game-report .gm-tile .gm-ev{white-space:normal;align-items:flex-start;padding:1px 0;line-height:1.3}
html body.espace main.game-report .gm-side{gap:8px}
@media(max-width:1100px){html body.espace main.game-report .gm-sum{grid-template-columns:1fr!important}}

/* Match : sous le tableau des périodes, tuiles Gardiens / 3 étoiles / Officiels en rangée (pas de colonne à droite, donc pas de vide) */
html body.espace main.game-report .gm-sum{grid-template-columns:max-content!important}
html body.espace main.game-report .gm-side{flex-direction:row!important;flex-wrap:wrap;align-items:flex-start;gap:10px}
html body.espace main.game-report .gm-tile{width:auto}
html body.espace main.game-report .gm-tile .gm-ev.gm-nw{white-space:nowrap}
html body.espace main.game-report .gm-tile .gm-ev{white-space:nowrap}
/* Match : finances en haut à droite */
html body.espace main.game-report .gm-top{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;margin:0 0 10px}
html body.espace main.game-report .gm-topl{display:flex;flex-direction:column;gap:10px}
html body.espace main.game-report .gm-topl>*{margin:0!important}
html body.espace main.game-report .gm-fin-tile .gm-ev{white-space:nowrap}

/* Match : onglets Statistiques, Alignements, Jeu par jeu */
html body.espace main.game-report .game-pane table:not(.gm-per){border-collapse:collapse;width:auto!important;margin:0 0 8px}
html body.espace main.game-report .game-pane table:not(.gm-per) th{background:#080e1c;color:#5a6a8c;font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.3px;text-align:left!important;padding:3px 8px;white-space:nowrap}
html body.espace main.game-report .game-pane table:not(.gm-per) td{padding:2px 8px;font-size:.78rem;text-align:left!important;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.05)}
html body.espace main.game-report .game-pane table:not(.gm-per) tbody tr:nth-child(even) td{background:rgba(0,0,0,.18)}
html body.espace main.game-report .game-pane table:not(.gm-per) td img.player-link-portrait,html body.espace main.game-report .game-pane table:not(.gm-per) td img{width:18px;height:18px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:4px}
html body.espace main.game-report .game-pane h2{font-size:.9rem;margin:0 0 6px}
html body.espace main.game-report .game-pane h3{font-size:.8rem;margin:6px 0 4px;color:#93c5fd}
.st-teams,.al-teams{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;margin-top:8px}
.st-team>:first-child,.al-team>h3{font-size:.85rem;font-weight:700;margin:0 0 4px}
.pb-periods{display:flex;gap:14px;align-items:flex-start}
.pb-per{flex:1 1 0;min-width:0}
.pb-per h3{margin:0 0 6px;font-size:.8rem;text-transform:uppercase;letter-spacing:.4px}
.pb-l{display:flex;gap:8px;align-items:baseline;padding:1px 6px;font-size:.76rem;line-height:1.35;border-bottom:1px solid rgba(255,255,255,.04)}
.pb-t{flex:0 0 38px;font-size:.68rem;color:#5a6a8c;font-weight:700;font-variant-numeric:tabular-nums}
.pb-b{min-width:0}
.pb-b img{width:16px;height:16px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:3px}
.pb-l.goal{background:rgba(76,201,138,.12);border-left:3px solid #4cc98a}
.pb-l.pen{background:rgba(240,181,60,.08);border-left:3px solid #f0b53c}
@media(max-width:1100px){.pb-periods{flex-direction:column}}
/* Code de couleur (Moyennes des effectifs) : 5 paliers vert, jaune, ambre, orange, rouge ; thèmes sombre et clair ; passe devant les lignes alternées */
html body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-1.rk-1{background:hsla(140,62%,42%,.24)!important;color:hsl(140,75%,74%)!important}
html[data-theme="clair"] body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-1.rk-1{background:hsla(140,62%,42%,.34)!important;color:hsl(140,85%,20%)!important}
html body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-2.rk-2{background:hsla(58,72%,46%,.24)!important;color:hsl(58,75%,74%)!important}
html[data-theme="clair"] body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-2.rk-2{background:hsla(58,72%,46%,.34)!important;color:hsl(58,85%,20%)!important}
html body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-3.rk-3{background:hsla(40,88%,50%,.24)!important;color:hsl(40,75%,74%)!important}
html[data-theme="clair"] body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-3.rk-3{background:hsla(40,88%,50%,.34)!important;color:hsl(40,85%,20%)!important}
html body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-4.rk-4{background:hsla(24,85%,52%,.24)!important;color:hsl(24,75%,74%)!important}
html[data-theme="clair"] body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-4.rk-4{background:hsla(24,85%,52%,.34)!important;color:hsl(24,85%,20%)!important}
html body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-5.rk-5{background:hsla(2,75%,54%,.24)!important;color:hsl(2,75%,74%)!important}
html[data-theme="clair"] body.espace main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td.rk-c.rk-5.rk-5{background:hsla(2,75%,54%,.34)!important;color:hsl(2,85%,20%)!important}
b.rk-c{display:inline-block;padding:1px 8px;border-radius:5px;font-weight:600}
html body.espace b.rk-c.rk-1{background:hsla(140,62%,42%,.24);color:hsl(140,75%,74%)}
html[data-theme="clair"] body.espace b.rk-c.rk-1{background:hsla(140,62%,42%,.34);color:hsl(140,85%,20%)}
html body.espace b.rk-c.rk-2{background:hsla(58,72%,46%,.24);color:hsl(58,75%,74%)}
html[data-theme="clair"] body.espace b.rk-c.rk-2{background:hsla(58,72%,46%,.34);color:hsl(58,85%,20%)}
html body.espace b.rk-c.rk-3{background:hsla(40,88%,50%,.24);color:hsl(40,75%,74%)}
html[data-theme="clair"] body.espace b.rk-c.rk-3{background:hsla(40,88%,50%,.34);color:hsl(40,85%,20%)}
html body.espace b.rk-c.rk-4{background:hsla(24,85%,52%,.24);color:hsl(24,75%,74%)}
html[data-theme="clair"] body.espace b.rk-c.rk-4{background:hsla(24,85%,52%,.34);color:hsl(24,85%,20%)}
html body.espace b.rk-c.rk-5{background:hsla(2,75%,54%,.24);color:hsl(2,75%,74%)}
html[data-theme="clair"] body.espace b.rk-c.rk-5{background:hsla(2,75%,54%,.34);color:hsl(2,85%,20%)}

/* Fiche entraîneur : condensée, tuiles côte à côte à largeur du contenu, sans espace vide ; popup depuis la liste */
html body.espace .coach-top{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;margin:0 0 10px}
html body.espace .coach-top>.portal-panel,html body.espace .coach-hist{width:fit-content!important;max-width:100%;padding:8px 12px;margin:0 0 10px}
html body.espace .coach-top>.portal-panel{margin:0}
html body.espace .coach-top h2,html body.espace .coach-hist h2{margin:0 0 4px;font-size:.9rem}
html body.espace .coach-top .compact-table th,html body.espace .coach-top .compact-table td,html body.espace .coach-hist .compact-table th,html body.espace .coach-hist .compact-table td{padding:2px 8px;font-size:.78rem;line-height:1.25;text-align:left;white-space:nowrap}
html body.espace .coach-top .compact-table th{color:#8fa8c8;font-weight:600}
html body.espace .coach-who{margin:0 0 6px}
html body.espace .coach-who .coach-identity img{width:44px!important;height:52px!important}
html body.espace .coach-ratings{display:grid;grid-template-columns:repeat(7,40px);gap:4px}
html body.espace .coach-ratings span{display:flex;flex-direction:column;align-items:center;padding:3px 0;border:1px solid rgba(255,255,255,.1);border-radius:7px;background:rgba(255,255,255,.03)}
html body.espace .coach-ratings small{font-size:.6rem;color:#8fa8c8;font-weight:700}
html body.espace .coach-ratings b{font-size:.9rem;line-height:1.1}
.coach-name-link{color:inherit;text-decoration:none;font-weight:700}.coach-name-link:hover{text-decoration:underline}
.coach-modal-bg{position:fixed;inset:0;background:rgba(3,7,18,.72);z-index:9000;display:flex;align-items:flex-start;justify-content:center;padding:4vh 12px;overflow:auto}
.coach-modal{position:relative;background:#0f172a;border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:12px 14px;width:fit-content;max-width:min(1100px,100%)}
.coach-modal-x{position:absolute;top:6px;right:8px;border:0;background:transparent;color:inherit;font-size:1.4rem;line-height:1;cursor:pointer}
.coach-modal-title{margin:0 28px 8px 0;font-size:1.1rem}
.coach-modal .coach-hist{max-height:none}
html[data-theme="clair"] .coach-modal{background:#fff}

html body.espace .coach-top>.portal-panel{height:auto!important;align-self:flex-start!important;min-height:0!important}
html body.espace .coach-col{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
html body.espace .coach-col>.portal-panel{width:fit-content!important;margin:0}
html body.espace .coach-hist{display:inline-block;vertical-align:top;margin-right:10px}
html body.espace .coach-hist .compact-table{width:auto!important}
html body.espace .coach-hist .compact-table th,html body.espace .coach-hist .compact-table td{padding:2px 10px!important;font-size:.78rem!important;text-align:left!important}
html body.espace .coach-hist .compact-table tfoot th,html body.espace .coach-hist .compact-table tfoot td{font-weight:700}

/* Fiche entraîneur : police plus petite dans les tableaux d'historique */
html body.espace.eff-tx .coach-hist table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td,html body.espace.eff-tx .coach-hist table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td:first-child,html body.espace.eff-tx .coach-hist table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody td:first-child a,html body.espace.eff-tx .coach-hist table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tfoot th,html body.espace.eff-tx .coach-hist table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tfoot td{font-size:.68rem!important;padding:1px 8px!important;line-height:1.2}
html body.espace.eff-tx .coach-hist table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th{font-size:.58rem!important;padding:2px 8px!important}
html body.espace .coach-hist h2{font-size:.82rem}
html body.espace .coach-top .compact-table th,html body.espace .coach-top .compact-table td{font-size:.72rem}
html body.espace .coach-hist .team-identity img{width:16px;height:16px}


/* Fiche entraîneur : tout à la largeur du contenu et en un seul flux (aucun vide) */
html body.espace.eff-tx .coach-hist table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx){width:max-content!important;max-width:none!important}
html body.espace.eff-tx .coach-hist.portal-panel{width:max-content!important;display:block;margin:0!important}
html body.espace .coach-modal-body,html body.espace main.coach-page{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
html body.espace .coach-modal-body>.coach-modal-title,html body.espace .coach-modal-body>p,html body.espace main.coach-page>.portal-heading{flex:0 0 100%;margin-bottom:0}
html body.espace .coach-modal-body .coach-top,html body.espace main.coach-page .coach-top{display:contents}
html body.espace .coach-modal-body .coach-top>.portal-panel,html body.espace main.coach-page .coach-top>.portal-panel{margin:0}
.coach-modal{max-width:min(1500px,100%)}


/* Fiche entraîneur : colonne de gauche (identité, cotes, carrière, saison) et colonne de droite (historique puis séries, l'un sous l'autre) */
html body.espace .coach-modal-body .coach-top,html body.espace main.coach-page .coach-top{display:flex!important;flex-direction:column;gap:10px;align-items:flex-start}
html body.espace .coach-stats{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
html body.espace .coach-stats>.coach-hist{display:block!important;margin:0!important}
html body.espace .coach-modal-body .coach-col,html body.espace main.coach-page .coach-col{flex-direction:column}

/* Fiche entraîneur (retour demandé) : rangée du haut (identité, cotes + carrière, saison en cours) puis, en dessous, historique et séries l'un sous l'autre */
html body.espace .coach-modal-body,html body.espace main.coach-page{display:block!important}
html body.espace .coach-modal-body .coach-top,html body.espace main.coach-page .coach-top{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:10px;align-items:flex-start;margin:0 0 10px}
html body.espace .coach-modal-body .coach-stats,html body.espace main.coach-page .coach-stats{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
html body.espace .coach-modal-body>.coach-modal-title{margin:0 28px 8px 0}
html body.espace .coach-modal-body>p{margin:10px 0 0}

html body.espace .coach-row{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:flex-start}
html body.espace .coach-row>.portal-panel{margin:0;width:fit-content!important}

/* Pages Histoire (trophées, records, carrière, repêchages) : condensées, largeur = contenu */
html body.espace .hist-panel{width:fit-content!important;max-width:100%;padding:8px 12px}
html body.espace .hist-panel .compact-table{width:max-content!important}
html body.espace .hist-panel td,html body.espace .hist-panel th{padding:2px 10px!important;font-size:.76rem!important;white-space:nowrap;text-align:left!important}
.hist-ph{width:18px;height:18px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:5px}
html body.espace .hist-group{margin:12px 0 6px;font-size:.9rem;color:#93c5fd}
html body.espace .rec-tiles{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;margin:0 0 6px}
html body.espace .rec-tile{width:fit-content!important;padding:8px 12px;margin:0}
html body.espace .rec-tile h3{margin:0 0 4px;font-size:.78rem;text-transform:uppercase;letter-spacing:.3px;color:#8fa8c8}
html body.espace .rec-tile .compact-table{width:max-content!important}
html body.espace .rec-tile td{padding:2px 8px!important;font-size:.76rem!important;white-space:nowrap;text-align:left!important}
html body.espace .tx-links{display:inline-flex;gap:14px;align-items:center;flex-wrap:wrap}
html body.espace .tx-trade{font-weight:700}

/* Statistiques équipe : utilise toute la largeur (colonnes de tuiles), plus de grand vide à droite */
@media(min-width:1500px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .stat-masonry{column-width:auto!important;column-count:6!important;width:100%!important;max-width:none!important}
}
@media(min-width:1100px) and (max-width:1499px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .stat-masonry{column-width:auto!important;column-count:4!important;width:100%!important;max-width:none!important}
}


/* Statistiques équipe : tuiles réparties en 6 colonnes équilibrées */
html body.espace .team-stat-grid.stat-cols{display:flex!important;flex-wrap:wrap;gap:10px;align-items:flex-start;column-count:auto!important;width:100%!important;max-width:none!important}
html body.espace .stat-col{display:flex;flex-direction:column;gap:10px;flex:0 1 auto}
html body.espace .stat-col>.portal-panel{width:100%!important;margin:0!important;display:block!important;box-sizing:border-box}


/* Statistiques équipe : une colonne par tuile, toute la largeur de la page */
html body.espace .stat-col{flex:1 1 auto}
html body.espace .stat-col>.portal-panel{padding:8px 10px}
html body.espace .stat-col h2{font-size:.95rem;margin:0 0 4px}

/* Statistiques équipe : tuiles à la largeur de leur contenu, 8 colonnes sur une seule rangée */
html body.espace .team-stat-grid.stat-cols{display:flex!important;flex-wrap:wrap;gap:10px;align-items:flex-start;column-count:auto!important;width:100%!important;max-width:none!important}
html body.espace .stat-col{display:flex;flex-direction:column;gap:10px;flex:0 0 auto}
html body.espace .stat-col>.portal-panel{width:fit-content!important;min-width:0!important;margin:0!important;display:block!important;padding:6px 8px;box-sizing:border-box}
html body.espace .stat-col h2{font-size:.9rem;margin:0 0 3px;white-space:nowrap}
html body.espace .stat-col .compact-table{width:auto!important}
html body.espace .stat-col .compact-table th,html body.espace .stat-col .compact-table td{padding:2px 6px!important;min-width:0!important;width:auto!important;white-space:nowrap;font-size:.74rem!important;line-height:1.2}
html body.espace .stat-col .compact-table th{max-width:none!important;overflow:visible!important}

/* Statistiques équipe : une rangée par rubrique, chaque statistique en pastille (utilise toute la largeur, aucun vide) */
html body.espace .stat-rows{display:flex;flex-direction:column;gap:8px}
html body.espace .stat-rows>.stat-line{display:flex;align-items:flex-start;gap:12px;width:100%!important;margin:0!important;padding:7px 10px;box-sizing:border-box}
html body.espace .stat-line h2{flex:0 0 150px;margin:3px 0 0;font-size:.85rem;color:#93c5fd}
html body.espace .stat-chips{display:flex;flex-wrap:wrap;gap:5px;flex:1 1 auto}
html body.espace .stat-chips span{display:inline-flex;flex-direction:column;padding:3px 9px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.03);min-width:0}
html body.espace .stat-chips small{font-size:.62rem;color:#8fa8c8;white-space:nowrap;line-height:1.2}
html body.espace .stat-chips b{font-size:.86rem;line-height:1.2;white-space:nowrap}
@media(max-width:800px){html body.espace .stat-rows>.stat-line{flex-direction:column;gap:4px}html body.espace .stat-line h2{flex:none}}

/* Statistiques équipe : fiche en 4 colonnes équilibrées, sans cadres, lignes pleine largeur de colonne */
html body.espace .stat-sheet{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 28px;align-items:start;padding:6px 4px}
html body.espace .stat-scol{display:flex;flex-direction:column;gap:14px;min-width:0}
html body.espace .stat-sec h2{margin:0 0 3px;padding:0 0 3px;font-size:.82rem;text-transform:uppercase;letter-spacing:.5px;color:#93c5fd;border-bottom:1px solid rgba(147,197,253,.35)}
html body.espace .stat-sec table{width:100%!important;border-collapse:collapse}
html body.espace .stat-sec th,html body.espace .stat-sec td{padding:2px 4px!important;font-size:.76rem!important;line-height:1.25;text-align:left!important;border-bottom:1px solid rgba(255,255,255,.05);white-space:nowrap}
html body.espace .stat-sec th{font-weight:400;color:#c8daf0;width:auto}
html body.espace .stat-sec td{font-weight:700;width:76px}
html body.espace .stat-sec tr:hover th,html body.espace .stat-sec tr:hover td{background:rgba(59,130,246,.1)}
html[data-theme="clair"] body.espace .stat-sec th{color:#334155}
@media(max-width:1300px){html body.espace .stat-sheet{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){html body.espace .stat-sheet{grid-template-columns:1fr}}

/* Statistiques équipe : 6 colonnes (moins de zone morte à droite des valeurs) */
html body.espace .stat-sheet{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0 22px!important}
html body.espace .stat-sec td{width:64px!important}
@media(max-width:1500px){html body.espace .stat-sheet{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:1000px){html body.espace .stat-sheet{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){html body.espace .stat-sheet{grid-template-columns:1fr!important}}

/* Statistiques équipe : une colonne par rubrique, largeur = contenu, répartie sur toute la page (zone morte supprimée) */
html body.espace .stat-sheet{grid-template-columns:repeat(8,minmax(max-content,1fr))!important;gap:0 18px!important}
html body.espace .stat-sec td{width:52px!important}
@media(max-width:1750px){html body.espace .stat-sheet{grid-template-columns:repeat(4,minmax(max-content,1fr))!important;row-gap:14px!important}}
@media(max-width:1000px){html body.espace .stat-sheet{grid-template-columns:repeat(2,minmax(max-content,1fr))!important}}
@media(max-width:600px){html body.espace .stat-sheet{grid-template-columns:1fr!important}}

/* Statistiques équipe : tableau Total / Domicile / Visiteur */
html body.espace .stat-multi thead th{font-size:.62rem!important;text-transform:uppercase;letter-spacing:.3px;color:#5a6a8c!important;font-weight:700!important;padding:2px 4px!important}
html body.espace .stat-multi td{width:60px!important}
html body.espace .stat-sheet{grid-template-columns:repeat(7,minmax(max-content,1fr))!important}
@media(max-width:1750px){html body.espace .stat-sheet{grid-template-columns:repeat(4,minmax(max-content,1fr))!important}}

/* Statistiques des équipes : en-têtes abrégés et mini-légende discrète */
html body.espace .stat-legend{display:flex;flex-wrap:wrap;gap:2px 12px;margin:2px 0 8px;font-size:.66rem;color:#6f86a6}
html body.espace .stat-legend b{color:#93c5fd;font-weight:700;margin-right:2px}
html body.espace main table.schedule-table thead th a{white-space:nowrap}

/* Statistiques équipe en tableaux condensés (comme STHS) */
html body.espace .stat-tables{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
html body.espace .stat-tbl{width:fit-content!important;max-width:100%;padding:6px 10px;margin:0!important}
html body.espace .stat-tbl h2{margin:0 0 3px;font-size:.78rem;text-transform:uppercase;letter-spacing:.4px;color:#93c5fd}
html body.espace .stat-tbl table{width:max-content!important;border-collapse:collapse}
html body.espace .stat-tbl th,html body.espace .stat-tbl td{padding:2px 9px!important;font-size:.76rem!important;line-height:1.25;text-align:left!important;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.05)}
html body.espace .stat-tbl thead th{font-size:.62rem!important;text-transform:uppercase;letter-spacing:.3px;color:#5a6a8c!important;font-weight:700!important;background:#080e1c;cursor:help}
html body.espace .stat-tbl tbody th{font-weight:600;color:#c8daf0}
html body.espace .stat-tbl td{font-weight:700}
html body.espace .stat-tbl tbody tr:hover td,html body.espace .stat-tbl tbody tr:hover th{background:rgba(59,130,246,.1)}
html[data-theme="clair"] body.espace .stat-tbl thead th{background:#e9eef7;color:#52627f!important}

/* Statistiques équipe (tableaux) : règles avec la garde globale pour passer devant les styles génériques de tableaux/panneaux */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-tables{display:flex!important;flex-wrap:wrap;gap:10px;align-items:flex-start}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-tables>.stat-tbl{width:fit-content!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important;padding:6px 10px!important;margin:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-tbl table{width:max-content!important;max-width:none!important;table-layout:auto!important;border-collapse:collapse}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-tbl th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-tbl td{width:auto!important;min-width:0!important;max-width:none!important;padding:2px 8px!important;font-size:.74rem!important;line-height:1.2;text-align:left!important;white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-tbl thead th{font-size:.6rem!important;padding:2px 8px!important}


/* Statistiques équipe : tableau « Contre chaque adversaire » (comme STHS, condensé, groupes colorés) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-vs{width:fit-content!important;max-width:100%!important;margin:0 0 10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-vs h2 small{font-size:.62rem;color:#6f86a6;text-transform:none;letter-spacing:0;font-weight:400}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table{width:max-content!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table td{padding:1px 5px!important;font-size:.72rem!important;line-height:1.2;text-align:left!important;white-space:nowrap;min-width:0!important;width:auto!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table td{min-width:20px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table thead th{font-size:.6rem!important;text-transform:uppercase;letter-spacing:.3px;font-weight:700!important;cursor:pointer;background:#080e1c;color:#5a6a8c!important;border-bottom:1px solid rgba(255,255,255,.06)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table thead th.g-t{background:rgba(59,130,246,.22);color:#93c5fd!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table thead th.g-h{background:rgba(76,201,138,.2);color:#6ee7b7!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table thead th.g-v{background:rgba(240,181,60,.2);color:#fbbf24!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table td.g-t{background:rgba(59,130,246,.05)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table td.g-h{background:rgba(76,201,138,.05)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table td.g-v{background:rgba(240,181,60,.05)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table tbody tr:nth-child(even) td{background-blend-mode:multiply;filter:brightness(.92)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table td.pos{color:#4cc98a;font-weight:700}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table td.neg{color:#ff6b62;font-weight:700}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table .vs-p{font-weight:700}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table th.vs-n{font-weight:600;color:#c8daf0;background:transparent}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table th.vs-n .team-identity{gap:6px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table tbody tr:hover td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table tbody tr:hover th{background:rgba(59,130,246,.14)!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table tfoot th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table tfoot td{font-weight:700;border-top:1px solid rgba(255,255,255,.12)}
html[data-theme="clair"] body.espace .vs-table thead th{background:#e9eef7;color:#52627f!important}
html[data-theme="clair"] body.espace .vs-table td.pos{color:#16794a}
html[data-theme="clair"] body.espace .vs-table td.neg{color:#c0261c}


html body.espace .stat-tabs{margin:0 0 8px}
html body.espace .stat-tbl[hidden]{display:none!important}

/* Statistiques équipe : résumé en bandeau, puis tableau adversaires à gauche et tuiles à droite */
html body.espace .stat-kpi{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
html body.espace .stat-kpi span{display:inline-flex;flex-direction:column;padding:3px 12px;border:1px solid rgba(147,197,253,.3);border-radius:8px;background:rgba(59,130,246,.1);min-width:0}
html body.espace .stat-kpi small{font-size:.6rem;text-transform:uppercase;letter-spacing:.3px;color:#8fa8c8;white-space:nowrap}
html body.espace .stat-kpi b{font-size:.95rem;line-height:1.15;white-space:nowrap}
html body.espace .stat-main{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}
html body.espace .stat-main>.stat-vs{flex:0 0 auto}
html body.espace .stat-main>.stat-tables{flex:1 1 560px;min-width:0}
html body.espace .stat-main>.stat-tables>.stat-legend{flex:0 0 100%;margin:0 0 2px}
html[data-theme="clair"] body.espace .stat-kpi span{background:rgba(59,130,246,.08)}

/* Résumé discret (texte en ligne, sans pastilles) et légende en bas de page */
html body.espace .stat-kpi{display:flex;flex-wrap:wrap;gap:2px 16px;margin:0 0 8px;padding:0 2px}
html body.espace .stat-kpi span{display:inline-flex;align-items:baseline;gap:5px;padding:0;border:0;background:transparent}
html body.espace .stat-kpi small{font-size:.62rem;text-transform:uppercase;letter-spacing:.3px;color:#5a6a8c}
html body.espace .stat-kpi b{font-size:.76rem;font-weight:600;color:#c8daf0}
html[data-theme="clair"] body.espace .stat-kpi b{color:#334155}
html body.espace .stat-legend{margin:12px 0 0!important;font-size:.62rem!important;color:#4f6280!important;gap:1px 14px!important}
html body.espace .stat-legend b{color:#6f86a6!important;font-weight:600}
html body.espace .stat-main>.stat-tables>.stat-legend{display:none}

/* Légende : bouton discret, la liste apparaît au survol (ou au clavier) */
html body.espace .stat-legend-wrap{position:relative;display:inline-block;margin:10px 0 0;outline:0}
html body.espace .stat-legend-btn{font-size:.66rem;color:#5a6a8c;cursor:help;border-bottom:1px dotted #5a6a8c}
html body.espace .stat-legend-wrap .stat-legend{display:none!important;position:absolute;left:0;bottom:calc(100% + 4px);z-index:50;width:max-content;max-width:min(1100px,90vw);margin:0!important;padding:8px 12px;border:1px solid rgba(147,197,253,.3);border-radius:10px;background:#0f172a;box-shadow:0 8px 24px rgba(0,0,0,.45);flex-wrap:wrap;gap:2px 16px!important;font-size:.7rem!important;color:#c8daf0!important}
html body.espace .stat-legend-wrap:hover .stat-legend,html body.espace .stat-legend-wrap:focus-within .stat-legend{display:flex!important}
html body.espace .stat-legend-wrap .stat-legend b{color:#93c5fd!important}
html[data-theme="clair"] body.espace .stat-legend-wrap .stat-legend{background:#fff;color:#334155!important;box-shadow:0 8px 24px rgba(0,0,0,.18)}

/* Infobulle immédiate sur les abréviations (en-têtes de tableaux et résumé) */
html body.espace .stat-tbl th[data-tip],html body.espace .stat-kpi span[data-tip]{position:relative;cursor:help}
html body.espace .stat-tbl th[data-tip]:hover::after,html body.espace .stat-kpi span[data-tip]:hover::after{content:attr(data-tip);position:absolute;left:0;top:calc(100% + 3px);z-index:60;width:max-content;max-width:280px;padding:3px 8px;border:1px solid rgba(147,197,253,.4);border-radius:6px;background:#0f172a;color:#e2e8f0;font-size:.7rem;font-weight:400;line-height:1.3;letter-spacing:0;text-transform:none;white-space:normal;box-shadow:0 6px 18px rgba(0,0,0,.45);pointer-events:none}
html body.espace .stat-vs thead th[data-tip]:hover::after{white-space:nowrap}
html[data-theme="clair"] body.espace .stat-tbl th[data-tip]:hover::after,html[data-theme="clair"] body.espace .stat-kpi span[data-tip]:hover::after{background:#fff;color:#1e293b}

/* Bannière d'équipe (images/bannieres-equipes/ABR.webp, format 1500×300) : en-tête plus haut, titre à gauche sur la zone sombre */
html body.espace .team-page .team-hero.has-banner{min-height:230px!important;padding:14px 24px!important;display:flex;align-items:center;background:var(--banner) right center/cover no-repeat,#0b1020!important;border:1px solid rgba(255,255,255,.12)!important;border-left:4px solid var(--club-primary,#3879cc)!important;border-radius:12px}
html body.espace .team-page .team-hero.has-banner h1{color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.7);font-size:clamp(22px,2.2vw,34px)}
html body.espace .team-page .team-hero.has-banner>a,html body.espace .team-page .team-hero.has-banner .follow-club{position:absolute;top:10px;right:14px;color:#e2e8f0;background:rgba(0,0,0,.45);border-radius:14px;padding:3px 10px;font-size:11px;text-decoration:none}
@media(max-width:900px){html body.espace .team-page .team-hero.has-banner{min-height:140px!important;background-position:75% center}}

/* Bannière d'équipe : un seul logo (celui de l'image), image entière à hauteur d'en-tête, extension floue à gauche */
html body.espace .team-page .team-hero.has-banner{background:#0b1020!important;isolation:isolate}
html body.espace .team-page .team-hero.has-banner .team-heading-logo{display:none!important}
html body.espace .team-page .team-hero.has-banner::before{content:""!important;display:block!important;position:absolute;inset:-20px;z-index:-2;background:var(--banner) center/cover no-repeat;filter:blur(16px) brightness(.55);border:0;width:auto;height:auto;border-radius:0;right:-20px;top:-20px;transform:none}
html body.espace .team-page .team-hero.has-banner::after{content:""!important;display:block!important;position:absolute;inset:0;z-index:-1;background:var(--banner) right center/auto 100% no-repeat;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 32%);mask-image:linear-gradient(90deg,transparent 0,#000 32%);border:0;border-radius:0;width:auto;height:auto;right:0;top:0;transform:none}

/* Bannière d'équipe (version finale) : l'image entière (5:1) à la hauteur de l'en-tête, collée à droite, fondue vers un arrière-plan flou assombri */
html body.espace .team-page .team-hero.has-banner::before{filter:blur(18px) brightness(.45)!important}
html body.espace .team-page .team-hero.has-banner::after{content:""!important;display:block!important;position:absolute;top:0!important;bottom:0!important;right:0!important;left:auto!important;inset-inline:auto;aspect-ratio:5/1;width:auto!important;height:auto!important;z-index:-1;background:var(--banner) center/100% 100% no-repeat!important;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 30%)!important;mask-image:linear-gradient(90deg,transparent 0,#000 30%)!important;border:0!important;border-radius:0!important;transform:none!important}

/* Bannière d'équipe — version simple : image pleine largeur (cover), assez haute pour que le logo de l'image soit entier ; aucun autre logo */
html body.espace .team-page .team-hero.has-banner::before,html body.espace .team-page .team-hero.has-banner::after{display:none!important;content:none!important}
html body.espace .team-page .team-hero.has-banner{isolation:auto;min-height:270px!important;background:var(--banner) right center/cover no-repeat,#0b1020!important}
html body.espace .team-page .team-hero.has-banner .team-heading-logo,html body.espace .team-page .team-hero.has-banner .club-banner-logo{display:none!important}
html body.espace .team-page .team-hero.has-banner h1{gap:0}
@media(max-width:900px){html body.espace .team-page .team-hero.has-banner{min-height:150px!important;background-position:78% center}}

/* Bannière d'équipe : le nom est déjà dans l'image ; le titre reste dans la page pour l'accessibilité mais n'est plus affiché */
html body.espace .team-page .team-hero.has-banner h1{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap;margin:-1px!important;padding:0!important}

/* Bannière d'équipe : boutons « Suivre ce club » et « STHS ↗ » regroupés en haut à droite, lisibles sur l'image */
html body.espace .team-page .team-hero.has-banner .team-hero-actions{position:absolute!important;top:12px;right:16px;left:auto!important;z-index:3;display:flex!important;align-items:center;gap:6px;margin:0!important;padding:0!important}
html body.espace .team-page .team-hero.has-banner .team-hero-actions .follow-club,html body.espace .team-page .team-hero.has-banner .team-hero-actions>a{position:static!important;display:inline-flex;align-items:center;font-size:12px!important;line-height:1;padding:6px 12px!important;border-radius:16px!important;background:rgba(8,12,24,.72)!important;color:#f1f5f9!important;border:1px solid rgba(255,255,255,.28)!important;text-decoration:none!important;backdrop-filter:blur(2px);white-space:nowrap}
html body.espace .team-page .team-hero.has-banner .team-hero-actions .follow-club[aria-pressed=true]{color:#93c5fd!important;border-color:#93c5fd!important}
html body.espace .team-page .team-hero.has-banner .team-hero-actions>a:hover,html body.espace .team-page .team-hero.has-banner .team-hero-actions .follow-club:hover{background:rgba(30,58,110,.85)!important}

/* Logo FHSW : version claire (images/logo-clair.png) affichée seulement en thème clair */
html body.espace .logo .logo-img.logo-clair{display:none}
html[data-theme="clair"] body.espace .logo .logo-img.logo-dark{display:none}
html[data-theme="clair"] body.espace .logo .logo-img.logo-clair{display:inline-block}

/* Pages Histoire : filtres rapides en pastilles (liens), sans liste déroulante */
html body.espace .hist-chips{display:flex;flex-wrap:wrap;align-items:center;gap:4px 5px;margin:0 0 6px}
html body.espace .hist-chips .hc-l{font-size:.62rem;text-transform:uppercase;letter-spacing:.4px;color:#5a6a8c;margin-right:4px;min-width:54px}
html body.espace .hist-chips a{display:inline-block;padding:2px 9px;border:1px solid rgba(255,255,255,.14);border-radius:12px;font-size:.72rem;line-height:1.35;color:inherit;text-decoration:none;white-space:nowrap;background:rgba(255,255,255,.03)}
html body.espace .hist-chips a:hover{border-color:#93c5fd}
html body.espace .hist-chips a.on{background:rgba(59,130,246,.28);border-color:#3b82f6;color:#fff;font-weight:700}
html[data-theme="clair"] body.espace .hist-chips a{border-color:rgba(0,0,0,.18);background:rgba(0,0,0,.03)}
html[data-theme="clair"] body.espace .hist-chips a.on{color:#0b3a8c;background:rgba(59,130,246,.18)}

/* Historique des repêchages : trois tableaux côte à côte, logos seuls pour les clubs */
html body.espace .rep-cols{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
html body.espace .rep-cols>.rep-col{width:fit-content!important;margin:0!important}
html body.espace .mini-logo{width:20px;height:20px;object-fit:contain;vertical-align:middle}

/* Carrière : puces, portrait avant le nom, fiche popup */
html body.espace .hist-ph{border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:5px;background:rgba(148,163,184,.25);display:inline-block}
html body.espace .hist-ini{text-align:center;font-size:.6rem;font-weight:700;color:#cbd5e1}
html body.espace .car-nom{white-space:nowrap}
html body.espace a.car-link{font-weight:700}
html body.espace .hist-total td{border-top:1px solid rgba(148,163,184,.4)}
html body.espace .hist-chips .hc-l:not(:first-child){margin-left:10px}
html[data-theme="clair"] body.espace .hist-ini{color:#334155}

/* Règle générale : tout conteneur de tuiles (flux flex) → tuiles à la largeur de leur contenu, remplissage de la ligne, jamais étirées */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .fit-flow{display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:flex-start!important;justify-content:flex-start!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles>*,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols>*,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .fit-flow>*{width:fit-content!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important;margin:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles .compact-table,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols .compact-table,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .fit-flow .compact-table{width:max-content!important}

/* Remplissage complet de la largeur : grilles de tuiles qui se partagent la ligne (pas de vide à droite) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;gap:10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles>*{width:auto!important;max-width:none!important;flex:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles .compact-table{width:100%!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles td:last-child{text-align:right!important;font-weight:700}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols>*{width:auto!important;max-width:none!important;flex:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols .compact-table{width:100%!important}
@media(max-width:1100px){html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols{grid-template-columns:1fr!important}}

/* Une seule ligne : logo · portrait · nom (jamais sur deux lignes) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td b,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td *{white-space:nowrap!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td img,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td .hist-ph,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td b{display:inline-block;vertical-align:middle}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile .mini-logo{margin-right:5px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile tr{height:auto}

html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols>.rep-col table.compact-table.schedule-table{width:100%!important;min-width:100%!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols .rep-col td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols .rep-col th{white-space:nowrap!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-club{font-size:.74rem}

/* Une seule ligne logo + nom ; la colonne Joueur absorbe l'espace libre, les autres restent serrées */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cl{display:inline-flex!important;align-items:center;gap:5px;white-space:nowrap!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cl img,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cl span{display:inline-block!important;vertical-align:middle}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols .rep-col table th:nth-child(2){width:100%}

/* Repêchages : une tuile par ronde, côte à côte, largeur = contenu */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-round{padding:8px 12px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-round h3{margin:0 0 4px;font-size:.78rem;text-transform:uppercase;letter-spacing:.3px;color:#8fa8c8}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-round td{padding:2px 8px!important;font-size:.76rem!important;white-space:nowrap!important;text-align:left!important}

/* Pastille d'initiales : texte centré dans le rond */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .hist-ph.hist-ini{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;padding:0!important;line-height:1!important;font-size:.55rem!important;font-weight:700;letter-spacing:0!important;overflow:hidden;flex:0 0 auto;text-indent:0}

/* Mobile : rien ne dépasse de l'écran ; les tableaux larges défilent dans leur panneau, les barres se replient */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))!important}
@media(max-width:700px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .hist-panel,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-round,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .fit-flow>*{max-width:100%!important;box-sizing:border-box}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .hist-panel,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-round,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main section.portal-panel:has(>table){overflow-x:auto!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rep-cols{grid-template-columns:1fr!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .hist-panel h2,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-panel h2{overflow-wrap:anywhere}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main form.cal-bar,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .cal-bar,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .cal-seg{flex-wrap:wrap!important;max-width:100%!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-activity,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-activity .move-list,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-activity .section-heading{max-width:100%!important;min-width:0!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-activity a{overflow-wrap:anywhere}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .hist-chips{gap:4px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .hist-chips .hc-l{flex:0 0 100%;margin:4px 0 0!important}
}

body.espace .move-list{grid-template-columns:repeat(auto-fill,minmax(min(520px,100%),1fr))}
@media(max-width:700px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-activity,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .club-activity{min-width:0!important;max-width:100%!important;width:auto!important}
 body.espace .move-list{grid-template-columns:1fr!important}
}

/* Mobile : les boutons de la bannière passent en bas à gauche pour ne pas cacher le logo du club */
@media(max-width:700px){
 html body.espace .team-page .team-hero.has-banner .team-hero-actions{top:auto!important;bottom:8px;left:8px!important;right:auto!important;gap:4px}
 html body.espace .team-page .team-hero.has-banner .team-hero-actions>a,html body.espace .team-page .team-hero.has-banner .team-hero-actions .follow-club{font-size:10px!important;padding:2px 8px!important}
}

html body.espace .adm-grid .compact-table th{text-align:left;font-weight:600;padding:2px 14px 2px 0;white-space:nowrap}
html body.espace .adm-grid .compact-table td{text-align:left;white-space:nowrap}
html body.espace .adm-ok{color:#4ade80}html body.espace .adm-warn{color:#fbbf24}

/* Fiche carrière (popup) : portrait en en-tête, tableaux repliés à 5 saisons */
html body.espace .car-titre{display:flex!important;align-items:center;gap:12px}
html body.espace .car-titre b{display:block;font-size:1.15rem}
html body.espace .car-titre .hist-ph{margin:0}
html body.espace .car-fiche table th,html body.espace .car-fiche table td{white-space:nowrap;text-align:left}
html body.espace .car-fiche .car-extra[hidden]{display:none}
html body.espace .car-more{display:block;margin:4px auto 0;background:none;border:0;color:#93c5fd;cursor:pointer;font:inherit;font-size:.74rem}
html body.espace .car-fiche .portal-panel{width:fit-content!important;margin:0!important}

/* Carrière : 3 tableaux compacts côte à côte (colonnes serrées) */
html body.espace .car-cols .car-col table th,html body.espace .car-cols .car-col table td{padding:2px 5px!important}
html body.espace .car-cols .car-col{padding:6px 8px!important}

/* Cotes d'un an à l'autre : couleurs par palier, ligne actuelle en relief */
html body.espace .cotes-year td,html body.espace .cotes-year th{text-align:left!important;white-space:nowrap}
html body.espace .cotes-year td.high{color:#4ade80;font-weight:700}
html body.espace .cotes-year td.medium{color:#60a5fa;font-weight:700}
html body.espace .cotes-year td.low{color:#e2e8f0}
html body.espace .cotes-year tr.cotes-now>*{background:rgba(59,130,246,.14)}
html body.espace .profile-cotes-year{width:fit-content!important;max-width:100%}
html[data-theme="clair"] body.espace .cotes-year td.high{color:#15803d}
html[data-theme="clair"] body.espace .cotes-year td.medium{color:#1d4ed8}

/* Conditions des échanges : tuiles condensées */
html body.espace .cd-grid .cd-card{width:fit-content!important;min-width:340px;max-width:min(560px,100%)!important;padding:8px 12px!important;margin:0!important}
html body.espace .cd-hdr{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-bottom:4px}
html body.espace .cd-hdr .cd-st{margin-left:auto;font-size:.7rem}
html body.espace .cd-hdr .cd-date{font-size:.7rem}
html body.espace a.cd-eq{text-decoration:none;font-weight:700;white-space:nowrap}
html body.espace .cd-title{font-weight:700;font-size:.82rem;margin:2px 0 4px}
html body.espace .cd-bloc{margin:4px 0;padding:4px 8px;border-left:3px solid #3b82f6;background:rgba(59,130,246,.07);border-radius:0 6px 6px 0}
html body.espace .cd-lbl{font-size:.64rem;text-transform:uppercase;letter-spacing:.4px;color:#8fa8c8;margin-bottom:2px}
html body.espace .cd-txt{font-size:.82rem;line-height:1.45;white-space:pre-wrap}
html body.espace .cd-choix{margin:3px 0}html body.espace .cd-choix img,html body.espace .cd-dir img{vertical-align:middle}
html body.espace .cd-det{margin-top:4px}html body.espace .cd-det summary{cursor:pointer;color:#93c5fd;font-size:.76rem}
html body.espace .cd-dir{margin:6px 0 2px;font-size:.78rem}html body.espace .cd-ul{margin:0 0 4px 22px;padding:0;font-size:.78rem}

/* Conditions : transaction affichée en entier, sous la condition */
html body.espace .cd-det{margin-top:6px;padding-top:6px;border-top:1px solid rgba(148,163,184,.25)}

/* Conditions : ligne du choix sur une seule ligne, deux colonnes « X donne : » */
html body.espace .cd-choix-l{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px}
html body.espace .cd-choix-l .cd-i{display:inline-flex!important;align-items:center;gap:4px;white-space:nowrap}
html body.espace .cd-choix-l img,html body.espace .cd-dir img{display:inline-block!important;vertical-align:middle}
html body.espace .cd-cols{display:flex;flex-wrap:wrap;gap:8px 28px;align-items:flex-start}
html body.espace .cd-col{flex:0 1 auto;min-width:200px}
html body.espace .cd-dir{display:flex!important;align-items:center;gap:6px;white-space:nowrap;margin:2px 0 2px!important}

/* Calendrier : dernière partie simulée repérée dans la liste complète */
html body.espace .cal-table tr.last-played>td{box-shadow:inset 0 -2px 0 #3b82f6;background:rgba(59,130,246,.10)}

/* « Toute la saison » : tableau un peu plus gros (texte, logos, hauteur de ligne), toujours condensé et aligné à gauche */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .cal-full .cal-table th{font-size:.74rem!important;padding:5px 12px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .cal-full .cal-table td{font-size:.95rem!important;padding:6px 12px!important;white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .cal-full .cal-table .mini-team{font-size:.95rem;gap:7px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .cal-full .cal-table .mini-team img{width:28px!important;height:28px!important}

/* Grille équipes × jours : un peu plus grosse (cases, logos, texte), toujours serrée */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid{border-spacing:4px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid thead th{font-size:.8rem!important;padding:3px 8px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-team img{width:36px!important;height:36px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c{width:150px!important;height:42px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c>a,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c>span{gap:8px!important;padding:0 10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c i{font-size:.76rem!important;width:20px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c img{width:30px!important;height:30px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c b{font-size:.98rem!important}

/* Matchs du jour : toutes les tuiles exactement de la même taille (la plus haute donne la hauteur à toutes) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game-grid{align-items:stretch!important;grid-auto-rows:1fr!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game-grid>.today-game{height:100%!important;min-height:0!important;box-sizing:border-box;display:flex!important;flex-direction:column}

/* Espoirs : un tableau par année de repêchage, côte à côte, largeur = contenu */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years{display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:flex-start!important;margin:0 0 10px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years>.pr-year{width:fit-content!important;max-width:100%!important;margin:0!important;padding:8px 10px!important;flex:0 0 auto}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3{margin:0 0 4px;font-size:.82rem;text-transform:uppercase;letter-spacing:.3px;color:#8fa8c8}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3 small{font-size:.7rem;color:#64748b;margin-left:6px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td{padding:2px 7px!important;white-space:nowrap;text-align:left!important}

/* Un peu plus gros (+2 px) : espoirs par année et matchs du jour */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table th{font-size:.74rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td{font-size:.94rem!important;padding:3px 8px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3{font-size:.95rem}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .compact-table th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .compact-table td{font-size:14px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .today-best td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .ts-who,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .tb-gard{font-size:14.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .today-stars h3,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .today-best h3{font-size:12.5px!important}

/* Encore un peu plus gros : matchs du jour (tuiles 500 px) et espoirs par année */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,400px),500px))!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .compact-table td{font-size:16px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .compact-table th{font-size:13px!important;white-space:nowrap!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .today-best td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .ts-who,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .tb-gard,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .tb-buts{font-size:16px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .tb-st{font-size:14px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .today-stars h3,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game .today-best h3{font-size:13.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table th{font-size:.82rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td{font-size:1.04rem!important;padding:4px 9px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3{font-size:1.05rem}

/* Espoirs : décompte A / D / G */
html body.espace .pr-cnt{white-space:nowrap}
html body.espace .pr-cnt b{color:#e2e8f0;font-weight:700}
html body.espace .pr-year h3 small,html body.espace .club-group-title small{font-size:.8rem;font-weight:500}

/* Espoirs par année : essai à 23 px (demande de Yan) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td{font-size:23px!important;padding:5px 11px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table th{font-size:15px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3{font-size:23px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3 small{font-size:15px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td .mini-team img{width:26px!important;height:26px!important}

/* Taille de texte : espoirs par année à 19 px, le reste du site monte d'environ +50 % (tableaux, filtres) pour rester cohérent */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td{font-size:19px!important;padding:4px 10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table th{font-size:13.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3{font-size:19px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3 small{font-size:13.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td .mini-team img{width:24px!important;height:24px!important}

/* Tableaux très larges (14 colonnes et plus : joueurs, gardiens, masse, effectifs) : hausse plus modérée (+25 %) pour limiter le défilement horizontal */
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx):has(thead th:nth-child(14)) thead th{font-size:.72rem!important;padding:3px 5px!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx):has(thead th:nth-child(14)) tbody td{font-size:.9rem!important;padding:2px 5px!important}
body.eff-tx main table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx):has(thead th:nth-child(14)) tbody td:first-child a{font-size:.95rem!important}

/* Espoirs par année : colonne Rang à sa vraie largeur (la règle générale imposait 110 px à la 1re colonne) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table.compact-table thead th:first-child,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table.compact-table thead th{min-width:0!important}

/* Espoirs : pastille « ✓ Acquis » (clic = l'échange qui l'a amené) */
html body.espace .acq-btn{display:inline-flex;align-items:center;gap:4px;border:1px solid rgba(74,222,128,.55);background:rgba(74,222,128,.14);color:#4ade80;border-radius:999px;padding:1px 9px;font:inherit;font-size:.78em;font-weight:700;cursor:pointer;white-space:nowrap}
html body.espace .acq-btn:hover{background:rgba(74,222,128,.28);color:#bbf7d0}
html body.espace .acq-dt{font-size:.74em;color:#64748b;margin-left:4px}
html body.espace .rt-fixed .acq-dt{display:none}
html[data-theme="clair"] body.espace .acq-btn{color:#15803d;border-color:rgba(21,128,61,.5);background:rgba(21,128,61,.1)}
html[data-theme="clair"] body.espace .acq-btn:hover{background:rgba(21,128,61,.2);color:#14532d}

/* Carte d'un espoir (fenêtre) */
html body.espace .pr-name{font-weight:700;text-decoration:none;color:inherit}
html body.espace .pr-name:hover{text-decoration:underline;color:#93c5fd}
html body.espace .pc-modal{width:min(640px,100%)!important;max-width:min(640px,100%)!important}
html body.espace .pc-head{display:flex;align-items:center;gap:14px;margin:0 28px 10px 0}
html body.espace .pc-head h2{margin:0;font-size:1.5rem}
html body.espace .pc-ph{width:72px;height:72px;border-radius:50%;object-fit:cover;background:rgba(148,163,184,.25);flex:0 0 auto}
html body.espace .pc-ini{display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:1.4rem;color:#cbd5e1}
html body.espace .pc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}
html body.espace .pc-f{display:flex;flex-direction:column;padding:6px 10px;border:1px solid rgba(148,163,184,.2);border-radius:8px;background:rgba(15,23,42,.35)}
html body.espace .pc-f span{font-size:.68rem;text-transform:uppercase;letter-spacing:.4px;color:#8fa8c8}
html body.espace .pc-f b{font-size:1.05rem;font-weight:700}
html body.espace .pc-club{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:inherit}
html body.espace .pc-trade{margin:10px 0;padding:8px 10px;border-left:3px solid #4ade80;background:rgba(74,222,128,.07);border-radius:0 8px 8px 0}
html body.espace .pc-trade h3{margin:0 0 4px;font-size:.9rem}
html body.espace .pc-trade .tp-side{display:flex;flex-direction:column;margin:4px 0;font-size:.95rem}
html body.espace .pc-info{margin:8px 0;font-size:.95rem;white-space:pre-wrap}
html body.espace .pc-lien{margin:8px 0 0}
html[data-theme="clair"] body.espace .pc-f{background:rgba(255,255,255,.7)}
@media(max-width:560px){html body.espace .pc-grid{grid-template-columns:1fr}}

/* Carte d'espoir : boutons de recherche */
html body.espace .pc-liens{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
html body.espace .pc-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid rgba(148,163,184,.35);border-radius:999px;text-decoration:none;font-size:.9rem;font-weight:600;color:inherit;background:rgba(15,23,42,.35)}
html body.espace .pc-btn:hover{border-color:#3b82f6;background:rgba(59,130,246,.18);color:#fff}
html body.espace .pc-google{border-color:rgba(66,133,244,.6)}
html[data-theme="clair"] body.espace .pc-btn{background:#fff}
html[data-theme="clair"] body.espace .pc-btn:hover{color:#1d4ed8}

/* Espoirs par année : disposition « grille 4 colonnes égales » (choix de Yan) ; tuiles alignées en haut, 18 px, cellules serrées pour tenir à 4 en 1080p */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(440px,1fr))!important;gap:10px!important;align-items:start!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years>.pr-year{width:auto!important;max-width:none!important;min-width:0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years>.pr-year table{width:100%!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td{font-size:18px!important;padding:4px 7px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table th{padding:3px 7px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3{font-size:18px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year .acq-dt{display:none}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table th{padding-left:5px!important;padding-right:5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year .acq-btn{padding:0 7px;font-size:.72em}

/* Espoirs par année : aucun défilement (ni dans la tuile, ni sous les tableaux) ; filtres de colonnes masqués, noms longs coupés avec « … » */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years{grid-template-columns:repeat(auto-fill,minmax(450px,1fr))!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years>.pr-year{overflow:visible!important;padding:8px 6px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year h3{padding-left:4px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year .cf-row{display:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td:nth-child(2){max-width:180px;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-year table th{padding-left:5px!important;padding-right:5px!important}

/* Tableaux étroits et longs répartis en colonnes côte à côte (split-table.js) : la page se remplit, sans défilement */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap{display:flex;flex-wrap:nowrap;gap:10px;align-items:flex-start}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-box{flex:0 0 auto}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-holder{width:auto!important;max-width:100%!important;overflow:visible!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col{width:auto!important;margin:0!important}

/* Records : tuiles assez larges pour leur tableau (aucun défilement dans les tuiles) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles{grid-template-columns:repeat(auto-fit,minmax(min(430px,100%),1fr))!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile{overflow:visible!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles{grid-template-columns:repeat(auto-fit,minmax(min(500px,100%),1fr))!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td{font-size:15px!important;padding:3px 7px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile h3{font-size:14px!important}

/* Calendrier « Toute la saison » sur 2 colonnes : logos seuls (le nom complet reste en infobulle), toutes les colonnes gardées : deux tableaux tiennent côte à côte */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table .cal-nm{display:none}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table .mini-team img,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table .cal-win img{width:28px;height:28px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .cal-win{display:inline-flex;align-items:center;gap:6px}

/* Profondeur : 5 colonnes qui tiennent en 1080p (texte 15 px, tableaux de 330 px) */
html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid table tbody td,html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid table thead th{font-size:15px!important;padding-left:5px!important;padding-right:5px!important}
html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid table{width:330px!important}
html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-c1{width:178px}html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-c2,html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-c3{width:40px}html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main:not(.rv2) .depth-grid .dp-c4{width:56px}

/* Un même tableau, une seule taille de texte : les noms d'équipes (complet / abrégé), les notes grises et les identités d'équipe héritent de la cellule */
body.eff-tx main table td .tn-f,body.eff-tx main table td .tn-a,body.eff-tx main table td .team-identity,body.eff-tx main table td .rep-club,body.eff-tx main table td .muted,body.eff-tx main table td .mini-team{font-size:inherit!important}

/* Ballotage : la colonne « Ordre de priorité » prend la largeur de son tableau (plus de défilement) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .waivers-grid{grid-template-columns:minmax(0,1fr) max-content!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .waivers-grid>.portal-panel{overflow:visible!important}
@media(max-width:1000px){html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .waivers-grid{grid-template-columns:1fr!important}}

/* Classement : colonnes de largeur fixe et identiques dans les deux conférences (mêmes positions de PJ, V, D… partout) sur grand écran (1500 px et plus) ;
   la colonne « équipe » est assez large pour le plus long nom (Farm compris), texte 17 px. En dessous de 1500 px : affichage compact d'avant. */
@media(min-width:1500px){
#clst-zone:not(.clst-tout) .clst-division{width:fit-content}
#clst-zone:not(.clst-tout) .clst-table{width:max-content!important;max-width:none!important}
#clst-zone:not(.clst-tout) .clst-table th.eq,#clst-zone:not(.clst-tout) .clst-table td.eq{width:380px!important;min-width:380px!important;max-width:380px!important}
#clst-zone:not(.clst-tout) .clst-table th:not(.eq),#clst-zone:not(.clst-tout) .clst-table td:not(.eq){width:66px!important;min-width:66px!important;max-width:66px!important}
#clst-zone:not(.clst-tout) .clst-table td{font-size:17px}
#clst-zone:not(.clst-tout) .clst-table td.eq,#clst-zone:not(.clst-tout) .clst-table td.eq a{font-size:17.5px}
#clst-zone:not(.clst-tout) .clst-table th{font-size:13px}
#clst-zone:not(.clst-tout) .clst-table :is(th,td):not(.eq):nth-child(n+16){width:104px!important;min-width:104px!important;max-width:104px!important;white-space:nowrap}
#clst-zone:not(.clst-tout) .clst-table :is(th,td):not(.eq):nth-child(21){width:170px!important;min-width:170px!important;max-width:170px!important}
}
/* Nom d'équipe : jamais de débordement sur la colonne suivante (coupé avec « … » au pire) */
#clst-zone .clst-table td.eq a{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#clst-zone .clst-table td.eq{overflow:hidden}
/* Même norme de taille pour les tableaux qui échappaient au thème (finances, comparer, ballotage, différences, statistiques d'équipe, résumé) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.fin-table tbody td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.ce td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .waivers-grid table td{font-size:17px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.fin-table thead th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.ce th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .waivers-grid table th{font-size:13.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.diff-table td{font-size:14.5px!important}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.diff-table th{font-size:12px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page table.compact-table:not(.schedule-table):not(.vs-table) td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page table.fin-panel td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page table.fin-panel th{font-size:15px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page table.compact-table:not(.schedule-table):not(.vs-table) th{font-size:12.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-main table td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-tables table td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.vs-table td{font-size:14.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-main table th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .stat-tables table th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.vs-table th{font-size:11.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.rv-t td{font-size:15px!important}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.rv-t th{font-size:12px!important}

/* Calendrier « Toute la saison » sur 2 colonnes : colonnes de largeur fixe et identiques des deux côtés, lignes de même hauteur (38 px), séparateur vertical entre les deux moitiés */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap:has(.cal-table){gap:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap:has(.cal-table) .split-box+.split-box{margin-left:28px;padding-left:28px;border-left:1px solid rgba(148,163,184,.3)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table{table-layout:fixed!important;width:876px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table tbody tr{height:38px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table tbody td{height:38px!important;padding-top:0!important;padding-bottom:0!important;line-height:1.2!important;vertical-align:middle!important;box-sizing:border-box}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table tbody td *{max-height:30px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(1){width:52px!important;min-width:52px!important;max-width:52px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(2){width:62px!important;min-width:62px!important;max-width:62px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(3){width:72px!important;min-width:72px!important;max-width:72px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(4){width:54px!important;min-width:54px!important;max-width:54px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(5){width:72px!important;min-width:72px!important;max-width:72px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(6){width:54px!important;min-width:54px!important;max-width:54px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(7){width:72px!important;min-width:72px!important;max-width:72px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(8){width:56px!important;min-width:56px!important;max-width:56px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(9){width:52px!important;min-width:52px!important;max-width:52px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(10){width:100px!important;min-width:100px!important;max-width:100px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(11){width:120px!important;min-width:120px!important;max-width:120px!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-col.cal-table :is(th,td):nth-child(12){width:110px!important;min-width:110px!important;max-width:110px!important;overflow:hidden;text-overflow:ellipsis}

/* ═══ Page d'un match : tableau de bord et sommaire (inspirés du Gamecenter de la LNH, mais à notre façon) ═══ */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .game-avant{display:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-board{display:flex!important;align-items:center;justify-content:space-between;gap:24px;padding:14px 28px!important;margin:6px 0 12px!important;border:1px solid rgba(148,163,184,.25);border-radius:16px;background:linear-gradient(135deg,rgba(30,41,82,.55),rgba(11,16,32,.85));width:100%!important;box-sizing:border-box}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-team{display:flex;align-items:center;gap:20px;flex:1 1 0;min-width:0;text-decoration:none;color:inherit}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-team.home{flex-direction:row-reverse;text-align:right}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-team img{width:84px;height:84px;object-fit:contain;flex:0 0 auto}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn{display:flex;flex-direction:column;min-width:0;line-height:1.15}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn small{font-size:13px;text-transform:uppercase;letter-spacing:.5px;color:#8fa8c8}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn b{font-size:34px;letter-spacing:1px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn em{font-style:normal;font-size:15px;color:#a8b8d4}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sog{font-size:15px;color:#8fa8c8;margin-top:2px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-pts{font-size:68px;font-weight:800;line-height:1;margin:0 4px;color:#94a3b8}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-team.win .gc-pts{color:#fff}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-team.win .gc-tn b{color:#93c5fd}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-mid{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 auto;min-width:160px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tag{padding:4px 16px;border-radius:999px;background:rgba(59,130,246,.22);border:1px solid rgba(59,130,246,.55);font-weight:800;letter-spacing:.6px;font-size:15px;text-transform:uppercase}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-mid small{font-size:14px;color:#8fa8c8}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sum{display:grid!important;grid-template-columns:minmax(0,1fr) 540px;gap:12px;align-items:start;width:100%}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-main,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-side{display:flex;flex-direction:column;gap:12px;min-width:0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-card{margin:0!important;padding:10px 14px!important;width:auto!important;max-width:none!important;box-sizing:border-box;border:1px solid rgba(148,163,184,.2);border-radius:12px;background:rgba(15,23,42,.55)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-card>h3,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-card>h2{margin:0 0 8px;font-size:14px;text-transform:uppercase;letter-spacing:.5px;color:#8fa8c8}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-card .gc-sub{margin:10px 0 2px;font-size:12.5px;text-transform:uppercase;letter-spacing:.4px;color:#64748b}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-stars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:1px solid rgba(250,204,21,.28);border-radius:10px;background:rgba(250,204,21,.05)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-n{color:#facc15;font-size:15px;letter-spacing:2px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sp a{font-weight:800;font-size:19px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sp small{display:flex;align-items:center;gap:5px;font-size:14px;color:#8fa8c8}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-ln{font-size:15px;color:#cbd5e1}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-per h4{margin:10px 0 3px;padding-bottom:3px;font-size:13.5px;text-transform:uppercase;letter-spacing:.4px;color:#93c5fd;border-bottom:1px solid rgba(148,163,184,.2)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-g,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-p{display:grid;grid-template-columns:56px 28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:5px 2px;border-bottom:1px solid rgba(148,163,184,.1)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-p{grid-template-columns:48px 26px minmax(0,1fr)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-t{color:#8fa8c8;font-variant-numeric:tabular-nums;font-size:15px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sc1{font-size:18px;font-weight:700}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sc1 small{font-weight:400;color:#8fa8c8;font-size:14px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-as{font-size:14.5px;color:#a8b8d4}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tag{white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sc1 .gc-tag{padding:0 8px;font-size:12px;border-radius:999px;margin-left:6px;background:rgba(251,191,36,.18);border-color:rgba(251,191,36,.5);color:#fbbf24}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-score{font-size:18px;color:#94a3b8;white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-score b{color:#fff;font-size:20px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-score small{font-size:13px;margin-left:4px;color:#8fa8c8}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-none{padding:6px 2px;color:#64748b;font-size:14.5px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-pens{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:0 18px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-pens>h3{grid-column:1/-1}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-lg{vertical-align:middle;object-fit:contain}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tbl{border-collapse:collapse;width:100%!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tbl th{padding:3px 8px!important;font-size:13px!important;text-align:center!important;color:#64748b;text-transform:uppercase}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tbl td{padding:4px 8px!important;font-size:17px!important;text-align:center!important;border-top:1px solid rgba(148,163,184,.12)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tbl .gc-tm{text-align:left!important;white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tbl .gc-tot{font-weight:800;color:#fff}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-gk td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-gk th{font-size:15.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bh{display:grid;grid-template-columns:30px 1fr 1fr 30px;align-items:center;gap:6px;margin-bottom:4px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bh b{font-size:17px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bh b:nth-of-type(2){text-align:right}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-b{display:grid;grid-template-columns:78px minmax(0,1fr) 78px;align-items:center;gap:10px;margin:7px 0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bv{font-size:18px;font-weight:700;color:#cbd5e1;white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bv:last-child{text-align:right}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bv.lead{color:#93c5fd}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bl{text-align:center;font-size:12.5px;text-transform:uppercase;letter-spacing:.4px;color:#8fa8c8;margin-bottom:3px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bt{display:flex;gap:3px;height:8px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bt i{display:block;height:100%;background:#475569;border-radius:5px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bt i.lead{background:#3b82f6}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-srl{display:flex;flex-direction:column;gap:2px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sr{display:grid;grid-template-columns:78px minmax(0,1fr) auto;gap:10px;padding:5px 8px;border-radius:8px;text-decoration:none;color:inherit;font-size:16px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sr:hover{background:rgba(59,130,246,.12)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sr.cur{background:rgba(59,130,246,.2);outline:1px solid rgba(59,130,246,.45)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-off div{font-size:15px;margin:2px 0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-fin div{font-size:14.5px;line-height:1.5}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-card.game-revenu table{width:100%!important}
@media(max-width:1350px){
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sum{grid-template-columns:1fr}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-stars{grid-template-columns:1fr}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-board{padding:10px 14px!important;gap:10px}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-team img{width:52px;height:52px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn b{font-size:24px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn em{display:none}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-pts{font-size:44px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-mid{min-width:100px}
}

/* Légende des abréviations (sous les tableaux de statistiques) + équipes en logo seul dans les tableaux très larges */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .th-legend{margin:6px 0 12px;font-size:13.5px;line-height:1.7;color:#8fa8c8;display:flex;flex-wrap:wrap;gap:2px 16px;align-items:baseline}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .th-legend b{color:#cbd5e1;font-size:12px;text-transform:uppercase;letter-spacing:.5px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .th-legend i{font-style:normal;font-weight:800;color:#e2e8f0;margin-right:3px}
body.eff-tx main table:has(thead th:nth-child(14)) td .tn-f,body.eff-tx main table:has(thead th:nth-child(14)) td .tn-a,body.eff-tx main table:has(thead th:nth-child(14)) td .team-identity>span:not(.tn-f):not(.tn-a){display:none!important}
body.eff-tx main table:has(thead th:nth-child(14)) td .team-identity img{width:26px!important;height:26px!important}

/* Page d'un match : le sommaire occupe toute la largeur ; équipes en logo seul */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .game-pane,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .game-section.game-pane{width:100%!important;max-width:none!important;box-sizing:border-box;background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .game-pane>.schedule-scroll{overflow:visible!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sl{display:inline-flex;align-items:center;gap:6px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sl i{font-style:normal;color:#64748b}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn b{font-size:30px}

/* Page d'un match sur téléphone : bandeau en deux colonnes (logo, score, nom), FINAL en haut, sommaire sur une seule colonne */
@media(max-width:700px){
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-board{display:grid!important;grid-template-columns:1fr 1fr;gap:8px 10px;padding:10px 12px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-mid{grid-column:1/-1;grid-row:1;flex-direction:row;justify-content:center;gap:10px;min-width:0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-team,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-team.home{flex-direction:column;align-items:center;text-align:center;gap:2px;grid-row:2}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-team img{order:1;width:54px;height:54px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-pts{order:2;font-size:44px;margin:0}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn{order:3;align-items:center}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn small,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn em{display:none}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-tn b{font-size:20px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sog{font-size:13px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-g{grid-template-columns:44px 24px minmax(0,1fr) auto;gap:6px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sc1{font-size:16px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bh{grid-template-columns:30px 1fr 1fr 30px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-b{grid-template-columns:54px minmax(0,1fr) 54px;gap:6px}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-bv{font-size:16px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-card.game-revenu table{display:block;width:100%!important}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-card.game-revenu th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-card.game-revenu td{display:inline-block;width:48%;font-size:12.5px!important;white-space:normal!important;padding:2px 4px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-sr{grid-template-columns:70px minmax(0,1fr) auto;font-size:15px}
}

/* Trois étoiles sur téléphone : une ligne compacte par joueur (étoiles, nom, logo, puis statistiques en dessous) */
@media(max-width:700px){
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-stars{grid-template-columns:1fr!important;gap:6px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star{display:grid!important;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;row-gap:0;align-items:center;padding:5px 10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-n{grid-row:1/3;grid-column:1;font-size:13px;letter-spacing:1px;align-self:center}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp{grid-column:2;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp a{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp small{display:inline-flex}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-ln{grid-column:2;grid-row:2;font-size:13.5px}
}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-p .gc-who>a{font-size:17px;font-weight:700}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-p .gc-as{font-size:14.5px}

/* Cartes du calendrier : pied de carte sur UNE ligne (tag · revenu · jour · # · Sommaire) */
.cal-games{grid-template-columns:repeat(auto-fill,minmax(335px,1fr))}
.cal-g .cal-f{flex-wrap:wrap;gap:4px 9px}
.cal-g .cal-f>*{white-space:nowrap;flex:0 0 auto}
.cal-g .cal-f small{display:inline}

/* Meneurs : séparateurs Attaquants / Défenseurs / Gardiens / Équipes */
.team-stat-grid>h2.mn-sep{grid-column:1/-1;margin:10px 0 0;padding:6px 0 4px;font-size:1.35rem;border-bottom:2px solid var(--accent)}
.team-stat-grid>h2.mn-sep:first-child{margin-top:0}

/* Meneurs : filtres (Circuit / Rangs par carte) compacts */
html body.espace main.meneurs .schedule-filters{gap:4px 18px;padding:6px 12px!important;align-items:center}
html body.espace main.meneurs .schedule-filters label{font-size:.7rem!important;letter-spacing:.04em;gap:3px}
html body.espace main.meneurs .schedule-filters .choice-control{gap:4px}
html body.espace main.meneurs .schedule-filters .choice-option{font-size:.85rem!important;min-height:0!important;height:auto!important;padding:.2rem .65rem!important;line-height:1.1!important}

/* Tableau de bord d'équipe : tient dans 1920 px (cartes plus étroites, Finances toujours visible) */
@media(min-width:1840px){
 body.espace main.team-page:has(.club-cards2) .club-card2{flex:0 0 392px!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2){grid-template-columns:max-content max-content minmax(300px,1fr)!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard>.portal-panel:first-child{width:215px!important}
 html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.team-page:has(.club-cards2)>.club-dashboard>.portal-panel:nth-child(2){width:250px!important}
 html body.espace main.team-page:has(.club-cards2)>.club-finance{min-width:0;overflow:hidden}
}

/* Tableau de bord d'équipe, 1080p : tout le contenu tient sans défiler (bannière 100 px, Finances à droite sur 2 rangées, mouvements sous Finances) */
@media(min-width:1500px){
 html body.espace main.team-page.team-page:has(.club-cards2){row-gap:6px!important}
 html body.espace main.team-page.team-page:has(.club-cards2) .team-hero{height:auto!important;min-height:270px!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.team-hero{grid-row:1!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-circuit-switch{grid-row:2!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.horizontal-tools{grid-row:3!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.team-tabs{grid-row:4!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-cards2{grid-row:5!important;grid-column:1!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-dashboard{grid-row:5!important;grid-column:2!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-finance{grid-row:5/span 2!important;grid-column:3!important;align-self:start!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-statrank{grid-row:6!important;grid-column:1/3!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-top5{grid-row:7!important;grid-column:1/3!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-activity{grid-row:7!important;grid-column:3!important;align-self:start!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-activity .move-list>*:nth-child(n+3){display:none!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-activity .section-heading,html body.espace main.team-page.team-page:has(.club-cards2)>.club-activity .section-heading h2{white-space:nowrap}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-activity .section-heading h2{font-size:.9rem}
 html body.espace main.team-page.team-page:has(.club-cards2) .club-finance .fin-kpis{display:grid!important;grid-template-columns:1fr 1fr;gap:6px}
}

/* Meneurs : barres proportionnelles (largeur = valeur / valeur du leader) */
html body.espace main.meneurs tr.mn-bar{background:linear-gradient(90deg,rgba(59,130,246,.30) var(--w),transparent var(--w))!important;background-size:100% calc(100% - 4px);background-repeat:no-repeat;background-position:0 50%}
html body.espace main.meneurs tr.mn-bar>th,html body.espace main.meneurs tr.mn-bar>td{background:transparent!important}
html body.espace main.meneurs tr.mn-bar:first-child{background:linear-gradient(90deg,rgba(59,130,246,.45) var(--w),transparent var(--w))!important;background-size:100% calc(100% - 4px);background-repeat:no-repeat;background-position:0 50%}
html body.espace main.meneurs tr.mn-bar>td{text-align:right!important;font-weight:700;padding-right:10px}

/* Meneurs : titres de section (Attaquants / Défenseurs / Gardiens / Équipes) en bandeau pleine largeur */
html body.espace main.meneurs .team-stat-grid>h2.mn-sep{flex:0 0 100%!important;width:100%!important;grid-column:1/-1!important;box-sizing:border-box;display:flex;align-items:center;gap:14px;margin:14px 0 4px!important;padding:0!important;border:0!important;font-size:1.5rem!important;letter-spacing:.04em;text-transform:uppercase;font-weight:800}
html body.espace main.meneurs .team-stat-grid>h2.mn-sep::before{content:"";width:6px;height:1.6em;border-radius:3px;background:linear-gradient(#60a5fa,#2563eb)}
html body.espace main.meneurs .team-stat-grid>h2.mn-sep::after{content:"";flex:1;height:2px;background:linear-gradient(90deg,rgba(96,165,250,.7),transparent)}
html body.espace main.meneurs .team-stat-grid>h2.mn-sep:first-child{margin-top:0!important}

/* Meneurs : leader en vedette (rang 1 en grand), rangs suivants numérotés */
html body.espace main.meneurs .team-stat-grid .portal-panel tbody{counter-reset:rk}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr{counter-increment:rk}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr:not(.mn-hero)>th::before{content:counter(rk);display:inline-block;width:16px;margin-right:6px;text-align:right;font-size:.8em;font-weight:600;color:var(--muted,#7d8ea6)}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero{display:flex;align-items:center;width:100%;padding:2px 0 8px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.14)}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>th{flex:1 1 auto;min-width:0;background:transparent}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>th a{font-size:1.1em;font-weight:700}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero .mn-logo{width:40px!important;height:40px!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero .player-link-portrait{width:46px!important;height:46px!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>td{flex:0 0 auto;font-size:1.9rem;font-weight:800;line-height:1;padding-left:14px;color:#93c5fd}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>th a{font-size:1.2rem!important;font-weight:800!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr:not(.mn-hero)>th::before{font-size:.85rem!important;color:#9fb0d0!important}

/* Meneurs (v2) : colonnes alignées sur toutes les lignes, leader mis en valeur par un fond et une valeur plus grande (pas par des tailles d'images différentes) */
html body.espace main.meneurs .team-stat-grid .portal-panel table{width:100%;min-width:300px}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero{display:table-row!important;padding:0!important;margin:0!important;border-bottom:0!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>th,html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>td{background:rgba(59,130,246,.16)!important;padding-top:6px!important;padding-bottom:6px!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>th{border-radius:8px 0 0 8px}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>td{border-radius:0 8px 8px 0}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero .mn-logo{width:36px!important;height:36px!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero .player-link-portrait{width:42px!important;height:42px!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr>th::before{content:counter(rk)!important;display:inline-block;width:16px;margin-right:6px;text-align:right;font-size:.85rem!important;font-weight:700;color:#9fb0d0!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>th::before{color:#93c5fd!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>th a{font-size:inherit!important;font-weight:800!important}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr>td{text-align:right!important;font-variant-numeric:tabular-nums;padding-right:10px}
html body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>td{font-size:1.35rem;font-weight:800;color:#93c5fd;line-height:1}
html body.espace main.meneurs .team-stat-grid>.portal-panel{flex:0 0 340px!important;width:340px!important;box-sizing:border-box}

/* Meneurs v3 : même largeur de tableau dans chaque carte, valeurs alignées pile, nom du leader à la même taille */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table{width:100%!important;min-width:0!important;margin:0!important;table-layout:fixed!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table th{width:auto!important;overflow:hidden;text-overflow:ellipsis}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table td{width:76px!important;text-align:right!important;padding-right:10px!important;font-variant-numeric:tabular-nums}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table tr.mn-hero td{font-size:1.2rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr.mn-hero>th a{font-size:1rem!important}

/* Meneurs : colonne PJ (et B/A pour les catégories de points) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table td.mn-gp{width:40px!important;padding:0 6px!important;font-size:.85rem!important;font-weight:400!important;color:#9fb0d0!important;text-align:right!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td{height:auto!important;padding-top:0!important;padding-bottom:2px!important;font-size:.7rem!important;text-transform:uppercase;letter-spacing:.04em;border:0!important;background:transparent!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td:last-child{width:76px!important}

html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table tr.mn-hero td.mn-gp{font-size:.85rem!important;font-weight:400!important}

html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td:first-child{width:auto!important;padding:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table tbody th{overflow:hidden!important}

html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table tbody th{overflow:visible!important;text-overflow:clip!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table td{width:62px!important;padding-right:8px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table td.mn-gp{width:34px!important;padding:0 4px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td:last-child{width:62px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td:first-child{width:auto!important;padding:0!important}


/* Meneurs v4 : cartes plus larges, texte un peu plus petit, en-tête PJ compact */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel{flex:0 0 358px!important;width:358px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr>th a{font-size:.9rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr.mn-hero>th a{font-size:.95rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table tr.mn-hero td{font-size:1.1rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td{line-height:1!important;height:14px!important;padding:0 4px 2px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table td{width:66px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table td.mn-gp{width:36px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td:last-child{width:66px!important}

html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead tr{height:16px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td{height:16px!important;vertical-align:bottom}


/* Meneurs v5 : pleine largeur 1080p (grille 5 colonnes extensibles), tout le texte visible */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(345px,1fr))!important;gap:12px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel{width:auto!important;flex:none!important;min-width:0!important;max-width:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>h2.mn-sep{grid-column:1/-1!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr>th{padding-left:2px!important;gap:4px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr>th::before{width:14px!important;margin-right:2px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr>th img.mn-logo{width:30px!important;height:30px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr>th .player-link-portrait{width:34px!important;height:34px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr>th a{gap:4px!important;font-size:.88rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr.mn-hero>th a{font-size:.88rem!important;font-weight:700!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table td.mn-gp{width:30px!important;padding:0 3px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table td{width:58px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td:last-child{width:58px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table tr.mn-hero td{font-size:1.05rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table tr.mn-hero td.mn-gp{font-size:.85rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table:has(td:nth-child(5)) td.mn-gp{width:26px!important;padding:0 2px!important;font-size:.8rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table:has(td:nth-child(5)) td:nth-child(5){width:46px!important;padding-right:6px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table:has(td:nth-child(5)) tr.mn-hero td:nth-child(5){font-size:1rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table:has(td:nth-child(5)) tr.mn-hero td.mn-gp{font-size:.8rem!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table:has(td:nth-child(5)) tbody th .player-link-portrait{width:30px!important;height:30px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table:has(td:nth-child(5)) tbody th img.mn-logo{width:28px!important;height:28px!important}


html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table:has(td:nth-child(5)) tbody tr>th a,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table:has(td:nth-child(5)) tbody tr.mn-hero>th a{font-size:.8rem!important}


/* Meneurs : bande du leader continue (coins arrondis seulement aux extrémités) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr.mn-hero>td{border-radius:0!important;border:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr.mn-hero>td:last-child{border-radius:0 8px 8px 0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid .portal-panel tbody tr.mn-hero>th{border-radius:8px 0 0 8px!important;border:0!important}


html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead tr{height:24px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid>.portal-panel>table.compact-table thead td{height:24px!important;line-height:1.2!important;padding:6px 3px 4px!important;vertical-align:middle!important;overflow:visible!important;font-size:.75rem!important}


/* Matchs du jour : 4 cartes par rangée, réparties sur toute la largeur */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .today-game-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,430px),1fr))!important}


/* Matchs du jour : buteur + nombre de buts restent sur la même ligne */
html body.espace main .today-best .tb-nw{white-space:nowrap!important;display:inline-block}


/* Matchs du jour : onglets (jour / derniers résultats / prochains matchs), logos, trois étoiles en haut */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-tabs{margin-bottom:10px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-stars-top{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 12px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-stars-top>.portal-panel{width:fit-content!important;margin:0!important;padding:8px 14px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-stars-top>.portal-panel h2{margin:0 0 4px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-stars-top>.portal-panel p{margin:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-tbl{width:fit-content!important;max-width:100%}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t{width:auto!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t th,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t td{text-align:left!important;white-space:nowrap;padding:6px 14px!important;vertical-align:middle}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t thead th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t thead th.grp{border-bottom:1px solid rgba(255,255,255,.14)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t .gsep{border-left:2px solid rgba(255,255,255,.14)!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t tbody tr:nth-child(even)>*{background:rgba(255,255,255,.035)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t a.tm{display:inline-flex;align-items:center}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t a.tm img{width:30px;height:30px;object-fit:contain}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t .tm-n{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t td.sc{font-variant-numeric:tabular-nums;font-size:1.05rem}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t td.sc .w{font-weight:800}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.today-t td b{font-weight:700}


/* Trois étoiles (jour / semaine) : logo du club, colonnes alignées */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-card>header{display:flex;align-items:center;gap:14px;margin:0 0 4px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-card>header h2{margin:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-sw{display:inline-flex;gap:4px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-sw button{font:inherit;font-size:.8rem;padding:2px 10px;border-radius:99px;border:1px solid rgba(255,255,255,.18);background:transparent;color:inherit;cursor:pointer}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-sw button.on{background:rgba(59,130,246,.28);border-color:#3b82f6;color:#93c5fd}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t{width:auto!important;border-collapse:collapse}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t th{text-align:left!important;white-space:nowrap;padding:3px 10px 3px 0!important;vertical-align:middle;border:0!important;background:transparent!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-r{color:#f5b301;letter-spacing:1px;width:46px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-l{width:30px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-l img{display:block;width:26px;height:26px;object-fit:contain}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-p{font-weight:600}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-v{color:#9fb0d0;font-variant-numeric:tabular-nums}


/* Trois étoiles : les trois joueurs côte à côte, logos plus grands */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t{display:block}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t tbody{display:flex;flex-wrap:wrap;gap:6px 26px;align-items:center}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t tr{display:grid!important;grid-template-columns:auto auto auto;grid-template-areas:'r l p' 'r l v';column-gap:10px;row-gap:0;align-items:center}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-r{grid-area:r;width:auto!important;padding:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-l{grid-area:l;width:auto!important;padding:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-p{grid-area:p;padding:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-v{grid-area:v;padding:0!important;font-size:.85rem}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page table.ts-t .ts-l img{width:44px!important;height:44px!important}

/* Trois étoiles v3 : pleine largeur, Jour puis Semaine, trois joueurs sur une ligne */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-stars-top{display:block!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-stars-top>.portal-panel.ts-card{width:100%!important;box-sizing:border-box}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk{display:flex;align-items:center;gap:18px;padding:6px 0;border-top:1px solid rgba(255,255,255,.1)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk:first-of-type{border-top:0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-k{flex:0 0 150px;font-weight:700;color:#93c5fd;text-transform:uppercase;letter-spacing:.04em;font-size:.8rem}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk table.ts-t{flex:1 1 auto;width:auto!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk table.ts-t tbody{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk table.ts-t[hidden]{display:block}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-v{color:#cfe0ff!important;font-weight:600;font-variant-numeric:tabular-nums}

/* Trois étoiles v4 : Jour à gauche, Semaine à droite, côte à côte */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-stars-top>.portal-panel.ts-card{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-card>header{grid-column:1/-1}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk{flex-direction:column;align-items:flex-start;gap:6px;padding:4px 0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk+.ts-blk{border-top:0!important;border-left:1px solid rgba(255,255,255,.12);padding-left:28px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-k{flex:none}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk table.ts-t{width:100%!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk table.ts-t tbody{gap:0 14px}

/* Matchs du jour : « Sommaire → » toujours en bas à gauche de la tuile */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-game-grid>.today-game>a:last-child{margin-top:auto!important;align-self:flex-start;padding-top:8px}


/* Fiche joueur : liens externes en haut (à côté de l'équipe/âge/position) + couleur de la condition */
html body.espace .player-profile .pc-liens-top{display:inline-flex;flex-wrap:wrap;gap:6px;margin:0 0 0 14px;vertical-align:middle}
html body.espace .player-profile .pc-liens-top .pc-btn{padding:3px 10px!important;font-size:.82rem!important;line-height:1.3;white-space:nowrap}
html body.espace .player-profile td.cond{font-weight:800}
html body.espace .player-profile td.cond.cond-low{color:#f87171!important}
html body.espace .player-profile td.cond.cond-96{color:#facc15!important}
html body.espace .player-profile td.cond.cond-99{color:#4ade80!important}
html body.espace .player-profile td.cond.cond-100{color:#93c5fd!important}

/* Fiche joueur : la condition colorée dans la ligne équipe · âge · position (les liens restent en bas) */
html body.espace .player-profile .player-cond{font-weight:800}
html body.espace .player-profile .player-cond.cond-low{color:#f87171!important}
html body.espace .player-profile .player-cond.cond-96{color:#facc15!important}
html body.espace .player-profile .player-cond.cond-99{color:#4ade80!important}
html body.espace .player-profile .player-cond.cond-100{color:#93c5fd!important}

/* Carte joueur (popup) : équipe · âge · position · condition en HAUT, à côté du portrait */
html body.espace .player-card .player-profile .player-profile-identity{grid-row:1/3!important;align-self:start!important;padding-top:4px}


/* Matchs du jour : trois etoiles empilees sur telephone */
@media(max-width:700px){html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .today-stars-top>.portal-panel.ts-card{grid-template-columns:minmax(0,1fr)!important}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk+.ts-blk{border-left:0!important;padding-left:0!important;border-top:1px solid rgba(255,255,255,.12)!important}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.today-page .ts-blk table.ts-t tbody{grid-template-columns:minmax(0,1fr)!important;row-gap:4px}}

/* Records : tuiles à la largeur de leur contenu, côte à côte, sans espace vide (remplace la grille étirée 1fr) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles{display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:flex-start!important;justify-content:flex-start!important;grid-template-columns:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles>.rec-tile{width:fit-content!important;max-width:100%!important;flex:0 0 auto!important;overflow:visible!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles .compact-table{width:max-content!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles td:last-child{text-align:left!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0 0 8px;font-size:.78rem}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-legend span{white-space:nowrap}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile th{padding:2px 8px!important;font-size:.68rem!important;font-weight:600;text-transform:none;text-align:left!important;white-space:nowrap;color:#8fa8c8;border-bottom:1px solid rgba(143,168,200,.25)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td:last-child{padding-right:12px!important}

/* Records : toutes les tuiles de la même grosseur (largeur = la plus large, fixée par le script de la page) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles{display:grid!important;grid-template-columns:repeat(auto-fill,var(--rec-w,max-content))!important;justify-content:start!important;align-items:stretch!important;gap:10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles>.rec-tile{width:var(--rec-w,fit-content)!important;box-sizing:border-box!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile .mini-logo,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tile td .hist-ph{width:24px!important;height:24px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles{display:flex!important;flex-wrap:wrap!important;grid-template-columns:none!important;align-items:stretch!important;justify-content:flex-start!important;gap:10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .rec-tiles>.rec-tile{flex:0 0 auto!important;width:var(--rec-w,fit-content)!important}

/* Garde-fou : jamais de contenu qui dépasse de la page (en-têtes qui se replient, champs qui rétrécissent) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-heading{flex-wrap:wrap!important;max-width:100%!important;box-sizing:border-box;overflow:visible!important;min-width:0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .portal-heading>*{min-width:0;max-width:100%}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .roster-rating-grid label{min-width:0;max-width:100%}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .roster-rating-grid label span,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .roster-rating-grid label input{min-width:0;max-width:100%;box-sizing:border-box}

/* Comparer des équipes : colonnes à la largeur de leur contenu (aucun espace vide) */
html body.espace main table.ce{width:max-content!important;max-width:100%!important}
html body.espace main table.ce th,html body.espace main table.ce td{width:auto!important;min-width:0!important}

/* Résumé : « Autour de la ligue » en bande défilante sous les résultats */
main.rv2 .rv-strip{margin:0 0 12px}
main.rv2 .rv-strip .rv-body>div{overflow:visible}
main.rv2 .rv-strip .rv-list,main.rv2 .rv-strip .rv-lines{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 8px;margin:0;list-style:none;scroll-snap-type:x proximity}
main.rv2 .rv-strip .rv-list li,main.rv2 .rv-strip .rv-lines li{flex:0 0 auto;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:5px 10px;background:rgba(255,255,255,.03);scroll-snap-align:start;white-space:nowrap}
main.rv2 .rv-strip .rv-list li b{margin-left:6px}
main.rv2 .rv-strip h3{margin:6px 0 2px;font-size:.78rem;opacity:.75}
main.rv2 .rv-cols{grid-template-columns:minmax(0,1.55fr) repeat(3,minmax(0,1fr))}

/* Mobile : le menu du haut ne reste pas collé à l'écran, il défile avec la page */
@media(max-width:760px){
 .hd,html body.espace .hd{position:static!important;top:auto!important}
 .nv-tbar{top:0!important}
}
main.rv2 .rv-strip>header{align-items:center}
main.rv2 .rv-strip .rv-strip-arrows{margin-left:auto;display:inline-flex;gap:6px}
main.rv2 .rv-strip .rv-tabs{margin-left:12px}
main.rv2 .rv-strip .rv-list,main.rv2 .rv-strip .rv-lines{scrollbar-width:thin;cursor:grab}
main.rv2 .rv-sarrow{height:26px;line-height:1;padding:0}

/* Tableau de bord : choix au repêchage (nombre de choix par ronde, 3 prochaines années) */
html body.espace main .club-picks{width:fit-content;max-width:100%}
html body.espace main .pk-table{border-collapse:separate;border-spacing:4px;width:auto!important;table-layout:auto!important}
html body.espace main .pk-table th{font-size:.72rem;font-weight:700;text-align:center!important;padding:2px 8px!important;color:var(--texte-doux,#9fb0d0);white-space:nowrap}
html body.espace main .pk-table tbody th{text-align:left!important;color:inherit}
html body.espace main .pk-table td{min-width:40px;text-align:center!important;font-weight:800;padding:5px 8px!important;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);font-variant-numeric:tabular-nums}
html body.espace main .pk-table td.pk-more{background:rgba(56,189,160,.35);border-color:rgba(56,189,160,.6)}
html body.espace main .pk-table td.pk-none{background:rgba(190,100,150,.35);border-color:rgba(190,100,150,.6)}
html[data-theme="clair"] body.espace main .pk-table td{border-color:rgba(0,0,0,.18);background:rgba(0,0,0,.03)}
html[data-theme="clair"] body.espace main .pk-table td.pk-more{background:rgba(22,163,130,.22)}
html[data-theme="clair"] body.espace main .pk-table td.pk-none{background:rgba(190,60,120,.2)}

/* Choix au repêchage à la place de l'ancien bloc « mouvements » (colonne de droite) ; mouvements en bas */
html body.espace main.team-page>.club-activity{order:99}
@media(min-width:1500px){
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-picks{grid-row:7!important;grid-column:3!important;align-self:start!important;width:fit-content!important}
 html body.espace main.team-page.team-page:has(.club-cards2)>.club-activity{grid-row:8!important;grid-column:1/4!important;width:auto!important}
}@media(min-width:1500px){html body.espace main.team-page.team-page:has(.club-cards2)>.club-activity .move-list>*:nth-child(n+3){display:grid!important}html body.espace main.team-page.team-page:has(.club-cards2)>.club-activity .move-list>*:nth-child(n+6){display:none!important}}

/* Rapport de match · Gardiens : logo du club à côté du grand portrait, jamais au-dessus */
html body.espace main.game-report .gc-gw{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
html body.espace main.game-report .gc-gw>img{width:28px!important;height:28px!important;flex:0 0 28px;display:block;object-fit:contain;margin:0!important}
html body.espace main.game-report .gc-gw a{font-weight:700}
html body.espace main.game-report .gc-gw .player-link-portrait{width:40px!important;height:40px!important;flex:0 0 40px!important;border-radius:50%;object-fit:cover;margin:0 8px 0 0!important}
/* Sommaire du match · Trois étoiles : grosse étoile, grand portrait, logo à côté du nom, points sous le nom */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star{grid-template-columns:78px minmax(0,1fr)!important;column-gap:12px!important;padding:8px 12px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-n{font-size:26px!important;letter-spacing:2px;line-height:1;color:#facc15;text-align:center}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp{flex-wrap:nowrap!important;gap:10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp a{display:inline-flex!important;align-items:center;font-size:18px!important;font-weight:700}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp a .player-link-portrait{width:52px!important;height:52px!important;flex:0 0 52px!important;border-radius:50%;object-fit:cover;margin:0 10px 0 0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp small{display:inline-flex!important;align-items:center;flex:0 0 auto}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp small img{width:30px!important;height:30px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-ln{padding-left:0;font-size:14px!important;font-weight:600}
/* Trois étoiles : portrait et logo plus gros, logo centré verticalement sur le portrait/nom */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp{align-items:center!important;gap:14px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp a{font-size:20px!important;align-items:center!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp a .player-link-portrait{width:76px!important;height:76px!important;flex:0 0 76px!important;margin:0 14px 0 0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp small{align-self:center!important;margin:0!important;line-height:0}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp small img{width:48px!important;height:48px!important;display:block;margin:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-n{font-size:30px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-ln{font-size:15px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-star .gc-sp small{position:relative;top:-7px}

/* Gardiens : cellules centrées verticalement sur le portrait, logo après le nom, en-têtes sans retour à la ligne */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-gk td{vertical-align:middle!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-gk th{white-space:nowrap!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-gw>img.gc-lg{width:32px!important;height:32px!important;flex:0 0 32px;margin:0 0 0 4px!important}
/* Fiche joueur : rang de chaque cote dans son groupe de position */
.profile-ratings .rk-note{font-size:.7em;font-weight:400;opacity:.7}
.player-rating .rk-v{display:block;font-style:normal;font-size:.72rem;opacity:.7;line-height:1.1;margin-top:1px}

/* Fiche joueur : logo à gauche du nom d'équipe, sur une seule ligne */
.profile-details .team-identity{flex-wrap:nowrap!important;white-space:nowrap!important;gap:8px;max-width:100%}
html body.espace .player-profile table.profile-details tbody>tr:first-child .team-identity,.player-card .player-profile table.profile-details tbody>tr:first-child .team-identity{gap:5px!important;font-size:11.5px!important;letter-spacing:-.1px}
html body.espace .player-profile table.profile-details tbody>tr:first-child .team-identity img,.player-card .player-profile table.profile-details tbody>tr:first-child .team-identity img{width:18px!important;height:18px!important;flex:0 0 18px}
.profile-details .team-identity .tn-f{white-space:nowrap}
.profile-details .team-identity img{flex:0 0 22px}


/* Sommaire : logos d'équipe jamais rognés ni déformés (les images ne sont pas carrées : Canadiens 256×174, Sharks 256×214). */
html body.espace main.game-report img.gc-lg,html body.espace main.game-report .gc-star .gc-sp small img,html body.espace main.game-report .gc-team img{object-fit:contain!important;object-position:center!important}
/* Sommaire : « Trois étoiles » et « Pointage et tirs par période » à la même hauteur (~200 px), un peu plus compacts. */
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl tr{height:auto!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl :is(th,td){padding:1px 6px!important;line-height:1.12!important;height:auto!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl td{font-size:14.5px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl img.gc-lg{width:16px!important;height:16px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child{padding-top:8px!important;padding-bottom:8px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child{min-height:200px;box-sizing:border-box}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star{padding:6px 12px!important;grid-template-columns:70px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star img.player-link-portrait,html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp img:first-child{width:66px!important;height:66px!important}
/* Sommaire (v2) : les deux cartes du haut ont EXACTEMENT la même hauteur fixe, quel que soit l'écran. */
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl :is(th,td){padding:0 6px!important;line-height:1.1!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl td{font-size:14px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl th{font-size:11.5px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl img.gc-lg{width:14px!important;height:14px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child .gc-sub{margin:3px 0 0!important;font-size:12px!important;line-height:1.2!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child{padding-top:7px!important;padding-bottom:7px!important;height:176px;box-sizing:border-box}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child > :is(h2,h3){margin:0 0 3px!important;font-size:13px!important;line-height:1.2!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child{height:176px;min-height:0;box-sizing:border-box;padding-top:7px!important;padding-bottom:7px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child > :is(h2,h3){margin:0 0 4px!important;font-size:13px!important;line-height:1.2!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star{padding:4px 10px!important;grid-template-columns:58px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star img.player-link-portrait,html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp img:first-child{width:54px!important;height:54px!important}
/* Sommaire : nombre de passes cumulées de l'auteur d'une aide, en petit (comme le compte de buts). */
html body.espace main.game-report .gc-as small{opacity:.65;font-size:.8em;margin-left:2px}

/* Sommaire (v3) : portrait des étoiles rond et plus grand (76 px), logo 44 px, cartes du haut à 192 px de haut. */
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child,html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child{height:192px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star{grid-template-columns:80px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp img.player-link-portrait{width:76px!important;height:76px!important;border-radius:50%;object-fit:cover}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp small img.gc-lg{width:44px!important;height:44px!important}
/* Sommaire (v4) : « Trois étoiles » en disposition D — portrait rond à gauche, étoiles + nom + stats centrés, logo à droite. Cartes du haut : 176 px. */
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child,html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child{height:176px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star{display:grid!important;grid-template-columns:104px 1fr 64px!important;grid-template-areas:"ph st lg" "ph nm lg" "ph ln lg"!important;align-items:center;column-gap:10px;padding:4px 12px!important;height:auto}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp,html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp a,html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp small{display:contents!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-n{grid-area:st;text-align:center;font-size:18px!important;line-height:1!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp img.player-link-portrait{grid-area:ph;width:100px!important;height:100px!important;border-radius:50%;object-fit:cover;flex:none}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-nm{grid-area:nm;text-align:center;font-size:21px;font-weight:700}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-ln{grid-area:ln;text-align:center;font-size:14px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp small img.gc-lg{grid-area:lg;width:60px!important;height:60px!important;align-self:center}
/* Sommaire : « Pointage et tirs par période » — un seul tableau, Buts | Tirs (disposition B). */
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge{width:100%;margin-top:6px}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge th{font-size:12px!important;padding:2px 6px!important;text-align:center!important;text-transform:uppercase;letter-spacing:.4px}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge td{font-size:20px!important;padding:7px 6px!important;text-align:center!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge td.gc-tot{font-weight:700}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge .gc-sepl{border-left:1px solid var(--bordure,rgba(255,255,255,.12))}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge td.gc-tm,html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge th:first-child{text-align:left!important;width:42px}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge img.gc-lg{width:30px!important;height:30px!important}
/* Sommaire (v5) : cartes du haut plus basses (156 px), portraits 88 px, tableau Buts | Tirs en colonnes égales. */
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child,html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child{height:156px!important;padding-top:6px!important;padding-bottom:6px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child > :is(h2,h3),html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child > :is(h2,h3){margin:0 0 4px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star{grid-template-columns:92px 1fr 56px!important;padding:2px 10px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp img.player-link-portrait{width:88px!important;height:88px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-nm{font-size:20px}
html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child .gc-star .gc-sp small img.gc-lg{width:52px!important;height:52px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge{table-layout:fixed!important;width:100%!important;margin-top:2px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge :is(th,td){width:auto!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge th:first-child,html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge td.gc-tm{width:46px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge td{font-size:19px!important;padding:4px 2px!important;vertical-align:middle!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge th{padding:1px 2px!important}
html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child table.gc-tbl.gc-merge td.gc-tm img{display:block;margin:0!important}
/* Sommaire : la hauteur fixe des deux cartes du haut ne vaut que sur grand écran (sinon les étoiles s'empilent et débordent). */
@media(max-width:1499px){
 html body.espace.eff-tx main.portal-home.game-report .gc-main > section.gc-card:first-child,html body.espace.eff-tx main.portal-home.game-report .gc-side > section.gc-card:first-child{height:auto!important;min-height:0!important}
}
/* Fusillade : tentatives (joueur, résultat) sans changer le pointage. */
html body.espace main.game-report .gc-g.gc-so .gc-score{font-size:.9em;opacity:.9}
/* Fusillade : visiteur à gauche, domicile à droite, pointage de la fusillade au centre. */
html body.espace main.game-report .gc-soRow{display:grid;grid-template-columns:1fr 84px 1fr;gap:10px;align-items:center;padding:6px 0;border-top:1px solid var(--bordure,rgba(255,255,255,.1))}
html body.espace main.game-report .gc-socell{display:flex;align-items:center;gap:10px;min-height:34px}
html body.espace main.game-report .gc-socell.r{justify-content:flex-end;text-align:right}
html body.espace main.game-report .gc-sosc{text-align:center;font-size:20px;white-space:nowrap}
html body.espace main.game-report .gc-as.gc-ok{color:var(--text-success,#4cc98a);font-weight:600}
/* Sommaire : façon dont le but a été marqué (couleur selon le type). */
html body.espace main.game-report .gc-sc1 .gc-tag.gc-tag-pp{background:rgba(76,201,138,.18);border-color:rgba(76,201,138,.5);color:#4cc98a}
html body.espace main.game-report .gc-sc1 .gc-tag.gc-tag-sh{background:rgba(167,139,250,.18);border-color:rgba(167,139,250,.5);color:#a78bfa}
html[data-theme="clair"] body.espace main.game-report .gc-sc1 .gc-tag.gc-tag-pp{color:#16794a}
html[data-theme="clair"] body.espace main.game-report .gc-sc1 .gc-tag.gc-tag-sh{color:#6d4fc2}
/* Déviation (la ligne « Deflect By » précède le but dans le jeu par jeu) : seulement quand c'est certain. */
html body.espace main.game-report .gc-sc1 .gc-tag.gc-tag-dev{background:rgba(56,189,248,.16);border-color:rgba(56,189,248,.5);color:#38bdf8}
html[data-theme="clair"] body.espace main.game-report .gc-sc1 .gc-tag.gc-tag-dev{color:#0b6e99}
/* Effectif (cotes) : tous les tableaux (Attaquants, Défenseurs, Gardiens; Alignement et Scratchs; Pro et Farm) ont la MÊME largeur et les mêmes
   colonnes de départ : Nom = largeur du nom le plus long de la ligue (--nom-ch, calculé en PHP), puis POS, Âge, Condition; les cotes s'alignent d'un tableau à l'autre. */
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 982px)!important;max-width:100%!important;box-sizing:border-box}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx){table-layout:fixed!important;width:100%!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(1){width:calc(var(--nom-ch,22)*7.8px + 58px)!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(2){width:86px!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(3){width:50px!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(4){width:84px!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(n+5){width:auto!important;min-width:0!important;max-width:none!important}
/* Informations des joueurs : mêmes largeurs de colonnes dans tous les tableaux (Nom = nom le plus long de la ligue, puis POS, Âge, contrat, salaires…), Pro/Farm, Alignement/Scratchs, Attaquants/Défenseurs/Gardiens. */
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 58px + 1232px)!important;max-width:100%!important;box-sizing:border-box}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx){table-layout:fixed!important;width:100%!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td){white-space:nowrap}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(1){width:calc(var(--nom-ch,22)*7.8px + 58px)!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(2){width:86px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(3){width:50px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(4){width:80px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(5){width:66px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(6){width:104px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(7){width:124px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(8){width:104px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(9){width:70px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(10){width:80px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(11){width:70px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(12){width:86px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(13){width:50px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(14){width:54px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(15){width:112px!important;max-width:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(16){width:96px!important;max-width:none!important}

/* Pas de défilement horizontal parasite quand la fenêtre a assez de place (2 px de bordures dépassaient) : marge de 8 px sur la largeur des sections. */
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 990px)!important;height:auto!important;max-height:none!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 1298px)!important;height:auto!important;max-height:none!important}
/* Effectifs (liste de la ligue / par club) : tous les tableaux font EXACTEMENT --rt-w (même largeur, mêmes colonnes) — les cellules ne dictent plus la largeur. */
html body.espace.eff-tx main table.schedule-table.rt-fixed.rt-fixed.rt-fixed:not(.compare-table):not(.fin-table):not(.no-tx){width:var(--rt-w)!important;max-width:none!important;min-width:0!important}
html body.espace.eff-tx main table.schedule-table.rt-fixed.rt-fixed.rt-fixed:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td){width:auto!important}
/* Effectifs : en-têtes un peu plus petits pour que « Années » tienne sur une seule ligne. */
html body.espace.eff-tx main table.schedule-table.rt-fixed:not(.compare-table):not(.fin-table):not(.no-tx) thead tr:first-child th{font-size:10.6px!important;letter-spacing:.1px!important;white-space:nowrap!important}

/* Colonne de rang (1, 2, 3…) à gauche des tableaux de statistiques. */
html body.espace main table.schedule-table :is(th,td).rk-col{width:34px!important;min-width:34px!important;max-width:34px!important;padding-left:8px!important;padding-right:6px!important;text-align:right!important;color:var(--texte-doux,#8fa0c4)!important;font-variant-numeric:tabular-nums;font-weight:400!important}
html body.espace main table.schedule-table th.rk-col{font-weight:600!important}
/* Effectif / Informations des joueurs : numéro de rang (1, 2, 3…) à gauche de chaque rangée, par tableau — compteur CSS (suit le tri et les filtres, rien à recalculer). La colonne Nom gagne 34 px. */
html body.espace.eff-tx main [data-team-roster-section] table.schedule-table tbody{counter-reset:rk}
html body.espace.eff-tx main [data-team-roster-section] table.schedule-table tbody tr{counter-increment:rk}
html body.espace.eff-tx main [data-team-roster-section] table.schedule-table :is(thead th,tbody td):first-child{position:relative;padding-left:38px!important}
html body.espace.eff-tx main [data-team-roster-section] table.schedule-table tbody td:first-child::before{content:counter(rk);position:absolute;left:4px;top:50%;transform:translateY(-50%);width:26px;text-align:right;color:var(--texte-doux,#8fa0c4);font-size:12.5px;font-variant-numeric:tabular-nums;font-weight:400}
html body.espace.eff-tx main [data-team-roster-section] table.schedule-table thead th:first-child::before{content:"#";position:absolute;left:4px;top:50%;transform:translateY(-50%);width:26px;text-align:right;color:var(--texte-doux,#8fa0c4);font-size:11px;font-weight:600}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 1024px)!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 1332px)!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(1),html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(1){width:calc(var(--nom-ch,22)*7.8px + 92px)!important}
/* Informations des joueurs v2 : le type de contrat (1 way / 2 way) passe juste après POS et devient une pastille colorée; colonnes abrégées donc plus étroites. */
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 92px + 1030px + 8px)!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(2){width:86px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(3){width:74px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(4){width:50px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(5){width:46px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(6){width:104px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(7){width:104px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(8){width:104px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(9){width:70px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(10){width:56px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(11){width:70px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(12){width:56px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(13){width:50px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(14){width:54px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(15){width:56px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(16){width:50px!important}
html body.espace main .cw{display:inline-block;padding:1px 9px;border-radius:999px;font-weight:700;font-size:12px;line-height:1.5;white-space:nowrap}
html body.espace main .cw-1way{background:rgba(251,146,60,.18);color:#fb923c;border:1px solid rgba(251,146,60,.5)}
html body.espace main .cw-2way{background:rgba(56,189,248,.14);color:#38bdf8;border:1px solid rgba(56,189,248,.45)}
html[data-theme="clair"] body.espace main .cw-1way{color:#b45309}
html[data-theme="clair"] body.espace main .cw-2way{color:#0b6e99}
html body.espace.eff-tx main [data-team-roster-section][data-team-roster-section] table.schedule-table.schedule-table :is(thead th,tbody td):first-child{padding-left:38px!important}

/* Effectifs (liste) : numéro de rang à gauche de chaque rangée (compteur CSS, suit tri et filtres). */
html body.espace.eff-tx main table.schedule-table.rt-fixed tbody{counter-reset:rk}
html body.espace.eff-tx main table.schedule-table.rt-fixed tbody tr{counter-increment:rk}
html body.espace.eff-tx main table.schedule-table.rt-fixed :is(thead th,tbody td):first-child{position:relative;padding-left:38px!important}
html body.espace.eff-tx main table.schedule-table.rt-fixed tbody td:first-child::before{content:counter(rk);position:absolute;left:4px;top:50%;transform:translateY(-50%);width:26px;text-align:right;color:var(--texte-doux,#8fa0c4);font-size:12.5px;font-variant-numeric:tabular-nums;font-weight:400}
html body.espace.eff-tx main table.schedule-table.rt-fixed thead tr:first-child th:first-child::before{content:"#";position:absolute;left:4px;top:50%;transform:translateY(-50%);width:26px;text-align:right;color:var(--texte-doux,#8fa0c4);font-size:11px;font-weight:600}

/* Informations (liste) : colonnes ajustées au contenu (auto-ajustement), tableau aussi large que nécessaire et pas plus; rang à gauche. */
html body.espace.eff-tx main table.schedule-table.rt-auto{table-layout:auto!important;width:max-content!important;max-width:none!important;min-width:0!important}
html body.espace.eff-tx main table.schedule-table.rt-auto :is(th,td){width:auto!important;white-space:nowrap}
html body.espace.eff-tx main table.schedule-table.rt-auto tbody{counter-reset:rk}
html body.espace.eff-tx main table.schedule-table.rt-auto tbody tr{counter-increment:rk}
html body.espace.eff-tx main table.schedule-table.rt-auto :is(thead th,tbody td):first-child{position:relative;padding-left:38px!important}
html body.espace.eff-tx main table.schedule-table.rt-auto tbody td:first-child::before{content:counter(rk);position:absolute;left:4px;top:50%;transform:translateY(-50%);width:26px;text-align:right;color:var(--texte-doux,#8fa0c4);font-size:12.5px;font-variant-numeric:tabular-nums;font-weight:400}
html body.espace.eff-tx main table.schedule-table.rt-auto thead tr:first-child th:first-child::before{content:"#";position:absolute;left:4px;top:50%;transform:translateY(-50%);width:26px;text-align:right;color:var(--texte-doux,#8fa0c4);font-size:11px;font-weight:600}

/* Colonne « Nb ans » (années de contrat) un peu plus large que l'ancien « CT ». */
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 92px + 1030px + 24px)!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(5){width:62px!important}

/* Rang : le numéro occupe sa propre zone à gauche (34 px) et ne passe plus sur le portrait; « Nb années » sur une ligne. */
html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table.rt-auto.rt-auto:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td:first-child{padding-left:42px!important}
html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table.rt-auto.rt-auto:not(.compare-table):not(.fin-table):not(.no-tx) thead tr th:first-child{padding-left:42px!important}
html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table.rt-fixed.rt-fixed:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td:first-child{padding-left:42px!important}
html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main table.schedule-table.rt-fixed.rt-fixed:not(.compare-table):not(.fin-table):not(.no-tx) thead tr th:first-child{padding-left:42px!important}
html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main [data-team-roster-section] table.schedule-table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) tbody tr td:first-child{padding-left:42px!important}
html body.espace.eff-tx:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main [data-team-roster-section] table.schedule-table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead tr th:first-child{padding-left:42px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table :is(th,td):nth-child(5){width:84px!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 92px + 1030px + 46px)!important}
html body.espace.eff-tx main table.schedule-table :is(th,td){white-space:nowrap}

/* Colonnes POS plus étroites (alignées à gauche) : 66 px au lieu de 86 px. */
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 1004px)!important}
html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 1148px)!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(2),html body.espace.eff-tx main .roster-status-group.rg-info section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) :is(th,td):nth-child(2){width:66px!important;text-align:left!important}

/* Informations : le tableau n'apparaît qu'une fois les en-têtes ajustés (rt-headers.js) — plus de libellés qui changent sous les yeux. Filet de sécurité : visible après 0,8 s quoi qu'il arrive. */
html body.espace main table.schedule-table.rt-auto:not(.rt-ready){opacity:0;animation:rt-reveal 0s linear .8s forwards}
html body.espace main table.schedule-table.rt-auto.rt-ready{opacity:1}
@keyframes rt-reveal{to{opacity:1}}
/* Navigation douce (rt-soft-nav.js) : le contenu s'estompe pendant le chargement au lieu de disparaître. */
html body.espace main.portal-home.rt-loading{opacity:.55;transition:opacity .15s;pointer-events:none}
html body.espace main.portal-home{transition:opacity .15s}

/* ═══ Effectifs : filtres supplémentaires (Contrat, Plus de filtres, filtres actifs) ═══ */
html body.espace main .eff-filters{margin:10px 0 12px;padding:10px 12px;border:1px solid var(--bordure,rgba(255,255,255,.12));border-radius:10px;background:var(--carte,rgba(255,255,255,.03));width:fit-content;max-width:100%;box-sizing:border-box}
html body.espace main .ef-row{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
html body.espace main .ef-row+.ef-row,html body.espace main .ef-panel{margin-top:10px}
html body.espace main .ef-panel[hidden]{display:none}
html body.espace main .ef-panel{padding-top:10px;border-top:1px solid var(--bordure,rgba(255,255,255,.12))}
html body.espace main .ef-grp{display:flex;flex-direction:column;gap:4px}
html body.espace main .ef-lab{font-size:12px;color:var(--texte-doux,#8fa0c4)}
html body.espace main .ef-chips{display:flex;flex-wrap:wrap;gap:4px}
html body.espace main .ef-chip{display:inline-block;padding:4px 11px;border:1px solid var(--bordure,rgba(255,255,255,.2));border-radius:6px;font-size:13px;font-weight:600;color:var(--texte,#e7ecf7);text-decoration:none;white-space:nowrap}
html body.espace main .ef-chip:hover{border-color:#6ea8ff}
html body.espace main .ef-chip.on{background:rgba(59,130,246,.28);border-color:#5b9bff;color:#cfe3ff}
html body.espace main .ef-more{background:none;border:0;color:#7db4ff;font-size:13px;cursor:pointer;padding:4px 2px}
html body.espace main .ef-ret{margin-left:auto;font-size:12px;opacity:.7;color:var(--texte-doux,#8fa0c4)}
html body.espace main .ef-sliders{gap:10px 28px}
html body.espace main .ef-range{display:flex;align-items:center;gap:10px}
html body.espace main .ef-val{font-size:13px;font-weight:600;min-width:112px;font-variant-numeric:tabular-nums}
html body.espace main .ef-track{position:relative;width:200px;height:20px}
html body.espace main .ef-track::before{content:"";position:absolute;left:0;right:0;top:8px;height:4px;border-radius:2px;background:var(--bordure,rgba(255,255,255,.18))}
html body.espace main .ef-fill{position:absolute;top:8px;height:4px;border-radius:2px;background:#7dd3fc}
html body.espace main .ef-track input[type=range]{position:absolute;left:0;top:0;width:100%;height:20px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
html body.espace main .ef-track input[type=range]::-webkit-slider-runnable-track{background:none;height:20px}
html body.espace main .ef-track input[type=range]::-moz-range-track{background:none;height:20px}
html body.espace main .ef-track input[type=range]::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;width:16px;height:16px;margin-top:2px;border-radius:50%;background:#e7f3ff;border:2px solid #5b9bff;cursor:pointer}
html body.espace main .ef-track input[type=range]::-moz-range-thumb{pointer-events:auto;width:12px;height:12px;border-radius:50%;background:#e7f3ff;border:2px solid #5b9bff;cursor:pointer}
html body.espace main .ef-active{padding-top:10px;border-top:1px solid var(--bordure,rgba(255,255,255,.12));margin-top:10px}
html body.espace main .ef-tag{display:inline-block;padding:3px 10px;border-radius:999px;background:rgba(59,130,246,.3);color:#cfe3ff;font-size:12.5px;font-weight:600;text-decoration:none;white-space:nowrap}
html body.espace main .ef-tag:hover{background:rgba(220,60,60,.35)}
html body.espace main .ef-clear{font-size:13px;color:#7db4ff}
html[data-theme="clair"] body.espace main .ef-chip.on{background:rgba(37,99,235,.14);color:#1d4ed8;border-color:#2563eb}
html[data-theme="clair"] body.espace main .ef-tag{background:rgba(37,99,235,.14);color:#1d4ed8}
html[data-theme="clair"] body.espace main .ef-more,html[data-theme="clair"] body.espace main .ef-clear{color:#1d4ed8}
/* Barre de filtres (D) : segments collés pour Circuit, Position, Contrat. */
html body.espace main .ef-seg{display:inline-flex;border:1px solid var(--bordure,rgba(255,255,255,.2));border-radius:8px;overflow:hidden}
html body.espace main .ef-seg a{padding:5px 12px;font-size:13px;font-weight:600;color:var(--texte,#e7ecf7);text-decoration:none;border-right:1px solid var(--bordure,rgba(255,255,255,.14));white-space:nowrap}
html body.espace main .ef-seg a:last-child{border-right:0}
html body.espace main .ef-seg a:hover{background:rgba(59,130,246,.12)}
html body.espace main .ef-seg a.on{background:rgba(59,130,246,.28);color:#cfe3ff}
html[data-theme="clair"] body.espace main .ef-seg a.on{background:rgba(37,99,235,.14);color:#1d4ed8}
html body.espace main .ef-lab{text-transform:uppercase;letter-spacing:.4px;font-size:11px}
html body.espace main .ef-libres{align-items:flex-end}
html body.espace main .ef-more{align-self:flex-end;padding-bottom:6px}
html body.espace main .ef-ret{align-self:flex-end;padding-bottom:6px}
/* Navigation douce : plus d'effet d'estompe qui clignote — le contenu reste tel quel pendant le chargement et une fine barre glisse en haut de l'écran. */
html body.espace main.portal-home,html body.espace main.portal-home.rt-loading{opacity:1!important;transition:none!important;pointer-events:auto!important}
html body.espace main.portal-home.rt-loading::before{content:"";position:fixed;top:0;left:0;height:3px;width:35%;background:#7dd3fc;border-radius:0 2px 2px 0;z-index:9999;animation:rt-bar .9s ease-in-out infinite}
@keyframes rt-bar{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}
/* ═══ Carte du joueur — Vue d'ensemble (refonte 2026-10-30) : statistiques et cotes en barres + informations en 4 blocs. Ancienne version : _sauvegardes/ ═══ */
html body.espace .player-profile .profile-ovnew{grid-column:1/-1;padding:12px 14px!important;width:100%;box-sizing:border-box}
html body.espace .player-profile .profile-ovnew h2{font-size:13px!important;margin:0 0 6px!important;text-transform:uppercase;letter-spacing:.4px}
html body.espace .player-profile .profile-ovnew .ov-h2{margin:16px 0 8px!important}
html body.espace .player-profile .ov-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 34px;align-items:start}
html body.espace .player-profile .ov-gh{font-size:11px;color:var(--texte-doux,#8fa0c4);margin:8px 0 2px;font-weight:600}
html body.espace .player-profile .ov-gh:first-of-type{margin-top:0}
html body.espace .player-profile .ov-bar{display:grid;grid-template-columns:42px minmax(60px,1fr) 62px 44px;gap:8px;align-items:center;font-size:13px;margin:3px 0}
html body.espace .player-profile .ov-bar span{font-weight:600}
html body.espace .player-profile .ov-bar i{display:block;height:7px;border-radius:4px;background:var(--bordure,rgba(255,255,255,.16));overflow:hidden}
html body.espace .player-profile .ov-bar u{display:block;height:7px;border-radius:4px;text-decoration:none}
html body.espace .player-profile .ov-bar b{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
html body.espace .player-profile .ov-bar em{font-style:normal;color:var(--texte-doux,#8fa0c4);font-size:12px;text-align:right}
html body.espace .player-profile .ov-bar u.hi{background:#4ade80}
html body.espace .player-profile .ov-bar u.md{background:#7dd3fc}
html body.espace .player-profile .ov-bar u.lo{background:#fbbf24}
html body.espace .player-profile .ov-bar u.mu{background:#94a3b8}
html[data-theme="clair"] body.espace .player-profile .ov-bar u.hi{background:#16a34a}
html[data-theme="clair"] body.espace .player-profile .ov-bar u.md{background:#0284c7}
html[data-theme="clair"] body.espace .player-profile .ov-bar u.lo{background:#d97706}
html[data-theme="clair"] body.espace .player-profile .ov-bar u.mu{background:#64748b}
html body.espace .player-profile .ov-blks{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;align-items:start}
html body.espace .player-profile .ov-blk{background:var(--fond2,rgba(255,255,255,.04));border:1px solid var(--bordure,rgba(255,255,255,.1));border-radius:9px;padding:8px 12px}
html body.espace .player-profile .ov-bh{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--texte-doux,#8fa0c4);font-weight:700;margin-bottom:4px}
html body.espace .player-profile .ov-kv{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border-bottom:1px solid var(--bordure,rgba(255,255,255,.08));font-size:13px}
html body.espace .player-profile .ov-kv:last-child{border-bottom:0}
html body.espace .player-profile .ov-kv span{color:var(--texte-doux,#8fa0c4)}
html body.espace .player-profile .ov-kv b{font-weight:600;text-align:right}
@media(max-width:900px){html body.espace .player-profile .ov-cols{grid-template-columns:1fr}}
/* Vue d'ensemble : Informations en haut; statistiques et cotes moins larges (colonnes de 430 px au plus). */
html body.espace .player-profile .profile-ovnew .ov-h2.ov-first{margin:0 0 8px!important}
html body.espace .player-profile .ov-cols{grid-template-columns:repeat(2,minmax(0,430px))!important;justify-content:start;margin-top:16px}
html body.espace .player-profile .ov-bar{grid-template-columns:38px minmax(60px,1fr) 58px 40px}
@media(max-width:900px){html body.espace .player-profile .ov-cols{grid-template-columns:minmax(0,430px)!important}}
/* Vue d'ensemble (v3) : blocs d'informations de même hauteur; statistiques et cotes qui prennent toute la largeur, chacune sur la moitié. */
html body.espace .player-profile .ov-blks{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important}
html body.espace .player-profile .ov-blk{display:flex;flex-direction:column}
html body.espace .player-profile .ov-cols{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px 40px}
html body.espace .player-profile .ov-cols>div{min-width:0}
@media(max-width:1100px){html body.espace .player-profile .ov-blks{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){html body.espace .player-profile .ov-blks,html body.espace .player-profile .ov-cols{grid-template-columns:minmax(0,1fr)!important}}
/* Vue d'ensemble (v4) : statistiques et cotes finissent à la même hauteur, rangées réparties également (le titre « Production » est retiré). */
html body.espace .player-profile .ov-cols>div{display:flex;flex-direction:column}
html body.espace .player-profile .ov-cols .ov-bar{flex:1 1 0;margin:0;min-height:22px}
html body.espace .player-profile .ov-cols .ov-gh{margin:6px 0 0;min-height:18px;display:flex;align-items:flex-end}
/* Carte du joueur (v5) : tout tient sans défilement dans la fenêtre (testé à 910 px de haut) — rangées et marges se resserrent selon la hauteur de l'écran. */
html body.espace .player-profile{--ov-row:clamp(14px,2.05vh,22px)}
html body.espace .player-profile .profile-ovnew{padding:8px 12px!important}
html body.espace .player-profile .profile-ovnew h2{margin:0 0 4px!important;font-size:12px!important}
html body.espace .player-profile .profile-ovnew .ov-h2.ov-first{margin:0 0 6px!important}
html body.espace .player-profile .ov-blks{gap:8px!important}
html body.espace .player-profile .ov-blk{padding:5px 10px!important}
html body.espace .player-profile .ov-bh{margin-bottom:1px!important;font-size:10.5px!important}
html body.espace .player-profile .ov-kv{padding:clamp(1px,.3vh,3px) 0!important;font-size:12.5px!important;line-height:1.25}
html body.espace .player-profile .ov-cols{margin-top:8px!important;gap:4px 34px!important}
html body.espace .player-profile .ov-cols .ov-bar{min-height:var(--ov-row)!important;font-size:12.5px;grid-template-columns:36px minmax(60px,1fr) 54px 38px;gap:6px}
html body.espace .player-profile .ov-bar i,html body.espace .player-profile .ov-bar u{height:6px!important}
html body.espace .player-profile .ov-cols .ov-gh{margin:3px 0 0!important;min-height:14px!important;font-size:10.5px}
/* ═══ Écrans 4K / grands écrans : agrandissement RETIRÉ de nouveau (31 oct. 2026, demande de Yan) — la page utilise la vraie largeur de l'écran. Règles zoom 1,333 / 1,6 / 2 supprimées.
   (Retiré le 26 oct. à la demande de Yan, puis remis : sans lui la page d'accueil paraissait minuscule sur 4K.) --zf = facteur; les unités vh/vw sont divisées par --zf. ═══ */

/* ═══ Résumé — disposition D (30 oct. 2026, v2) : plus de grands vides. Ancienne version : _sauvegardes/resume.AVANT-disposition-D-*.php.txt ═══
   1500–1799 px : 5 colonnes, Classement sur 2 colonnes (une conférence à la fois, onglets Est / Ouest / Ligue).
   1800 px et plus : 8 colonnes, Classement sur 5 colonnes avec Est et Ouest côte à côte. */
@media(min-width:1500px){
 main.rv2 .rv-cols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}
 main.rv2 .rv-col{display:contents}
 main.rv2 .rv-card[data-card="stand"]{grid-column:1/3;grid-row:1/3}
 main.rv2 .rv-card[data-card="lead"]{grid-column:3/5;grid-row:1}
 main.rv2 .rv-card[data-card="series"]{grid-column:3/5;grid-row:2}
 main.rv2 .rv-card[data-card="stars"]{grid-column:5;grid-row:1}
 main.rv2 .rv-card[data-card="g7"]{grid-column:5;grid-row:2}
 main.rv2 .rv-card[data-card="jal"]{grid-column:1/6;grid-row:3}
 main.rv2 .rv-card[data-card="lead"] .rv-list{column-count:2;column-gap:26px}
 main.rv2 .rv-card[data-card="lead"] .rv-list>li{break-inside:avoid}
 main.rv2 .rv-card[data-card="series"] .rv-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 1fr;grid-auto-flow:column;gap:0 26px;align-items:start}
 main.rv2 .rv-card[data-card="jal"] .rv-list{column-count:3;column-gap:26px}
 main.rv2 .rv-card[data-card="jal"] .rv-list>li{break-inside:avoid}
 main.rv2 .rv-conf{display:none}
 main.rv2 .rv-lb{display:none}
}
@media(min-width:1800px){
 main.rv2 .rv-cols{grid-template-columns:repeat(8,minmax(0,1fr))}
 main.rv2 .rv-card[data-card="stand"]{grid-column:1/6;grid-row:1/3}
 main.rv2 .rv-card[data-card="lead"]{grid-column:6/9;grid-row:1}
 main.rv2 .rv-card[data-card="series"]{grid-column:6/9;grid-row:2}
 main.rv2 .rv-card[data-card="stars"]{grid-column:1/3;grid-row:3}
 main.rv2 .rv-card[data-card="g7"]{grid-column:3/5;grid-row:3}
 main.rv2 .rv-card[data-card="jal"]{grid-column:5/9;grid-row:3}
 main.rv2 .rv-card[data-card="jal"] .rv-list{column-count:2}
 main.rv2 .rv-card[data-card="stand"]:not(:has(.rv-tabs button[data-v="all"].on)) .rv-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;align-items:start}
 main.rv2 .rv-card[data-card="stand"]:not(:has(.rv-tabs button[data-v="all"].on)) .rv-body>[data-p^="c"]{display:block!important;min-width:0}
 main.rv2 .rv-card[data-card="stand"] .rv-tabs button[data-v^="c"]:not([data-v="c0"]){display:none}
 main.rv2 .rv-card[data-card="stand"]:not(:has(.rv-tabs button[data-v="all"].on)) .rv-conf{display:block}
 main.rv2 .rv-lb{display:inline}
 main.rv2 .rv-ls{display:none}
}
main.rv2 .rv-conf{margin:0 0 4px;font-size:.78rem;font-weight:700;color:#93c5fd;text-transform:uppercase;letter-spacing:.4px}
/* Fiche joueur — Vue d'ensemble : options de présentation A / B / C (choisies par Yan sur le site) */
.profile-ovnew .ov-opts{display:flex;gap:6px;margin:0 0 8px}
.profile-ovnew .ov-opts input{position:absolute;opacity:0;pointer-events:none}
.profile-ovnew .ov-opts label{cursor:pointer;padding:3px 12px;border-radius:999px;border:1px solid var(--line,#3a3f47);font-size:12px;opacity:.75}
.profile-ovnew .ov-opts input:checked+label{opacity:1;background:var(--accent,#2f81f7);border-color:var(--accent,#2f81f7);color:#fff}
.profile-ovnew .ov-tiles{display:none;flex-wrap:wrap;gap:6px;margin-top:4px}
.profile-ovnew .ov-tile{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:44px;width:fit-content;padding:5px 10px;border-radius:8px;background:rgba(127,127,127,.12);line-height:1.15}
.profile-ovnew .ov-tile span{font-size:11px;opacity:.75}
.profile-ovnew .ov-tile b{font-size:16px;font-weight:600}
.profile-ovnew .ov-tile em{font-size:10px;font-style:normal;opacity:.65}
.profile-ovnew .ov-ct.hi b{color:#3fb950}.profile-ovnew .ov-ct.md b{color:#58a6ff}.profile-ovnew .ov-ct.lo b,.profile-ovnew .ov-ct.mu b{color:inherit;opacity:.8}
/* A : tuiles partout (rendu de la capture) */
.profile-ovnew:has(#ovo-a:checked){display:flex;flex-direction:column}
.profile-ovnew:has(#ovo-a:checked) .ov-opts{order:0}
.profile-ovnew:has(#ovo-a:checked) .ov-cols{order:1;grid-template-columns:1fr!important}
.profile-ovnew:has(#ovo-a:checked) .ov-first,.profile-ovnew:has(#ovo-a:checked) .ov-blks{order:2}
.profile-ovnew:has(#ovo-a:checked) .ov-tiles,.profile-ovnew:has(#ovo-c:checked) .ov-stats .ov-tiles{display:flex}
.profile-ovnew:has(#ovo-a:checked) .ov-barsbox,.profile-ovnew:has(#ovo-c:checked) .ov-stats .ov-barsbox{display:none}
/* C : statistiques en tuiles, cotes en barres */
/* Fiche joueur : Informations en haut (toutes options) et blocs condensés à la largeur de leur contenu */
.profile-ovnew:has(#ovo-a:checked) .ov-cols{order:3}
.profile-ovnew:has(#ovo-a:checked) .ov-first{order:1}
.profile-ovnew:has(#ovo-a:checked) .ov-blks{order:2}
.profile-ovnew .ov-blks{display:flex!important;flex-wrap:wrap;align-items:stretch;gap:8px;grid-template-columns:none!important}
.profile-ovnew .ov-blks .ov-blk{flex:0 0 auto;width:fit-content;min-width:0;max-width:100%}
.profile-ovnew .ov-blks .ov-kv{gap:18px;white-space:nowrap}
/* Fiche joueur — Options D (radar) et E (catégories) */
.profile-ovnew .ov-alt{display:none}
.profile-ovnew:has(#ovo-d:checked) .ov-cols,.profile-ovnew:has(#ovo-e:checked) .ov-cols{display:none!important}
.profile-ovnew:has(#ovo-d:checked) .ov-alt-d{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start;margin-top:8px}
.profile-ovnew:has(#ovo-e:checked) .ov-alt-e{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;margin-top:8px}
.profile-ovnew .ov-alt h2{font-size:12px;margin:0 0 4px;text-transform:uppercase;letter-spacing:.04em}
/* D : radar */
.profile-ovnew .ov-radar{flex:0 0 auto;width:min(340px,100%);padding:8px 10px;border-radius:12px;background:rgba(127,127,127,.10)}
.profile-ovnew .ov-radar svg{width:100%;height:auto;display:block}
.profile-ovnew .ov-radar .rg{fill:none;stroke:currentColor;stroke-opacity:.16}
.profile-ovnew .ov-radar .ra{stroke:currentColor;stroke-opacity:.14}
.profile-ovnew .ov-radar .rd{fill:#2f81f7;fill-opacity:.28;stroke:#58a6ff;stroke-width:1.6;stroke-linejoin:round}
.profile-ovnew .ov-radar .rl{font-size:9.5px;fill:currentColor;opacity:.85}
.profile-ovnew .ov-radar .rl.hi{fill:#3fb950;opacity:1}.profile-ovnew .ov-radar .rl.md{fill:#58a6ff;opacity:1}
.profile-ovnew .ov-radar .rp{fill:#58a6ff;stroke:#0d1117;stroke-width:1}.profile-ovnew .ov-radar .rp.hi{fill:#3fb950}
.profile-ovnew .ov-bigs{flex:1 1 420px;min-width:0}
.profile-ovnew .ov-bigrid{display:flex;flex-wrap:wrap;gap:8px}
.profile-ovnew .ov-big{display:grid;grid-template-rows:auto auto 4px auto;gap:2px;width:fit-content;min-width:68px;padding:8px 12px 6px;border-radius:12px;background:rgba(127,127,127,.12);text-align:center;line-height:1.1}
.profile-ovnew .ov-big span{font-size:11px;opacity:.7}.profile-ovnew .ov-big b{font-size:24px;font-weight:700}
.profile-ovnew .ov-big i{display:block;height:4px;border-radius:2px;background:rgba(127,127,127,.25);overflow:hidden}
.profile-ovnew .ov-big u{display:block;height:100%;border-radius:2px;background:#8b949e}
.profile-ovnew .ov-big.hi u{background:#3fb950}.profile-ovnew .ov-big.md u{background:#58a6ff}.profile-ovnew .ov-big.lo u{background:#d29922}
.profile-ovnew .ov-big em{font-size:10px;font-style:normal;opacity:.65}
/* E : catégories */
.profile-ovnew .ov-cat{flex:0 0 auto;width:fit-content;min-width:220px;max-width:100%;padding:8px 12px;border-radius:12px;background:rgba(127,127,127,.10)}
.profile-ovnew .ov-cath{display:flex;justify-content:space-between;gap:16px;align-items:baseline;margin-bottom:4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.profile-ovnew .ov-cath b{font-size:20px}.profile-ovnew .ov-cath b.hi{color:#3fb950}.profile-ovnew .ov-cath b.md{color:#58a6ff}
.profile-ovnew .ov-pills{display:flex;flex-wrap:wrap;gap:6px;max-width:460px}
.profile-ovnew .ov-pill{display:flex;flex-direction:column;align-items:center;min-width:48px;padding:4px 9px;border-radius:999px;border:1px solid rgba(127,127,127,.3);line-height:1.1}
.profile-ovnew .ov-pill span{font-size:10px;opacity:.7}.profile-ovnew .ov-pill b{font-size:15px}.profile-ovnew .ov-pill em{font-size:9px;font-style:normal;opacity:.65}
.profile-ovnew .ov-pill.gold{border-color:#e3b341;box-shadow:0 0 0 1px #e3b34155 inset;background:#e3b3411f}
.profile-ovnew .ov-pill.silver{border-color:#9da7b3;background:#9da7b31a}
/* Fiche joueur - Options F (informations en pastilles + radar) et G (carte d'identite a gauche + barres) */
.profile-ovnew:has(#ovo-f:checked) .ov-cols{display:none!important}
.profile-ovnew:has(#ovo-f:checked) .ov-alt-d{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start;margin-top:8px}
.profile-ovnew:has(#ovo-f:checked) .ov-blks{flex-direction:column;gap:6px}
.profile-ovnew:has(#ovo-f:checked) .ov-blks .ov-blk{width:100%!important;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
.profile-ovnew:has(#ovo-f:checked) .ov-blks .ov-bh{flex:0 0 120px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;opacity:.7;margin:0}
.profile-ovnew:has(#ovo-f:checked) .ov-blks .ov-kv{display:inline-flex;gap:8px;width:auto;padding:3px 11px;border-radius:999px;background:rgba(127,127,127,.14);border:0!important}
.profile-ovnew:has(#ovo-f:checked) .ov-blks .ov-kv span{opacity:.7}
.profile-ovnew:has(#ovo-g:checked){display:grid!important;grid-template-columns:max-content minmax(0,1fr);grid-template-areas:"opts opts" "side main";column-gap:16px;align-items:start}
.profile-ovnew:has(#ovo-g:checked) .ov-opts{grid-area:opts}
.profile-ovnew:has(#ovo-g:checked) .ov-first{display:none}
.profile-ovnew:has(#ovo-g:checked) .ov-blks{grid-area:side;flex-direction:column;flex-wrap:nowrap;gap:8px;padding:10px 12px;border-radius:14px;background:rgba(127,127,127,.10)}
.profile-ovnew:has(#ovo-g:checked) .ov-blks .ov-blk{width:auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
.profile-ovnew:has(#ovo-g:checked) .ov-blks .ov-bh{margin-top:4px;border-bottom:1px solid rgba(127,127,127,.25);padding-bottom:2px}
.profile-ovnew:has(#ovo-g:checked) .ov-cols{grid-area:main;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.profile-ovnew:has(#ovo-g:checked){display:block!important}}
/* Fiche joueur - sans barres de progression : E et G montrent des valeurs seules; nouvelles options H, I, J */
.profile-ovnew:has(#ovo-e:checked) .ov-bar i,.profile-ovnew:has(#ovo-g:checked) .ov-bar i{display:none}
.profile-ovnew:has(#ovo-e:checked) .ov-bar,.profile-ovnew:has(#ovo-g:checked) .ov-bar{grid-template-columns:auto auto auto!important;justify-content:space-between;gap:12px}
/* H : points forts */
.profile-ovnew:has(#ovo-h:checked) .ov-cols{display:none!important}
.profile-ovnew:has(#ovo-h:checked) .ov-alt-h{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.profile-ovnew .ov-hrow{display:flex;flex-wrap:wrap;gap:6px}
.profile-ovnew .ov-star{display:flex;flex-direction:column;align-items:center;min-width:78px;padding:10px 16px;border-radius:14px;background:rgba(127,127,127,.14);line-height:1.1}
.profile-ovnew .ov-star span{font-size:12px;opacity:.75}.profile-ovnew .ov-star b{font-size:30px;font-weight:700}.profile-ovnew .ov-star em{font-size:11px;font-style:normal;opacity:.7}
.profile-ovnew .ov-star.hi b{color:#3fb950}.profile-ovnew .ov-star.md b{color:#58a6ff}
.profile-ovnew .ov-star.hi{box-shadow:0 0 0 1px #3fb95066 inset}
/* I : identite a droite, tuiles a gauche */
.profile-ovnew:has(#ovo-i:checked){display:grid!important;grid-template-columns:minmax(0,1fr) max-content;grid-template-areas:"opts opts" "main side";column-gap:16px;align-items:start}
.profile-ovnew:has(#ovo-i:checked) .ov-opts{grid-area:opts}
.profile-ovnew:has(#ovo-i:checked) .ov-first{display:none}
.profile-ovnew:has(#ovo-i:checked) .ov-blks{grid-area:side;flex-direction:column;flex-wrap:nowrap;gap:8px;padding:10px 12px;border-radius:14px;background:rgba(127,127,127,.10)}
.profile-ovnew:has(#ovo-i:checked) .ov-blks .ov-blk{width:auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
.profile-ovnew:has(#ovo-i:checked) .ov-cols{grid-area:main;grid-template-columns:1fr!important}
.profile-ovnew:has(#ovo-i:checked) .ov-tiles,.profile-ovnew:has(#ovo-j:checked) .ov-tiles{display:flex}
.profile-ovnew:has(#ovo-i:checked) .ov-barsbox,.profile-ovnew:has(#ovo-j:checked) .ov-barsbox{display:none}
@media(max-width:1100px){.profile-ovnew:has(#ovo-i:checked){display:block!important}}
/* J : ultra compact, informations en une ligne de texte */
.profile-ovnew:has(#ovo-j:checked) .ov-cols{grid-template-columns:1fr!important}
.profile-ovnew:has(#ovo-j:checked) .ov-blks{flex-direction:column;gap:2px}
.profile-ovnew:has(#ovo-j:checked) .ov-blks .ov-blk{width:100%!important;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding:2px 0!important;background:none!important;border:0!important;box-shadow:none!important}
.profile-ovnew:has(#ovo-j:checked) .ov-blks .ov-bh{flex:0 0 110px;font-size:11px;text-transform:uppercase;opacity:.65;margin:0}
.profile-ovnew:has(#ovo-j:checked) .ov-blks .ov-kv{display:inline-flex;gap:5px;width:auto;border:0!important;padding:0!important;background:none!important}
.profile-ovnew:has(#ovo-j:checked) .ov-blks .ov-kv span{opacity:.65}
.profile-ovnew:has(#ovo-j:checked) .ov-blks .ov-kv span::after{content:" :"}
.profile-ovnew:has(#ovo-j:checked) .ov-blks .ov-kv b{font-weight:600}
/* Fiche joueur - options D a M (idees de presentation) */
.profile-ovnew .ov-opts{flex-wrap:wrap}
.profile-ovnew .ov-v{display:none}
.profile-ovnew:has(#ovo-k1:checked) .ov-v-k1,.profile-ovnew:has(#ovo-k2:checked) .ov-v-k2,.profile-ovnew:has(#ovo-k3:checked) .ov-v-k3,.profile-ovnew:has(#ovo-k4:checked) .ov-v-k4,.profile-ovnew:has(#ovo-k5:checked) .ov-v-k5,.profile-ovnew:has(#ovo-k6:checked) .ov-v-k6,.profile-ovnew:has(#ovo-k7:checked) .ov-v-k7,.profile-ovnew:has(#ovo-k8:checked) .ov-v-k8,.profile-ovnew:has(#ovo-k9:checked) .ov-v-k9,.profile-ovnew:has(#ovo-k10:checked) .ov-v-k10{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.profile-ovnew:has(:is(#ovo-k1,#ovo-k2,#ovo-k3,#ovo-k4,#ovo-k5,#ovo-k6,#ovo-k7,#ovo-k8,#ovo-k9,#ovo-k10):checked) .ov-cols{display:none!important}
.profile-ovnew .ov-v h2{font-size:12px;margin:4px 0 0;text-transform:uppercase;letter-spacing:.04em}
.profile-ovnew .ov-v .ov-hrow{display:flex;flex-wrap:wrap;gap:6px}
.profile-ovnew .ov-chip{display:inline-block;padding:4px 12px;border-radius:999px;font-size:13px;background:rgba(127,127,127,.16)}
.profile-ovnew .ov-chip.g{background:#3fb95022;color:#3fb950}.profile-ovnew .ov-chip.w{background:#d2992222;color:#d29922}
.profile-ovnew .ov-v .ov-tile{display:flex;flex-direction:column;align-items:center;min-width:54px;padding:6px 12px;border-radius:10px;background:rgba(127,127,127,.12);line-height:1.15;width:fit-content}
.profile-ovnew .ov-v .ov-tile span{font-size:12px;opacity:.75}.profile-ovnew .ov-v .ov-tile b{font-size:19px;font-weight:600}.profile-ovnew .ov-v .ov-tile em{font-size:11px;font-style:normal;opacity:.65}
.profile-ovnew .ov-v .ov-tile.cur{box-shadow:0 0 0 1px #58a6ff inset}
.profile-ovnew .ov-card1{display:flex;gap:18px;align-items:center;padding:10px 14px;border-radius:14px;background:rgba(127,127,127,.12);width:fit-content;max-width:100%;flex-wrap:wrap}
.profile-ovnew .oc-ov{text-align:center;min-width:80px}.profile-ovnew .oc-ov b{display:block;font-size:48px;line-height:1;font-weight:700}.profile-ovnew .oc-ov span{font-size:13px;opacity:.75}
.profile-ovnew .hi{color:#3fb950}.profile-ovnew .md{color:#58a6ff}
.profile-ovnew .ov-heat{display:grid;grid-template-columns:repeat(8,minmax(54px,78px));gap:5px}
.profile-ovnew .ov-heat>div{display:flex;flex-direction:column;align-items:center;padding:7px 2px;border-radius:9px;background:rgba(127,127,127,.12);line-height:1.15}
.profile-ovnew .ov-heat>div.hi{background:#3fb95030;color:inherit}.profile-ovnew .ov-heat>div.md{background:#58a6ff30;color:inherit}.profile-ovnew .ov-heat>div.lo{background:#d2992230;color:inherit}
.profile-ovnew .ov-heat span{font-size:12px;opacity:.75}.profile-ovnew .ov-heat b{font-size:18px;font-weight:600}.profile-ovnew .ov-heat em{font-size:11px;font-style:normal;opacity:.65}
.profile-ovnew .ov-prose{font-size:15px;line-height:1.7;max-width:920px;margin:0}
.profile-ovnew .ov-grade{display:flex;flex-direction:column;align-items:center;min-width:92px;padding:8px 14px;border-radius:12px;background:rgba(127,127,127,.12);line-height:1.1}
.profile-ovnew .ov-grade span{font-size:12px;opacity:.75}.profile-ovnew .ov-grade b{font-size:30px;font-weight:700}.profile-ovnew .ov-grade em{font-size:11px;font-style:normal;opacity:.65}
.profile-ovnew .ov-dense{display:flex;flex-direction:column;gap:6px;width:fit-content;max-width:100%;overflow-x:auto}
.profile-ovnew .ov-dense table{border-collapse:collapse;width:auto!important}
.profile-ovnew .ov-dense th{font-size:11px;font-weight:500;opacity:.7;text-align:center!important;padding:2px 9px!important}
.profile-ovnew .ov-dense td{font-size:15px;font-weight:600;text-align:center!important;padding:2px 9px!important}
.profile-ovnew .ov-dense tr.rk td{font-size:11px;font-weight:400;opacity:.65}
.profile-ovnew .ov-kvl{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:14px}.profile-ovnew .ov-kvl span{opacity:.85}.profile-ovnew .ov-kvl b{font-weight:600;opacity:1}
.profile-ovnew .ov-three{display:flex;flex-wrap:wrap;gap:10px}
.profile-ovnew .ov-three>div{display:flex;flex-direction:column;align-items:center;min-width:130px;padding:12px 18px;border-radius:14px;background:rgba(127,127,127,.12);line-height:1.15}
.profile-ovnew .ov-three span{font-size:13px;opacity:.75}.profile-ovnew .ov-three b{font-size:32px;font-weight:700}.profile-ovnew .ov-three em{font-size:12px;font-style:normal;opacity:.65}
.profile-ovnew .ov-star5{display:flex;align-items:baseline;gap:14px;font-size:15px}
.profile-ovnew .ov-star5 span{min-width:90px}.profile-ovnew .ov-star5 i{font-style:normal;letter-spacing:3px;color:#d29922;font-size:20px}.profile-ovnew .ov-star5 s{text-decoration:none;opacity:.35;color:inherit}.profile-ovnew .ov-star5 em{font-style:normal;opacity:.65;font-size:12px}
/* en-tete de la fiche : ligne equipe / age / position / condition plus grande */
html body.espace .player-profile .player-profile-identity{font-size:clamp(17px,1.3vw,26px)!important;line-height:1.35}
html body.espace .player-profile .player-profile-identity img{width:clamp(28px,2vw,40px)!important;height:clamp(28px,2vw,40px)!important}
/* Option H : contenu de l'option A, cotes en carte de chaleur, chaque rangee sur UNE ligne */
.profile-ovnew:has(#ovo-k11:checked) .ov-cols{grid-template-columns:1fr!important}
.profile-ovnew:has(#ovo-k11:checked) .ov-tiles{display:flex;flex-wrap:nowrap;gap:4px}
.profile-ovnew:has(#ovo-k11:checked) .ov-barsbox{display:none}
.profile-ovnew:has(#ovo-k11:checked) .ov-tiles .ov-tile{flex:1 1 0;min-width:0;width:auto;padding:6px 2px;border-radius:9px}
.profile-ovnew:has(#ovo-k11:checked) .ov-tiles .ov-tile b{font-size:clamp(14px,1.05vw,20px)}
.profile-ovnew:has(#ovo-k11:checked) .ov-tiles .ov-tile span{font-size:clamp(10px,.7vw,13px)}
.profile-ovnew:has(#ovo-k11:checked) .ov-tiles .ov-tile em{font-size:clamp(9px,.62vw,12px)}
.profile-ovnew:has(#ovo-k11:checked) .ov-ct.hi{background:#3fb95030}.profile-ovnew:has(#ovo-k11:checked) .ov-ct.md{background:#58a6ff30}.profile-ovnew:has(#ovo-k11:checked) .ov-ct.lo{background:#d2992230}
.profile-ovnew:has(#ovo-k11:checked) .ov-ct b{color:inherit!important}
/* En-tete fiche : texte un peu plus petit sur UNE ligne, logo de l'equipe plus gros */
html body.espace .player-profile .player-profile-identity{font-size:clamp(15px,1.08vw,21px)!important;white-space:nowrap!important;align-items:center}
html body.espace .player-profile .player-profile-identity img{width:clamp(36px,2.7vw,54px)!important;height:clamp(36px,2.7vw,54px)!important;object-fit:contain;vertical-align:middle}
html body.espace .player-profile .player-profile-identity>span{white-space:nowrap!important}
/* Option D : cotes en carte de chaleur sur UNE ligne */
.profile-ovnew .ov-v-k2 .ov-heat{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px}
.profile-ovnew .ov-v-k2 .ov-heat>div b{font-size:clamp(14px,1.05vw,20px)}

/* Statistiques colorees comme la carte de chaleur (options D et F) : teinte selon le rang parmi le groupe */
.profile-ovnew:has(:is(#ovo-k2,#ovo-k11):checked) .ov-tile.st-hi{background:#3fb95030}
.profile-ovnew:has(:is(#ovo-k2,#ovo-k11):checked) .ov-tile.st-md{background:#58a6ff30}
.profile-ovnew:has(:is(#ovo-k2,#ovo-k11):checked) .ov-tile.st-lo{background:#d2992230}
/* En-tete fiche : portrait plus gros, texte centre verticalement a sa hauteur */
html body.espace .player-profile .profile-heading{grid-template-columns:clamp(96px,7vw,140px) minmax(0,1fr) auto auto auto!important;column-gap:14px!important}
html body.espace .player-profile .player-profile-photo{width:clamp(96px,7vw,140px)!important;height:clamp(96px,7vw,140px)!important;object-fit:cover;border-radius:10px!important}
html body.espace .player-card .player-profile .player-profile-identity{align-self:center!important;padding-top:0!important}
html body.espace .player-profile .profile-heading h1{align-self:end}
html body.espace .player-profile:not(.player-card .player-profile) .player-profile-identity{align-self:start}
/* Cotes par saison : equipe = logo seulement, un peu plus gros, textes un peu plus grands */
html body.espace .player-profile table.cotes-year :is(th,td){font-size:14px!important;padding-top:5px!important;padding-bottom:5px!important}
html body.espace .player-profile table.cotes-year .cy-logo{width:30px;height:30px;object-fit:contain;display:block;vertical-align:middle}
html body.espace .player-profile table.cotes-year td:nth-child(2){text-align:left}
/* Rang parmi les attaquants/defenseurs : petit, a cote des titres Statistiques et Cotes */
.profile-ovnew .rk-note{font-size:.72em;font-weight:400;opacity:.7;text-transform:none;letter-spacing:0}

/* Informations : les 4 blocs ont tous la meme largeur (celle du plus large) */
html body.espace .profile-ovnew .ov-blks{display:grid!important;grid-template-columns:repeat(4,1fr)!important;width:max-content!important;max-width:100%;gap:8px}
html body.espace .profile-ovnew .ov-blks .ov-blk{width:auto!important;min-width:0}
@media(max-width:1000px){html body.espace .profile-ovnew .ov-blks{grid-template-columns:repeat(2,1fr)!important;width:auto!important}}

/* Options A, B, D et F : les 4 blocs d'Informations occupent toute la largeur de la carte, a parts egales */
@media(min-width:1001px){html body.espace .profile-ovnew:has(:is(#ovo-a,#ovo-b,#ovo-k2,#ovo-k11):checked) .ov-blks{width:100%!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}}
/* Popup : la ligne d'identité ne doit jamais déborder sur les montants (contrat, salaires) */
html body.espace .player-card .player-profile .player-profile-identity{font-size:clamp(14px,.9vw,18px)!important;min-width:0;overflow:hidden;text-overflow:ellipsis}
html body.espace .player-card .player-profile .player-profile-identity>.player-cond{font-size:inherit}

/* Identité sur deux lignes : club (logo plus gros) puis âge · position · condition */
html body.espace .player-profile .player-profile-identity{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px}
html body.espace .player-profile .player-profile-identity img{width:clamp(60px,4.4vw,88px)!important;height:clamp(60px,4.4vw,88px)!important}
html body.espace .player-profile .player-profile-identity .pid-l2{white-space:nowrap}

/* Page équipe, onglet Informations : aucune barre de défilement, tableau à la largeur de son contenu */
@media(min-width:1001px){html body.espace.eff-tx main .roster-status-group.rg-eff section.schedule-scroll{width:fit-content!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;height:auto!important;max-height:none!important}}
@media(max-width:1000px){html body.espace.eff-tx main .roster-status-group.rg-eff section.schedule-scroll{width:auto!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}}
html body.espace.eff-tx main .roster-status-group.rg-eff table.schedule-table.rt-auto :is(th,td){padding-left:3px!important;padding-right:3px!important;text-align:left}

/* Mobile : la colonne des noms reste visible pendant le défilement horizontal du tableau (page équipe, Informations) */
@media(max-width:1000px){html body.espace.eff-tx main .roster-status-group.rg-eff table.rt-auto :is(thead th,tbody td):first-child{position:sticky!important;left:0;z-index:3;background:#0b1220!important;box-shadow:2px 0 4px rgba(0,0,0,.45);width:1%!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;padding-left:30px!important;padding-right:6px!important}html body.espace.eff-tx main .roster-status-group.rg-eff table.rt-auto :is(td,td:first-child a){font-size:12.5px!important}html body.espace.eff-tx main .roster-status-group.rg-eff table.rt-auto td:first-child img{width:20px!important;height:20px!important}}
/* Mobile : colonnes et polices plus serrées (page équipe, Informations) */
@media(max-width:1000px){html body.espace.eff-tx main .roster-status-group.rg-eff table.rt-auto :is(th,td):not(:first-child){padding-left:3px!important;padding-right:3px!important;font-size:12px!important}html body.espace.eff-tx main .roster-status-group.rg-eff table.rt-auto thead th{font-size:10.5px!important}html body.espace.eff-tx main .roster-status-group.rg-eff table.rt-auto :is(td,td:first-child a){font-size:12px!important}html body.espace.eff-tx main .roster-status-group.rg-eff table.rt-auto .cw{font-size:10.5px!important;padding:1px 6px!important}}

/* Classement mobile : le libellé « Nom de l'équipe » (span en ligne) élargissait la colonne du logo — on ne garde que « Équipe » */
@media (max-width:700px){#clst-zone:not(.clst-tout) .clst-table th.eq>*{display:none!important}#clst-zone:not(.clst-tout) .clst-table :is(th.eq,td.eq){width:1%!important;min-width:0!important;max-width:none!important;white-space:nowrap}}

/* Grille équipes × jours : logo d'équipe toujours visible; sur mobile cellules compactes, colonne des équipes figée, défilement horizontal */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-team img{max-width:none!important;flex:none}
@media(max-width:700px){
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid{border-spacing:3px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid thead th{font-size:.62rem!important;padding:2px 3px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-team{position:sticky;left:0;z-index:3;background:#0b1220;padding:0 4px 0 0!important;box-shadow:2px 0 4px rgba(0,0,0,.45)}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-team img{width:28px!important;height:28px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c{width:78px!important;height:36px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c>a,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c>span{gap:2px!important;padding:0 3px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c i{font-size:.56rem!important;width:10px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c img{width:20px!important;height:20px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c b{font-size:.7rem!important;letter-spacing:-.2px}
}
@media(max-width:700px){html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid{width:max-content!important;max-width:none!important}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c{min-width:78px!important;max-width:78px!important;box-sizing:border-box}html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c>a,html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .lg-grid .lg-c>span{width:100%;box-sizing:border-box;justify-content:center}}

/* Éditeur d'alignements mobile : la rangée d'onglets (Formation, 5 contre 5…) défile au lieu d'élargir toute la page */
@media(max-width:1000px){.line-editor .team-tabs{overflow-x:auto!important;max-width:100%;-webkit-overflow-scrolling:touch}.line-editor .team-tabs>*{flex:none}}

/* Bouton « Toutes les colonnes » (mobile) : interrupteur bien visible — vert/bleu rempli = toutes les colonnes affichées, gris = colonnes principales seulement */
@media (max-width:700px){
.mt-plus,.clst-plus{gap:10px!important;min-height:40px;padding:6px 14px 6px 10px!important;border-width:2px!important;border-color:var(--bord2)!important;background:var(--carte)!important;transition:background .15s,border-color .15s}
.mt-plus::before,.clst-plus::before{content:"";flex:none;width:34px;height:20px;border-radius:999px;background:rgba(150,160,190,.35) radial-gradient(circle at 10px 10px,#fff 8px,transparent 8.5px);background-repeat:no-repeat;transition:background-position .15s,background-color .15s}
.mt-plus::after,.clst-plus::after{content:"Principales";order:3;margin-left:2px;font-size:11px;font-weight:600;opacity:.75}
.mt-plus[aria-pressed="true"],.clst-plus[aria-pressed="true"]{border-color:#3b82f6!important;background:rgba(59,130,246,.18)!important;color:#fff!important}
.mt-plus[aria-pressed="true"]::before,.clst-plus[aria-pressed="true"]::before{background:#3b82f6 radial-gradient(circle at 24px 10px,#fff 8px,transparent 8.5px)}
.mt-plus[aria-pressed="true"]::after,.clst-plus[aria-pressed="true"]::after{content:"Activé";color:#9cc2ff;opacity:1}
}
/* Filtres en mobile (tout le portail) : boutons plus gros (>= 40 px) et choix actif bien visible (fond plein + texte blanc gras) */
@media (max-width:700px){
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main :is(.roster-quick-filters,.ef-seg,.subtabs) :is(a,button){min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:6px 14px!important;font-size:13px!important;line-height:1.2}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .roster-quick-filters{gap:8px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main :is(.roster-quick-filters button.selected,.ef-seg a.on,.ef-seg button.on,.subtab-btn.on){background:#2f6fed!important;border-color:#8db4ff!important;color:#fff!important;font-weight:800!important;box-shadow:0 0 0 1px #8db4ff inset}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .roster-quick-filters button.selected{background:#b0202d!important;border-color:#ff8f98!important;box-shadow:0 0 0 1px #ff8f98 inset}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main :is(.schedule-filters,.ef-grp) :is(select,input:not([type=checkbox]):not([type=radio])){min-height:44px}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main :is(.filters-toggle,.schedule-filters>button){min-height:44px}
}

/* Thème clair : états choisis lisibles (texte foncé sur teinte), jamais « pâle sur pâle » — onglets, pastilles, filtres, meneurs */
html[data-theme="clair"] body.espace main .team-tabs a.selected,html[data-theme="clair"] body.espace main .roster-quick-filters button.selected,html[data-theme="clair"] body.espace main .choice-option.selected,html[data-theme="clair"] body.espace main .schedule-filters .choice-option.selected,html[data-theme="clair"] body.espace main.rv2 .rv-tabs button.on,html[data-theme="clair"] body.espace main.today-page .ts-sw button.on,html[data-theme="clair"] body.espace main .hist-chips a.on,html[data-theme="clair"] body.espace main .ef-chip.on,html[data-theme="clair"] body.espace main .ef-seg a.on,html[data-theme="clair"] body.espace .fhsw-subgroup a.selected{background:rgba(37,99,235,.16)!important;color:#0b3a8c!important;border-color:#2563eb!important;font-weight:700}
html[data-theme="clair"] body.espace main .team-tabs a.selected{box-shadow:inset 0 -2px 0 #2563eb!important}
html[data-theme="clair"] body.espace main.team-page.team-page.compact-club-page > nav.team-tabs a.selected{background:rgba(175,30,45,.14)!important;color:#8a1220!important;border-color:#af1e2d!important;box-shadow:inset 0 -2px 0 #af1e2d!important}
html[data-theme="clair"] body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>td{color:#1d4ed8}
html[data-theme="clair"] body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.meneurs:not(.rv2) .team-stat-grid > .portal-panel > table.compact-table td.mn-gp{color:#44586d!important}
html[data-theme="clair"] body.espace main.meneurs .team-stat-grid .portal-panel tbody tr:not(.mn-hero)>th::before,html[data-theme="clair"] body.espace main.meneurs .team-stat-grid .portal-panel tbody tr.mn-hero>th::before{color:#44586d!important}
html[data-theme="clair"] body.espace .clst-circuits a[aria-current]{color:#1d4ed8!important;font-weight:700}

/* ── Thème clair : fonds sombres codés en dur → cartes blanches; pastilles et textes à contraste suffisant ── */
html[data-theme="clair"] body.espace :is(.trade-card2,.choix-annee,.club-side a,.cal-grid .cg-d,.lg-grid .lg-c,.gm-hero .gm-team,.gm-tile){background:#fff;border-color:rgba(19,35,54,.18)}
html[data-theme="clair"] body.espace .trade-card2>header{opacity:1;color:#44586d}
html[data-theme="clair"] body.espace .trade-sides section{border-left-color:rgba(37,99,235,.45)}
html[data-theme="clair"] body.espace .trade-sides li{border-bottom-color:rgba(19,35,54,.1)}
html[data-theme="clair"] body.espace .trade-sides li.asset-pick,html[data-theme="clair"] body.espace .trade-sides li.asset-money{color:#8a5a00;font-weight:600}
html[data-theme="clair"] body.espace .trade-sides li.asset-player em,html[data-theme="clair"] body.espace .trade-sides small{color:#44586d}
html[data-theme="clair"] body.espace main.rv2 .rv-ticker{background:#fff;border-color:rgba(19,35,54,.16)}
html[data-theme="clair"] body.espace main.rv2 .rv-card{background:#fff;border-color:rgba(19,35,54,.16)}
html[data-theme="clair"] body.espace main.rv2 .rv-strip .rv-list li,html[data-theme="clair"] body.espace main.rv2 .rv-strip .rv-lines li{background:#f1f5f9;border-color:rgba(19,35,54,.14)}
html[data-theme="clair"] body.espace main.rv2 :is(.rv-hint,.rv-note,.rv-sep,.rv-card small){color:#44586d}
html[data-theme="clair"] body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main.game-report .gc-card{background:#fff;border-color:rgba(19,35,54,.16)}
html[data-theme="clair"] body.espace main.game-report :is(.gc-card>h3,.gc-card .gc-sub){color:#44586d}
html[data-theme="clair"] body.espace .gm-per thead th,html[data-theme="clair"] body.espace .gm-line thead th,html[data-theme="clair"] body.espace main.game-report .game-pane table:not(.gm-per) th,html[data-theme="clair"] body.espace .stat-tbl thead th,html[data-theme="clair"] body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .vs-table thead th{background:#e3eaf1!important;color:#44586d!important}
html[data-theme="clair"] body.espace .rk-haut{background:rgba(22,121,74,.14);color:#14633d}
html[data-theme="clair"] body.espace .rk-mid{background:rgba(19,35,54,.08);color:#44586d}
html[data-theme="clair"] body.espace .rk-bas{background:rgba(192,38,28,.12);color:#a31d14}
html[data-theme="clair"] body.espace .move-kind,html[data-theme="clair"] body.espace .mk-other{background:rgba(19,35,54,.08);color:#44586d}
html[data-theme="clair"] body.espace .mk-trade{background:rgba(37,99,235,.12);color:#1d4ed8}
html[data-theme="clair"] body.espace .mk-in{background:rgba(22,121,74,.14);color:#14633d}
html[data-theme="clair"] body.espace .mk-staff{background:rgba(180,120,0,.16);color:#7a4d00}
html[data-theme="clair"] body.espace .d-up{color:#14633d}
html[data-theme="clair"] body.espace .d-down{color:#a31d14}
html[data-theme="clair"] .form-V{background:rgba(22,121,74,.16);color:#14633d}
html[data-theme="clair"] .form-D{background:rgba(192,38,28,.14);color:#a31d14}
html[data-theme="clair"] body.espace .top5-cat b,html[data-theme="clair"] body.espace .club-card2 footer b{color:#1d4ed8}
html[data-theme="clair"] body.espace main table.schedule-table tbody td.sc-hi{color:#14633d!important}
html[data-theme="clair"] body.espace main table.schedule-table tbody td.sc-lo{color:#8a4300!important}
html[data-theme="clair"] body.espace main .cw-1way{color:#8a4300}
html[data-theme="clair"] body.espace main .cw-2way{color:#085a80}
html[data-theme="clair"] body.espace .fin-panel td.fin-mid,html[data-theme="clair"] body.espace td.fin-mid{color:#8a5200}
html[data-theme="clair"] body.espace td.fin-bad{color:#a31d14}
html[data-theme="clair"] body.espace td.fin-good{color:#14633d}
html[data-theme="clair"] body.espace :is(.fhsw-footer,.cal-bar label,.cal-title small,.nv-card-by,.vide-c){color:#4f6377}
html[data-theme="clair"] body.espace main .schedule-filters label,html[data-theme="clair"] body.espace main .roster-rating-grid label{color:#3e5a80}
html[data-theme="clair"] body.espace main .choice-option:not(.selected){color:#44586d}
html[data-theme="clair"] body.espace main .portal-panel h3{color:#44586d}
html[data-theme="clair"] body.espace td.mh.plus{color:#14633d}
html[data-theme="clair"] body.espace td.mh.moins{color:#a31d14}
html[data-theme="clair"] body.espace .clst-onglet.actif,html[data-theme="clair"] body.espace .clst-div-titre,html[data-theme="clair"] body.espace .clst-div-fige{color:#1d4ed8}
html[data-theme="clair"] body.espace .a-money{color:#8a5a00}
html[data-theme="clair"] body.espace .trade-card2 small,html[data-theme="clair"] body.espace .trade-card2 em{color:#44586d!important}
html[data-theme="clair"] body.espace main :is(.schedule-filters,.roster-rating-grid) label,html[data-theme="clair"] body.espace main.meneurs .schedule-filters label{color:#3e5a80!important}
html[data-theme="clair"] body.espace main .choice-option:not(.selected){color:#44586d!important}
html[data-theme="clair"] body.espace span.car{color:#4f6377}

/* Mouvements : équipes en pastilles logo côte à côte (au lieu d'une liste déroulante) */
html body.espace main .schedule-filters .tx-teams{display:flex;flex-wrap:wrap;gap:4px;align-items:center;max-width:100%}
html body.espace main .tx-teams a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:3px 6px;border:1px solid var(--bord2,rgba(148,163,184,.3));border-radius:8px;background:var(--carte,transparent);color:var(--texte);font-size:.8rem;font-weight:600;text-decoration:none;line-height:1}
html body.espace main .tx-teams a.tx-all{padding:3px 12px}
html body.espace main .tx-teams a img{width:26px;height:26px;object-fit:contain;display:block}
html body.espace main .tx-teams a:hover{border-color:var(--accent,#2f6fed)}
html body.espace main .tx-teams a.on{background:rgba(59,130,246,.28);border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f6}
html[data-theme="clair"] body.espace main .tx-teams a.on{background:rgba(37,99,235,.16);border-color:#2563eb;color:#0b3a8c;box-shadow:0 0 0 1px #2563eb}html body.espace main .schedule-filters .tx-types{display:flex;flex-wrap:wrap;gap:4px;align-items:center;flex:1 1 100%}
html body.espace main .tx-types .tx-lbl{font-size:.7rem;letter-spacing:.04em;text-transform:uppercase;color:var(--doux,#8fa0c4);margin-right:4px}
html body.espace main .tx-types a{display:inline-flex;align-items:center;padding:4px 11px;border:1px solid var(--bord2,rgba(148,163,184,.3));border-radius:999px;background:var(--carte,transparent);color:var(--texte);font-size:.8rem;font-weight:600;text-decoration:none;line-height:1.2;white-space:nowrap}
html body.espace main .tx-types a:hover{border-color:var(--accent,#2f6fed)}
html body.espace main .tx-types a.on{background:rgba(59,130,246,.28);border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f6}
html[data-theme="clair"] body.espace main .tx-types a.on{background:rgba(37,99,235,.16);border-color:#2563eb;color:#0b3a8c;box-shadow:0 0 0 1px #2563eb}
html body.espace main .schedule-filters .tx-teams{flex:1 1 100%}
/* Nouvelles : « Lecture plein écran » d'une édition (iframe isolée) — toute la largeur et la hauteur, le menu du site reste en haut */
.nv-back,.nv-fs{display:none}
html body.espace main.nv .nv-pn-top .nv-fs{display:inline-flex;align-items:center;font:inherit;font-size:.82rem;font-weight:600;padding:5px 12px;border:1px solid var(--bord2,rgba(148,163,184,.3));border-radius:8px;background:var(--carte,transparent);color:var(--texte);cursor:pointer}
html body.espace main.nv .nv-pn-top .nv-fs:hover{border-color:var(--accent,#2f6fed)}
body.nv-read main.nv>:not(.nv-article){display:none!important}
body.nv-read main.nv{padding-top:4px!important;padding-bottom:0!important;max-width:none!important}
body.nv-read .nv-article{padding:0!important;margin:0!important;max-width:none!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.nv-read .nv-article>:is(.nv-crumb,.nv-edit-top,.news-reactions,.nv-related,.news-video){display:none!important}
body.nv-read .nv-head{display:flex!important;align-items:center;gap:10px;margin:0 0 4px!important;padding:0!important;border:0!important;min-height:0!important}
body.nv-read .nv-head>:not(.nv-pn-top){display:none!important}
body.nv-read .nv-pn-top{display:flex!important;align-items:center;gap:8px;width:100%;margin:0!important}
body.nv-read .nv-pn-top .nv-back{display:inline-flex;margin-right:auto;font-weight:700}
body.nv-read .nv-article .news-body{padding:0!important;margin:0!important;border:0!important;background:transparent!important;height:calc(100vh - var(--nv-top,118px) - 6px)!important;overflow:hidden!important}
body.nv-read .nv-content .news-document{--z:1;display:block;transform:scale(var(--z));transform-origin:0 0;width:calc(100% / var(--z))!important;height:calc((100vh - var(--nv-top,118px) - 6px) / var(--z))!important;min-height:0;max-height:none;border-radius:8px}
@media(min-width:1300px){body.nv-read .nv-content .news-document{--z:1.15}}
@media(min-width:1700px){body.nv-read .nv-content .news-document{--z:1.35}}
body.nv-read .fhsw-footer{display:none!important}
/* Mouvements — option A : grille de cartes toutes de la même taille; le trop-plein est résumé en « + N » (clic = carte complète) */
html body.espace main:not(.rv2) .trade-history{grid-template-columns:repeat(auto-fill,minmax(600px,1fr));grid-auto-rows:minmax(470px,auto);align-items:stretch!important;gap:14px;margin:10px 0}
html body.espace .trade-history .trade-sides h3{line-height:1.2;font-size:1.45rem;margin-bottom:8px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html body.espace .trade-history .trade-sides h3 a img{width:56px!important;height:56px!important;object-fit:contain;flex:none}
html body.espace .trade-history .trade-sides h3 small{font-size:1rem;opacity:.75}
html body.espace .trade-history .trade-sides ul{font-size:1.15rem}
html body.espace .trade-history .trade-sides li{padding:5px 0}
html body.espace .trade-history .trade-sides li img,html body.espace .trade-history .trade-sides li .player-link-portrait{width:44px!important;height:44px!important}
html body.espace .trade-history .trade-card2>header{font-size:1rem;margin-bottom:6px}
html body.espace .trade-history .trade-card2{padding:16px 20px}
html body.espace .trade-history .trade-sides li em{display:inline-block;vertical-align:middle}
html body.espace .trade-history .trade-card2{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden;box-sizing:border-box}
html body.espace .trade-history .trade-sides{flex:1;min-height:0;overflow:hidden;align-content:start}
html body.espace .trade-history .trade-sides:has(>section:only-child){grid-template-columns:1fr}
html body.espace .trade-history .trade-sides li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.espace .trade-history .trade-sides li.tx-more{border-bottom:0}
html body.espace .trade-history .tx-more button{font:inherit;font-size:1.05rem;padding:0;border:0;background:none;color:var(--accent2,#5b93ff);cursor:pointer;text-decoration:underline}
html[data-theme="clair"] body.espace .trade-history .tx-more button{color:#1d4ed8}
dialog.tx-full{border:1px solid var(--bord2,rgba(148,163,184,.4));border-radius:12px;background:var(--carte,#14203a);color:var(--texte,#e8eefc);padding:14px 16px;max-width:min(720px,calc(100vw - 24px));width:100%}
dialog.tx-full::backdrop{background:rgba(0,0,0,.5)}
dialog.tx-full .trade-card2{height:auto!important;overflow:visible!important;border:0;padding:0;background:transparent!important}
dialog.tx-full .trade-sides{overflow:visible!important}
dialog.tx-full .trade-sides li{white-space:normal!important}
dialog.tx-full .tx-x{display:block;margin:10px 0 0 auto;font:inherit;padding:5px 14px;border-radius:8px;border:1px solid var(--bord2,rgba(148,163,184,.4));background:transparent;color:inherit;cursor:pointer}
@media(max-width:700px){html body.espace main:not(.rv2) .trade-history{grid-template-columns:1fr;grid-auto-rows:minmax(178px,auto)}}
/* Mouvements : filtre de genre (Tous / Échange à deux clubs / Mouvement) */
html body.espace main .tx-kinds{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
html body.espace main .tx-kinds button{font:inherit;font-size:.95rem;font-weight:600;padding:6px 14px;border:1px solid var(--bord2,rgba(148,163,184,.3));border-radius:999px;background:var(--carte,transparent);color:var(--texte);cursor:pointer;line-height:1.2}
html body.espace main .tx-kinds button small{font-weight:400;opacity:.75;margin-left:4px}
html body.espace main .tx-kinds button:hover{border-color:var(--accent,#2f6fed)}
html body.espace main .tx-kinds button.on{background:rgba(59,130,246,.28);border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f6}
html[data-theme="clair"] body.espace main .tx-kinds button.on{background:rgba(37,99,235,.16);border-color:#2563eb;color:#0b3a8c;box-shadow:0 0 0 1px #2563eb}
html body.espace .trade-history .trade-card2[hidden]{display:none!important}
/* Mouvements — carte « façon Gestion DG's » : en-tête logos ⇄, ligne résumé, fiches joueur (portrait, salaire, contrat, âge), choix 🎯 */
html body.espace .trade-history .tc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:6px;margin-bottom:4px;border-bottom:1px solid var(--bord,rgba(148,163,184,.25));opacity:1}
html body.espace .trade-history .tc-teams{display:flex;align-items:center;gap:8px;min-width:0}
html body.espace .trade-history .tc-t{display:inline-flex;align-items:center;gap:6px;font-size:1.05rem;font-weight:800;color:var(--accent2,#5b93ff)}
html body.espace .trade-history .tc-t img{width:30px;height:30px;object-fit:contain}
html body.espace .trade-history .tc-sw{font-style:normal;opacity:.7}
html body.espace .trade-history .tc-meta{display:flex;align-items:center;gap:10px;font-size:.9rem;color:var(--doux,#8fa0c4);white-space:nowrap}
html body.espace .trade-history .tc-kind{padding:2px 10px;border-radius:999px;border:1px solid var(--bord2,rgba(148,163,184,.3));font-size:.78rem}
html body.espace .trade-history .tc-sum{margin:0 0 8px;font-size:.95rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.espace .trade-history .tc-sum b{color:var(--accent2,#5b93ff)}
html body.espace .trade-history .tc-sum i{font-style:normal;opacity:.5}
html body.espace .trade-history .asset-card{display:flex;align-items:center;gap:10px;white-space:normal;padding:4px 0}
html body.espace .trade-history .asset-card .ac-ph{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:none}
html body.espace .trade-history .asset-card .ac-t{display:flex;flex-direction:column;min-width:0;line-height:1.25}
html body.espace .trade-history .asset-card .ac-t b{font-size:1.1rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.espace .trade-history .asset-card .ac-t small{font-size:.85rem;color:var(--doux,#8fa0c4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.espace .trade-history .ac-pos{font-style:normal;font-size:.72rem;font-weight:700;padding:1px 6px;border-radius:6px;background:rgba(148,163,184,.22);margin-left:4px;vertical-align:middle}
html body.espace .trade-history .ac-ic{font-style:normal;margin-right:8px}
html body.espace .trade-history li.asset-pick,html body.espace .trade-history li.asset-money{font-weight:700}
html[data-theme="clair"] body.espace .trade-history .tc-t,html[data-theme="clair"] body.espace .trade-history .tc-sum b{color:#1d4ed8}
html[data-theme="clair"] body.espace .trade-history .tc-meta,html[data-theme="clair"] body.espace .trade-history .asset-card .ac-t small{color:#44586d}
html[data-theme="clair"] body.espace .trade-history .tc-head{border-bottom-color:rgba(19,35,54,.14)}
/* Fiche joueur des cartes Mouvements : un seul portrait, montants complets (jamais coupés) */
html body.espace .trade-history .asset-card .ac-t b .player-link-portrait,html body.espace .trade-history .asset-card .ac-t b img{display:none!important}
html body.espace .trade-history .asset-card .ac-t b{white-space:normal;overflow:visible;display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
html body.espace .trade-history .asset-card .ac-pos{margin-left:0;white-space:nowrap}
html body.espace .trade-history .asset-card .ac-t small{white-space:normal;overflow:visible;text-overflow:clip;font-size:.92rem;line-height:1.3}
html body.espace .trade-history .asset-card .ac-t small b{font-size:.95rem;font-weight:700;color:var(--texte);display:inline}
html body.espace .trade-history .asset-card .ac-ph{width:56px;height:56px;align-self:flex-start;margin-top:2px}
html body.espace .trade-history .trade-sides li.asset-card{overflow:visible;text-overflow:clip}
html body.espace .trade-history li[hidden]{display:none!important}

/* Mouvements : « Voir plus » agrandit la carte (et sa rangée) sur place */
html body.espace .trade-history .trade-card2{height:auto;align-self:stretch}
html body.espace .trade-history .trade-card2.open .trade-sides{overflow:visible}
html body.espace .trade-history .tx-moreb{align-self:center;margin-top:8px;font:inherit;font-size:1rem;font-weight:700;padding:6px 18px;border-radius:999px;border:1px solid var(--bord2,rgba(148,163,184,.4));background:var(--carte,transparent);color:var(--accent2,#5b93ff);cursor:pointer}
html body.espace .trade-history .tx-moreb:hover{border-color:var(--accent,#2f6fed)}
html[data-theme="clair"] body.espace .trade-history .tx-moreb{color:#1d4ed8}
/* Recherche discrète en haut à droite (Statistiques des joueurs / gardiens) */
html body.espace .portal-heading .mini-search{margin-left:auto;display:flex;align-items:center}
html body.espace .portal-heading .mini-search input[type=search]{width:190px;max-width:42vw;height:30px;padding:0 10px 0 28px;font:inherit;font-size:.85rem;border:1px solid var(--bord2,rgba(148,163,184,.3));border-radius:999px;background:var(--carte,transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238fa0c4' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 9px 50%;color:var(--texte);transition:width .15s}
html body.espace .portal-heading .mini-search input[type=search]:focus{width:260px;max-width:60vw;outline:0;border-color:var(--accent,#2f6fed)}
html body.espace .portal-heading .mini-search input[type=search]::placeholder{color:var(--vdoux,#8fa0c4)}
/* Statistiques joueurs / gardiens : barre de vues et filtres sur une seule ligne (au lieu de deux panneaux empilés) */
html body.espace .stat-bars{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;margin:8px 0}
html body.espace .stat-bars>.seg-bar{flex:0 1 auto;margin:0!important}
html body.espace .stat-bars>form.schedule-filters{flex:0 0 auto;display:flex!important;flex-wrap:wrap;align-items:center;align-content:center;gap:6px 16px;padding:8px 14px!important;margin:0!important;position:relative;overflow:visible!important;width:auto!important;max-width:none!important}
html body.espace .stat-bars>form.schedule-filters label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;font-size:.72rem!important;margin:0}
html body.espace .stat-bars>form.schedule-filters input[type=number]{width:64px;height:30px;font-size:.9rem}
html body.espace .stat-bars>form.schedule-filters .roster-rating-search{margin:0;width:auto!important;flex:0 0 auto}
html body.espace .stat-bars>form.schedule-filters .roster-rating-search>summary{white-space:nowrap;font-size:.85rem}
html body.espace .stat-bars>form.schedule-filters .roster-rating-search[open]>.roster-rating-grid{position:absolute;left:auto;right:0;width:max-content;max-width:min(760px,92vw);top:100%;z-index:30;margin-top:6px;padding:12px;background:var(--carte,#121a2c);border:1px solid var(--bord2,rgba(148,163,184,.3));border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.35)}
html body.espace .stat-bars>form.schedule-filters>a{font-size:.85rem;margin-left:6px;white-space:nowrap}
@media(max-width:900px){html body.espace .stat-bars>form.schedule-filters{flex:1 1 100%}}
/* Sélecteur de langue FR | EN (bas à droite) */
.lang-sw{position:fixed;right:12px;bottom:12px;z-index:60;display:flex;align-items:center;gap:6px;padding:4px 12px;border:1px solid var(--bord2,rgba(148,163,184,.35));border-radius:999px;background:var(--carte,#121a2c);color:var(--texte,#e8eefc);font-size:.78rem;line-height:1;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.lang-sw button{font:inherit;font-weight:600;padding:3px 2px;border:0;background:none;color:var(--doux,#8fa0c4);cursor:pointer;letter-spacing:.04em}
.lang-sw button.on{color:var(--texte,#e8eefc);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.lang-sw button:hover{color:var(--accent2,#5b93ff)}
.lang-sw span{opacity:.5}
html[data-theme="clair"] .lang-sw{box-shadow:0 4px 14px rgba(19,35,54,.15)}
html[data-theme="clair"] .lang-sw button.on{color:#0b3a8c}
html.i18n-pending body{visibility:hidden}
@media(max-width:700px){.lang-sw{right:6px;bottom:6px;padding:2px 7px;font-size:.66rem;opacity:.55;box-shadow:none}.lang-sw:hover,.lang-sw:focus-within,.lang-sw:active{opacity:1}}
/* Tableaux coupés en 2 colonnes (statistiques joueurs / gardiens) : compaction progressive quand l'écran est étroit */
html body.espace main .split-wrap.split-tight{gap:6px}
html body.espace main .split-wrap.split-tight .split-col{font-size:12px}
html body.espace main .split-wrap.split-tight .split-col :is(th,td){padding-left:3px!important;padding-right:3px!important}
html body.espace main .split-wrap.split-tighter .split-col :is(.player-link-portrait,.roster-face,.pl-photo,img.pp){display:none!important}
html body.espace main .split-wrap.split-tighter .split-col{font-size:11.5px}
html body.espace main .split-wrap.split-tighter .split-col :is(.tn-f){display:none!important}
html body.espace main .split-wrap.split-tightest .split-col{font-size:11px}
html body.espace main .split-wrap .split-col .split-hide{display:none!important}
html body.espace main .split-wrap.split-tight .split-box{min-width:0}html body.espace main .split-wrap.split-tightest .split-col :is(th,td){padding-left:2px!important;padding-right:2px!important}
html body.espace main .split-wrap.split-tightest .split-col :is(th,td):nth-child(2){max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.espace main .split-wrap.split-tightest .split-col :is(th,td):nth-child(1){width:22px;min-width:0}
html body.espace main .split-wrap.split-tightest .split-col .team-identity img{width:18px!important;height:18px!important}
/* Compaction des tableaux coupés : spécificité alignée sur les règles globales de tableaux (qui utilisent !important) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tight table.split-col{font-size:12px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tight table.split-col :is(th,td){padding-left:3px!important;padding-right:3px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tighter table.split-col{font-size:11.5px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tighter table.split-col :is(.player-link-portrait,.roster-face){display:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tighter table.split-col .tn-f{display:none!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tightest table.split-col{font-size:11px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tightest table.split-col :is(th,td){padding-left:2px!important;padding-right:2px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tightest table.split-col :is(th,td):nth-child(2){max-width:104px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tightest table.split-col :is(th,td):nth-child(1){width:22px!important;min-width:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap.split-tightest table.split-col .team-identity img{width:18px!important;height:18px!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .split-wrap table.split-col .split-hide{display:none!important}
/* Tableaux à découper : invisibles tant que split-table.js ne les a pas coupés (évite l'affichage d'une seule colonne qui saute) */
html.split-js main table[data-split]:not([data-split-seen]){visibility:hidden}

/* Résumé : la règle sans media-query des 4 colonnes (ligne « .rv-cols » plus haut) écrasait les versions étroites → les cartes se chevauchaient sur téléphone et tablette */
@media(max-width:1499px){html body.espace main.rv2 .rv-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){html body.espace main.rv2 .rv-cols{grid-template-columns:1fr}}
/* En-tête mobile : « Saison 24 » doit rester lisible en entier */
@media(max-width:560px){html body.espace .droite .saison-sel{max-width:112px!important;min-width:100px!important;padding:6px 16px 6px 8px!important;font-size:12.5px!important;text-overflow:clip!important}}
/* Résumé : l'onglet « Est | Ouest » (deux conférences côte à côte) n'existe que dès 1800 px; plus étroit, on garde seulement le nom de la conférence */
@media(max-width:1799px){html body.espace main.rv2 .rv-lb{display:none}}

/* Bandeau saison archivee : impossible a manquer */
html body.espace .archive-bar{background:rgba(245,165,36,.22)!important;border-bottom:2px solid #f5a524!important;padding:9px 16px!important;font-size:14px!important;text-align:center!important;position:sticky;top:0;z-index:55}
html body.espace .archive-bar a{margin-left:12px;padding:3px 10px;border-radius:999px;border:1px solid currentColor;text-decoration:none!important;white-space:nowrap}
html[data-theme="clair"] body.espace .archive-bar{background:#fde8b8!important;color:#5a3500}

/* Mouvements : en-tête de carte = logos seulement (pas d'abréviations), et nom d'équipe plus compact sur téléphone */
html body.espace .trade-history .tc-t b{display:none}
@media(max-width:700px){
 html body.espace .trade-history .trade-sides h3{font-size:1.1rem;gap:8px}
 html body.espace .trade-history .trade-sides h3 a img{width:40px!important;height:40px!important}
}

/* Espoirs par année : toutes les tuiles ont la largeur de la plus large (--pr-w, calculée par espoirs.php) ; côte à côte, hauteur selon le contenu */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years{display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:flex-start!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years>.pr-year{flex:0 0 auto!important;width:var(--pr-w,fit-content)!important;max-width:100%!important;min-width:0!important}
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years>.pr-year table{width:100%!important}
/* Meneurs : titres de cartes sur une seule ligne (police réduite au besoin) pour que toutes les cartes gardent la même hauteur de titre */
html body.espace .team-stat-grid>.portal-panel>h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(13px,1.05vw,17px)}
/* Espoirs par année : dans une même rangée, toutes les tuiles prennent la hauteur de la plus longue (pas de trous) */
html body.espace:not(:has(.line-editor,.line-unit-grid,.team-settings-grid)) main .pr-years{align-items:stretch!important}
/* Effectif (cotes) : 4 colonnes de contrat à la fin (Nb années, Sal., Rest., Type 1 way / 2 way), mêmes largeurs dans tous les tableaux. */
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll{width:calc(var(--nom-ch,22)*7.8px + 1004px + 346px)!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th:nth-last-child(4){width:76px!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th:nth-last-child(3),html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th:nth-last-child(2){width:100px!important}
html body.espace.eff-tx main .roster-status-group.rg-cotes section.schedule-scroll table.schedule-table:not(.compare-table):not(.fin-table):not(.no-tx) thead th:nth-last-child(1){width:70px!important}
/* Entraîneurs (liste) : lignes condensées — petit portrait, crédit photo en infobulle sur le portrait (le crédit complet reste dans la fiche). */
html body.espace main.coach-list table.schedule-table .coach-identity>span>a[target="_blank"]{display:none!important}
html body.espace main.coach-list table.schedule-table .coach-identity{gap:7px!important}
html body.espace main.coach-list table.schedule-table .coach-identity>img{width:24px!important;height:28px!important;object-fit:cover!important;border-radius:4px}
html body.espace main.coach-list table.schedule-table tbody :is(th,td){padding-top:2px!important;padding-bottom:2px!important;white-space:nowrap}