/* Accueil ---------------------------------------------------------------
   Toutes les couleurs proviennent de tokens.css : aucune valeur en dur ici. */

/* Hero : dégradé CSS seul, sans halo radial (coût LCP). */
.tlb-hero {
  background: var(--tlb-hero-degrade);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.tlb-hero__titre {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 .75rem;
  max-width: 20ch;
}
.tlb-hero__chapo {
  margin: 0 0 1.75rem;
  max-width: 60ch;
  /* Pas d'opacity : elle dégraderait un contraste déjà limite sur la fin du
     dégradé, et aucun calcul sur les tokens ne peut la voir. */
}

.tlb-recherche-hero {
  display: grid;
  gap: .75rem;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  align-items: end;
  background: var(--tlb-surface);
  padding: 1rem;
  border-radius: var(--tlb-rayon-carte);
  box-shadow: var(--tlb-ombre-carte);
}
/* min-width:0 : sans cela, un <select> à l'option longue impose sa largeur
   mini-contenu à la piste de grille et déborde le padding droit de la carte. */
.tlb-champ { margin: 0; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.tlb-champ label { font-size: .8125rem; font-weight: 600; color: var(--tlb-attenue); }
.tlb-champ input,
.tlb-champ select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;   /* le padding reste dans la largeur de la piste */
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid var(--tlb-filet);
  border-radius: var(--tlb-rayon-bouton);
  font: inherit;
  color: var(--tlb-texte);
  background: var(--tlb-surface);
}
.tlb-champ--action .tlb-btn { width: 100%; }

/* Compteur de réassurance sous la recherche du hero. Blanc en dur assumé,
   cohérent avec .tlb-hero__titre / .tlb-hero__chapo posés sur le dégradé. */
.tlb-hero__compteur {
  margin: 1rem 0 0;
  font-size: .9375rem;
  color: #fff;
}
.tlb-hero__compteur strong { font-weight: 700; }

/* Sous-navigation par catégorie */
.tlb-souscats { background: var(--tlb-surface); border-bottom: 1px solid var(--tlb-filet); }
.tlb-souscats__liste {
  display: flex; gap: .5rem; list-style: none; margin: 0; padding: .75rem 0;
  overflow-x: auto; scrollbar-width: thin;
}
.tlb-pastille {
  display: inline-block; white-space: nowrap;
  padding: .4rem .85rem;
  border: 1px solid var(--tlb-filet);
  border-radius: 999px;
  color: var(--tlb-encre);
  text-decoration: none;
  font-size: .9375rem;
}
.tlb-pastille:hover { border-color: var(--tlb-violet-500); color: var(--tlb-violet-600); }

/* Sections */
.tlb-section { padding: 2.5rem 0 .5rem; }
.tlb-section__entete {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.tlb-section__titre { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.tlb-section__lien { font-weight: 600; white-space: nowrap; }

/* .tlb-grille a DÉMÉNAGÉ dans theme.css le 2026-08-07 : la grille est partagée
   avec les sélections de saison du plugin tlb-content-marketing, servies sur des
   articles où home.css n'est pas chargé. Les cartes s'y empilaient en pleine
   largeur. Même raison que la carte-billet elle-même, déjà dans theme.css. */

/* La carte-billet elle-même vit dans theme.css : elle est partagée avec les
   fiches salle et la page de favoris, où home.css n'est pas chargé. */

/* Axes et silos */
.tlb-axes { padding: 2.5rem 0; }
.tlb-axes__grille { display: grid; gap: var(--tlb-gouttiere); grid-template-columns: repeat(3, 1fr); }
.tlb-axe__titre { font-size: 1.125rem; margin: 0 0 .75rem; }
.tlb-axe__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tlb-axe__liste a {
  display: inline-block; padding: .35rem .75rem;
  background: var(--tlb-surface); border: 1px solid var(--tlb-filet);
  border-radius: 999px; text-decoration: none; color: var(--tlb-encre); font-size: .9375rem;
}
.tlb-axe__liste b { color: var(--tlb-attenue); font-weight: 500; margin-left: .35rem; }

.tlb-silos { padding: 1rem 0 3rem; }
.tlb-silos__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); }
.tlb-silo {
  display: block; padding: 1rem;
  background: var(--tlb-surface); border: 1px solid var(--tlb-filet);
  border-radius: var(--tlb-rayon-carte); text-decoration: none;
  color: var(--tlb-encre); font-weight: 600;
}
.tlb-silo:hover { border-color: var(--tlb-violet-500); color: var(--tlb-violet-600); }

/* Mobile-first : 70 % du trafic. */
@media (max-width: 980px) {
  .tlb-recherche-hero { grid-template-columns: 1fr 1fr; }
  .tlb-axes__grille,
  .tlb-silos__liste { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tlb-recherche-hero { grid-template-columns: 1fr; }
}
