/* Historique en tableau (histtableau.js ; preview-historique-tableau-asut3.html,
   01/12/2026). Le volet Historique de la fiche en tableau de matchs filtrable,
   aux couleurs du site : tuiles de « Pourquoi ce score », pastilles des
   réglages, lignes de la feuille de match. */
.ht{display:flex;flex-direction:column;gap:12px;padding-top:6px}
.ht-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ht-tete{display:flex;align-items:flex-start;justify-content:space-between;gap:6px 8px;flex-wrap:wrap}
.ht-tete-x{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 200px}
.ht-h{margin:0;font-size:15.5px;font-weight:800;color:#fff;line-height:1.3}
.ht-sous{font-size:13px;color:var(--s400);line-height:1.35}
.ht-tete .fkb-i-txt{flex:1 0 100%}

/* Les trois taux : tous les matchs jugés, les 5 et les 10 derniers. */
.ht-tu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.ht-t{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;padding:8px 4px;border:1px solid var(--s800);
  border-radius:12px;background:var(--s950);text-align:center}
.ht-t-v{font:800 20px/1.2 var(--m);color:#9a9aa4;white-space:nowrap}
.ht-t-l{font-size:13px;font-weight:700;color:var(--s200);line-height:1.25}
.ht-t-s{font-size:12px;color:var(--s400);line-height:1.3;white-space:nowrap}

/* Les filtres : boutons groupés, sur plusieurs lignes au besoin. */
.ht-flt{display:flex;flex-wrap:wrap;gap:6px}
.ht-sai{flex:0 0 auto}
.ht-sai select{width:auto;height:38px;padding:0 28px 0 12px;border-radius:10px;font-size:13.5px}
.ht-seg{display:flex;flex:1 1 auto;min-width:0;border:1px solid var(--s700);border-radius:10px;overflow:hidden;background:var(--s900)}
.ht-seg button{position:relative;flex:1 1 auto;min-width:0;min-height:38px;padding:0 9px;border:0;border-left:1px solid var(--s700);
  background:none;color:var(--s300);font:600 13px/1.15 var(--f);white-space:nowrap;cursor:pointer}
.ht-seg button:first-child{border-left:0}
.ht-seg button:hover{color:#fff;background:rgba(255,255,255,.03)}
.ht-seg button.on{background:rgba(74,222,128,.12);color:#4ade80;font-weight:800}
.ht-seg button:focus-visible{outline:2px solid #4ade80;outline-offset:-2px}
/* Le lieu du match de ce soir : un point vert. */
.ht-seg button.soir::after{content:"";position:absolute;top:5px;right:5px;width:6px;height:6px;border-radius:50%;background:#4ade80}

/* Le tableau. */
.ht-tw{display:flex;flex-direction:column;gap:6px}
.ht-tab{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13.5px}
.ht-tab th,.ht-tab td{padding:8px 3px;text-align:right;white-space:nowrap;overflow:hidden}
.ht-tab thead th{padding-top:2px;padding-bottom:6px;font:800 10.5px var(--f);letter-spacing:.03em;color:var(--s500);text-transform:uppercase;cursor:default}
.ht-tab td{border-top:1px solid var(--s800);font-family:var(--m);font-variant-numeric:tabular-nums;color:var(--s300)}
.ht-tab tbody th.ht-j{border-top:1px solid var(--s800);font-weight:600}
.ht-tab .ht-d{width:40px;text-align:left;color:var(--s400)}
.ht-tab .ht-vd{width:24px;text-align:center;font-weight:800}
.ht-tab td.ht-vd.v{color:#4ade80}
.ht-tab td.ht-vd.d{color:#f87171}
.ht-tab .ht-li{width:28px;text-align:center;color:var(--s400)}
.ht-tab .ht-j{width:auto;text-align:left;padding-left:4px}
.ht-tab .ht-l{width:40px}
.ht-tab td.ht-l{color:#fbbf24;font-weight:700}
.ht-tab td.ht-l.vide{color:var(--s600);font-weight:400}
.ht-tab .ht-m{width:30px}
.ht-tab .ht-v{width:40px;text-align:center}
.ht-tab td.ht-v{font-weight:800;color:#e8e8ea}
.ht-tab td.ht-v.ov{color:#4ade80;background:rgba(74,222,128,.15)}
.ht-tab td.ht-v.un{color:#f87171;background:rgba(248,113,113,.15)}
.ht-tab td.ht-v.eg{color:#fbbf24;background:rgba(251,191,36,.12)}
.ht-tab .ht-x{width:44px}
.ht-tab thead th.ht-v{color:#4ade80}
.ht-j button{display:flex;align-items:center;gap:6px;width:100%;min-width:0;min-height:28px;padding:0;border:0;background:none;
  color:#e8e8ea;font:600 13.5px var(--f);text-align:left;cursor:pointer}
.ht-j button:focus-visible{outline:2px solid #4ade80;outline-offset:2px;border-radius:4px}
.ht-j .eq-rond{min-width:30px;height:19px;padding:0 4px;border-radius:6px;font-size:10px}
.ht-n-c,.ht-n-l{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ht-n-l{display:none}
.ht-po{flex:none;padding:1px 4px;border-radius:5px;background:#1f1f25;color:#fbbf24;font:800 9.5px var(--m);letter-spacing:.03em}
.ht-tab tr.ht-r{cursor:pointer}
.ht-tab tr.ht-r:hover>*{background-color:rgba(255,255,255,.025)}
.ht-tab tr.ht-r:hover>td.ht-v.ov{background:rgba(74,222,128,.2)}
.ht-tab tr.ht-r:hover>td.ht-v.un{background:rgba(248,113,113,.2)}
/* Lui-même : surligné comme sur la feuille de match. */
.ht-tab tr.moi>th,.ht-tab tr.moi>td:not(.ht-v){background:rgba(74,222,128,.08)}
.ht-tab tr.moi>td.ht-d{box-shadow:inset 3px 0 0 #4ade80;padding-left:6px}
.ht-tab tr.moi .ht-j button{color:#fff;font-weight:800}
.ht-tab tr.o>*{border-bottom:0}
.ht-tab tr.ht-sep th{padding:14px 0 4px;text-align:left;font:800 11.5px var(--f);color:var(--s500);text-transform:uppercase;letter-spacing:.08em;border-top:0}

/* Le détail d'un match. */
.ht-tab tr.ht-det td{padding:4px 0 14px;border-top:0;text-align:left;white-space:normal;font-family:var(--f);background:none}
.ht-dt{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--s700);border-radius:12px;background:var(--s950)}
.ht-dt-n{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:0;font-size:15px;color:#fff}
.ht-dt-n b{font-weight:800}
.ht-dt-n span{font-size:13px;color:var(--s400);font-weight:600}
.ht-dt-s{margin:0;font-size:13px;color:var(--s400);line-height:1.4}
.ht-dt-s b{color:var(--s200);font-weight:700}
.ht-dt-s b.v{color:#4ade80}
.ht-dt-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:6px}
.ht-dt-t{display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 4px;border:1px solid var(--s800);border-radius:10px;text-align:center;min-width:0}
.ht-dt-t.mk{border-color:var(--s600)}
.ht-dt-t .l{font-size:12px;color:var(--s400);line-height:1.25}
.ht-dt-t .v{font:800 18px var(--m);color:#fff}
.ht-dt-t .v.ov{color:#4ade80}
.ht-dt-t .v.un{color:#f87171}
.ht-dt-t .s{font-size:11.5px;color:var(--s500);white-space:nowrap}
.ht-dt .fm-lien{margin-top:2px}

.ht-vide{margin:0;padding:14px 12px;border:1px dashed var(--s700);border-radius:12px;font-size:14px;color:var(--s300);text-align:center}
.ht-raz{margin-left:4px;padding:6px 12px;border:1px solid var(--s700);border-radius:999px;background:none;color:#4ade80;font:700 13px var(--f);cursor:pointer}
.ht-raz:hover{border-color:#4ade80}
.ht-raz:focus-visible{outline:2px solid #4ade80;outline-offset:2px}
.ht-raz-b{align-self:flex-start;margin-left:0}
.ht-charge{margin:8px 0;font-size:14px;color:var(--s400)}

/* Téléphone : pas de colonne Lieu sous 420 px (le filtre et le détail le disent),
   ni Tirs sous 375 px ; histtableau.js ne les écrit pas (useMq). */
@media(max-width:419.98px){
  .ht-tab{font-size:13px}
  .ht-j button{font-size:13px;gap:5px}
  .ht-tab th,.ht-tab td{padding-left:2px;padding-right:2px}
  .ht-tab thead th{letter-spacing:0}
  .ht-tab .ht-d{width:43px}
  .ht-tab .ht-l{width:37px}
  .ht-tab .ht-v{width:41px}
  .ht-tab .ht-m{width:27px}
  .ht-tab .ht-x{width:40px}
  .ht-seg button{padding:0 7px;font-size:12.5px}
}
/* Ordinateur : le nom en entier, plus d'air. */
@media(min-width:700px){
  .ht-n-c{display:none}
  .ht-n-l{display:inline}
  .ht-tab{font-size:14px}
  .ht-tab th,.ht-tab td{padding:8px 6px}
  .ht-tab .ht-d{width:52px}
  .ht-tab .ht-vd{width:34px}
  .ht-tab .ht-li{width:40px}
  .ht-tab .ht-l,.ht-tab .ht-v{width:52px}
  .ht-tab .ht-m{width:42px}
  .ht-tab .ht-x{width:56px}
  .ht-t-v{font-size:22px}
  .ht-sai{flex:0 1 190px}
}
