/* ══════════════════════════════════════════════════════
   TOUTES LES RECETTES — Night Kitchen Glass
   Dark mode par défaut · Light mode overrides en bas
══════════════════════════════════════════════════════ */

/* ── BANNIÈRE FMS (mode focus sélection recette) ── */
.rd-plan-banner {
  position: sticky; top: 0; z-index: 50;
  max-width: 1100px; margin: 0 auto; padding: 10px 32px 0;
  pointer-events: none;
}
.rd-plan-bar {
  pointer-events: auto;
  background: rgba(20,12,3,0.88);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(52,211,153,.25); border-radius: 20px;
  padding: 12px 16px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
}
.rd-plan-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.4), transparent);
  border-radius: 20px 20px 0 0;
}
.rd-plan-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.2);
  display: flex; align-items: center; justify-content: center;
  color: #34d399; flex-shrink: 0;
}
.rd-plan-label {
  font-size: 8.5px; font-weight: 700; color: #34d399;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.rd-plan-text {
  font-size: 13px; font-weight: 800; color: rgba(255,255,255,.85); margin-top: 2px;
}
.rd-plan-cap { text-transform: capitalize; }
.rd-plan-close {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.35);
  display: flex; align-items: center; justify-content: center;
  color: #f87171; transition: all .18s; flex-shrink: 0; text-decoration: none;
}
.rd-plan-close:hover { background: rgba(239,68,68,.28); border-color: rgba(239,68,68,.55); color: #fca5a5; }
@media (max-width: 639px) {
  .rd-plan-banner { padding: 8px 12px 0; }
  .rd-plan-bar    { padding: 10px 13px; border-radius: 15px; gap: 10px; }
}
[data-theme="light"] .rd-plan-bar {
  background: rgba(255,255,255,0.92); border-color: rgba(16,185,129,.3);
  box-shadow: 0 4px 20px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.8);
}
[data-theme="light"] .rd-plan-bar::before {
  background: linear-gradient(90deg, transparent, rgba(16,185,129,.3), transparent);
}
[data-theme="light"] .rd-plan-icon { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.25); }
[data-theme="light"] .rd-plan-text { color: rgba(15,23,42,.85); }
[data-theme="light"] .rd-plan-close {
  background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.3); color: #dc2626;
}

/* ── Reset ciblé ── */
/* NE PAS mettre .hidden global — ça casse la navbar Tailwind */
#filters-sidebar .hidden,
.tr-page-toggle-bar .hidden,
.tr-filter-badge.hidden,
.tr-bs-handle.hidden,
.tr-bs-apply.hidden,
.tr-active-filters .hidden { display: none !important; }

/* ── PAGE ── */
.tr-page {
  min-height: 100vh;
  background: var(--bg-page, #050e08);
  padding-top: 48px;
}
.tr-page::before {
  content: '';
  position: fixed; top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(16,185,129,.07) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.tr-page::after {
  content: '';
  position: fixed; bottom: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.05) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* ── WRAPPER CENTRÉ ── */
.tr-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════
   BARRE NAVIGATION SUPÉRIEURE
══════════════════════════════════════ */
.tr-page-toggle-bar {
  position: sticky;
  top: 64px;
  z-index: 60;
  background: rgba(3,12,6,.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 1px 20px rgba(0,0,0,.3);
}
.tr-page-toggle-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tr-ptbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700;
  text-decoration: none; transition: all .18s;
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.35); background: none;
}
.tr-ptbtn:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.75);
}
.tr-ptbtn.active {
  background: rgba(52,211,153,.12);
  border-color: rgba(52,211,153,.35);
  color: #34d399;
}
.tr-ptbtn.fav.active {
  background: rgba(251,113,133,.12);
  border-color: rgba(251,113,133,.35);
  color: #fb7185;
}
.tr-ptbtn-count {
  margin-left: auto;
  font-family: 'Poppins', sans-serif;
  font-size: 11px; color: rgba(255,255,255,.25); font-weight: 600;
}
.tr-ptbtn-count strong { color: #34d399; font-weight: 800; }

/* ══════════════════════════════════════
   ONGLETS CATÉGORIES
══════════════════════════════════════ */
.tr-cat-tabs-wrap {
  position: sticky;
  top: 108px;
  z-index: 55;
  background: rgba(3,12,6,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.tr-cat-tabs-wrap::-webkit-scrollbar { display: none; }
.tr-cat-tabs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  min-width: max-content;
}
.tr-ctab {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 16px;
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  flex-shrink: 0; transition: all .2s;
  color: rgba(255,255,255,.3);
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}
.tr-ctab:hover { color: rgba(255,255,255,.65); }
.tr-ctab.active { color: #34d399; border-bottom-color: #34d399; }
.tr-ctab.tr-ctab-fav { color: rgba(251,113,133,.4); }
.tr-ctab.tr-ctab-fav.active { color: #fb7185; border-bottom-color: #fb7185; }
.tr-ctab-ico {
  width: 30px; height: 30px; border-radius: 10px;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.tr-ctab-ico svg { width: 16px; height: 16px; }
.tr-ctab.active .tr-ctab-ico {
  background: rgba(52,211,153,.15);
  box-shadow: 0 0 12px rgba(52,211,153,.2);
}
.tr-ctab.tr-ctab-fav.active .tr-ctab-ico {
  background: rgba(251,113,133,.15);
  box-shadow: 0 0 12px rgba(251,113,133,.2);
}
.tr-ctab-lbl {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  white-space: nowrap; line-height: 1;
}

/* ══════════════════════════════════════
   BARRE DE RECHERCHE + TRI
   Visible dans les DEUX modes
══════════════════════════════════════ */
.tr-search-sort-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  /* pas de z-index ici — évite le stacking context qui bloquerait le dropdown */
}
.tr-search-wrap {
  flex: 1; min-width: 0;
  position: relative;
}
.tr-srch-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.4); pointer-events: none;
  display: flex; align-items: center;
}
/* Dropdown résultats recherche — au premier plan absolu */
.js-search-results {
  position: absolute;
  top: 100%; left: 0; right: 0;
  margin-top: 8px;
  z-index: 9999;
}
/* ★ CORRECTION VISIBILITÉ : fond visible dans les deux modes */
.tr-srch-inp,
.tr-search-input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 10px 18px 10px 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.88);
  outline: none;
  transition: all .2s;
}
.tr-srch-inp:focus,
.tr-search-input:focus {
  background: rgba(52,211,153,.06);
  border-color: rgba(52,211,153,.4);
  box-shadow: 0 0 0 3px rgba(52,211,153,.08);
}
.tr-srch-inp::placeholder,
.tr-search-input::placeholder { color: rgba(255,255,255,.3); }

