/* LSBS — feuille de style de la nouvelle version */
:root {
    --encre: #1b1f2a;
    --texte-doux: #5b6275;
    --fond: #f2f5f9;
    --carte: #ffffff;
    --bordure: #e1e4ec;
    --primaire: #1d4f91;       /* bleu de la ligue */
    --primaire-fonce: #0c2a52;
    --accent: #d4a017;       /* or */
    --sur-accent: #0c2a52;   /* texte posé sur l'accent */
    --lien: #1d4f91;
    --rayure: #f5f8fc;
    --rayon: 10px;
    --ombre: 0 1px 2px rgba(12, 30, 60, .06), 0 4px 14px rgba(12, 30, 60, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--fond); color: var(--encre);
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--lien); }
img { max-width: 100%; height: auto; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }

/* ---- En-tête ---- */
.entete { background: linear-gradient(135deg, var(--primaire-fonce), var(--primaire)); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.entete-haut { max-width: 1200px; margin: auto; display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; }
.marque { color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: .6rem; margin-right: auto; }
.marque-sigle { font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; color: var(--accent); }
.marque-nom { font-size: .95rem; opacity: .9; }
.outils { display: flex; gap: .75rem; align-items: center; }
.outils input, .outils select, .outils button { font: inherit; font-size: .9rem; border-radius: 6px; border: 0; padding: .35rem .55rem; }
.outils input { width: 13rem; }
.outils button { background: var(--accent); color: var(--primaire-fonce); font-weight: 600; cursor: pointer; }
.saison label { font-size: .85rem; display: flex; gap: .4rem; align-items: center; }
.bouton-menu { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: .35rem .7rem; font: inherit; }

/* ---- Menu ---- */
.menu { max-width: 1200px; margin: auto; padding: 0 .5rem; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu-n0 { display: flex; flex-wrap: wrap; }
.menu-n0 > li { position: relative; }
.menu a, .menu-titre { display: block; width: 100%; text-align: left; padding: .55rem .9rem; color: inherit; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; white-space: nowrap; }
.menu-n0 > li > .menu-titre { color: #fff; font-weight: 600; }
.menu-n0 > li > .menu-titre:hover, .menu-n0 > li:focus-within > .menu-titre { background: rgba(255,255,255,.12); }
.a-sous-menu > .menu-titre::after { content: " ▾"; opacity: .7; }
.menu-n1, .menu-n2 { display: none; position: absolute; min-width: 14rem; background: #fff; color: var(--encre); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: .3rem 0; z-index: 30; }
.menu-n1 { top: 100%; left: 0; }
.menu-n2 { top: -.3rem; left: 100%; }
.menu-n1 .a-sous-menu > .menu-titre::after { content: " ▸"; float: right; }
.menu-n1 a:hover, .menu-n1 .menu-titre:hover { background: var(--fond); }
@media (hover: hover) and (min-width: 821px) {
    /* Ouverture gérée par app.js (classe « survol », avec délai de fermeture) ; le clavier garde :focus-within */
    .a-sous-menu.survol > ul, .a-sous-menu:focus-within > ul { display: block; }
    .menu-n1 > li { position: relative; }
    .menu-n1 > li.survol > .menu-titre { background: var(--fond); }
}
.a-sous-menu.ouvert > ul { display: block; }

/* ---- Contenu ---- */
.contenu { max-width: 1200px; margin: 1.5rem auto; padding: 0 1rem; min-height: 60vh; }
.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.25rem; margin-bottom: 1.25rem; }
.carte > h2:first-child { margin-top: 0; }
.sous-titre { color: var(--texte-doux); margin: -.5rem 0 1.25rem; }
.onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.onglets a { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--bordure); text-decoration: none; font-weight: 600; font-size: .9rem; }
.onglets a.actif { background: var(--primaire); border-color: var(--primaire); color: #fff; }

/* ---- Tableaux ---- */
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.donnees { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
table.donnees th { background: var(--primaire); color: #fff; font-weight: 600; text-align: center; padding: .5rem .6rem; white-space: nowrap; }
table.donnees th:first-child { border-top-left-radius: 6px; }
table.donnees th:last-child { border-top-right-radius: 6px; }
table.donnees td { padding: .45rem .6rem; text-align: center; border-bottom: 1px solid var(--bordure); }
table.donnees tbody tr:nth-child(even) { background: var(--rayure); }
table.donnees tbody tr:hover { background: #e5eef9; }
table.donnees .gauche, table.donnees td.equipe { text-align: left; }
td.equipe a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
td.equipe img { width: 28px; height: 28px; object-fit: contain; }

/* ---- Accueil ---- */
.grille-equipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.equipe-carte { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1rem; text-align: center; text-decoration: none; color: var(--encre); transition: transform .15s, box-shadow .15s; }
.equipe-carte:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(12,42,82,.15); }
.equipe-carte img { height: 80px; width: auto; object-fit: contain; display: block; margin: 0 auto .6rem; }
.equipe-carte span { font-weight: 600; font-size: .95rem; }
/* Vestiaire : un casier par équipe, chandail aux couleurs de l'équipe */
.vestiaire { position: relative; margin-bottom: 1.25rem; padding: 1.1rem; border-radius: 14px; overflow: hidden; color: var(--encre);
    border: 2px solid #d9a92c;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.7), transparent 60%),
        repeating-linear-gradient(0deg, rgba(12,42,82,.05) 0 1px, transparent 1px 26px),
        linear-gradient(180deg, #e4ecf7, #c9d7eb);
    box-shadow: var(--ombre); }
.vestiaire h2 { margin: 0 0 .9rem; color: var(--primaire-fonce); text-transform: uppercase; letter-spacing: .16em; font-size: 1rem; }
.casiers { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.casier { position: relative; display: flex; flex-direction: column; align-items: center; padding: .6rem .5rem .9rem; text-decoration: none; color: #fff;
    border-radius: 8px; border: 1px solid rgba(0,0,0,.35);
    background:
        radial-gradient(ellipse at 50% -10%, rgba(255,236,190,.45), rgba(255,236,190,.1) 45%, transparent 70%),
        linear-gradient(90deg, #0e2850, #173d70 18%, #1d4780 50%, #173d70 82%, #0e2850);
    box-shadow: inset 0 10px 18px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.3); }
.casier::before { content: ''; position: absolute; top: -1px; left: 50%; width: 46px; height: 9px; transform: translateX(-50%);
    background: linear-gradient(180deg, #4a4f57, #22252a); border-radius: 0 0 24px 24px; box-shadow: 0 6px 16px 4px rgba(255,214,150,.35); }
.casier-plaque { display: flex; align-items: center; justify-content: center; min-height: 2.8em; width: 92%; margin: .55rem 0 .3rem; padding: .15rem .5rem;
    border-radius: 3px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; text-align: center;
    color: #2a2109; background: linear-gradient(180deg, #f6dc8a, #c9a03c); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.chandail { position: relative; width: 132px; margin-top: auto; transform-origin: 50% 2px; transition: transform .3s; }
.chandail svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 9px 8px rgba(0,0,0,.6)); }
.chandail .crochet { fill: none; stroke: #c3c8cf; stroke-width: 2.2; stroke-linecap: round; }
.chandail .cintre { fill: none; stroke: #8a5a2e; stroke-width: 5; stroke-linecap: round; }
.chandail .dos { filter: brightness(.55); }
.casier-fiche { margin-top: .45rem; font-size: .78rem; font-weight: 700; color: #f3e6c4; background: rgba(0,0,0,.45); border-radius: 999px; padding: .05rem .6rem; }
.casier:hover .chandail, .casier:focus-visible .chandail { transform: rotate(-4deg) translateY(-2px); }
.casier:focus-visible { outline: 3px solid #f3c74a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .chandail { transition: none; } .casier:hover .chandail { transform: none; } }
.liens-rapides { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.liens-rapides a { background: #fff; border: 1px solid var(--bordure); border-radius: 8px; padding: .7rem .9rem; text-decoration: none; font-weight: 600; }
.liens-rapides a:hover { border-color: var(--primaire); }

/* ---- Contenu historique inséré (chartes, constitution) ---- */
.contenu-historique { overflow-x: auto; }
.contenu-historique table { border-collapse: collapse; max-width: 100%; }
.contenu-historique th { background: var(--primaire); color: #fff; padding: .4rem; }
.contenu-historique td { padding: .35rem; border-bottom: 1px solid var(--bordure); vertical-align: top; }

/* ---- Pied ---- */
.pied { max-width: 1200px; margin: 2rem auto 1rem; padding: 1rem; display: flex; justify-content: space-between; color: var(--texte-doux); font-size: .85rem; border-top: 1px solid var(--bordure); }

/* ---- Téléphone ---- */
@media (max-width: 820px) {
    .entete-haut { flex-wrap: wrap; }
    .bouton-menu { display: block; }
    .marque-nom { display: none; }
    .outils { order: 3; width: 100%; justify-content: space-between; }
    .outils input { width: 100%; }
    .recherche { flex: 1; display: flex; gap: .4rem; }
    .menu { display: none; padding-bottom: .5rem; }
    .menu.ouvert { display: block; }
    .menu-n0 { display: block; }
    .menu-n1, .menu-n2 { position: static; box-shadow: none; border-radius: 0; background: rgba(255,255,255,.06); color: #fff; padding-left: .8rem; }
    .menu-n1 a:hover, .menu-n1 .menu-titre:hover { background: rgba(255,255,255,.08); }
    .menu-n1 .a-sous-menu > .menu-titre::after { float: none; content: " ▾"; }
    h1 { font-size: 1.35rem; }
    .carte { padding: 1rem; }
}

/* ---- Bulles des chartes ---- */
.lien-jeu { font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--primaire); cursor: help; }
.lien-jeu:hover, .lien-jeu:focus { background: #e5eef9; outline: none; }
.bulle-jeu {
    position: fixed; z-index: 50; width: min(520px, calc(100vw - 16px)); max-height: min(70vh, 560px); overflow: auto;
    background: #fff; color: var(--encre); border-radius: 12px; border-top: 4px solid var(--primaire);
    box-shadow: 0 18px 50px rgba(12, 42, 82, .28); padding: .9rem 1rem 1rem; font-size: .88rem; text-align: left;
}
.bulle-jeu h3 { margin: 0 0 .6rem; color: var(--primaire); font-size: 1.15rem; }
.bulle-jeu table.donnees { margin-bottom: .7rem; font-size: .85rem; }
.bulle-jeu table.donnees th { white-space: normal; }
.bulle-jeu table.donnees td { text-align: left; vertical-align: top; }
.bulle-jeu table.donnees tr > th:first-child { width: 4.5rem; }
.bulle-chargement { color: var(--texte-doux); margin: 0; }
.bulle-fermer { display: block; width: 100%; margin-top: .4rem; padding: .55rem; border: 0; border-radius: 8px; background: var(--primaire); color: #fff; font: inherit; font-weight: 600; }

/* ---- Team Strength ---- */
.reglages-nerp form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; }
.reglages-nerp fieldset { border: 1px solid var(--bordure); border-radius: 8px; padding: .5rem .8rem .7rem; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.reglages-nerp legend { font-weight: 700; color: var(--primaire); padding: 0 .3rem; font-size: .9rem; }
.reglages-nerp label { font-size: .85rem; color: var(--texte-doux); display: inline-flex; align-items: center; gap: .3rem; }
.reglages-nerp input[type=number] { width: 3.6rem; padding: .3rem .4rem; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; color: var(--encre); }
.prereglages { display: inline-flex; gap: .3rem; }
.prereglages button { border: 1px solid var(--bordure); background: #fff; border-radius: 999px; padding: .25rem .6rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--primaire); font-weight: 600; }
.prereglages button:hover { background: #e5eef9; }
.bouton-principal { background: var(--primaire); color: #fff; border: 0; border-radius: 8px; padding: .6rem 1.3rem; font: inherit; font-weight: 700; cursor: pointer; }
.bouton-principal:hover { background: var(--primaire-fonce); }
td.force { font-weight: 800; color: var(--primaire); }
.note { color: var(--texte-doux); font-size: .85rem; margin: .8rem 0 0; }
.fiche-force { padding: 0; }
.fiche-force summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .8rem; padding: .9rem 1.25rem; }
.fiche-force summary::-webkit-details-marker { display: none; }
.fiche-force summary::after { content: '▾'; margin-left: .2rem; color: var(--texte-doux); transition: transform .15s; }
.fiche-force[open] summary::after { transform: rotate(180deg); }
.fiche-force summary img { height: 34px; width: auto; }
.fiche-force .rang { background: var(--primaire); color: #fff; border-radius: 999px; min-width: 1.8rem; text-align: center; font-weight: 700; padding: .1rem .4rem; }
.fiche-force .nom { font-weight: 700; font-size: 1.05rem; flex: 1; }
.fiche-force .valeur { font-weight: 700; color: var(--primaire); }
.grille-force { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem 1.5rem; padding: 0 1.25rem 1.25rem; }
.grille-force caption { text-align: left; font-weight: 700; color: var(--primaire); padding: .3rem 0; caption-side: top; }
.grille-force caption span { float: right; color: var(--encre); }
.grille-force td.vide { color: var(--texte-doux); font-style: italic; }
.grille-force tbody th, table.donnees tbody th { border-radius: 0; }
.fiche-force { scroll-margin-top: 90px; }

/* ---- Logo de la ligue ---- */
.marque { align-items: center; }
.marque-logo { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); transition: transform .2s; }
.marque:hover .marque-logo { transform: rotate(-8deg) scale(1.05); }
.marque-texte { display: flex; flex-direction: column; line-height: 1.1; }
.marque-sigle { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .12em; }
.marque-nom { font-size: .8rem; letter-spacing: .02em; }
@media (max-width: 820px) { .marque-logo { width: 40px; height: 40px; } }

/* ---- Pages d'équipe ---- */
.entete-equipe { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.entete-equipe img { height: 64px; width: auto; }
.entete-equipe h1 { margin: 0; }
.entete-equipe .sous-titre { margin: .1rem 0 0; }
.onglets-equipes a { display: inline-flex; align-items: center; gap: .35rem; }
.onglets-equipes img { height: 18px; width: auto; }
.liens-equipe { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: .7rem 1rem; margin-bottom: 1.25rem; font-size: .88rem; }
.liens-equipe div { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.liens-equipe span { font-weight: 700; color: var(--texte-doux); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.liens-equipe a { text-decoration: none; font-weight: 600; }
.liens-equipe a.actif { color: var(--accent); text-decoration: underline; }
.compte { font-size: .8rem; background: var(--fond); color: var(--texte-doux); border-radius: 999px; padding: .1rem .5rem; vertical-align: middle; }
table.donnees tfoot th, table.donnees tfoot td { background: #e9eff7; color: var(--encre); font-weight: 700; border-radius: 0; padding: .45rem .6rem; text-align: center; }
table.donnees tfoot th.gauche { text-align: left; }
table.donnees td.joueur a { text-decoration: none; font-weight: 600; white-space: nowrap; }
th.th-triable { cursor: pointer; user-select: none; }
th.th-triable:hover { background: var(--primaire-fonce); }
th[data-ordre=desc]::after { content: ' ▾'; color: var(--accent); }
th[data-ordre=asc]::after { content: ' ▴'; color: var(--accent); }
@media (max-width: 820px) { .entete-equipe img { height: 48px; } }

/* ---- Leaders ---- */
.grille-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.25rem; }
.grille-leaders .carte { margin: 0; padding: 1rem; }
.leaders h2 { font-size: 1.05rem; margin: 0 0 .2rem; color: var(--primaire); }
.leaders .note { margin: 0 0 .5rem; font-size: .8rem; }
.leaders table.donnees { font-size: .88rem; }
.leaders td.rang-cell { color: var(--texte-doux); width: 2rem; }
.leaders td.valeur { font-weight: 700; color: var(--primaire); }
.leaders td.logos img { height: 20px; width: auto; vertical-align: middle; margin: 0 1px; }
.leaders tbody tr:first-child td.valeur { color: var(--accent); }
.leaders tbody tr:first-child td.rang-cell { color: var(--accent); font-weight: 800; }

/* ---- Ratings ---- */
table.ratings td.fort, table.ratings th.fort { font-weight: 800; }
table.ratings td.vs-g { background: rgba(29, 79, 145, .06); }
table.ratings th.vs-g { background: #2b62a8; }
table.ratings tr.sans-cote td { color: var(--texte-doux); }
table.ratings td { white-space: nowrap; }

/* ---- Navigation des pages d'équipe ---- */
.liens-equipe { display: none; }
.nav-equipe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
    border-bottom: 2px solid var(--bordure); margin-bottom: 1.25rem; }
.nav-equipe-onglets { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: .2rem; }
.nav-equipe-onglets a { display: block; padding: .6rem .9rem; margin-bottom: -2px; border-bottom: 3px solid transparent;
    text-decoration: none; font-weight: 600; color: var(--texte-doux); }
.nav-equipe-onglets a:hover { color: var(--primaire); border-bottom-color: var(--bordure); }
.nav-equipe-onglets a.actif { color: var(--primaire); border-bottom-color: var(--accent); }
.nav-equipe-plus { display: flex; gap: .4rem; padding-bottom: .4rem; }
.deroulant { position: relative; }
.deroulant summary { list-style: none; cursor: pointer; padding: .35rem .75rem; border: 1px solid var(--bordure); border-radius: 999px;
    background: #fff; font-size: .85rem; font-weight: 600; color: var(--primaire); white-space: nowrap; }
.deroulant summary::-webkit-details-marker { display: none; }
.deroulant summary::after { content: ' ▾'; color: var(--texte-doux); }
.deroulant[open] summary { background: var(--primaire); color: #fff; border-color: var(--primaire); }
.deroulant[open] summary::after { color: #fff; }
.deroulant-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; min-width: 11rem; background: #fff;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(12, 42, 82, .18); padding: .35rem 0; }
.deroulant-menu a { display: block; padding: .45rem 1rem; text-decoration: none; color: var(--encre); font-size: .9rem; }
.deroulant-menu a:hover { background: #e5eef9; color: var(--primaire); }
@media (max-width: 820px) {
    .nav-equipe-onglets { overflow-x: auto; flex-wrap: nowrap; width: 100%; }
    .nav-equipe-onglets a { white-space: nowrap; padding: .55rem .7rem; }
    .deroulant-menu { left: 0; right: auto; }
}

/* Leaders : tableaux alignés d'une carte à l'autre */
.leaders .note { min-height: 1.2em; }
.leaders table.donnees { table-layout: fixed; }
.leaders table.donnees th:nth-child(1) { width: 2.4rem; }
.leaders table.donnees th:nth-last-child(1) { width: 4.6rem; }
.grille-leaders .leaders table.donnees thead th:nth-child(3):not(:last-child) { width: 4.6rem; }
.leaders td.joueur a, .leaders td.equipe a { overflow: hidden; text-overflow: ellipsis; display: block; white-space: nowrap; }
.leaders td.equipe a { display: flex; }

/* ---- Séries éliminatoires ---- */
.navigation-annees { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.navigation-annees select { font: inherit; font-weight: 700; padding: .4rem .8rem; border-radius: 8px; border: 1px solid var(--bordure); color: var(--primaire); }
.bouton-annee { text-decoration: none; font-weight: 700; padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--bordure); }
.bouton-annee:hover { background: #e5eef9; }
.arbre { display: grid; grid-template-columns: minmax(300px, 1.1fr) 40px minmax(300px, 1.1fr) 40px minmax(180px, .7fr); align-items: center; padding: 1.5rem; overflow-x: auto; }
.arbre-demis { display: flex; flex-direction: column; gap: 2.5rem; }
.arbre-lien { align-self: stretch; position: relative; }
/* crochet qui relie les deux demi-finales à la finale */
.arbre-lien-demis::before { content: ''; position: absolute; left: 0; right: 50%; top: 25%; bottom: 25%;
    border: 3px solid var(--accent); border-left: 0; border-radius: 0 10px 10px 0; }
.arbre-lien-demis::after, .arbre-lien-finale::after { content: ''; position: absolute; top: 50%; height: 3px; margin-top: -1.5px; background: var(--accent); }
.arbre-lien-demis::after { left: 50%; right: 0; }
.arbre-lien-finale::after { left: 0; right: 0; }
.serie { background: #fff; border: 1px solid var(--bordure); border-radius: 12px; box-shadow: var(--ombre); overflow: hidden; }
.serie-titre { background: var(--primaire); color: #fff; font-weight: 700; padding: .45rem .8rem; font-size: .9rem; display: flex; justify-content: space-between; }
.serie-titre span { font-weight: 400; opacity: .8; font-size: .8rem; }
.serie-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.serie-table th { font-size: .7rem; color: var(--texte-doux); font-weight: 600; padding: .3rem .15rem 0; }
.serie-table td { padding: .45rem .2rem; text-align: center; border-top: 1px solid var(--bordure); }
.serie-equipe { text-align: left !important; display: flex; align-items: center; gap: .5rem; padding-left: .7rem !important; min-width: 9.5rem; }
.serie-equipe img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.serie-equipe span { display: flex; flex-direction: column; line-height: 1.15; }
.serie-equipe em { font-style: normal; color: var(--texte-doux); font-size: .8rem; }
.serie-equipe strong + em { display: inline; }
.serie-equipe small { color: var(--texte-doux); font-size: .72rem; }
td.match { width: 1.9rem; color: var(--texte-doux); font-size: .9rem; }
td.match.gagne { color: var(--primaire); font-weight: 800; background: #e5eef9; }
td.match.vide { background: var(--fond); }
td.serie-score { width: 2.6rem; font-weight: 800; font-size: 1.15rem; color: var(--texte-doux); }
tr.gagnant td.serie-score { color: #fff; background: var(--accent); }
tr.gagnant .serie-equipe strong { color: var(--primaire); }
tr.perdant .serie-equipe { opacity: .7; }
.champion { text-align: center; background: linear-gradient(160deg, var(--primaire-fonce), var(--primaire)); color: #fff;
    border-radius: 14px; padding: 1.2rem 1rem 1.4rem; box-shadow: 0 10px 30px rgba(12, 42, 82, .3); border: 3px solid var(--accent); }
.champion-titre { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.champion img { width: 110px; height: 110px; object-fit: contain; margin: .8rem auto; display: block; background: #fff; border-radius: 50%; padding: 10px; }
.champion-nom { font-size: 1.25rem; font-weight: 800; }
.palmares { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.palmares a { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .4rem; border: 1px solid var(--bordure);
    border-radius: 10px; text-decoration: none; color: var(--encre); background: #fff; transition: transform .15s, box-shadow .15s; }
.palmares a:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.palmares a.actif { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.palmares img { width: 40px; height: 40px; object-fit: contain; }
.palmares-annee { font-weight: 800; color: var(--primaire); }
.palmares-nom { font-size: .82rem; }
@media (max-width: 980px) {
    .arbre { grid-template-columns: 1fr; gap: 1.2rem; }
    .arbre-lien { display: none; }
    .arbre-demis { gap: 1.2rem; }
    .champion { max-width: 320px; margin: 0 auto; }
}

/* ---- Strength d'une équipe ---- */
.resume-force { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.resume-force div { background: var(--fond); border-radius: 10px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.resume-force span { text-transform: uppercase; font-size: .75rem; font-weight: 700; color: var(--texte-doux); letter-spacing: .05em; }
.resume-force strong { font-size: 1.8rem; color: var(--primaire); }
.resume-force small { color: var(--texte-doux); font-size: .78rem; }
.resume-force .total { background: linear-gradient(160deg, var(--primaire-fonce), var(--primaire)); }
.resume-force .total span, .resume-force .total small, .resume-force .total a { color: rgba(255,255,255,.85); }
.resume-force .total strong { color: var(--accent); }
.fiche-force-equipe .grille-force { padding: 0; }

/* ---- NERP d'une équipe ---- */
table.nerp tr.groupes th { background: var(--primaire-fonce); font-size: .78rem; }
table.nerp td.def { color: var(--texte-doux); }
table.nerp td.def.meilleure { background: #fdf3d4; color: var(--encre); font-weight: 700; }
table.nerp td.fort, table.nerp th.fort { font-weight: 800; }
table.nerp tr.sans-cote td { color: var(--texte-doux); }

/* ---- Défense ---- */
.grille-defense { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.grille-defense .carte { margin: 0; padding: 1rem; }
.grille-defense .defense-large { grid-column: span 1; }
.defense h2 { font-size: 1.05rem; margin: 0 0 .6rem; color: var(--primaire); display: flex; align-items: center; justify-content: space-between; }
.pos-badge { background: var(--accent); color: var(--sur-accent); border-radius: 6px; padding: .1rem .45rem; font-size: .8rem; }
.defense table.donnees { font-size: .85rem; }
.defense table.donnees th, .defense table.donnees td { padding: .4rem .35rem; }

/* ---- 25-man ---- */
.grille-25 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.grille-25 .carte { margin: 0; }
.liste-25 { list-style: none; margin: 0; padding: 0; }
.liste-25 li { display: flex; align-items: center; gap: .7rem; padding: .5rem .2rem; border-bottom: 1px solid var(--bordure); }
.liste-25 li:last-child { border-bottom: 0; }
.liste-25 .pos-badge { min-width: 2.6rem; text-align: center; }
.liste-25 a { text-decoration: none; font-weight: 600; }
.liste-25.numerotee { counter-reset: ordre; }
.liste-25.numerotee li::before { counter-increment: ordre; content: counter(ordre); color: var(--texte-doux); font-size: .8rem; width: 1rem; text-align: right; }

/* ---- Roster ---- */
.roster-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.roster-infos .carte { margin: 0; }
dl.infos { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; }
dl.infos dt { color: var(--texte-doux); font-weight: 600; }
dl.infos dd { margin: 0; font-weight: 600; }
.terrain { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding: 1.2rem; overflow: hidden;
    border-radius: 12px; border: 3px solid #a8764a; box-shadow: inset 0 0 40px rgba(0,0,0,.35);
    background:
        radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0) 40%, rgba(0,0,0,.22) 100%),
        repeating-linear-gradient(90deg, #2f7a35 0 56px, #388a3e 56px 112px); }
/* Losange : terre battue, gazon intérieur et lignes de but */
.terrain::before { content: ''; position: absolute; left: 50%; top: 60%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg);
    background: #3f9444; border: 3px solid rgba(255,255,255,.85); box-shadow: inset 0 0 0 22px #b98552, 0 0 0 10px rgba(185,133,82,.55); z-index: 0; }
/* Monticule */
.terrain::after { content: ''; position: absolute; left: 50%; top: 60%; width: 4.5%; aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%; background: #b98552; box-shadow: 0 0 0 2px rgba(255,255,255,.35); z-index: 0; }
.poste { position: relative; z-index: 1; background: rgba(255,255,255,.96); border: 1px solid rgba(0,0,0,.08); border-radius: 10px; padding: .6rem .8rem;
    box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.poste h3 { margin: -.6rem -.8rem .45rem; padding: .4rem .6rem .4rem .8rem; border-radius: 10px 10px 0 0; font-size: .8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em; color: #fff; background: linear-gradient(180deg, var(--primaire), var(--primaire-fonce));
    border-bottom: 2px solid var(--accent); display: flex; justify-content: space-between; align-items: center; }
.poste ul { list-style: none; margin: 0; padding: 0; }
.poste li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .22rem 0; font-size: .9rem; }
.poste li a.lien-joueur { text-decoration: none; font-weight: 600; }
.liens-ext { display: inline-flex; gap: .25rem; flex: none; }
.liens-ext a { font-size: .65rem; font-weight: 700; text-decoration: none; color: var(--texte-doux); border: 1px solid var(--bordure); border-radius: 4px; padding: 0 .25rem; }
.liens-ext a:hover { color: #fff; background: var(--primaire); border-color: var(--primaire); }
.p-lf { grid-column: 1 / 3; } .p-cf { grid-column: 3 / 5; } .p-rf { grid-column: 5 / 7; }
.p-ss { grid-column: 2 / 4; } .p-2b { grid-column: 4 / 6; }
.p-3b { grid-column: 1 / 3; } .p-1b { grid-column: 5 / 7; }
.p-dh { grid-column: 1 / 3; } .p-c { grid-column: 3 / 5; }
.lanceurs-roster { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 190px; padding: 1.2rem; overflow: hidden; align-items: start;
    border-radius: 12px; border: 3px solid #a8764a; box-shadow: inset 0 0 40px rgba(0,0,0,.35);
    background:
        radial-gradient(circle at 50% 50%, #c89566 0, #b98552 62px, #a8764a 82px, rgba(168,118,74,.55) 88px, transparent 92px),
        radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 45%, rgba(0,0,0,.22) 100%),
        repeating-linear-gradient(90deg, #2f7a35 0 56px, #388a3e 56px 112px); }
/* Plaque du lanceur (rubber) */
.lanceurs-roster::before { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 10px; transform: translate(-50%, -50%);
    background: #fff; border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.35); z-index: 0; }
/* Sac de résine */
.lanceurs-roster::after { content: ''; position: absolute; left: calc(50% + 34px); top: calc(50% + 34px); width: 14px; height: 10px;
    background: #f4f1e6; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.35); z-index: 0; }
.lanceurs-roster .poste { margin: 0; }
@media (max-width: 820px) {
    .lanceurs-roster { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 200px;
        background:
            radial-gradient(circle at 50% calc(100% - 100px), #c89566 0, #b98552 62px, #a8764a 82px, rgba(168,118,74,.55) 88px, transparent 92px),
            repeating-linear-gradient(90deg, #2f7a35 0 56px, #388a3e 56px 112px); }
    .lanceurs-roster::before { top: auto; bottom: 95px; transform: translateX(-50%); }
    .lanceurs-roster::after { top: auto; bottom: 61px; }
}
@media (max-width: 820px) {
    .terrain { grid-template-columns: 1fr; }
    .terrain::before, .terrain::after { display: none; }
    .terrain .poste { grid-column: auto; }
}

/* ---- MLB Watch, Records, Meneurs ---- */
.titre-section { margin: 0 0 .6rem; color: var(--primaire); }
.bascule { display: inline-flex; flex-wrap: wrap; gap: .3rem; background: var(--fond); padding: .3rem; border-radius: 999px; margin-bottom: 1rem; }
.bascule button { border: 0; background: transparent; padding: .4rem .9rem; border-radius: 999px; font: inherit; font-weight: 600; color: var(--texte-doux); cursor: pointer; }
.bascule button.actif { background: var(--primaire); color: #fff; }
.bascule button.actif .compte { background: rgba(255,255,255,.2); color: #fff; }
table.watch td { white-space: nowrap; }
table.watch td.logos img { height: 20px; width: auto; vertical-align: middle; }
.grille-leaders .leaders table.donnees thead th.annee-col { width: 3.6rem !important; }
.grille-leaders .leaders table.donnees thead th.gauche { width: auto !important; }
.leaders td.annee-col { color: var(--texte-doux); font-variant-numeric: tabular-nums; }

/* ---- Fiche joueur ---- */
.entete-fiche .entete-haut { padding: .45rem 1rem; }
.entete-fiche .marque-logo { width: 36px; height: 36px; }
.fermer-fiche { margin-left: auto; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: .3rem .8rem; font: inherit; cursor: pointer; }
.fermer-fiche:hover { background: rgba(255,255,255,.15); }
.contenu-fiche { margin-top: 1rem; }
.fiche-joueur-entete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fj-identite { display: flex; align-items: center; gap: 1rem; }
.fj-pastille { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primaire-fonce), var(--primaire)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; letter-spacing: .04em; flex: none; }
.fiche-joueur-entete h1 { margin: 0 0 .25rem; }
.fj-infos { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; color: var(--texte-doux); }
.fj-pos { background: var(--primaire); color: #fff; border-radius: 999px; padding: 0 .6rem; font-weight: 700; font-size: .85rem; }
.fj-liens { margin: .45rem 0 0; display: flex; gap: .4rem; }
.fj-equipe { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-weight: 600; text-align: center; }
.fj-equipe img { height: 72px; width: auto; }
.fj-sommaire { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; position: sticky; top: 0; z-index: 5; background: var(--fond); padding: .4rem 0; }
.fj-sommaire a { padding: .3rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--bordure); text-decoration: none; font-weight: 600; font-size: .9rem; }
.fj-sommaire a:hover { border-color: var(--primaire); }
.contenu-fiche .carte { scroll-margin-top: 3.2rem; }
.fj-table td, .fj-table th { white-space: nowrap; }
.fj-table td.fj-eq { text-align: left; }
.fj-table .mini-logo { height: 16px; width: auto; vertical-align: -3px; margin-right: .3rem; }
.fj-table tr.fj-vide td { color: var(--texte-doux); }
.fj-table tfoot th, .fj-table tfoot td { font-weight: 700; border-top: 2px solid var(--primaire); background: var(--fond); }
.fj-table td.fj-tot { font-weight: 700; }
.fj-table td.fj-texte { font-size: .82rem; text-align: left; }
.fj-table td.fj-def { color: var(--texte-doux); }
.fj-meneur { font-weight: 800; color: var(--primaire); background: #e5eef9; }
.fj-legende { padding: 0 .3rem; border-radius: 4px; }
.fj-etroite { max-width: 640px; }
.fj-grille { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 1rem; align-items: start; }
.fj-grille .carte { margin-bottom: 0; }
.fj-distinctions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.fj-distinctions h3 { margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-doux); }
.fj-liste { list-style: none; margin: 0; padding: 0; }
.fj-liste li { padding: .3rem 0; border-bottom: 1px solid var(--bordure); }
.fj-liste li:last-child { border-bottom: 0; }
.fj-annee { display: inline-block; min-width: 3.4rem; font-weight: 700; color: var(--primaire); font-variant-numeric: tabular-nums; }
.fj-code { font-size: .75rem; color: var(--texte-doux); }
@media (max-width: 760px) { .fj-grille { grid-template-columns: 1fr; } }

/* ---- Trophées ---- */
.mini-logo { height: 18px; width: auto; vertical-align: -4px; margin-right: .3rem; }
td.equipe-cell { white-space: nowrap; }
td.equipe-cell .sigle { font-size: .85rem; }
td.pos { font-weight: 700; color: var(--primaire); }
.champions-mise-en-page { display: grid; grid-template-columns: 300px 1fr; gap: 1.2rem; align-items: start; }
.champions-palmares { text-align: center; }
.trophee-image { max-width: 160px; height: auto; margin: 0 auto .6rem; display: block; }
.palmares { list-style: none; padding: 0; margin: 0; text-align: left; }
.palmares li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding: .45rem 0; border-bottom: 1px solid var(--bordure); }
.palmares .nom { font-weight: 700; }
.palmares .titres { background: var(--primaire); color: #fff; border-radius: 999px; min-width: 1.8rem; text-align: center; font-weight: 700; }
.palmares .annees { grid-column: 1 / -1; font-size: .8rem; color: var(--texte-doux); }
.grille-champions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.champion { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: .8rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.champion .annee { font-weight: 800; font-size: 1.2rem; color: var(--primaire); }
.champion img { height: 54px; width: auto; }
.champion strong { font-size: .9rem; }
.champion .dg { font-size: .85rem; color: var(--texte-doux); }
.grille-trophees { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; align-items: start; }
.grille-trophees .carte { margin-bottom: 0; scroll-margin-top: 1rem; }
.grille-trophees h2 { margin-bottom: .2rem; }
.grille-trophees .sous-titre { margin: 0 0 .7rem; }
.defile-vertical { max-height: 420px; overflow-y: auto; }
.defile-vertical thead th { position: sticky; top: 0; }
.grille-etoiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.grille-etoiles .carte { margin-bottom: 0; }
.grille-etoiles h2 { margin: 0 0 .5rem; }
.pastilles-joueurs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pastilles-joueurs li { background: var(--fond); border-radius: 999px; padding: .25rem .4rem .25rem .8rem; display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 760px) { .champions-mise-en-page { grid-template-columns: 1fr; } }

/* ---- Records, Clubbest, NERP, coachs ---- */
.onglets-secondaires a { font-size: .85rem; padding: .25rem .7rem; }
.choix-plateaux { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; }
.choix-plateaux a { padding: .3rem .7rem; border-radius: 6px; background: #fff; border: 1px solid var(--bordure); text-decoration: none; font-size: .85rem; font-weight: 600; }
.choix-plateaux a.actif { background: var(--primaire); color: #fff; border-color: var(--primaire); }
table.clubbest td { vertical-align: top; }
.saisons-club { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.saisons-club li { background: var(--fond); border-radius: 6px; padding: .15rem .5rem; white-space: nowrap; font-size: .85rem; }
.saisons-club .val { margin-left: .35rem; color: var(--texte-doux); }
.saisons-club .mini-logo { margin: 0 0 0 .3rem; height: 15px; }
tr.dg-actif td:first-child { font-weight: 700; }
tr.dg-inactif td { color: var(--texte-doux); }
.tri-nerp { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: 0 0 .8rem; color: var(--texte-doux); }
.tri-nerp a { padding: .2rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--bordure); text-decoration: none; font-weight: 600; font-size: .85rem; }
.tri-nerp a.actif { background: var(--primaire); color: #fff; border-color: var(--primaire); }
.grille-nerp { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; align-items: start; margin-bottom: 1.5rem; }
.grille-nerp .carte { margin: 0; padding: 1rem; }
.nerp-pos h3 { margin: 0 0 .5rem; color: var(--primaire); display: flex; justify-content: space-between; align-items: center; }
.code-pos { background: var(--fond); color: var(--texte-doux); border-radius: 6px; padding: 0 .45rem; font-size: .8rem; }
th.tri-actif { text-decoration: underline; }
.libre { font-size: .75rem; color: var(--texte-doux); }
.grille-leaders .leaders table.donnees thead th.eq-col { width: 2.8rem !important; }
.leaders td.equipe-cell { overflow: hidden; white-space: nowrap; }
.leaders td.equipe-cell .mini-logo { margin-right: 1px; }

/* ---- Coin du DG : repêchage, échanges, photos ---- */
.tableau-draft { font-size: .82rem; }
.tableau-draft th.equipe-draft { white-space: nowrap; background: var(--fond); color: var(--encre); position: sticky; left: 0; z-index: 1; }
.tableau-draft .rang { display: inline-block; min-width: 1.4rem; color: var(--texte-doux); }
.tableau-draft .nb-choix { font-size: .72rem; background: var(--primaire); color: #fff; border-radius: 999px; padding: 0 .4rem; margin-left: .3rem; }
.tableau-draft td.choix { white-space: nowrap; text-align: left; min-width: 7.5rem; }
.tableau-draft td.choix .mini-logo { height: 16px; }
.tableau-draft td.echange { box-shadow: inset 0 0 0 2px var(--accent); background: #fff8e6; }
.tableau-draft .passe { color: var(--texte-doux); font-style: italic; }
.grille-echanges { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.grille-echanges .carte { margin: 0; display: grid; gap: .6rem; }
.cote-echange h3 { margin: 0 0 .3rem; font-size: 1rem; color: var(--primaire); display: flex; align-items: center; gap: .3rem; }
.cote-echange .recoit { font-weight: 400; color: var(--texte-doux); font-size: .85rem; }
.cote-echange ul { margin: 0; padding-left: 1.2rem; }
.cote-echange + .cote-echange { border-top: 1px dashed var(--bordure); padding-top: .6rem; }
.note-echange, .choix-echange { color: var(--texte-doux); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.galerie a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rayon); box-shadow: var(--ombre); background: var(--fond); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.galerie a:hover img { transform: scale(1.04); }
dialog.visionneuse { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; overflow: visible; }
dialog.visionneuse::backdrop { background: rgba(5, 15, 35, .85); }
dialog.visionneuse img { max-width: 90vw; max-height: 85vh; display: block; border-radius: 6px; }
dialog.visionneuse button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 2rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer; }
dialog.visionneuse .fermer { top: -1.4rem; right: -1.4rem; font-size: 1.5rem; }
dialog.visionneuse .prec { left: -3.2rem; top: 50%; transform: translateY(-50%); }
dialog.visionneuse .suiv { right: -3.2rem; top: 50%; transform: translateY(-50%); }
dialog.visionneuse .compteur { color: #fff; text-align: center; margin: .4rem 0 0; }
@media (max-width: 700px) { dialog.visionneuse .prec { left: .3rem; } dialog.visionneuse .suiv { right: .3rem; } dialog.visionneuse .fermer { right: .3rem; top: .3rem; } }

/* ---- Temple de la renommée, recherche ---- */
.hof-banniere { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.4rem; margin-bottom: .8rem; border-radius: var(--rayon);
    background: radial-gradient(circle at 15% 20%, #2a5ba3 0, #163a70 45%, #0d2347 100%); color: #fff; border: 2px solid #d9a92c; box-shadow: var(--ombre); }
.hof-embleme { width: 104px; height: 104px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.hof-surtitre { margin: 0; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; color: #f3c74a; }
.hof-banniere h1 { margin: .15rem 0 .5rem; color: #fff; }
.hof-chiffres { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.hof-chiffres li { background: rgba(255,255,255,.1); border: 1px solid rgba(243,199,74,.45); border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; }
.hof-chiffres strong { color: #f3c74a; }
.mur-hof { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.5rem; scroll-margin-top: 130px; }
.plaque-hof { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: 1.6rem .6rem .8rem;
    border-radius: 10px; text-decoration: none; color: #fff; background: linear-gradient(180deg, #1e4a8a 0%, #0f2a52 100%);
    border: 1px solid #c9971c; box-shadow: inset 0 0 0 3px #0f2a52, inset 0 0 0 4px rgba(243,199,74,.55), var(--ombre); transition: transform .15s, box-shadow .15s; }
.plaque-hof:hover, .plaque-hof:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 3px #0f2a52, inset 0 0 0 4px #f3c74a, 0 8px 18px rgba(15,42,82,.35); }
.plaque-hof.actif { outline: 3px solid #f3c74a; outline-offset: 2px; }
.plaque-annee { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, #f3c74a, #c9971c); color: #0f2a52;
    font-weight: 800; font-size: .78rem; letter-spacing: .06em; padding: .12rem .7rem; border-radius: 0 0 8px 8px; }
.plaque-logo { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: .35rem;
    border: 2px solid #f3c74a; font-weight: 800; color: #0f2a52; overflow: hidden; }
.plaque-logo img { width: 40px; height: 40px; object-fit: contain; }
.plaque-photo { position: relative; width: 104px; aspect-ratio: 180 / 248; margin: .1rem 0 .55rem; border-radius: 6px; border: 2px solid #f3c74a;
    box-shadow: 0 4px 10px rgba(0,0,0,.4); background: #0d2347; }
.plaque-photo > img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.plaque-medaillon { position: absolute; right: -12px; bottom: -10px; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #f3c74a;
    display: grid; place-items: center; box-shadow: 0 2px 5px rgba(0,0,0,.35); }
.plaque-medaillon img { width: 22px; height: 22px; object-fit: contain; }
.mur-hof { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.hof-detail::after { content: ''; display: block; clear: both; }
.hof-portrait { float: right; width: 160px; margin: 0 0 1rem 1.2rem; border-radius: 8px; border: 3px solid #f3c74a; box-shadow: var(--ombre); }
@media (max-width: 520px) { .hof-portrait { float: none; display: block; margin: 0 auto 1rem; width: 140px; } }
.plaque-hof strong { font-size: .92rem; line-height: 1.2; }
.plaque-pos { font-size: .75rem; color: #c9d6ea; }
.plaque-equipe { font-size: .7rem; letter-spacing: .12em; color: #f3c74a; font-weight: 700; margin-top: .1rem; }
@media (max-width: 520px) { .hof-banniere { padding: 1rem; } .hof-embleme { width: 64px; height: 64px; } .mur-hof { grid-template-columns: repeat(2, 1fr); } }
.hof-detail { border-top: 4px solid var(--accent); }
.hof-promo { text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 800; margin: 0; }
.hof-detail h2 { margin: .2rem 0 .6rem; }
.hof-detail h3 { margin: .8rem 0 .3rem; color: var(--primaire); font-size: 1rem; }
.hof-texte { line-height: 1.6; max-width: 70ch; }
.hof-fiche { margin-bottom: 1.5rem; }
.recherche-grande { display: flex; gap: .5rem; margin-bottom: 1rem; }
.recherche-grande input { flex: 1; font: inherit; padding: .6rem .8rem; border: 1px solid var(--bordure); border-radius: 8px; }
.filtres-recherche { display: grid; gap: .5rem; }
.filtres-recherche div { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.filtres-recherche span { font-weight: 700; color: var(--texte-doux); min-width: 5.5rem; font-size: .85rem; }
.filtres-recherche a { padding: .2rem .5rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .85rem; border: 1px solid transparent; }
.filtres-recherche a:hover { border-color: var(--bordure); }
.filtres-recherche a.actif { background: var(--primaire); color: #fff; }
tr.inactif td { color: var(--texte-doux); }

/* NERP : noms de joueurs toujours complets */
.grille-nerp { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.nerp-pos table.donnees { table-layout: auto; width: 100%; }
.nerp-pos table.donnees th, .nerp-pos table.donnees td { padding-left: .35rem; padding-right: .35rem; }
.nerp-pos table.donnees th:not(.gauche), .nerp-pos table.donnees td:not(.joueur) { width: 1%; white-space: nowrap; }
.nerp-pos td.joueur { width: auto; white-space: normal; }
.nerp-pos td.joueur a { display: inline; overflow: visible; text-overflow: clip; white-space: normal; }
@media (max-width: 420px) { .grille-nerp { grid-template-columns: 1fr; } }
/* Joueurs MLB à surveiller : minimum ajustable */
.filtre-min { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0 0 1rem; font-size: .9rem; }
.filtre-min input[type=number] { width: 5rem; padding: .3rem .4rem; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; }
.filtre-min button { padding: .35rem .9rem; border: 0; border-radius: 6px; background: var(--primaire); color: #fff; font-weight: 600; cursor: pointer; }
/* Tableaux MLB (à surveiller, nos joueurs, en MLB) : tout visible sans défilement horizontal */
table.watch { font-size: .8rem; width: 100%; table-layout: auto; }
table.watch th, table.watch td { padding: .35rem .28rem; }
table.watch thead th { font-size: .74rem; letter-spacing: 0; }
table.watch td.joueur { white-space: normal; min-width: 7rem; line-height: 1.25; }
table.watch td .liens-ext { gap: 2px; }
table.watch td .liens-ext a { font-size: .6rem; line-height: 1.35; text-align: center; padding: 0 .2rem; }
table.watch td.logos img { height: 18px; }
@media (max-width: 1100px) {
    table.watch { font-size: .74rem; } table.watch th, table.watch td { padding: .3rem .2rem; }
    table.watch td .liens-ext { flex-direction: column; align-items: stretch; }
}
/* Repêchage : une ligne par ronde, une colonne par équipe (sans défilement horizontal) */
.filtre-draft { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; font-size: .85rem; color: var(--texte-doux); }
.filtre-draft button { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .55rem; border: 1px solid var(--bordure); border-radius: 999px;
    background: #fff; font: inherit; font-size: .8rem; font-weight: 700; color: var(--encre); cursor: pointer; }
.filtre-draft button.actif { border-color: var(--primaire); box-shadow: 0 0 0 2px var(--primaire); }
.filtre-draft button.tous { font-weight: 600; color: var(--texte-doux); }
.tableau-repechage { display: grid; gap: 4px; font-size: .8rem; }
.rep-entete, .rep-ronde { display: grid; grid-template-columns: 3rem repeat(var(--nb-equipes), minmax(0, 1fr)); gap: 4px; }
.rep-equipe .mini-logo { height: 22px; width: 22px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.rep-coin, .rep-equipe { background: var(--primaire); color: #fff; border-radius: 6px; padding: .4rem .35rem; font-weight: 700; font-size: .75rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem .35rem; text-align: center; }
.rep-equipe .rang { opacity: .75; }
.rep-equipe .mini-equipe { color: #fff; }
.rep-equipe .nb-choix { flex-basis: 100%; font-size: .68rem; font-weight: 600; opacity: .85; }
.rep-no { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primaire); background: var(--rayure); border-radius: 6px; }
.rep-choix { position: relative; background: #fff; border: 1px solid var(--bordure); border-radius: 6px; padding: .3rem .4rem .35rem; min-height: 3.1rem;
    display: flex; flex-direction: column; gap: .15rem; transition: opacity .15s, box-shadow .15s; }
.rep-haut { display: flex; justify-content: space-between; align-items: center; gap: .3rem; font-size: .68rem; color: var(--texte-doux); }
.rep-proprio { display: none; align-items: center; gap: .2rem; font-weight: 700; color: #7a5a00; }
.rep-proprio img { height: 14px; width: auto; }
.rep-joueur { line-height: 1.2; overflow-wrap: anywhere; }
.rep-joueur a { font-weight: 600; text-decoration: none; }
.rep-joueur .libre, .rep-joueur .passe { color: var(--texte-doux); font-style: italic; }
.rep-choix.echange { border: 2px solid var(--accent); background: #fff8e6; }
.rep-choix.echange .rep-proprio { display: inline-flex; }
.rep-choix.marque { box-shadow: 0 0 0 2px var(--primaire); background: #eaf1fb; }
.rep-choix.estompe { opacity: .35; }
@media (max-width: 760px) {
    .rep-entete { display: none; }
    .rep-ronde { grid-template-columns: 1fr 1fr; }
    .rep-no { grid-column: 1 / -1; justify-content: flex-start; padding: .3rem .5rem; }
    .rep-proprio { display: inline-flex; color: var(--texte-doux); }
}
/* ---- Administration ---- */
.connexion-admin { max-width: 26rem; }
.connexion-admin form { display: grid; gap: .8rem; }
.connexion-admin label, .enregistrer-echange label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.connexion-admin input, .enregistrer-echange input { padding: .5rem .6rem; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; }
.bouton-principal { padding: .55rem 1.1rem; border: 0; border-radius: 8px; background: var(--primaire); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.bouton-principal:disabled { opacity: .45; cursor: not-allowed; }
.message { padding: .6rem .9rem; border-radius: 8px; margin: 0 0 1rem; }
.message.erreur { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }
.message.succes { background: #eaf7ee; border: 1px solid #b9e2c4; }
.barre-admin { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding: .5rem .9rem; margin-bottom: 1rem; border-radius: 8px;
    background: var(--primaire-fonce); color: #fff; font-size: .9rem; }
.barre-admin a { color: #fff; }
.barre-admin form { margin-left: auto; }
.barre-admin button { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: .25rem .7rem; font: inherit; cursor: pointer; }
.tuiles-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.tuile-admin { display: grid; gap: .35rem; padding: 1.1rem; border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); text-decoration: none; color: var(--encre);
    border-top: 4px solid var(--accent); transition: transform .15s, box-shadow .15s; }
.tuile-admin:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12,42,82,.15); }
.tuile-admin strong { color: var(--primaire); font-size: 1.05rem; }
.tuile-admin span:last-child { color: var(--texte-doux); font-size: .88rem; }
.tuile-icone { font-size: 1.6rem; color: var(--accent); }
.choix-equipes-admin { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.puce-equipe { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border: 1px solid var(--bordure); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 700; font-size: .85rem; }
.puce-equipe:has(input:checked) { border-color: var(--primaire); box-shadow: 0 0 0 2px var(--primaire); }
.colonnes-echange { display: grid; grid-template-columns: repeat(var(--nb), minmax(0, 1fr)); gap: 1rem; align-items: start; }
.colonne-echange h3 { margin: 0 0 .6rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.colonne-echange h3 .nom { font-size: .95rem; }
.colonne-echange details { margin-bottom: .5rem; }
.colonne-echange summary { cursor: pointer; font-weight: 700; color: var(--primaire); padding: .3rem 0; }
.liste-actifs { list-style: none; margin: 0; padding: 0; max-height: 22rem; overflow-y: auto; }
.liste-actifs li { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .2rem .1rem; border-bottom: 1px solid var(--rayure); font-size: .88rem; }
.liste-actifs label { display: flex; align-items: center; gap: .35rem; cursor: pointer; min-width: 0; }
.liste-actifs li:has(input:checked) { background: #fff8e6; }
.liste-actifs .pos { display: inline-block; min-width: 2rem; font-size: .72rem; font-weight: 700; color: var(--texte-doux); }
.liste-actifs select { font: inherit; font-size: .8rem; padding: .1rem .2rem; }
.resume-echange { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.resume-echange h3 { margin: 0 0 .3rem; font-size: .95rem; color: var(--primaire); display: flex; align-items: center; gap: .3rem; }
.resume-echange ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.enregistrer-echange { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.enregistrer-echange input { width: 6rem; }
@media (max-width: 820px) { .colonnes-echange { grid-template-columns: 1fr; } }
/* ---- Administration : paramètres ---- */
.form-parametres { margin-bottom: 1.2rem; }
.grille-parametres { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem 1.4rem; }
.grille-parametres label { display: grid; gap: .25rem; align-content: start; }
.grille-parametres label > span:first-child { font-weight: 700; font-size: .9rem; }
.grille-parametres input[type=number] { width: 8rem; padding: .45rem .55rem; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; }
.grille-parametres small { color: var(--texte-doux); font-size: .8rem; line-height: 1.35; }
.case-parametre span + span { display: flex; align-items: center; gap: .4rem; }
.table-parametres { width: 100%; max-width: 40rem; border-collapse: collapse; }
.table-parametres th, .table-parametres td { padding: .35rem .5rem; border-bottom: 1px solid var(--rayure); text-align: left; }
.table-parametres input[type=text] { width: 100%; padding: .35rem .5rem; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; }
.etapes-annee { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.etapes-annee li { padding: .55rem .8rem; border-left: 4px solid var(--accent); background: var(--rayure); border-radius: 6px; }
.etapes-annee label { display: flex; gap: .5rem; align-items: baseline; cursor: pointer; }
.liste-ballottage { columns: 3 15rem; column-gap: 1.5rem; max-height: none; }
.liste-ballottage li { break-inside: avoid; }
/* ---- Échanges : fil chronologique ---- */
.filtre-echanges { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .8rem; }
.filtre-echanges button { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; border: 1px solid var(--bordure); border-radius: 999px; background: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--encre); }
.filtre-echanges button.actif { border-color: var(--primaire); box-shadow: 0 0 0 2px var(--primaire); }
.fil-echanges { padding: .3rem 1rem; }
.ligne-echange { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .8rem; align-items: start; padding: .6rem 0; border-top: 1px solid var(--rayure); }
.ligne-echange:first-child { border-top: 0; }
.ligne-echange[hidden] { display: none; }
.sem-echange { font-size: .8rem; font-weight: 700; color: var(--texte-doux); padding-top: .15rem; white-space: nowrap; }
.cotes-echange { display: grid; grid-template-columns: minmax(0, 1fr) 1.6rem minmax(0, 1fr); gap: .3rem .6rem; align-items: start; }
.ligne-echange.multi .cotes-echange { grid-template-columns: minmax(0, 1fr); }
.fleche-echange { text-align: center; font-size: 1.15rem; line-height: 1.3; color: var(--texte-doux); }
.cote-fil { display: flex; gap: .45rem; align-items: baseline; font-size: .92rem; line-height: 1.45; min-width: 0; }
.eq-fil { flex: none; font-weight: 700; }
.recu-fil { min-width: 0; }
.choix-echange sup { font-size: .65em; }
@media (max-width: 640px) {
    .ligne-echange { grid-template-columns: 1fr; gap: .3rem; }
    .cotes-echange { grid-template-columns: minmax(0, 1fr); }
    .fleche-echange { text-align: left; transform: rotate(90deg); width: 1.2rem; }
}
.tuile-admin { align-content: start; grid-template-rows: 2rem auto auto; }
.tuile-icone { line-height: 2rem; }
.recherche-ballottage { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-bottom: .8rem; }
.recherche-ballottage label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.recherche-ballottage input { padding: .5rem .6rem; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; min-width: 16rem; }
.enregistrer-echange select { padding: .45rem .5rem; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; }
/* ---- Centre de repêchage ---- */
.grille-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.liste-simple { list-style: none; margin: 0; padding: 0; }
.liste-simple li { padding: .25rem 0; border-bottom: 1px solid var(--rayure); font-size: .92rem; }
.liste-simple .pos { display: inline-block; min-width: 2.2rem; font-size: .72rem; font-weight: 700; color: var(--texte-doux); }
.colonnes-joueurs { columns: 2 12rem; column-gap: 1.2rem; }
.colonnes-joueurs li { break-inside: avoid; }
.barre-dc .choix-annee-dc { margin-left: auto; }
.barre-dc .choix-annee-dc + form { margin-left: 0; }
.barre-dc select { font: inherit; font-size: .85rem; padding: .1rem .3rem; border-radius: 6px; border: 0; }
.barre-dc label { display: inline-flex; gap: .4rem; align-items: center; }
.pastille-admin { font-size: .72rem; background: var(--accent); color: var(--primaire-fonce); border-radius: 999px; padding: .05rem .45rem; font-weight: 700; }
.etat-dc { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .6rem .9rem; margin: 0 0 1rem; border-radius: 8px; background: #fff; box-shadow: var(--ombre); border-left: 5px solid var(--primaire); }
.etat-dc.a-vous { border-left-color: var(--accent); background: #fff8e6; }
.votre-tour { color: #8a5a00; }
.outils-dc { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1.4rem; margin: 0 0 .8rem; }
.outils-dc label { display: grid; gap: .2rem; font-size: .85rem; font-weight: 600; }
.outils-dc .case-dc { display: flex; align-items: center; gap: .35rem; font-weight: 600; }
.outils-dc input[type=search], .outils-dc select { padding: .4rem .55rem; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; }
.table-dc .det { display: none; }
.table-dc.avec-details .det { display: table-cell; }
.table-dc tr.marque-dc td { background: #fff8e6; }
.table-dc tr[hidden] { display: none; }
.etoile-dc { border: 0; background: none; font-size: 1.15rem; line-height: 1; color: #c9a227; cursor: pointer; padding: 0 .2rem; }
.note-dc { width: 4.2rem; padding: .15rem .3rem; border: 1px solid var(--bordure); border-radius: 4px; font: inherit; font-size: .82rem; text-align: center; }
.note-dc.enregistre { border-color: #3a9a5b; box-shadow: 0 0 0 2px #b9e2c4; }
.bouton-choisir { padding: .2rem .6rem; border: 0; border-radius: 6px; background: var(--accent); color: var(--primaire-fonce); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.form-choisir { margin: 0; }
.rep-choix.courant { box-shadow: 0 0 0 3px var(--accent); background: #fff8e6; }
.rep-choix.a-moi { border-color: var(--primaire); }
.au-choix { font-weight: 700; color: #8a5a00; }
.effectif-dc th { width: 5.5rem; text-align: left; }
.effectif-dc select { width: 100%; font: inherit; padding: .3rem .4rem; border: 1px solid var(--bordure); border-radius: 6px; }
.grille-ratios { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.grille-ratios fieldset { border: 1px solid var(--bordure); border-radius: 8px; padding: .5rem .8rem .7rem; display: flex; gap: .8rem; }
.grille-ratios legend { font-weight: 700; font-size: .88rem; padding: 0 .3rem; }
.grille-ratios label { display: grid; gap: .2rem; font-size: .85rem; }
.grille-ratios input { width: 5.5rem; padding: .35rem .45rem; border: 1px solid var(--bordure); border-radius: 6px; font: inherit; }
/* Centre de repêchage : espace sous les tuiles de Mon équipe */
.tuiles-dc { margin-bottom: 1.5rem; }
/* Centre de repêchage plein écran */
.entete-dc .entete-haut { max-width: none; padding: .35rem 1rem; }
.entete-dc .fermer-fiche { text-decoration: none; }
.contenu-dc { max-width: none; margin: .6rem auto; padding: 0 1rem; }
.page-dc-plein .titre-dc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-dc-plein .barre-dc { margin-bottom: .5rem; }
/* Administration : trophées et Temple de la renommée */
.table-trophees select { max-width: 16rem; }
.hof-saisie { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; align-items: start; margin-bottom: 1rem; }
.hof-saisie label { display: block; margin-bottom: .6rem; }
.hof-apercu { width: 180px; height: 248px; border-radius: var(--rayon); background: var(--rayure); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hof-apercu img { width: 100%; height: 100%; object-fit: cover; }
.form-hof textarea { width: 100%; font: inherit; }
@media (max-width: 600px) { .hof-saisie { grid-template-columns: 1fr; } }
/* Centre de repêchage : lignes condensées */
.page-dc table.donnees { font-size: .86rem; }
.page-dc table.donnees th { padding: .3rem .45rem; }
.page-dc table.donnees td { padding: .12rem .45rem; line-height: 1.25; }
.page-dc .note-dc { padding: 0 .25rem; height: 1.35rem; font-size: .78rem; }
.page-dc .bouton-choisir { padding: .05rem .5rem; font-size: .78rem; }
.page-dc .etoile-dc { font-size: 1rem; }
.page-dc .form-choisir { margin: 0; }
/* Repêchage : affichage télé (route dctv) */
body.page-tv { margin: 0; background: #0b1f3a; color: #fff; height: 100vh; overflow: hidden; font-size: 1.3vmin; }
.tv { display: flex; flex-direction: column; height: 100vh; padding: 1vmin 1.2vmin; box-sizing: border-box; gap: 1vmin; }
.tv-haut { display: flex; align-items: center; gap: 2vmin; flex: none; }
.tv-titre { display: flex; align-items: center; gap: 1vmin; font-weight: 800; font-size: 2.6vmin; letter-spacing: .04em; }
.tv-titre img { height: 5vmin; }
.tv-etiquette { display: block; font-size: 1.4vmin; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.tv-courant { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2vmin; background: var(--accent, #f2b33d); color: #0b1f3a;
    border-radius: 1.2vmin; padding: .8vmin 2vmin; font-weight: 800; animation: tv-pulse 2s ease-in-out infinite; }
.tv-courant.termine { animation: none; font-size: 3vmin; }
.tv-courant .tv-etiquette { opacity: .8; }
.tv-equipe { display: flex; align-items: center; gap: 1vmin; font-size: 4vmin; }
.tv-equipe img { height: 5.5vmin; }
.tv-rang { font-size: 2.2vmin; }
.tv-minuterie { font-size: 3.2vmin; font-variant-numeric: tabular-nums; background: rgba(11,31,58,.12); padding: .2vmin 1vmin; border-radius: .8vmin; }
.tv-dernier { display: flex; align-items: center; gap: 1vmin; font-size: 2.2vmin; background: rgba(255,255,255,.08); padding: .8vmin 1.5vmin; border-radius: 1.2vmin; }
.tv-dernier .tv-etiquette { margin-right: .5vmin; }
.tv-dernier img { height: 3.5vmin; }
.tv-plein { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 2.4vmin; border-radius: .8vmin; cursor: pointer; padding: .3vmin 1vmin; }
.tv-grille { flex: 1; min-height: 0; display: grid; gap: .45vmin;
    grid-template-columns: 4vmin repeat(var(--nb-equipes), 1fr); grid-template-rows: 5vmin repeat(var(--nb-rondes), 1fr); }
.tv-tete { display: flex; align-items: center; justify-content: center; gap: .8vmin; font-weight: 800; font-size: 2vmin; background: rgba(255,255,255,.1); border-radius: .6vmin; }
.tv-tete img { height: 3.6vmin; }
.tv-ronde { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.6vmin; opacity: .7; }
.tv-case { background: rgba(255,255,255,.06); border-radius: .6vmin; padding: .3vmin .7vmin; display: flex; flex-direction: column; justify-content: center; overflow: hidden; min-height: 0; }
.tv-case.fait { background: #f4f7fb; color: #0b1f3a; }
.tv-case.passe { opacity: .45; }
.tv-case.courant { background: var(--accent, #f2b33d); color: #0b1f3a; box-shadow: 0 0 0 .4vmin #fff; animation: tv-pulse 2s ease-in-out infinite; }
.tv-no { font-size: 1.2vmin; opacity: .7; display: flex; align-items: center; gap: .5vmin; white-space: nowrap; }
.tv-proprio { display: inline-flex; align-items: center; gap: .3vmin; font-weight: 700; opacity: 1; }
.tv-proprio img { height: 1.6vmin; }
.tv-case.echange { outline: .25vmin dashed rgba(242,179,61,.8); outline-offset: -.25vmin; }
.tv-joueur { font-weight: 700; font-size: 1.7vmin; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.tv-pos { font-size: 1.2vmin; opacity: .7; }
.tv-sourdine { font-weight: 400; font-style: italic; }
.tv-vide { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; font-size: 3vmin; }
@keyframes tv-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
.tv-titre span, .tv-rang, .tv-dernier, .tv-equipe { white-space: nowrap; }
.tv-courant { flex-wrap: wrap; row-gap: .3vmin; }
.tv-case { line-height: 1.1; }
/* Centre de repêchage : simulation NERP */
.entete-sim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.entete-sim h2 { margin: 0; }
.delta-plus { color: #1f8a4c; font-weight: 700; }
.delta-moins { color: #c0392b; font-weight: 700; }
.delta-nul { color: var(--texte-doux); }
.ajout-sim { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin-top: .8rem; }
.ajout-sim select { max-width: 22rem; }
.lien-bouton { background: none; border: 0; color: var(--lien); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0 .3rem; }
.liste-simple .form-inline { display: inline; }

/* ---- Ratings simulés ---- */
.bandeau-simule { margin: 0 0 1rem; padding: .6rem .9rem; border: 1px solid #e0b24a; border-left: 4px solid #d18f00; border-radius: 6px; background: #fff7e0; color: #5a4100; font-size: .92rem; }
.bandeau-simule strong { color: #7a5200; }
.etiquette-simule { display: inline-block; margin-left: .3rem; padding: 0 .35rem; border-radius: 4px; background: #fff0c2; color: #7a5200; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; vertical-align: middle; }

/* ---- DC : détails vs G / vs D empilés (pas de défilement horizontal) ---- */
.table-dc .det-gd { display: block; font-size: .62rem; font-weight: 500; opacity: .75; }
.table-dc td.det span { display: block; line-height: 1.15; white-space: nowrap; }
.table-dc td.det .det-g { color: #1d5f8f; }
.table-dc td.det .det-d { color: #8a4b12; }
.table-dc.avec-details .som { display: none; }
.table-dc.avec-details { font-size: .8rem; }
.table-dc.avec-details th, .table-dc.avec-details td { padding-left: .3rem; padding-right: .3rem; }
.table-nerp-dc tr[hidden] { display: none; }
.bouton-danger { padding: .5rem 1rem; border: 1px solid #b3261e; border-radius: 6px; background: #fff; color: #b3261e; font: inherit; font-weight: 600; cursor: pointer; margin-left: .6rem; }
.serie-admin legend { font-weight: 700; padding: 0 .3rem; }
.serie-admin input[type=number], .serie-admin input[type=text], .serie-admin select { padding: .25rem .35rem; border: 1px solid var(--bordure); border-radius: 4px; font: inherit; }
.barre-edition { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; position: sticky; top: 0; z-index: 5; padding: .5rem .7rem; }
.barre-edition button { padding: .3rem .6rem; border: 1px solid var(--bordure); border-radius: 5px; background: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.barre-edition button:hover { background: #f0f4f8; }
.editeur-riche { min-height: 20rem; outline: 2px dashed #c8d3de; outline-offset: 6px; padding: .3rem; }
.editeur-riche:focus { outline-color: var(--primaire); }
#code-constitution { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; }
.liste-versions { margin: 0; padding-left: 1.2rem; }
.galerie-admin figure { margin: 0; }
.galerie-admin figcaption { font-size: .75rem; word-break: break-all; padding: .2rem 0; }

/* Cotes : tableau compact, sans défilement horizontal (Vol et Défense passent à la ligne) */
table.ratings { font-size: .84rem; }
table.ratings th, table.ratings td { padding: .4rem .3rem; }
table.ratings th { white-space: normal; }
table.ratings td.long { white-space: normal; min-width: 5.5rem; max-width: 9rem; line-height: 1.25; }