/* ==========================================================================
   Glossaire public des termes (/eman-termes/glossaire)
   Vue : EmanTermes/views/public/page/glossaire.php  (bodyclass "transcript list-terms")
   S'inspire des cartes de /items/show et de la grille de la page d'accueil.
   ========================================================================== */

/* Titre de la page */
body.list-terms #primary > h3,
body.list-terms #content > h3 {
  border-bottom: 1px solid #DFE2E2;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

/* --------------------------------------------------------------------------
   Sélecteur alphabétique (#alphabet) — repris de l'admin, plus l'option « Tous »
   -------------------------------------------------------------------------- */
body.list-terms #alphabet {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: auto;
  margin: 0 0 1.5em 0;
  padding: 0;
}

body.list-terms #alphabet li {
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  font-size: 1em;
  font-weight: normal;
}

body.list-terms #alphabet li a {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #DFE2E2;
  border-radius: 3px;
  background: #fff;
  text-transform: uppercase;
  color: #4b6569;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

/* L'entrée « Tous » est plus large et ne se met pas en majuscules */
body.list-terms #alphabet li.alphabet-all a {
  text-transform: none;
  font-weight: bold;
  padding: 0 12px;
}

body.list-terms #alphabet li a:hover,
body.list-terms #alphabet li a:focus {
  background: #404040;
  border-color: #404040;
  color: #fff;
}

/* Lettre / « Tous » actuellement sélectionné */
body.list-terms #alphabet li a.active {
  background: #404040;
  border-color: #404040;
  color: #fff;
}

/* Liste des termes — passage d'une liste « dans le vide » à une grille en colonnes */
body.list-terms .transcript-list-terms {
  list-style: none;
  margin: 0 0 2em 0;
  padding: 0;
  column-width: 22em;
  column-gap: 2em;
}

body.list-terms .transcript-list-terms .transcript-term {
  list-style: none;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  margin: 0 0 0.5em 0;
}

/* Chaque terme : ligne « carte » discrète avec accent au survol */
body.list-terms .transcript-list-terms .transcript-term a {
  display: block;
  padding: 0.55em 0.85em;
  color: #3B71A5;
  background: rgba(255, 255, 255, 0.5);
  border-left: 3px solid transparent;
  border-radius: 2px;
  box-shadow: rgba(0, 0, 0, 0.08) 0 0 6px;
  transition: background 0.12s ease, border-color 0.12s ease,
              box-shadow 0.12s ease, transform 0.12s ease;
}

body.list-terms .transcript-list-terms .transcript-term a:hover,
body.list-terms .transcript-list-terms .transcript-term a:focus {
  background: #fff;
  border-left-color: #4b6569;
  box-shadow: rgba(0, 0, 0, 0.18) 0 2px 10px;
  transform: translateX(2px);
}