/* Bouton filtres mobile */
.tr-mobile-filter-btn {
  display: none;
  align-items: center; gap: 7px;
  padding: 10px 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.6); cursor: pointer; transition: all .18s;
  flex-shrink: 0; white-space: nowrap;
}
.tr-mobile-filter-btn:hover {
  background: rgba(52,211,153,.1);
  border-color: rgba(52,211,153,.3);
  color: #34d399;
}
.tr-filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: #34d399; color: #021a10;
  font-size: 10px; font-weight: 900; border-radius: 999px; line-height: 1;
}

/* ★ TRIS — toujours visibles */
.tr-sort-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.tr-sort-strip::-webkit-scrollbar { display: none; }
.tr-spill {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700;
  white-space: nowrap;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.45); cursor: pointer; transition: all .18s;
}
.tr-spill:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
}
.tr-spill.active {
  background: rgba(52,211,153,.12);
  border-color: rgba(52,211,153,.4);
  color: #34d399;
}

/* ── Barre filtres actifs ── */
.tr-active-filters {
  max-width: 1400px; margin: 0 auto;
  min-height: 26px; padding: 3px 24px;
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.tr-af-empty { font-size: 10px; color: rgba(255,255,255,.2); font-style: italic; }
.tr-af-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25);
  border-radius: 999px; padding: 2px 8px;
  font-family: 'Poppins', sans-serif; font-size: 9px; font-weight: 700; color: #34d399;
  cursor: pointer; transition: all .15s;
}
.tr-af-tag:hover { background: rgba(52,211,153,.18); }
.tr-af-tag-remove { opacity: .55; margin-left: 2px; font-size: 8px; }

