/* ==========================================================================
   OUTILS DU BUREAU — GALERIE DES OUTILS + TABLEAU DE TOUS LES MODÈLES   [2026-10-17]
   Gabarit : bureau/templates/bureau/home.html ; comportement : static/bureau/js/bureau-tools-gallery.js.
   Mêmes jetons que home.css / home-start.css (--bz-*), donc mêmes thèmes clair / sombre.
   ========================================================================== */
.bz-tools__grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bz-tool {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--bz-line); border-radius: 14px;
  background: var(--bz-surface, #fff); transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; min-width: 0;
}
.bz-tool:hover { border-color: var(--bz-accent, #1e56a0); box-shadow: 0 10px 26px rgba(15, 30, 60, .10); transform: translateY(-1px); }
.bz-tool[hidden] { display: none !important; }
.bz-tool__main { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.bz-tool__main img { width: 52px; height: 52px; border-radius: 13px; flex: 0 0 auto; }
.bz-tool__main span { display: flex; flex-direction: column; min-width: 0; }
.bz-tool__main strong { font-size: 15.5px; font-weight: 800; }
.bz-tool__main small { color: var(--bz-muted); font-size: 12.5px; }
.bz-tool > p { margin: 0; color: var(--bz-muted); font-size: 13px; line-height: 1.45; flex: 1 1 auto; }
.bz-tool__actions { display: flex; flex-wrap: wrap; gap: 6px; }
/* Pastille « Nouveau » sur les outils enrichis le 2026-10-17 (Prompt, Agenda, Sceaux). */
.bz-tool--new::after {
  content: "Nouveau"; position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 99px;
  background: #fff1e6; color: #b45309; font: 800 10.5px var(--bz-font); letter-spacing: .02em;
}
.bz-chipbtn {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 11px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--bz-line); background: var(--bz-surface-2, #f4f6fa); color: var(--bz-ink); font: 700 12.5px var(--bz-font);
  text-decoration: none; white-space: nowrap;
}
.bz-chipbtn:hover { border-color: var(--bz-accent, #1e56a0); color: var(--bz-accent, #1e56a0); }
.bz-chipbtn--primary { background: var(--bz-accent, #1e56a0); border-color: var(--bz-accent, #1e56a0); color: #fff; }
.bz-chipbtn--primary:hover { color: #fff; filter: brightness(1.08); }
.bz-chipbtn b { font-weight: 800; opacity: .7; }

/* --- Tableau de tous les modèles ------------------------------------------------------------------------- */
.bz-allmodels[hidden] { display: none !important; }
.bz-allmodels { order: 0; }
.bz-allmodels__total { color: var(--bz-muted); font-weight: 700; font-size: 13px; margin-left: 6px; }
.bz-allmodels__search { flex: 0 1 360px; border: 1px solid var(--bz-line); }
.bz-allmodels__kinds { margin-bottom: 10px; }
.bz-allmodels__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; max-height: 96px; overflow: auto; }
.bz-allmodels__cats button { border: 1px solid var(--bz-line); background: none; border-radius: 99px; padding: 3px 10px; font: 600 12px var(--bz-font); color: var(--bz-ink); cursor: pointer; }
.bz-allmodels__cats button.is-on { background: var(--bz-accent-soft, #e7eefb); border-color: var(--bz-accent, #1e56a0); color: var(--bz-accent, #1e56a0); }
.bz-allmodels__table { display: flex; flex-direction: column; border: 1px solid var(--bz-line); border-radius: 10px; overflow: hidden; max-height: 62vh; overflow-y: auto; }
.bz-allmodels__row { display: grid; grid-template-columns: 90px minmax(120px, 180px) minmax(160px, 1fr) minmax(0, 1.6fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--bz-line); font-size: 13px; }
.bz-allmodels__row:first-child { border-top: 0; }
.bz-allmodels__row:hover { background: var(--bz-surface-2, #f6f8fc); }
.bz-allmodels__row--head { position: sticky; top: 0; z-index: 1; background: var(--bz-surface-2, #f4f6fa); font-weight: 800; }
.bz-allmodels__row--head button { border: 0; background: none; padding: 0; text-align: left; font: 800 12.5px var(--bz-font); color: var(--bz-ink); cursor: pointer; }
.bz-allmodels__row small { color: var(--bz-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-allmodels__tool { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 11.5px; color: #fff; text-align: center; }
.bz-allmodels__tool--docx { background: #2563c9; } .bz-allmodels__tool--sheet { background: #15803d; }
.bz-allmodels__tool--slides { background: #c2410c; } .bz-allmodels__tool--pdf { background: #b91c1c; }

@media (max-width: 760px) {
  .bz-allmodels__row { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .bz-allmodels__row > span:nth-child(2), .bz-allmodels__row > small, .bz-allmodels__row--head > span { display: none; }
}
