/* Style pour la table des matières fixe à gauche */
.toc {
  position: fixed;
  left: 0;
  top: 100px;
  width: 50px;
  z-index: 10;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 0.5rem 0.2rem;
  max-height: 80vh;
  overflow-y: auto;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin: 0;
  text-align: center;
}

.toc a {
  color: #0077b6;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85em;
  letter-spacing: 0.01em;
  padding: 0.05em 0;
  transition: color 0.2s;
}

.toc a:hover,
.index-container a:hover {
  color: #023e8a;
  text-decoration: underline;
}

/* Style pour le conteneur principal des séries */
.index-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-left: 10px;
}

.index-container a {
  color: #0b4775;
}

/* Style pour chaque série */
.record-set {
  scroll-margin-top: 100px;
  break-inside: avoid;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1.1rem;
  margin-bottom: 1.1rem;
  transition: background 0.3s;
}

.record-set.highlight {
  background: rgba(255, 224, 102, 0.397) !important;
}

.record-set h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #333;
}

/* Style pour le conteneur des colonnes de notices.    
   Utilise la propriété column-count pour diviser les notices en trois colonnes verticales. */
.record-set-columns {
  column-count: 3;
  column-gap: 2.5em;
  padding-left: 20px;
  padding-right: 20px;
}

/* Style pour chaque notice, s'affichant comme un bloc en ligne pour remplir les colonnes verticales */
.notice-item {
  display: inline-block;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.3em;
  font-size: 14px;
}

/* Ajustements pour les petits écrans */
@media (max-width: 900px) {
  .index-container {
    margin-left: 0;
  }
  .record-set-columns {
    column-count: 2;
  }
  .toc {
    display: none;
  }
}

@media (max-width: 600px) {
  .index-container {
    margin-left: 0;
  }
  .record-set-columns {
    column-count: 1;
  }
  .toc {
    display: none;
  }
}