/* ── Sort strip mobile (caché par défaut, visible < 1024px) ── */
.tr-sort-strip-mobile {
  display: none;
  gap: 5px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.tr-sort-strip-mobile::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════
   LAYOUT PRINCIPAL
══════════════════════════════════════ */
.tr-layout {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 260px 1fr;
  gap: 20px; padding: 16px 24px 80px;
  align-items: start; position: relative; z-index: 1;
}
.tr-main { min-width: 0; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.tr-hero { padding: 4px 0 16px; }
.tr-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900; color: rgba(255,255,255,.9); line-height: 1.1;
  letter-spacing: -0.5px; text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.tr-hero-title span { color: #34d399; text-shadow: none; }
.tr-hero-count { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 4px; font-weight: 600; }
.tr-hero-count strong { color: #34d399; font-weight: 800; }

/* ══════════════════════════════════════
   SIDEBAR FILTRES
══════════════════════════════════════ */
.tr-sidebar {
  background: rgba(3,18,10,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(52,211,153,.1);
  border-radius: 20px; padding: 16px;
  position: sticky; top: 215px;
  max-height: calc(100vh - 235px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(52,211,153,.2) transparent;
  transition: background .3s, border-color .3s;
}
.tr-sidebar::-webkit-scrollbar { width: 3px; }
.tr-sidebar::-webkit-scrollbar-thumb { background: rgba(52,211,153,.2); border-radius: 3px; }
.tr-sidebar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.4), transparent);
  pointer-events: none;
}
.tr-sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tr-sidebar-title {
  font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 800;
  color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 7px;
}
.tr-sidebar-reset {
  font-size: 9.5px; font-weight: 700; color: rgba(52,211,153,.5);
  text-decoration: none; text-transform: uppercase; letter-spacing: .8px;
  padding: 3px 9px; border-radius: 7px; border: 1px solid rgba(52,211,153,.2);
  transition: all .15s;
}
.tr-sidebar-reset:hover { background: rgba(52,211,153,.1); color: #34d399; }

/* Accordion niv 1 */
.tr-acc-item { border-bottom: 1px solid rgba(255,255,255,.05); }
.tr-acc-item:last-of-type { border-bottom: none; }
.tr-acc-head {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 4px; user-select: none; cursor: pointer;
  transition: background .15s; border-radius: 8px;
}
.tr-acc-head:hover { background: rgba(255,255,255,.04); }
.tr-acc-item.tab-active > .tr-acc-head { background: rgba(52,211,153,.08); }
.tr-acc-item.tab-active > .tr-acc-head .tr-acc-label { color: #34d399; }
.tr-acc-label {
  font-family: 'Poppins', sans-serif; font-size: 11.5px; font-weight: 700;
  color: rgba(255,255,255,.55); flex: 1; cursor: pointer;
}
.tr-acc-item.open .tr-acc-label { color: rgba(255,255,255,.85); }
.tr-acc-toggle {
  flex-shrink: 0; background: none; border: none;
  color: rgba(255,255,255,.25); cursor: pointer; padding: 3px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.tr-acc-arrow { transition: transform .2s ease; }
.tr-acc-item.open .tr-acc-arrow { transform: rotate(180deg); }
.tr-acc-body { display: none; padding: 2px 0 6px 4px; }
.tr-acc-item.open .tr-acc-body { display: block; }

/* Titre de catégorie active dans la sidebar (mode onglet sélectionné) */
.tr-cat-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

/* Body plat : sous-cats visibles directement sans accordéon open/close */
.tr-acc-body--flat {
  display: block;
  padding: 2px 0 6px 4px;
}

/* Accordion niv 2 */
.tr-acc-sub-item { margin: 1px 0; }
.tr-acc-sub-head {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 6px; border-radius: 8px; transition: background .15s; cursor: pointer;
}
.tr-acc-sub-head:hover { background: rgba(255,255,255,.04); }
.tr-sub-label {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4);
  flex: 1; cursor: pointer; transition: color .15s; line-height: 1;
}
.tr-acc-sub-head:hover .tr-sub-label { color: rgba(255,255,255,.7); }
.tr-sub-toggle {
  flex-shrink: 0; background: none; border: none;
  color: rgba(255,255,255,.25); cursor: pointer; padding: 2px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.tr-sub-arrow { transition: transform .2s ease; }
.tr-acc-sub-item.open .tr-sub-arrow { transform: rotate(180deg); }
.tr-acc-subsub-body {
  display: none; padding: 2px 0 4px 12px;
  border-left: 2px solid rgba(52,211,153,.2); margin-left: 6px; margin-top: 3px;
}
.tr-acc-sub-item.open .tr-acc-subsub-body { display: block; }

/* Accordion niv 3 */
.tr-filter-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 7px; border-radius: 8px; cursor: pointer;
  transition: background .15s; margin-bottom: 1px;
}
.tr-filter-item:hover { background: rgba(255,255,255,.04); }
.tr-filter-item label { font-size: 11px; color: rgba(255,255,255,.4); cursor: pointer; font-weight: 500; }
.tr-subsub-item {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 6px; border-radius: 7px; cursor: pointer;
  transition: background .15s; margin-bottom: 1px;
}
.tr-subsub-item:hover { background: rgba(255,255,255,.04); }
.tr-subsub-item label { font-size: 10.5px; color: rgba(255,255,255,.38); cursor: pointer; font-weight: 500; }

/* Checkboxes */
.tr-filter-cb {
  width: 14px; height: 14px; border-radius: 4px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  cursor: pointer; transition: all .15s;
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0; position: relative;
}
.tr-filter-cb:checked { background: #34d399; border-color: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.4); }
.tr-filter-cb:checked::after {
  content: '✓'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); color: #021a10;
  font-size: 9px; font-weight: 900; line-height: 1;
}

/* Filtres Origine/Difficulté/Budget en pills */
.tr-filter-section { margin-bottom: 14px; padding-top: 10px; }
.tr-filter-label {
  font-family: 'Poppins', sans-serif; font-size: 8px; font-weight: 700;
  color: rgba(52,211,153,.45); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 8px; display: block;
}
.tr-filter-pills-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tr-filter-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.4); cursor: pointer; transition: all .15s; user-select: none;
}
.tr-filter-pill:hover { border-color: rgba(52,211,153,.3); color: rgba(255,255,255,.7); }
.tr-filter-pill.active,
.tr-filter-pill:has(input:checked) {
  background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.35); color: #34d399;
}
.tr-sep { height: 1px; background: rgba(255,255,255,.05); margin: 10px 0; }

/* ══════════════════════════════════════
   GRILLE RECETTES
══════════════════════════════════════ */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* ── Empty state ── */
.tr-empty {
  text-align: center; padding: 60px 20px;
  background: rgba(255,255,255,.025); border: 1px dashed rgba(255,255,255,.08); border-radius: 24px;
}
.tr-empty-icon { font-size: 48px; opacity: .2; margin-bottom: 14px; filter: grayscale(1); }
.tr-empty-title { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 800; color: rgba(255,255,255,.4); }
.tr-empty-btn {
  display: inline-block; margin-top: 18px; padding: 9px 24px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; color: #34d399; text-decoration: none; transition: all .18s;
}
.tr-empty-btn:hover { background: rgba(52,211,153,.1); }

/* ── Pagination ── */
.tr-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.tr-page-btn {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.4); text-decoration: none; transition: all .18s;
}
.tr-page-btn:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.tr-page-btn.active {
  background: linear-gradient(135deg, #34d399, #10b981); border-color: transparent;
  color: #021a10; box-shadow: 0 4px 16px rgba(52,211,153,.3);
}

/* ── Plan banner ── */
.tr-plan-banner {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 16px;
  padding: 12px 16px; margin: 10px 0 0; position: relative;
}
.tr-plan-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.4), transparent);
}
.tr-plan-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.2);
  display: flex; align-items: center; justify-content: center; color: #34d399; flex-shrink: 0;
}
.tr-plan-label { font-size: 8.5px; font-weight: 700; color: #34d399; text-transform: uppercase; letter-spacing: 1.5px; font-family: 'Poppins', sans-serif; }
.tr-plan-text { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.85); font-family: 'Poppins', sans-serif; margin-top: 2px; }
.tr-plan-close {
  margin-left: auto; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35);
  transition: all .18s; flex-shrink: 0; text-decoration: none;
}
.tr-plan-close:hover { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.2); color: #f87171; }

