/* 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: #0f172a; /* text-slate-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: #0f172a; /* text-slate-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: #1e293b; /* text-slate-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.625; /* 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: #2563eb; /* text-blue-600 */
    text-decoration: underline;
}

.article-content a:hover {
    color: #1d4ed8; /* hover:text-blue-700 */
}

.article-content strong {
    font-weight: 700; /* font-bold */
}

.article-content em {
    font-style: italic;
}

.article-content code {
    background-color: #f1f5f9; /* bg-slate-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: #f1f5f9; /* bg-slate-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 #2563eb; /* border-l-4 border-blue-600 */
    padding-left: 1rem; /* pl-4 */
    font-style: italic;
    margin: 1rem 0; /* my-4 */
    color: #334155; /* text-slate-700 */
    background-color: #f8fafc; /* bg-slate-50 */
    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 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-content hr {
    border-top: 2px solid #cbd5e1; /* border-t-2 border-slate-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 #cbd5e1; /* border border-slate-300 */
    padding: 0.75rem 1rem; /* px-4 py-3 */
}

.article-content th {
    background-color: #f1f5f9; /* bg-slate-100 */
    font-weight: 600; /* font-semibold */
}

/* Styles pour le sommaire et partage social */
.article-summary {
    background-color: #eff6ff;
    border: 2px solid #2563eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.article-summary .summary-title {
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
}

.article-summary-nav a {
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-summary-nav a:hover {
    color: #2563eb;
}

.article-social-share {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.article-social-share h3 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #2563eb;
    border-radius: 0.5rem;
    color: #1e40af;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
}

.social-share-btn:hover {
    background-color: #2563eb;
    color: white;
    transform: scale(1.05);
}

/* Section auteur - Thème SEO/Backlinks */
.article-author-section {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 2px solid #334155;
}

.article-author-section .author-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(51, 65, 85, 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: #0f172a;
    margin-bottom: 0.5rem;
}

.article-author-section .author-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.article-author-section .author-bio {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.article-author-section .author-stats {
    color: #64748b;
    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, #334155, #475569);
    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(51, 65, 85, 0.2);
}

.article-author-section .author-all-articles-btn:hover {
    background: linear-gradient(to right, #475569, #64748b);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(51, 65, 85, 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 e */
.variant-e .community-thoughts { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid #e7e5e4; }
.variant-e .thought-card { background: white; border-radius: 0.75rem; padding: 1.5rem; border: 2px solid #f5f5f4; }
.variant-e .approval-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;
}

