/**
 * Styles pour la page de documentation
 * Extrait de docs.html
 */

/* Assurer que le scroll fonctionne */
html,
body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.docs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-y: auto;
}

.docs-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--audiar-green);
}

.docs-header h1 {
  color: var(--audiar-green);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.docs-header .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.docs-section {
  margin-bottom: 50px;
}

.docs-section h2 {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.docs-section h3 {
  color: var(--audiar-green);
  font-size: 1.4rem;
  margin: 30px 0 15px 0;
}

.docs-section p {
  margin-bottom: 15px;
  color: var(--text-primary);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.glossary-item {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 8px;
  border-left: none !important;
}

.glossary-item h4 {
  color: var(--audiar-green);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.glossary-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--audiar-green);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 30px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--audiar-green-dark);
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.features-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--audiar-green);
  font-weight: bold;
}

/* Scrollbar personnalisée */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: var(--audiar-green);
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--audiar-green-dark);
}

/* Support Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--audiar-green) var(--bg-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
  .docs-container {
    padding: 20px 15px;
  }

  .docs-header h1 {
    font-size: 2rem;
  }

  .glossary-grid {
    grid-template-columns: 1fr;
  }
}
