/* =============================================================================
   assets/css/lexique-2027.css - turf.bzh
   -----------------------------------------------------------------------------
   Le lexique du tableau des partants (11/10/2026). Balisage :
   include/lexique_tableau.php ; logique : js/lexique-2027.js.

   Classes prefixees .tlx-, mobile d'abord pour les reglages fins. La
   fenetre garde l'identifiant #tbz-lexique-modal : index.php la place
   au-dessus de tout (z-index 2147483647 !important).

   Contrastes mesures sur blanc : texte #0f172a 17,8:1 ; secondaire #475569
   7,6:1 ; accent #075d6e 7,3:1 ; ambre #92400e sur #fef3c7 6,4:1 ; vert
   #047857 sur #ecfdf5 5,2:1. Aucune bordure gauche d'accent (consigne de
   Paul).

   @author Claude (2026-10-11)
   @version 1.0.0
   ========================================================================== */

.tlx-fond {
  --tlx-ink: #0f172a;
  --tlx-ink2: #1e293b;
  --tlx-mut: #475569;
  --tlx-bd: #e5e7eb;
  --tlx-bd2: #eef0f3;
  --tlx-bg: #f8fafc;
  --tlx-acc: #0a7c91;
  --tlx-acc-d: #075d6e;
  --tlx-acc-l: #e0f2f6;
  --tlx-acc-l2: #ecf7fa;
  --tlx-or: #92400e;
  --tlx-or-bg: #fef3c7;
  --tlx-ok: #047857;
  --tlx-ok-bg: #ecfdf5;
  --tlx-font: 'Inter','Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  position: fixed; inset: 0; z-index: 2147483647;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(15,23,42,.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: var(--tlx-font); color: var(--tlx-ink);
  font-size: 15px; line-height: 1.5; letter-spacing: -.003em;
}
.tlx-fond[hidden] { display: none; }
.tlx-fond *, .tlx-fond *::before, .tlx-fond *::after { box-sizing: border-box; }
.tlx-fond [hidden] { display: none !important; }
.tlx-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── La fenetre ──────────────────────────────────────────────────────────── */
.tlx {
  position: relative;
  display: flex; flex-direction: column;
  width: min(1180px, 100%);
  height: min(880px, calc(100vh - 32px)); height: min(880px, calc(100dvh - 32px));
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(15,23,42,.55);
}
.tlx:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .tlx-fond:not([hidden]) .tlx { animation: tlxEntree .26s cubic-bezier(.16,1,.3,1); }
  @keyframes tlxEntree { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
}

