/* ===== Styles pour les leçons de théorie musicale ===== */

.lessons-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2b2b33;
}

.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Carte de leçon */
.lesson-card {
  background: #ffffff;
  border: 1px solid #e3e3ec;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20, 20, 40, 0.06);
  padding: 1.5rem 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lesson-card:hover {
  box-shadow: 0 6px 18px rgba(20, 20, 40, 0.1);
  transform: translateY(-2px);
}

/* En-tête de la leçon */
.lesson-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f7;
  padding-bottom: 0.5rem;
}

.lesson-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f1f3d;
  margin: 0;
}

/* Badge de niveau */
.lesson-level {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.lesson-level[data-level="débutant"] {
  background: #e4f7ec;
  color: #1c8a4b;
}

.lesson-level[data-level="intermédiaire"] {
  background: #fff2e0;
  color: #b96c14;
}

.lesson-level[data-level="avancé"] {
  background: #fde4e4;
  color: #c0392b;
}

/* Contenu HTML de la leçon */
.lesson-content {
  font-size: 1rem;
  line-height: 1.65;
  color: #33333d;
}

.lesson-content p {
  margin: 0 0 0.9rem 0;
}

.lesson-content p:last-child {
  margin-bottom: 0;
}

.lesson-content strong {
  color: #1f1f3d;
  font-weight: 700;
}

.lesson-content em {
  color: #55557a;
  font-style: italic;
}

/* Points clés */
.lesson-key-points {
  margin-top: 1.1rem;
  background: #f7f7fc;
  border-left: 4px solid #6c63ff;
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
}

.lesson-key-points-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c63ff;
  margin: 0 0 0.5rem 0;
}

.lesson-key-points ul {
  margin: 0;
  padding-left: 1.2rem;
}

.lesson-key-points li {
  margin-bottom: 0.35rem;
  line-height: 1.45;
  color: #3a3a4a;
}

.lesson-key-points li:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .lessons-container {
    padding: 1rem;
  }

  .lesson-card {
    padding: 1.1rem 1.25rem;
  }

  .lesson-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .lesson-title {
    font-size: 1.15rem;
  }
}
