/* Nouveau système de filtres (aperçu du 21/11/2026) : colonne à gauche sur ordinateur, panneau du bas sur téléphone. */
.fx-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.fx-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fx-groups { overflow-y: auto; padding: 4px 0; overscroll-behavior: contain; }
.fx-sheet-h, .fx-sheet-f, .fx-bar { display: none; }
.fx-g { border-bottom: 1px solid var(--line); }
.fx-g:last-child { border-bottom: 0; }
.fx-g summary { list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.fx-g summary::-webkit-details-marker { display: none; }
.fx-g summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.fx-g:not([open]) summary::after { transform: rotate(-90deg); }
.fx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fx-b { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.fx-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; color: var(--text); }
.fx-opt input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; flex: 0 0 auto; }
.fx-opt .fx-l { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.fx-opt .fx-c { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fx-opt.dis { opacity: .4; cursor: default; }
.fx-sub-q { width: 100%; height: 34px; margin: 0 0 6px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg, #0e1016); color: var(--text); font: inherit; font-size: 13.5px; }
.fx-minmax { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.fx-minmax input { flex: 1 1 0; min-width: 0; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg, #0e1016); color: var(--text); font: inherit; font-size: 14px; }
.fx-ok { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.fx-link { background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; align-self: flex-start; }
.fx-link:hover { text-decoration: underline; }
.fx-top { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; flex-wrap: wrap; }
.fx-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.fx-search input { flex: 1 1 auto; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.fx-top-r { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.fx-count { font-weight: 700; font-size: 14px; white-space: nowrap; }
.fx-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fx-sort select { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; padding: 0 8px; }
.fx-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.fx-pills[hidden] { display: none; }
.fx-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--accent); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.fx-pill span { color: var(--muted); font-size: 11px; }
.fx-pill:hover span { color: var(--text); }
.fx-empty { padding: 30px 0; text-align: center; color: var(--muted); }
.fx-more { text-align: center; margin: 18px 0 6px; }
.fx-more-c { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.fx-main .grid { margin-top: 0; }
.fx-fond { display: none; }

@media (max-width: 899px) {
  .fx-layout { display: block; }
  .fx-top { margin-bottom: 8px; }
  .fx-top-r { display: none; }
  .fx-search { flex-basis: 100%; }
  .fx-bar { display: flex; gap: 8px; align-items: center; position: sticky; top: 56px; z-index: 30; padding: 8px 0; margin: 0 0 6px; background: var(--bg, #0e1016); }
  .fx-sort-m { flex: 1 1 auto; min-width: 0; }
  .fx-sort-m select { flex: 1 1 auto; min-width: 0; width: 100%; }
  .fx-open { flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
  .fx-open.actif { border-color: var(--accent); color: var(--accent); }
  .fx-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
  .fx-pill { flex: 0 0 auto; }
  .fx-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 81; max-height: 85vh; border-radius: 18px 18px 0 0; border-bottom: 0; transform: translateY(100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  .fx-side.open { transform: none; visibility: visible; transition: transform .22s ease; }
  .fx-sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .fx-x { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 6px; }
  .fx-groups { flex: 1 1 auto; }
  .fx-opt { padding: 9px 0; font-size: 15px; }
  .fx-sheet-f { display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
  .fx-sheet-f .fx-clear-all { flex: 0 0 auto; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
  .fx-sheet-f .fx-voir { flex: 1 1 auto; height: 46px; font-size: 16px; }
  .fx-fond.on { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); }
  body.fx-lock { overflow: hidden; }
}

/* 22/11/2026 : l'ancien filtre apparaissait le temps que filtres.js démarre (scripts « defer », page Jeux très longue).
   Ces règles le cachent dès l'affichage ; filtres.js les cache aussi (mêmes listes « hide » que fx/*.js). */
html[data-fx] #tous-les-jeux .search-box, html[data-fx] #tous-les-jeux .list-tools, html[data-fx] #tous-les-jeux .letters,
html[data-fx] #tous-les-jeux .see-more-wrap, html[data-fx] #search-count, html[data-fx] #no-result,
html[data-fx] .cc-tools, html[data-fx] .cc-filters,
html[data-fx] .dl-tools, html[data-fx] .dl-none, html[data-fx] .dl-more, html[data-fx] .dl-count, html[data-fx] .filters.per-filters,
html[data-fx] .drops-page .dr-bar, html[data-fx] .drops-page .dr-acc, html[data-fx] .dr-acc-empty { display: none !important; }
