/* Styles pour le contenu markdown converti en HTML - Utilise les valeurs Tailwind */
.article-content h1 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 600; /* font-semibold */
    letter-spacing: -0.025em; /* tracking-tight */
    margin-bottom: 1rem; /* mb-4 */
    margin-top: 2rem; /* mt-8 */
    color: #78350f; /* text-amber-900 */
}

.article-content h2 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    letter-spacing: -0.025em; /* tracking-tight */
    margin-bottom: 0.75rem; /* mb-3 */
    margin-top: 1.5rem; /* mt-6 */
    color: #78350f; /* text-amber-900 */
}

.article-content h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    margin-top: 1rem; /* mt-4 */
    color: #92400e; /* text-amber-800 */
}

.article-content h4 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    margin-top: 1rem; /* mt-4 */
}

.article-content h5 {
    font-size: 1rem; /* text-base */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    margin-top: 0.75rem; /* mt-3 */
}

.article-content h6 {
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    margin-top: 0.75rem; /* mt-3 */
}

.article-content p {
    margin-bottom: 1rem; /* mb-4 */
    line-height: 1.75; /* leading-relaxed */
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem; /* mb-4 */
    margin-left: 1.5rem; /* ml-6 */
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem; /* mb-2 */
}

.article-content a {
    color: #d97706; /* text-amber-600 */
    text-decoration: underline;
}

.article-content a:hover {
    color: #f59e0b; /* hover:text-amber-500 */
}

.article-content strong {
    font-weight: 700; /* font-bold */
}

.article-content em {
    font-style: italic;
}

.article-content code {
    background-color: #fef3c7; /* bg-amber-100 */
    padding: 0.125rem 0.25rem; /* px-1 py-0.5 */
    border-radius: 0.25rem; /* rounded */
    font-size: 0.875rem; /* text-sm */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace; /* font-mono */
}

.article-content pre {
    background-color: #fef3c7; /* bg-amber-100 */
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-lg */
    margin-bottom: 1rem; /* mb-4 */
    overflow-x: auto;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
}

.article-content blockquote {
    border-left: 4px solid #f59e0b; /* border-l-4 border-amber-500 */
    padding-left: 1rem; /* pl-4 */
    font-style: italic;
    margin: 1rem 0; /* my-4 */
    color: #334155; /* text-slate-700 */
    background-color: #fef3c7; /* bg-amber-100 */
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-lg */
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem; /* rounded-xl */
    margin: 1.5rem 0; /* my-6 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.article-content hr {
    border-top: 2px solid #fbbf24; /* border-t-2 border-amber-400 */
    margin: 2rem 0; /* my-8 */
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem; /* mb-4 */
}

.article-content th,
.article-content td {
    border: 1px solid #fbbf24; /* border border-amber-400 */
    padding: 0.75rem 1rem; /* px-4 py-3 */
}

.article-content th {
    background-color: #fef3c7; /* bg-amber-100 */
    font-weight: 600; /* font-semibold */
}

/* Sommaire et partage social */
.article-summary {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #d97706;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.article-summary .summary-title {
    color: #92400e;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
    font-style: italic;
}

.article-summary-nav a {
    color: #78350f;
    text-decoration: none;
    transition: all 0.2s;
}

.article-summary-nav a:hover {
    color: #d97706;
}

.article-social-share {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #fde68a;
}

.article-social-share h3 {
    color: #92400e;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
    font-style: italic;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #d97706;
    border-radius: 0.75rem;
    color: #92400e;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
}

.social-share-btn:hover {
    background-color: #d97706;
    color: white;
    transform: scale(1.05);
}






/* ===== CSS généré dynamiquement ===== */

/* CSS Variants for Multi-Site Customization - Variant d */
.variant-d .reader-opinions { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid #e7e5e4; }
.variant-d .opinion-box { background: white; border-radius: 0.75rem; padding: 1.5rem; border: 2px solid #f5f5f4; }
.variant-d .vote-action { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; }

.vote-count { font-weight: 600; }
.vote-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vote-button:not(:disabled):active {
  transform: scale(0.95);
}

.vote-button.voted {
  opacity: 1 !important;
  font-weight: bold !important;
  border-width: 2px !important;
}

.comment-content { line-height: 1.6; color: #404040; }
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.5rem; }
.form-textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.5rem; resize: none; }
.submit-button { padding: 0.75rem 2rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; }

/* Styles pour les boutons de partage social */
.social-share-btn {
  border-color: currentColor;
  color: #292524;
}

.social-share-btn:hover {
  background-color: #fafaf9;
}

/* Variante avec icônes colorées (optionnel - commenté par défaut) */
/*
.social-share-btn[data-network="fb"] { color: #1877F2; }
.social-share-btn[data-network="fb"]:hover { background-color: #1877F2; color: white; }

.social-share-btn[data-network="x"] { color: #000000; }
.social-share-btn[data-network="x"]:hover { background-color: #000000; color: white; }

.social-share-btn[data-network="linkedin"] { color: #0A66C2; }
.social-share-btn[data-network="linkedin"]:hover { background-color: #0A66C2; color: white; }

.social-share-btn[data-network="pinterest"] { color: #E60023; }
.social-share-btn[data-network="pinterest"]:hover { background-color: #E60023; color: white; }

.social-share-btn[data-network="w"] { color: #25D366; }
.social-share-btn[data-network="w"]:hover { background-color: #25D366; color: white; }
*/

/* Styles pour les articles précédents */
.previous-articles {
  scroll-margin-top: 2rem;
}

.previous-article-card {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.previous-article-card:hover {
  transform: translateY(-4px);
}

/* Line clamp pour limiter les lignes de texte */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

