/* 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: #7f1d1d; /* text-red-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: #7f1d1d; /* text-red-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: #991b1b; /* text-red-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: #7f1d1d; /* text-red-900 */
    text-decoration: underline;
}

.article-content a:hover {
    color: #d97706; /* hover:text-amber-600 */
}

.article-content strong {
    font-weight: 700; /* font-bold */
}

.article-content em {
    font-style: italic;
}

.article-content code {
    background-color: #f5f5f4; /* bg-stone-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: #f5f5f4; /* bg-stone-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 #d97706; /* border-l-4 border-amber-600 */
    padding-left: 1rem; /* pl-4 */
    font-style: italic;
    margin: 1rem 0; /* my-4 */
    color: #44403c; /* text-stone-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 #d6d3d1; /* border-t-2 border-stone-300 */
    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 #d6d3d1; /* border border-stone-300 */
    padding: 0.75rem 1rem; /* px-4 py-3 */
}

.article-content th {
    background-color: #f5f5f4; /* bg-stone-100 */
    font-weight: 600; /* font-semibold */
}

/* Styles pour le sommaire d'article */
.article-summary {
    background-color: #fef2f2;
    border: 2px solid #7f1d1d;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    scroll-margin-top: 2rem;
}

.article-summary .summary-title {
    color: #7f1d1d;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
}

.article-summary-nav a {
    color: #44403c;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-summary-nav a:hover {
    color: #7f1d1d;
}

/* Styles pour le partage social */
.article-social-share {
    scroll-margin-top: 2rem;
}

.social-share-btn {
    border-color: currentColor;
    color: #292524; /* text-stone-800 par défaut */
}

.social-share-btn:hover {
    background-color: #fafaf9; /* bg-stone-50 */
    transform: scale(1.05);
}

/* Pour activer les icônes colorées, décommenter ci-dessous */
/*
.social-share-btn[data-network="fb"] { color: #1877F2; }
.social-share-btn[data-network="fb"]:hover { background-color: #1877F2; color: white; border-color: #1877F2; }

.social-share-btn[data-network="x"] { color: #000000; }
.social-share-btn[data-network="x"]:hover { background-color: #000000; color: white; border-color: #000000; }

.social-share-btn[data-network="linkedin"] { color: #0A66C2; }
.social-share-btn[data-network="linkedin"]:hover { background-color: #0A66C2; color: white; border-color: #0A66C2; }

.social-share-btn[data-network="pinterest"] { color: #E60023; }
.social-share-btn[data-network="pinterest"]:hover { background-color: #E60023; color: white; border-color: #E60023; }

.social-share-btn[data-network="w"] { color: #25D366; }
.social-share-btn[data-network="w"]:hover { background-color: #25D366; color: white; border-color: #25D366; }
*/

/* Section auteur - Thème Décoration/Design */
.article-author-section {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef7ed 0%, #fff7ed 100%);
    border-radius: 0.75rem;
    border: 2px solid #7f1d1d;
}

.article-author-section .author-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(127, 29, 29, 0.2);
    margin-bottom: 1rem;
}

.article-author-section .author-avatar svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.article-author-section .author-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #7f1d1d;
    margin-bottom: 0.5rem;
}

.article-author-section .author-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 0.25rem;
}

.article-author-section .author-bio {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.article-author-section .author-stats {
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author-section .author-all-articles-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #7f1d1d, #991b1b);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(127, 29, 29, 0.2);
}

.article-author-section .author-all-articles-btn:hover {
    background: linear-gradient(to right, #991b1b, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(127, 29, 29, 0.2);
}

.article-author-section .author-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Responsive */
@media (min-width: 768px) {
    .article-author-section .author-avatar {
        margin-bottom: 0;
    }

    .article-author-section .author-content {
        flex: 1;
    }

    .article-author-section .author-layout {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .article-author-section .author-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .article-author-section .author-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}





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

/* CSS Variants for Multi-Site Customization - Variant a */
.variant-a .comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid #e7e5e4; }
.variant-a .comment-card { background: white; border-radius: 0.75rem; padding: 1.5rem; border: 2px solid #f5f5f4; }
.variant-a .vote-btn { 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;
}