/* ══════════════════════════════════════
   BOTTOM SHEET (mobile)
══════════════════════════════════════ */
.tr-bs-handle { display: none; width: 36px; height: 3px; background: rgba(255,255,255,.15); border-radius: 3px; margin: 0 auto 14px; }
.tr-bs-close { display: none; background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer; font-size: 18px; padding: 2px 6px; border-radius: 8px; transition: background .15s; }
.tr-bs-close:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.tr-bs-apply { display: none; margin-top: 18px; }
.tr-bs-apply button {
  width: 100%; background: linear-gradient(135deg, #34d399, #10b981); border: none;
  border-radius: 14px; padding: 13px; font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 800; color: #021a10; cursor: pointer;
  box-shadow: 0 4px 16px rgba(52,211,153,.3);
}

/* ══════════════════════════════════════
   MODAL PLANIFICATION
══════════════════════════════════════ */
.tr-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px;
}
.tr-modal-overlay.open { display: flex; }
.tr-modal {
  background: rgba(3,18,10,.98); border: 1px solid rgba(52,211,153,.2); border-radius: 28px;
  padding: 32px 28px; max-width: 360px; width: 100%;
  position: relative; overflow: hidden; animation: trModalIn .3s cubic-bezier(.34,1.4,.64,1);
}
.tr-modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(52,211,153,.6), transparent); }
@keyframes trModalIn { from{opacity:0;transform:scale(.9) translateY(16px)} to{opacity:1;transform:scale(1) translateY(0)} }
.tr-modal-icon { text-align: center; margin-bottom: 12px; color: #34d399; }
.tr-modal-title { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 900; color: rgba(255,255,255,.9); text-align: center; margin-bottom: 5px; line-height: 1.3; }
.tr-modal-sub { font-size: 11px; color: rgba(255,255,255,.4); text-align: center; margin-bottom: 24px; }
.tr-modal-stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 24px; }
.tr-modal-step-btn {
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: rgba(255,255,255,.6); cursor: pointer; transition: all .18s;
}
.tr-modal-step-btn:hover { background: rgba(52,211,153,.1); color: #34d399; }
.tr-modal-nb { font-family: 'Poppins', sans-serif; font-size: 34px; font-weight: 900; color: #34d399; width: 65px; text-align: center; background: none; border: none; outline: none; }
.tr-modal-btns { display: flex; gap: 8px; }
.tr-modal-cancel { flex: 1; padding: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); cursor: pointer; transition: all .18s; }
.tr-modal-cancel:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.tr-modal-confirm { flex: 1; padding: 11px; background: linear-gradient(135deg, #34d399, #10b981); border: none; border-radius: 14px; font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 800; color: #021a10; cursor: pointer; box-shadow: 0 4px 14px rgba(52,211,153,.35); transition: all .18s; }
.tr-modal-confirm:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(52,211,153,.5); }

/* ── Sidebar overlay ── */
.tr-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 10000;
}
.tr-sidebar-overlay.open { display: block; }

/* Compat ancien slider */
.lr-search-title { color: rgba(255,255,255,.9); text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.lr-search-accent { color: #34d399; text-shadow: none; }

/* ── BARRE MOBILE (cachée sur desktop) ── */
.tr-mob-bar { display: none; }
.tr-mob-count-sort { display: none; }
.tr-mob-bs-cats { display: none; }

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (< 1100px)
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .tr-layout { grid-template-columns: 240px 1fr; gap: 16px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET + MOBILE (< 1024px)
══════════════════════════════════════ */
@media (max-width: 1023px) {

  /* ════ CACHER les barres desktop sur mobile ════ */
  .tr-page-toggle-bar { display: none !important; }
  .tr-cat-tabs-wrap   { display: none !important; }
  .tr-search-sort-bar { display: none !important; }
  .tr-sort-strip-mobile { display: none !important; }
  .tr-active-filters  { display: none !important; }
  .tr-hero            { display: none !important; }

  /* ════ BARRE MOBILE UNIQUE ════ */
  .tr-mob-bar {
    display: block;
    position: sticky;
    top: 72px;
    z-index: 60;
    background: rgba(3, 12, 6, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  }

  .tr-mob-toggle {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 7px 14px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tr-mob-toggle::-webkit-scrollbar { display: none; }
  .tr-mob-toggle .tr-ptbtn,
  .tr-mob-toggle .tr-mob-count-inline {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .tr-mob-search-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 8px;
  }
  .tr-mob-search-inner {
    flex: 1;
    position: relative;
    min-width: 0;
  }
  .tr-mob-search-inner .tr-srch-ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
  }
  .tr-mob-search-inner .tr-srch-inp {
    width: 100%;
    padding-left: 32px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
  }
  .tr-mobile-filter-btn {
    display: flex;
    flex-shrink: 0;
  }

  /* Count inline dans la barre toggle */
  .tr-mob-count-inline {
    margin-left: auto;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .tr-mob-count-inline strong {
    color: #34d399;
    font-weight: 800;
  }

  /* ════ TRIS RAPIDES MOBILE ════ */
  .tr-mob-count-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 8px;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,.05);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tr-mob-count-sort::-webkit-scrollbar { display: none; }
  .tr-mob-quick-sort {
    display: flex;
    gap: 5px;
  }
  .tr-mob-quick-sort .tr-spill {
    font-size: 10px;
    padding: 5px 10px;
    flex-shrink: 0;
  }

  /* ════ LAYOUT ════ */
  .tr-page { overflow-x: visible; overflow-y: visible; }
  .tr-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 14px 80px;
    z-index: auto !important;
  }

  /* ════ SIDEBAR = BOTTOM SHEET PLEIN ÉCRAN ════ */
  .tr-sidebar {
    position: fixed;
    inset: 0;
    top: 0 !important;
    bottom: 0; left: 0; right: 0;
    border-radius: 0;
    max-height: 100dvh;
    height: 100dvh;
    width: 100%;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: none;
    background: var(--bg-card-solid, rgba(3,12,6,.98));
    scrollbar-width: none;
  }
  .tr-sidebar::-webkit-scrollbar { display: none; }
  .tr-sidebar.mobile-open { transform: translateY(0); }

  .tr-sidebar-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg-card-solid, rgba(3,12,6,.98));
    border-radius: 0;
    padding: 16px 18px 14px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  /* Contenu scrollable entre header et bouton apply */
  .tr-sidebar > form {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .tr-bs-handle { display: none; }

  .tr-bs-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all .18s;
    flex-shrink: 0;
  }
  .tr-bs-close:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
  }

  .tr-bs-apply { display: block; }

  /* ════ SECTION CATÉGORIES MOBILE DANS LE BS ════ */
  .tr-mob-bs-cats {
    display: block;
    padding: 14px 18px 0;
  }

  .tr-mob-bs-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 10px;
  }
  .tr-mob-bs-sect-lbl {
    font-family: 'Poppins', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(52,211,153,.55);
  }
  .tr-mob-bs-sect-arrow {
    font-size: 9px;
    color: rgba(255,255,255,.35);
    transition: transform 0.2s;
  }
  .tr-mob-bs-sect-body.closed { display: none; }

  .tr-mob-bs-l1-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }
  .tr-mob-bs-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
  }
  .tr-mob-bs-chip:hover { border-color: rgba(52,211,153,.3); }
  .tr-mob-bs-chip.active {
    background: rgba(52,211,153,.1);
    border-color: rgba(52,211,153,.3);
    color: #34d399;
  }
  .tr-mob-bs-chip.fav {
    border-color: rgba(251,113,133,.25);
    color: #fb7185;
    background: rgba(251,113,133,.08);
    text-decoration: none;
  }

  .tr-mob-bs-subs {
    padding: 6px 0 10px 8px;
    border-left: 2px solid rgba(52,211,153,.3);
    margin-left: 4px;
    margin-bottom: 6px;
  }
  .tr-mob-bs-subs-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .tr-mob-bs-chip-sm {
    padding: 5px 11px;
    font-size: 10px;
  }

  .tr-mob-bs-subsubs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0 2px 6px;
    border-left: 2px solid rgba(52,211,153,.18);
    margin-left: 2px;
    width: 100%;
  }
  .tr-mob-bs-chip-xs {
    padding: 3px 9px;
    font-size: 9.5px;
    background: rgba(52,211,153,.04);
    border-color: rgba(52,211,153,.15);
  }
  .tr-mob-bs-chip-xs.active {
    background: rgba(52,211,153,.1);
    border-color: rgba(52,211,153,.3);
    color: #34d399;
  }

  /* ════ CACHER l'accordéon desktop dans le BS mobile ════ */
  #filters-sidebar .tr-acc-item { display: none; }
  #filters-sidebar .tr-filter-section { display: block; padding: 10px 18px 0; }
  #filters-sidebar .tr-sep { margin: 6px 18px; }

  /* ════ FILTRES PILLS Origine/Difficulté/Budget dans le BS ════ */
  .tr-filter-section {
    padding: 10px 18px 0;
    margin-bottom: 0;
  }
  .tr-filter-label {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(52,211,153,.55);
    margin-bottom: 8px;
  }
  .tr-filter-pills-row { gap: 6px; flex-wrap: wrap; }
  .tr-filter-pill {
    padding: 6px 13px;
    font-size: 10.5px;
    font-weight: 700;
  }

  /* ════ BOUTON APPLIQUER sticky en bas ════ */
  .tr-bs-apply {
    display: block;
    position: sticky;
    bottom: 0;
    background: rgba(3,12,6,.98);
    padding: 14px 18px calc(env(safe-area-inset-bottom, 8px) + 14px);
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
    z-index: 5;
  }
  .tr-bs-apply button {
    width: 100%;
    background: linear-gradient(135deg, #34d399, #10b981);
    border: none;
    border-radius: 16px;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #021a10;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(52,211,153,.35);
    transition: all 0.2s;
  }
  .tr-bs-apply button:active { transform: scale(0.98); }

  /* ════ GRID ════ */
  .tr-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE STRICT (< 640px)
══════════════════════════════════════ */
@media (max-width: 640px) {
  .tr-mob-bar { top: 72px; }
  .tr-hero-title { font-size: 20px; }
}

@media (max-width: 400px) {
  .tr-grid { grid-template-columns: 1fr; gap: 10px; }
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ══════════════════════════════════════
   LIGHT MODE
══════════════════════════════════════ */
[data-theme="light"] .tr-page { background: #f0f7f2; }
[data-theme="light"] .tr-page::before { background: radial-gradient(circle, rgba(52,211,153,.06) 0%, transparent 65%); }
[data-theme="light"] .tr-page::after { background: radial-gradient(circle, rgba(245,158,11,.04) 0%, transparent 65%); }
[data-theme="light"] .tr-page-toggle-bar { background: rgba(240,247,242,.95); border-bottom-color: rgba(52,211,153,.15); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
[data-theme="light"] .tr-ptbtn { color: rgba(10,31,18,.45); border-color: rgba(10,31,18,.1); }
[data-theme="light"] .tr-ptbtn:hover { background: rgba(10,31,18,.04); color: rgba(10,31,18,.75); }
[data-theme="light"] .tr-ptbtn.active { background: rgba(5,150,105,.08); border-color: rgba(5,150,105,.3); color: #059669; }
[data-theme="light"] .tr-ptbtn.fav.active { background: rgba(225,29,72,.08); border-color: rgba(225,29,72,.3); color: #e11d48; }
[data-theme="light"] .tr-ptbtn-count { color: rgba(10,31,18,.35); }
[data-theme="light"] .tr-ptbtn-count strong { color: #059669; }
[data-theme="light"] .tr-cat-tabs-wrap { background: rgba(240,247,242,.95); border-bottom-color: rgba(52,211,153,.15); }
[data-theme="light"] .tr-ctab { color: rgba(10,31,18,.38); }
[data-theme="light"] .tr-ctab:hover { color: rgba(10,31,18,.7); }
[data-theme="light"] .tr-ctab.active { color: #059669; border-bottom-color: #059669; }
[data-theme="light"] .tr-ctab-ico { background: rgba(10,31,18,.05); }
[data-theme="light"] .tr-ctab.active .tr-ctab-ico { background: rgba(5,150,105,.1); box-shadow: 0 0 12px rgba(5,150,105,.15); }
[data-theme="light"] .tr-ctab.tr-ctab-fav.active { color: #e11d48; border-bottom-color: #e11d48; }
[data-theme="light"] .tr-ctab.tr-ctab-fav.active .tr-ctab-ico { background: rgba(225,29,72,.1); }
/* ★ CLÉS : inputs visibles en light mode */
[data-theme="light"] .tr-srch-inp,
[data-theme="light"] .tr-search-input {
  background: rgba(10,31,18,.06);
  border-color: rgba(10,31,18,.14);
  color: rgba(10,31,18,.88);
}
[data-theme="light"] .tr-srch-inp:focus,
[data-theme="light"] .tr-search-input:focus {
  background: rgba(255,255,255,.95);
  border-color: rgba(5,150,105,.4);
  box-shadow: 0 0 0 3px rgba(5,150,105,.08);
}
[data-theme="light"] .tr-srch-inp::placeholder,
[data-theme="light"] .tr-search-input::placeholder { color: rgba(10,31,18,.3); }
[data-theme="light"] .tr-srch-ico { color: rgba(10,31,18,.4); }
[data-theme="light"] .tr-mobile-filter-btn { background: rgba(10,31,18,.06); border-color: rgba(10,31,18,.12); color: rgba(10,31,18,.55); }
[data-theme="light"] .tr-mobile-filter-btn:hover { background: rgba(5,150,105,.08); border-color: rgba(5,150,105,.3); color: #059669; }
[data-theme="light"] .tr-spill { background: rgba(255,255,255,.75); border-color: rgba(10,31,18,.12); color: rgba(10,31,18,.5); }
[data-theme="light"] .tr-spill:hover { background: rgba(10,31,18,.05); color: rgba(10,31,18,.8); border-color: rgba(10,31,18,.18); }
[data-theme="light"] .tr-spill.active { background: rgba(5,150,105,.08); border-color: rgba(5,150,105,.35); color: #059669; }
[data-theme="light"] .tr-sort-strip-mobile .tr-spill { background: rgba(255,255,255,.7); }
[data-theme="light"] .tr-active-filters { border-bottom-color: rgba(10,31,18,.07); }
[data-theme="light"] .tr-af-empty { color: rgba(10,31,18,.28); }
[data-theme="light"] .tr-af-tag { background: rgba(5,150,105,.08); border-color: rgba(5,150,105,.25); color: #059669; }
[data-theme="light"] .tr-hero-title { color: rgba(10,31,18,.9); text-shadow: none; }
[data-theme="light"] .tr-hero-title span { color: #059669; }
[data-theme="light"] .tr-hero-count { color: rgba(10,31,18,.4); }
[data-theme="light"] .tr-hero-count strong { color: #059669; }
[data-theme="light"] .tr-sidebar { background: rgba(255,255,255,.92); border-color: rgba(52,211,153,.2); box-shadow: 0 2px 20px rgba(0,0,0,.06); }
[data-theme="light"] .tr-sidebar::before { background: linear-gradient(90deg, transparent, rgba(52,211,153,.3), transparent); }
[data-theme="light"] .tr-sidebar-title { color: rgba(10,31,18,.85); }
[data-theme="light"] .tr-sidebar-reset { color: rgba(5,150,105,.65); border-color: rgba(5,150,105,.25); }
[data-theme="light"] .tr-acc-label { color: rgba(10,31,18,.6); }
[data-theme="light"] .tr-acc-item.open .tr-acc-label { color: rgba(10,31,18,.88); }
[data-theme="light"] .tr-cat-heading { color: rgba(10,31,18,.55); border-bottom-color: rgba(10,31,18,.1); }
[data-theme="light"] .tr-acc-item.tab-active > .tr-acc-head { background: rgba(5,150,105,.07); }
[data-theme="light"] .tr-acc-item.tab-active > .tr-acc-head .tr-acc-label { color: #059669; }
[data-theme="light"] .tr-acc-head:hover { background: rgba(10,31,18,.03); }
[data-theme="light"] .tr-sub-label { color: rgba(10,31,18,.55); }
[data-theme="light"] .tr-acc-sub-head:hover { background: rgba(10,31,18,.03); }
[data-theme="light"] .tr-acc-subsub-body { border-left-color: rgba(5,150,105,.25); }
[data-theme="light"] .tr-filter-item label { color: rgba(10,31,18,.55); }
[data-theme="light"] .tr-filter-item:hover { background: rgba(10,31,18,.03); }
[data-theme="light"] .tr-subsub-item label { color: rgba(10,31,18,.5); }
[data-theme="light"] .tr-filter-cb { background: rgba(10,31,18,.04); border-color: rgba(10,31,18,.15); }
[data-theme="light"] .tr-filter-cb:checked { background: #059669; border-color: #059669; box-shadow: 0 0 6px rgba(5,150,105,.3); }
[data-theme="light"] .tr-filter-cb:checked::after { color: #fff; }
[data-theme="light"] .tr-filter-label { color: rgba(5,150,105,.55); }
[data-theme="light"] .tr-filter-pill { background: rgba(255,255,255,.7); border-color: rgba(10,31,18,.1); color: rgba(10,31,18,.5); }
[data-theme="light"] .tr-filter-pill:hover { border-color: rgba(5,150,105,.3); color: rgba(10,31,18,.75); }
[data-theme="light"] .tr-filter-pill.active,
[data-theme="light"] .tr-filter-pill:has(input:checked) { background: rgba(5,150,105,.08); border-color: rgba(5,150,105,.3); color: #059669; }
[data-theme="light"] .tr-sep { background: rgba(10,31,18,.07); }
[data-theme="light"] .tr-acc-item { border-bottom-color: rgba(10,31,18,.06); }
[data-theme="light"] .tr-page-btn { background: rgba(255,255,255,.7); border-color: rgba(10,31,18,.1); color: rgba(10,31,18,.4); }
[data-theme="light"] .tr-page-btn:hover { background: rgba(10,31,18,.05); color: rgba(10,31,18,.8); }
[data-theme="light"] .tr-sidebar { box-shadow: 0 -6px 30px rgba(0,0,0,.08); }
[data-theme="light"] .tr-modal { background: rgba(240,247,242,.98); border-color: rgba(52,211,153,.25); }
[data-theme="light"] .tr-modal-title { color: rgba(10,31,18,.9); }
[data-theme="light"] .tr-modal-sub { color: rgba(10,31,18,.45); }
[data-theme="light"] .tr-modal-step-btn { background: rgba(10,31,18,.05); border-color: rgba(10,31,18,.1); color: rgba(10,31,18,.55); }
[data-theme="light"] .tr-modal-cancel { background: rgba(10,31,18,.05); border-color: rgba(10,31,18,.1); color: rgba(10,31,18,.5); }
[data-theme="light"] .lr-search-title { color: rgba(10,31,18,.9); text-shadow: none; }
[data-theme="light"] .lr-search-accent { color: #059669; }

/* ── Light mode mobile (chips + bottom sheet) ── */
@media (max-width: 1023px) {
  [data-theme="light"] .tr-acc-label { color: rgba(5,150,105,.6); }
  [data-theme="light"] .tr-acc-item:not(:first-child) { border-top-color: rgba(10,31,18,.07); }
  [data-theme="light"] .tr-acc-sub-head { background: rgba(255,255,255,.8); border-color: rgba(10,31,18,.1); }
  [data-theme="light"] .tr-acc-sub-head:hover { background: rgba(10,31,18,.04); border-color: rgba(10,31,18,.18); }
  [data-theme="light"] .tr-acc-sub-head:has(.tr-filter-cb:checked) { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.3); }
  [data-theme="light"] .tr-acc-sub-head:has(.tr-filter-cb:checked) .tr-sub-label { color: #059669; }
  [data-theme="light"] .tr-sub-label { color: rgba(10,31,18,.55); }
  [data-theme="light"] .tr-acc-subsub-body { border-left-color: rgba(5,150,105,.25); }
  [data-theme="light"] .tr-subsub-item { background: rgba(255,255,255,.7); border-color: rgba(10,31,18,.08); }
  [data-theme="light"] .tr-subsub-item:hover { background: rgba(10,31,18,.04); border-color: rgba(10,31,18,.15); }
  [data-theme="light"] .tr-subsub-item:has(.tr-filter-cb:checked) { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25); }
  [data-theme="light"] .tr-subsub-item:has(.tr-filter-cb:checked) label { color: #059669; }
  [data-theme="light"] .tr-subsub-item label { color: rgba(10,31,18,.5); }
  [data-theme="light"] .tr-sidebar-header { background: rgba(255,255,255,.98); border-bottom-color: rgba(10,31,18,.08); border-radius: 0; }
  [data-theme="light"] .tr-bs-apply { background: rgba(255,255,255,.98); border-top-color: rgba(10,31,18,.08); }
  [data-theme="light"] .tr-sidebar { background: rgba(255,255,255,.98); }
  [data-theme="light"] .tr-bs-close { background: rgba(10,31,18,.06); border-color: rgba(10,31,18,.12); color: rgba(10,31,18,.6); }
  [data-theme="light"] .tr-bs-close:hover { background: rgba(10,31,18,.1); color: rgba(10,31,18,.85); }
}

/* ── Light mode — éléments mobiles ── */
[data-theme="light"] .tr-mob-count-inline { color: rgba(10,31,18,.4); }
[data-theme="light"] .tr-mob-count-inline strong { color: #059669; }
[data-theme="light"] .tr-mob-count-sort {
  border-top-color: rgba(52,211,153,.12);
}
[data-theme="light"] .tr-mob-bar {
  background: rgba(240,247,242,.97);
  border-bottom-color: rgba(52,211,153,.18);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
[data-theme="light"] .tr-mob-bs-chip { background: rgba(255,255,255,.8); border-color: rgba(10,31,18,.1); color: rgba(10,31,18,.6); }
[data-theme="light"] .tr-mob-bs-chip.active { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.3); color: #059669; }
[data-theme="light"] .tr-mob-bs-chip.fav { background: rgba(225,29,72,.06); border-color: rgba(225,29,72,.2); color: #e11d48; }
[data-theme="light"] .tr-mob-bs-subs { border-left-color: rgba(52,211,153,.3); }
[data-theme="light"] .tr-mob-bs-subsubs { border-left-color: rgba(52,211,153,.18); }
[data-theme="light"] .tr-mob-bs-chip-xs { background: rgba(52,211,153,.04); border-color: rgba(52,211,153,.15); }
[data-theme="light"] .tr-mob-bs-chip-xs.active { background: rgba(52,211,153,.1); color: #059669; }
[data-theme="light"] .tr-mob-bs-sect-lbl { color: rgba(5,150,105,.6); }
[data-theme="light"] .tr-mob-bs-sect-hd { border-bottom-color: rgba(10,31,18,.08); }
[data-theme="light"] .tr-mob-quick-sort .tr-spill { background: rgba(255,255,255,.8); border-color: rgba(10,31,18,.1); color: rgba(10,31,18,.55); }
[data-theme="light"] .tr-mob-quick-sort .tr-spill.active { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.3); color: #059669; }
