/* Filtre de catégories — style Toujours Bon */
.tb-category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 16px 0 18px;
  font-family: "Optimistic", system-ui, sans-serif;
}
.tb-category-heading {
  flex-basis: 100%;
  margin: 0 0 1px;
  color: rgba(17, 17, 17, .58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.tb-category-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tb-category-btn {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, .11);
  border-radius: 999px;
  background: #fff;
  color: rgba(17, 17, 17, .76);
  font: 800 11px/1.2 "Optimistic", system-ui, sans-serif;
  letter-spacing: .035em;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tb-category-btn:hover {
  transform: translateY(-2px);
  border-color: #FFD60A;
  box-shadow: 0 5px 14px rgba(208, 0, 0, .09);
}
.tb-category-btn[aria-pressed="true"] {
  border-color: #D00000;
  background: #D00000;
  color: #fff;
  box-shadow: 0 5px 14px rgba(208, 0, 0, .16);
}
.tb-category-btn:focus-visible {
  outline: 3px solid #FFD60A;
  outline-offset: 3px;
}
.tb-category-count {
  align-self: center;
  margin-left: auto;
  color: rgba(17, 17, 17, .54);
  font: 600 11px/1.4 "Optimistic Mono", ui-monospace, monospace;
}
#root .tb-card-3d.tb-category-out,
#root .tb-card-3d.tb-category-enter {
  transition: opacity .24s ease, transform .32s cubic-bezier(.2,.75,.25,1), filter .24s ease;
}
#root .tb-card-3d.tb-category-out {
  opacity: 0 !important;
  transform: translate3d(0, 9px, 0) scale(.96) !important;
  filter: blur(3px);
  pointer-events: none;
}
#root .tb-card-3d.tb-category-enter {
  opacity: 0 !important;
  transform: translate3d(0, 12px, 0) scale(.96) !important;
  filter: blur(3px);
}
#root .tb-card-3d.tb-category-enter.tb-category-enter-active {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0);
}
#root .tb-card-3d[hidden] { display: none !important; }
.tb-static-fallback {
  min-height: 100vh;
  padding: 56px max(20px, calc((100vw - 980px) / 2));
  background: #fff8e6;
  color: #1a1a1a;
  font-family: "Optimistic", system-ui, sans-serif;
}
.tb-static-fallback h1,
.tb-static-fallback h2 { color: #D00000; font-weight: 900; }
.tb-static-fallback h1 { margin: 8px 0 14px; font-size: clamp(30px, 7vw, 58px); line-height: .98; }
.tb-static-fallback h2 { margin: 28px 0 8px; font-size: 22px; }
.tb-fallback-eyebrow { color: #806900; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tb-static-fallback p { max-width: 68ch; line-height: 1.7; }
.tb-static-fallback ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 20px; padding-left: 22px; }
.tb-static-fallback a { color: #D00000; font-weight: 800; }
@media (max-width: 560px) {
  .tb-category-filter { gap: 7px; }
  .tb-category-options { gap: 7px; }
  .tb-category-btn { min-height: 34px; padding: 7px 11px; font-size: 10px; }
  .tb-category-count { width: 100%; margin: 1px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-category-btn,
  #root .tb-card-3d.tb-category-out,
  #root .tb-card-3d.tb-category-enter { transition: none !important; }
  .tb-category-btn:hover { transform: none; }
}
