/* Guide for Family – modern family theme (emerald / stone) */
.theme-family .article-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #047857;
    font-family: "Nunito", system-ui, sans-serif;
}

.theme-family .article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: #059669;
}

.theme-family .article-content h3,
.theme-family .article-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    color: #047857;
}

.theme-family .article-content h4 {
    font-size: 1.25rem;
}

.theme-family .article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #44403c;
}

.theme-family .article-content ul,
.theme-family .article-content ol {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.theme-family .article-content ul {
    list-style-type: disc;
}
.theme-family .article-content ol {
    list-style-type: decimal;
}
.theme-family .article-content li {
    margin-bottom: 0.5rem;
    color: #44403c;
}

.theme-family .article-content a {
    color: #059669;
    text-decoration: underline;
    font-weight: 600;
}
.theme-family .article-content a:hover {
    color: #047857;
}

.theme-family .article-content strong {
    font-weight: 800;
    color: #1c1917;
}
.theme-family .article-content em {
    font-style: italic;
}

.theme-family .article-content code {
    background-color: #ecfdf5;
    padding: 0.2rem 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: ui-monospace, monospace;
    color: #047857;
}

.theme-family .article-content pre {
    background-color: #f5f5f4;
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    border: 1px solid #e7e5e4;
}
.theme-family .article-content pre code {
    background-color: transparent;
    padding: 0;
    color: #047857;
}

.theme-family .article-content blockquote {
    border-left: 4px solid #10b981;
    padding: 0.75rem 0 0.75rem 1.25rem;
    font-style: italic;
    margin: 1.25rem 0;
    color: #57534e;
    background: linear-gradient(to right, #ecfdf5 0%, #f0fdf4 100%);
    border-radius: 0 0.5rem 0.5rem 0;
}

.theme-family .article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.25rem 0;
    border-radius: 0.75rem;
}
.theme-family .article-content hr {
    border-top: 2px solid #e7e5e4;
    margin: 2rem 0;
}

.theme-family .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
}
.theme-family .article-content th,
.theme-family .article-content td {
    border: 1px solid #e7e5e4;
    padding: 0.75rem 1rem;
}
.theme-family .article-content th {
    background-color: #ecfdf5;
    font-weight: 700;
    color: #047857;
}

/* Summary & social share */
.theme-family .article-summary {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
}
.theme-family .article-summary .summary-title {
    color: #047857;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    margin-top: 0;
}
.theme-family .article-summary-nav a {
    color: #57534e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.theme-family .article-summary-nav a:hover {
    color: #047857;
}

.theme-family .article-social-share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e7e5e4;
}
.theme-family .article-social-share h3 {
    color: #047857;
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1rem;
    margin-top: 0;
}
.theme-family .social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid #10b981;
    border-radius: 0.75rem;
    color: #047857;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 700;
}
.theme-family .social-share-btn:hover {
    background-color: #10b981;
    color: white;
    transform: scale(1.03);
}

/* Author section – Guide for Family */
.theme-family .article-author-section {
    margin-top: 3rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    border-radius: 1rem;
    border: 2px solid #059669;
    box-shadow: 0 4px 14px -4px rgba(5, 150, 105, 0.2);
}
.theme-family .article-author-section .author-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.3);
    margin-bottom: 1rem;
}
.theme-family .article-author-section .author-avatar svg {
    width: 2rem;
    height: 2rem;
    color: white;
}
.theme-family .article-author-section .author-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #047857;
    margin-bottom: 0.5rem;
}
.theme-family .article-author-section .author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.25rem;
}
.theme-family .article-author-section .author-bio {
    color: #44403c;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.theme-family .article-author-section .author-stats {
    color: #57534e;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.theme-family .article-author-section .author-all-articles-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(to right, #047857, #059669);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s;
    box-shadow: 0 4px 14px -4px rgba(5, 150, 105, 0.35);
}
.theme-family .article-author-section .author-all-articles-btn:hover {
    background: linear-gradient(to right, #059669, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.35);
}
.theme-family .article-author-section .author-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .theme-family .article-author-section .author-avatar {
        margin-bottom: 0;
    }
    .theme-family .article-author-section .author-content {
        flex: 1;
    }
    .theme-family .article-author-section .author-layout {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .theme-family .article-author-section .author-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}
@media (max-width: 767px) {
    .theme-family .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 c */
.variant-c .article-feedback { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid #e7e5e4; }
.variant-c .feedback-card { background: white; border-radius: 0.75rem; padding: 1.5rem; border: 2px solid #f5f5f4; }
.variant-c .reaction-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;
}

