/* ===== STYLE ARTICLE MEDIUM ===== */
.max-w-3xl {
  max-width: 110ch;
}

.gradient-bg {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.sommaire-flottant {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 8rem);
  overflow-y: scroll;          /* autorise le scroll */
  scrollbar-width: none;       /* Firefox : barre invisible */
}
/* Chrome / Safari / Edge */
.sommaire-flottant::-webkit-scrollbar { width: 0 !important; }

.sommaire-flottant h3 {
  font-size: 1.125rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.75rem;
}

.sommaire-flottant a {
  transition: all 0.2s ease;
  border-radius: 6px;
  font-weight: 500;
}

.sommaire-flottant a:hover {
  transform: translateX(4px);
}

/* Typographie article */
.prose-article {
  line-height: 1.7;
  color: #374151;
  font-size: 1.125rem;
}

.prose-article p {
  margin-bottom: 1.5rem;
}

.article-h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.article-ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.article-ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.article-ul li:before {
  content: "•";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .sommaire-flottant {
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .prose-article {
    font-size: 1rem;
  }
  
  .article-h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }
  
  .sommaire-flottant {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}