/* Glossaire Styles */
@import 'base/_variables.css';

.psycol-glossaire-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.psycol-glossaire-header {
  text-align: center;
  margin-bottom: 3rem;
}

.psycol-glossaire-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.glossaire-description {
  font-size: 1.1rem;
  color: #666;
}

/* Barre de recherche */
.psycol-glossaire-filters {
  margin-bottom: 2rem;
}

.glossaire-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.glossaire-search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  outline: none;
  transition: border-color 0.3s ease;
}

.glossaire-search-input:focus {
  border-color: var(--color-purple);
}

.search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

/* Boutons de filtre */
.glossaire-filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  font-weight: 500;
}

.filter-btn:hover {
  background: #e8e8e8;
  border-color: var(--color-purple);
  color: var(--color-purple);
}

.filter-btn.active {
  background: var(--color-purple);
  color: white;
  border-color: var(--color-purple);
  box-shadow: 0 2px 8px rgba(177, 168, 211, 0.3);
  font-weight: 600;
}

/* Compteur de résultats */
.glossaire-results-count {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
  font-size: 0.95rem;
}

/* Contenu du glossaire */
.psycol-glossaire-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.glossaire-section {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.glossaire-section.hidden {
  display: none;
}

.glossaire-section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
  border-bottom: 3px solid var(--color-purple);
  padding-bottom: 0.5rem;
}

/* Liste des termes */
.glossaire-terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.glossaire-term {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.glossaire-term:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.glossaire-term.hidden {
  display: none;
}

.term-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-purple);
}

.term-definition {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.term-definition strong {
  color: #333;
  font-weight: 600;
}

.term-definition em {
  font-style: italic;
  color: #666;
}

/* Message aucun résultat */
.glossaire-no-results {
  text-align: center;
  padding: 3rem;
  color: #999;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .psycol-glossaire-header h1 {
    font-size: 2rem;
  }

  .glossaire-terms {
    grid-template-columns: 1fr;
  }

  .glossaire-filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    width: 100%;
  }
}