/* En-tete : titre, recherche, fermeture. */
.tlx-tete {
  flex: 0 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 22px;
  padding: 18px 20px 18px 24px;
  background: linear-gradient(120deg, #04586c 0%, #0a7c91 60%, #0e8fa6 100%);
  color: #fff;
}
.tlx-tete-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tlx-tete-ico {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,.16); font-size: 20px;
}
.tlx-titre { margin: 0; font-size: 21px; font-weight: 750; line-height: 1.2; color: #fff; }
.tlx-sous { margin: 2px 0 0; font-size: 13.5px; color: #d7f3f8; }
.tlx-cherche {
  position: relative; display: flex; align-items: center; min-width: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 6px 18px -8px rgba(2,32,40,.6);
}
.tlx-cherche > i { position: absolute; left: 16px; color: var(--tlx-acc); font-size: 15px; pointer-events: none; }
.tlx-cherche input {
  flex: 1 1 auto; min-width: 0; height: 48px;
  padding: 0 12px 0 44px; border: 0; border-radius: 14px; background: transparent;
  font: inherit; font-size: 15.5px; color: var(--tlx-ink);
}
.tlx-cherche input::placeholder { color: #64748b; }
.tlx-cherche input:focus { outline: none; }
.tlx-cherche:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 6px 18px -8px rgba(2,32,40,.6); }
.tlx-compte {
  flex: 0 0 auto; margin-right: 8px; padding: 4px 10px; border-radius: 999px;
  background: var(--tlx-acc-l2); color: var(--tlx-acc-d);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.tlx-x {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 18px; cursor: pointer;
  transition: background .16s ease;
}
.tlx-x:hover { background: rgba(255,255,255,.28); }
.tlx-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Corps : rubriques a gauche, contenu a droite. */
.tlx-corps { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 292px minmax(0, 1fr); }
.tlx-nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 12px; overflow-y: auto;
  background: var(--tlx-bg); border-right: 1px solid var(--tlx-bd);
}
.tlx-nav-a {
  display: flex; align-items: center; gap: 11px;
  min-height: 42px; padding: 8px 12px; border-radius: 11px;
  color: var(--tlx-ink2); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .14s ease, color .14s ease;
}
.tlx-nav-a i { flex: 0 0 auto; width: 18px; text-align: center; color: #64748b; font-size: 14px; }
.tlx-nav-a span { flex: 1 1 auto; min-width: 0; }
.tlx-nav-a .tlx-nav-c { display: none; }
.tlx-nav-a em {
  flex: 0 0 auto; min-width: 24px; padding: 1px 7px; border-radius: 999px;
  background: #fff; border: 1px solid var(--tlx-bd);
  font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--tlx-mut); text-align: center;
}
.tlx-nav-a:hover { background: #fff; color: var(--tlx-acc-d); text-decoration: none; }
.tlx-nav-a:focus-visible { outline: 2px solid var(--tlx-acc); outline-offset: 1px; }
.tlx-nav-a.is-actif { background: #fff; color: var(--tlx-acc-d); box-shadow: 0 1px 3px rgba(15,23,42,.1), inset 0 0 0 1px var(--tlx-acc-l); }
.tlx-nav-a.is-actif i { color: var(--tlx-acc); }
.tlx-nav-a.is-actif em { background: var(--tlx-acc); border-color: var(--tlx-acc); color: #fff; }
.tlx-nav-sep { height: 1px; margin: 10px 8px; background: var(--tlx-bd); flex: 0 0 auto; }
.tlx-nav-ia i { color: #7c3aed; }
.tlx-nav-ext { color: var(--tlx-mut); font-weight: 500; }

.tlx-contenu { position: relative; overflow-y: auto; padding: 26px 32px 40px; scroll-padding-top: 12px; overscroll-behavior: contain; }
.tlx-contenu:focus { outline: none; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.tlx-section { margin: 0 0 34px; }
.tlx-kicker {
  display: flex; align-items: center; gap: 8px; margin: 0 0 4px;
  font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--tlx-acc);
}
.tlx-h3 { margin: 0 0 6px; font-size: 23px; font-weight: 780; line-height: 1.25; color: var(--tlx-ink); letter-spacing: -.01em; }
.tlx-intro { margin: 0 0 16px; color: var(--tlx-mut); font-size: 15px; max-width: 72ch; }

/* Commencer ici. */
.tlx-etapes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.tlx-etape {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 56px; padding: 10px 16px 10px 10px;
  border: 1px solid var(--tlx-bd); border-radius: 14px; background: #fff;
  font: inherit; color: var(--tlx-ink2); text-align: left; cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.tlx-etape:hover { border-color: var(--tlx-acc); box-shadow: 0 8px 20px -14px rgba(10,124,145,.6); }
.tlx-etape:focus-visible { outline: 2px solid var(--tlx-acc); outline-offset: 2px; }
.tlx-etape-n {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #04586c, #0a7c91); color: #fff; font-weight: 800; font-size: 16px;
}
.tlx-etape-t { flex: 1 1 auto; font-size: 15px; }
.tlx-etape-t b { color: var(--tlx-ink); }
.tlx-etape > i { color: var(--tlx-acc); font-size: 13px; }
.tlx-astuce {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin: 0 0 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--tlx-acc-l2); border: 1px solid var(--tlx-acc-l);
}
.tlx-astuce > i { color: var(--tlx-acc); font-size: 18px; }
.tlx-astuce p { flex: 1 1 320px; margin: 0; color: var(--tlx-ink2); font-size: 14.5px; }
.tlx-sigles-t { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--tlx-mut); }
.tlx-sigles { display: flex; flex-wrap: wrap; gap: 6px; }
.tlx-sigle {
  min-height: 34px; padding: 5px 12px;
  border: 1px solid var(--tlx-bd); border-radius: 999px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--tlx-acc-d); cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0;
}
.tlx-sigle:hover { border-color: var(--tlx-acc); background: var(--tlx-acc-l2); }
.tlx-sigle:focus-visible { outline: 2px solid var(--tlx-acc); outline-offset: 1px; }

/* ── Fiches ──────────────────────────────────────────────────────────────── */
.tlx-fiche {
  margin: 0 0 12px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--tlx-bd); border-radius: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
  scroll-margin-top: 12px;
}
.tlx-fiche:hover { border-color: #cfe7ee; box-shadow: 0 10px 24px -20px rgba(15,23,42,.45); }
.tlx-fiche.is-eclair { animation: tlxEclair 1.6s ease; }
@keyframes tlxEclair {
  0%, 30% { box-shadow: 0 0 0 3px var(--tlx-acc), 0 12px 28px -18px rgba(10,124,145,.6); border-color: var(--tlx-acc); }
  100% { box-shadow: none; }
}
.tlx-fiche-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 8px; }
.tlx-eti {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 34px; padding: 4px 10px; border-radius: 8px;
  background: #0f3f4b; color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
}
.tlx-eti small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #a5dbe6; text-transform: uppercase; }
.tlx-eti i { margin-right: 4px; }
.tlx-nom { flex: 1 1 220px; margin: 0; font-size: 17px; font-weight: 750; color: var(--tlx-ink); line-height: 1.3; }
.tlx-nom mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }
.tlx-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tlx-tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px;
  border-radius: 999px; background: #f1f5f9; color: var(--tlx-mut);
  font-size: 12px; font-weight: 700;
}
.tlx-tag-prem { background: var(--tlx-or-bg); color: var(--tlx-or); }
.tlx-tag-prem.is-ouvert { background: var(--tlx-ok-bg); color: var(--tlx-ok); }
.tlx-def { margin: 0 0 10px; color: var(--tlx-ink2); font-size: 15px; line-height: 1.6; }
.tlx-def b { color: var(--tlx-ink); }
.tlx-liste {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px;
}
.tlx-liste li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--tlx-ink2); }
.tlx-code {
  flex: 0 0 auto; min-width: 44px; padding: 2px 8px; border-radius: 6px;
  background: var(--tlx-bg); border: 1px solid var(--tlx-bd);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 700;
  color: var(--tlx-acc-d); text-align: center; white-space: nowrap;
}
.tlx-lire {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  margin: 0 0 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--tlx-bg); font-size: 14px; color: var(--tlx-ink2);
}
.tlx-lire span:last-child { flex: 1 1 260px; }
.tlx-lire-k {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.tlx-lire-haut .tlx-lire-k { color: var(--tlx-ok); }
.tlx-lire-bas .tlx-lire-k { color: #1d4ed8; }
.tlx-lire-neutre .tlx-lire-k { color: #b45309; }

/* Sur cette course : exemple et apercu de la cellule. */
.tlx-ex {
  margin: 0 0 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--tlx-acc-l2); border: 1px solid var(--tlx-acc-l);
}
.tlx-ex-k {
  display: flex; align-items: center; gap: 7px; margin: 0 0 4px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--tlx-acc-d);
}
.tlx-ex-t { margin: 0; font-size: 14.5px; color: var(--tlx-ink2); }
.tlx-ex-t b { color: var(--tlx-ink); }
.tlx-ex-t .fa-lock { color: var(--tlx-or); }
.tlx-ex .tlx-bt-prem { margin-top: 10px; }
.tlx-cellule {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px;
}
.tlx-cellule-k { font-size: 12.5px; font-weight: 600; color: var(--tlx-mut); }
.tlx-cellule-v {
  box-sizing: border-box; max-width: 100%; min-width: 64px; min-height: 44px; padding: 4px 6px;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
  background: #fff; border: 1px solid #d6dde5; border-radius: 8px;
  box-shadow: 0 2px 6px -3px rgba(15,23,42,.25);
  font-family: 'Open Sans', Arial, sans-serif; font-size: 13px; line-height: 1.35; color: #212529;
  overflow-x: auto; pointer-events: none;
}
.tlx-cellule-v > * { max-width: 100%; }
.tlx-cellule-in { min-width: 0; }
/* Sur un ecran etroit, une cellule large (nom et musique) passe a la ligne
   au lieu d'etre coupee. */
@media (max-width: 760px) {
  .tlx-cellule-v [style*="nowrap"] { white-space: normal !important; }
  .tlx-cellule-v { overflow-wrap: anywhere; }
}

/* Decodeur de musique. */
.tlx-mus-sel {
  max-width: 100%; min-height: 40px; margin: 4px 0 10px; padding: 6px 34px 6px 12px;
  border: 1px solid #c9d6de; border-radius: 10px; background-color: #fff;
  font: inherit; font-size: 14px; color: var(--tlx-ink);
}
.tlx-mus-sel:focus-visible { outline: 2px solid var(--tlx-acc); outline-offset: 1px; }
.tlx-mus-p { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; }
.tlx-mus-j, .tlx-mus-an {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 30px; padding: 0 7px; border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 800;
}
.tlx-mus-j.is-or { background: #a16207; color: #fff; }
.tlx-mus-j.is-bleu { background: #0a7c91; color: #fff; }
.tlx-mus-j.is-rouge { background: #b91c1c; color: #fff; }
.tlx-mus-j.is-gris { background: #e2e8f0; color: #334155; }
.tlx-mus-an { min-width: 0; padding: 0 6px; background: transparent; color: var(--tlx-mut); font-weight: 600; }
.tlx-mus-an::before { content: "("; } .tlx-mus-an::after { content: ")"; }
.tlx-mus-t { margin: 0 0 4px; font-size: 14px; color: var(--tlx-ink2); }
/* Les pastilles du tableau (tbzMusiqueHtml), en grand. */
.tlx-mus-site .tbz-mus { display: flex; flex-wrap: wrap; gap: 5px; max-width: none; margin: 0; font-size: 13px; white-space: normal; }
.tlx-mus-site .tbz-mus-p { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 7px; border-radius: 8px; font-weight: 800; }
.tlx-mus-site .tbz-mus-p:not(.gagne):not(.place):not(.inc) { background: #e2e8f0; color: #334155; }
.tlx-mus-site .tbz-mus-an, .tlx-mus-site .tbz-mus-x { display: inline-flex; align-items: center; height: 30px; padding: 0 4px; font-weight: 600; }

/* Actions. */
.tlx-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tlx-bt {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 7px 14px;
  border: 1px solid #c9dde4; border-radius: 999px; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 650; color: var(--tlx-acc-d); cursor: pointer; text-decoration: none;
  transition: background .14s ease, border-color .14s ease;
}
.tlx-bt:hover { background: var(--tlx-acc-l2); border-color: var(--tlx-acc); color: var(--tlx-acc-d); text-decoration: none; }
.tlx-bt:focus-visible { outline: 2px solid var(--tlx-acc); outline-offset: 2px; }
.tlx-bt-prem { background: #f59e0b; border-color: #f59e0b; color: #3b2000; }
.tlx-bt-prem:hover { background: #fbbf24; border-color: #fbbf24; color: #3b2000; }
.tlx-lien {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 4px;
  font-size: 13.5px; font-weight: 650; color: var(--tlx-acc-d); text-decoration: underline; text-underline-offset: 3px;
}
.tlx-lien i { font-size: 11px; }
.tlx-lien:focus-visible { outline: 2px solid var(--tlx-acc); outline-offset: 2px; border-radius: 4px; }

/* Export. */
.tlx-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tlx-dl-b {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center;
  padding: 16px; border: 1px solid var(--tlx-bd); border-radius: 14px; background: #fff;
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.tlx-dl-b i { grid-row: 1 / 3; font-size: 26px; }
.tlx-dl-b b { font-size: 15.5px; color: var(--tlx-ink); }
.tlx-dl-b span { font-size: 13px; color: var(--tlx-mut); }
.tlx-dl-b[data-tlx-export="json"] i { color: #7c3aed; }
.tlx-dl-b[data-tlx-export="csv"] i { color: #047857; }
.tlx-dl-b[data-tlx-export="imprimer"] i { color: #b91c1c; }
.tlx-dl-b:hover { border-color: var(--tlx-acc); box-shadow: 0 10px 22px -16px rgba(15,23,42,.5); }
.tlx-dl-b:focus-visible { outline: 2px solid var(--tlx-acc); outline-offset: 2px; }

.tlx-vide { margin: 30px 0; padding: 20px; border-radius: 14px; background: var(--tlx-bg); color: var(--tlx-mut); text-align: center; font-size: 15px; }

/* Repere dans le tableau apres « Voir dans le tableau ». */
.tabulator .tabulator-col.tlx-flash { animation: tlxFlash 2.4s ease; }
@keyframes tlxFlash {
  0%, 40% { box-shadow: inset 0 0 0 3px #f59e0b; background-color: #fef3c7; }
  100% { box-shadow: none; }
}

/* ── Tablette et telephone ──────────────────────────────────────────────── */
/* Sous 1100 px, la recherche passe sous le titre : elle garde toute sa
   largeur et son invite entiere. */
@media (max-width: 1100px) {
  .tlx-tete { grid-template-columns: minmax(0, 1fr) auto; }
  .tlx-cherche { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) {
  .tlx-corps { grid-template-columns: 220px minmax(0, 1fr); }
  .tlx-contenu { padding: 22px 22px 36px; }
}
@media (max-width: 760px) {
  .tlx-fond { padding: 0; }
  .tlx { width: 100%; height: 100%; border-radius: 0; }
  .tlx-tete { padding: 12px 12px 12px 16px; gap: 10px 12px; }
  .tlx-tete-ico { width: 38px; height: 38px; font-size: 16px; border-radius: 11px; }
  .tlx-titre { font-size: 18px; }
  .tlx-sous { display: none; }
  .tlx-cherche input { height: 46px; font-size: 16px; }
  .tlx-corps { display: flex; flex-direction: column; }
  .tlx-nav {
    flex: 0 0 auto; flex-direction: row; gap: 6px; padding: 10px 12px;
    overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--tlx-bd);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    /* Les bords s'estompent tant qu'il reste des rubriques de ce cote :
       la barre se lit comme une liste qui defile. */
    --tlx-fg: 40px; --tlx-fd: 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--tlx-fg), #000 calc(100% - var(--tlx-fd)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--tlx-fg), #000 calc(100% - var(--tlx-fd)), transparent 100%);
  }
  .tlx-nav.is-debut { --tlx-fg: 0px; }
  .tlx-nav.is-fin { --tlx-fd: 0px; }
  .tlx-nav-a .tlx-nav-l { display: none; }
  .tlx-nav-a .tlx-nav-c { display: inline; }
  .tlx-nav::-webkit-scrollbar { display: none; }
  .tlx-nav-a { flex: 0 0 auto; min-height: 38px; padding: 6px 12px; border: 1px solid var(--tlx-bd); background: #fff; white-space: nowrap; }
  .tlx-nav-a em, .tlx-nav-sep { display: none; }
  .tlx-nav-a.is-actif { background: var(--tlx-acc); border-color: var(--tlx-acc); color: #fff; box-shadow: none; }
  .tlx-nav-a.is-actif i { color: #fff; }
  .tlx-contenu { flex: 1 1 auto; min-height: 0; padding: 18px 16px 32px; }
  .tlx-h3 { font-size: 20px; }
  .tlx-fiche { padding: 14px; border-radius: 14px; }
  .tlx-nom { font-size: 16px; flex-basis: 100%; }
  .tlx-liste { grid-template-columns: 1fr; }
  .tlx-etape { min-height: 52px; }
}
@media (max-width: 400px) {
  .tlx-compte { display: none; }
}

/* ── Impression : une copie du lexique (#tlxImpression), seule sur la page ─ */
#tlxImpression { display: none; }
@media print {
  html.tlx-impression body > *:not(#tlxImpression) { display: none !important; }
  html.tlx-impression #tlxImpression {
    display: block !important; position: static !important; inset: auto !important;
    padding: 0 !important; background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none;
    color: #000; font-size: 12pt;
  }
  #tlxImpression .tlx-imp-t { margin: 0 0 4pt; font-size: 20pt; }
  #tlxImpression .tlx-imp-s { margin: 0 0 14pt; color: #333; }
  #tlxImpression .tlx-section { break-before: auto; margin: 0 0 16pt; }
  #tlxImpression .tlx-fiche { break-inside: avoid; border: 1px solid #bbb; box-shadow: none; }
  #tlxImpression .tlx-eti { background: #eee; color: #000; }
  #tlxImpression .tlx-eti small { color: #444; }
  #tlxImpression .tlx-kicker, #tlxImpression .tlx-tag { color: #333; background: #f3f3f3; }
  /* Le titre d'une rubrique reste avec sa premiere fiche. */
  #tlxImpression .tlx-kicker, #tlxImpression .tlx-h3, #tlxImpression .tlx-intro { break-after: avoid; page-break-after: avoid; }
  /* Chrome ignore souvent la regle ci-dessus : le titre et la premiere fiche
     sont reunis dans un bloc insecable (js/lexique-2027.js, impression). */
  #tlxImpression .tlx-imp-bloc { break-inside: avoid; page-break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  .tlx-fond *, .tlx-fiche.is-eclair, .tabulator .tabulator-col.tlx-flash { animation: none !important; transition: none !important; }
}
