/* Lexique Running Styles */

/* Limitation de largeur pour correspondre aux autres pages */
.categories-main {
  max-width: 1200px;
  margin: 0 0 2rem 0;
  padding: 0 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.page-header .icon-book {
  width: 2.5rem;
  height: 2.5rem;
  color: #3b82f6;
}

.page-description {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

/* Barre de recherche */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
  pointer-events: none;
}

/* Filtres alphabétiques */
.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.filter-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.filter-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.filter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Compteur de résultats */
.results-count {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
}

/* Container du glossaire */
.glossary-container {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Item du glossaire */
.glossary-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.glossary-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.glossary-item.hidden {
  display: none;
}

.term-title {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.term-definition {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.term-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f1f5f9;
  color: #3b82f6;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Catégories de couleur */
.glossary-item[data-letter="A"] .term-category { background: #fef3c7; color: #d97706; }
.glossary-item[data-letter="B"] .term-category { background: #ddd6fe; color: #7c3aed; }
.glossary-item[data-letter="C"] .term-category { background: #fecaca; color: #dc2626; }
.glossary-item[data-letter="D"] .term-category { background: #bfdbfe; color: #2563eb; }
.glossary-item[data-letter="E"] .term-category { background: #d1fae5; color: #059669; }
.glossary-item[data-letter="F"] .term-category { background: #fce7f3; color: #db2777; }
.glossary-item[data-letter="G"] .term-category { background: #fee2e2; color: #dc2626; }
.glossary-item[data-letter="H"] .term-category { background: #fef9c3; color: #a16207; }
.glossary-item[data-letter="I"] .term-category { background: #e0e7ff; color: #4f46e5; }
.glossary-item[data-letter="J"] .term-category { background: #fce7f3; color: #be185d; }
.glossary-item[data-letter="K"] .term-category { background: #dbeafe; color: #0369a1; }
.glossary-item[data-letter="L"] .term-category { background: #dcfce7; color: #16a34a; }
.glossary-item[data-letter="M"] .term-category { background: #fed7aa; color: #ea580c; }
.glossary-item[data-letter="N"] .term-category { background: #f3e8ff; color: #7c3aed; }
.glossary-item[data-letter="O"] .term-category { background: #ffe4e6; color: #e11d48; }
.glossary-item[data-letter="P"] .term-category { background: #cffafe; color: #0891b2; }
.glossary-item[data-letter="R"] .term-category { background: #fbcfe8; color: #be185d; }
.glossary-item[data-letter="S"] .term-category { background: #dbeafe; color: #1d4ed8; }
.glossary-item[data-letter="T"] .term-category { background: #d9f99d; color: #65a30d; }
.glossary-item[data-letter="U"] .term-category { background: #fef08a; color: #ca8a04; }
.glossary-item[data-letter="V"] .term-category { background: #ccfbf1; color: #0d9488; }
.glossary-item[data-letter="Z"] .term-category { background: #e0e7ff; color: #4f46e5; }

/* Message aucun résultat */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 1.1rem;
}

/* Highlight pour la recherche */
.highlight {
  background: #fef08a;
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .alphabet-filter {
    gap: 0.35rem;
    padding: 0.75rem;
  }

  .filter-btn {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }

  .glossary-item {
    padding: 1.25rem;
  }

  .term-title {
    font-size: 1.1rem;
  }

  .term-definition {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .alphabet-filter {
    gap: 0.25rem;
  }

  .filter-btn {
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
}
