/* Styles modernes pour le contenu généré par markdown */

.markdown-content {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #334155; /* text-slate-700 */
  line-height: 1.8;
  font-size: 1.125rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #1e293b; /* text-slate-800 */
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.markdown-content h1 { 
  font-size: 3rem; 
  background: linear-gradient(135deg, #059669, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.markdown-content h2 { 
  font-size: 2.25rem;
  color: #059669; /* emerald-600 */
}
.markdown-content h3 { 
  font-size: 1.75rem;
  color: #0d9488; /* teal-600 */
}
.markdown-content h4 { 
  font-size: 1.375rem;
  color: #d97706; /* amber-600 */
}

.markdown-content p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.markdown-content strong {
  color: #059669;
  font-weight: 600;
}

.markdown-content em {
  color: #0d9488;
  font-style: italic;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 0;
  margin-bottom: 2em;
  padding-left: 0;
}

.markdown-content ul li {
  position: relative;
  list-style: none;
  margin-bottom: 0.75em;
  padding-left: 2em;
  line-height: 1.7;
}

.markdown-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #059669, #f59e0b);
  border-radius: 50%;
}

.markdown-content ol li {
  list-style: none;
  counter-increment: item;
  margin-bottom: 0.75em;
  padding-left: 2em;
  position: relative;
  line-height: 1.7;
}

.markdown-content ol {
  counter-reset: item;
}

.markdown-content ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, #059669, #f59e0b);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.markdown-content blockquote {
  border-left: 4px solid #059669;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  color: #065f46;
  padding: 1.5em 2em;
  margin: 2em 0;
  border-radius: 1rem;
  font-style: italic;
  font-size: 1.1em;
  position: relative;
  box-shadow: 0 4px 24px 0 rgba(5, 150, 105, 0.1);
}

.markdown-content blockquote::before {
  content: '"';
  position: absolute;
  top: -0.5em;
  left: 0.5em;
  font-size: 4em;
  color: #059669;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.markdown-content img {
  max-width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(5, 150, 105, 0.15);
  margin: 2.5em 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.markdown-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 48px 0 rgba(5, 150, 105, 0.2);
}

.markdown-content a {
  color: #059669;
  text-decoration: none;
  font-weight: 500;
  background: linear-gradient(transparent 60%, rgba(5, 150, 105, 0.2) 60%);
  transition: all 0.3s ease;
  padding: 0 0.2em;
  border-radius: 0.3em;
}

.markdown-content a:hover {
  color: #065f46;
  background: linear-gradient(transparent 60%, rgba(5, 150, 105, 0.3) 60%);
  transform: translateY(-1px);
}

.markdown-content code {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #be123c;
  padding: 0.3em 0.6em;
  border-radius: 0.5em;
  font-size: 0.9em;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.markdown-content pre {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #374151;
  padding: 1.5em;
  border-radius: 1rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.05);
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .markdown-content {
    font-size: 1rem;
  }
  
  .markdown-content h1 { font-size: 2.25rem; }
  .markdown-content h2 { font-size: 1.875rem; }
  .markdown-content h3 { font-size: 1.5rem; }
  .markdown-content h4 { font-size: 1.25rem; }
  
  .markdown-content ul li,
  .markdown-content ol li {
    padding-left: 1.5em;
  }
  
  .markdown-content blockquote {
    padding: 1em 1.5em;
    margin: 1.5em 0;
  }
}
