/* ============================================
   ARTICLE CONTENT STYLING
   Styles pour le contenu HTML des articles blog
   ============================================ */

.article-content,
[itemprop="articleBody"] {
    color: #374151;
    line-height: 1.8;
    font-size: 16px;
}

/* Headings */
.article-content h2,
[itemprop="articleBody"] h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-top: 32px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
}

.article-content h3,
[itemprop="articleBody"] h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-top: 24px;
    margin-bottom: 16px;
}

.article-content h4,
[itemprop="articleBody"] h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-top: 16px;
    margin-bottom: 12px;
}

/* Paragraphs */
.article-content p,
[itemprop="articleBody"] p {
    margin-bottom: 16px;
    text-align: justify;
}

.article-content p:last-child,
[itemprop="articleBody"] p:last-child {
    margin-bottom: 0;
}

/* Lists */
.article-content ul,
.article-content ol,
[itemprop="articleBody"] ul,
[itemprop="articleBody"] ol {
    margin-bottom: 20px;
    padding-left: 32px;
}

.article-content li,
[itemprop="articleBody"] li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-content ul li::marker,
[itemprop="articleBody"] ul li::marker {
    color: #10b981;
    font-weight: 600;
}

.article-content ol li::marker,
[itemprop="articleBody"] ol li::marker {
    color: #059669;
    font-weight: 600;
}

/* Code blocks */
.article-content pre,
[itemprop="articleBody"] pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
    border-left: 4px solid #10b981;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-content code,
[itemprop="articleBody"] code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.article-content pre code,
[itemprop="articleBody"] pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content p code,
[itemprop="articleBody"] p code {
    background: #f3f4f6;
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
}

/* Tables */
.article-content table,
[itemprop="articleBody"] table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-content table thead,
[itemprop="articleBody"] table thead {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.article-content table th,
[itemprop="articleBody"] table th {
    padding: 14px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.article-content table td,
[itemprop="articleBody"] table td {
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}

.article-content table tbody tr:hover,
[itemprop="articleBody"] table tbody tr:hover {
    background: #f9fafb;
}

.article-content table tbody tr:nth-child(even),
[itemprop="articleBody"] table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Blockquotes */
.article-content blockquote,
[itemprop="articleBody"] blockquote {
    border-left: 4px solid #10b981;
    padding-left: 20px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    padding-right: 20px;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p,
[itemprop="articleBody"] blockquote p {
    color: #1f2937;
    font-style: italic;
    margin-bottom: 0;
}

/* Images */
.article-content img,
[itemprop="articleBody"] img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Links */
.article-content a,
[itemprop="articleBody"] a {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover,
[itemprop="articleBody"] a:hover {
    color: #10b981;
    border-bottom-color: #10b981;
}

/* Special boxes */
.article-intro {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-left: 4px solid #10b981;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.article-intro p {
    color: #059669;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
}

.article-tip {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    border-left: 4px solid #eab308;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.article-tip p {
    color: #78350f;
    margin: 0;
    font-weight: 500;
}

.article-warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #dc2626;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.article-warning p {
    color: #7f1d1d;
    margin: 0;
    font-weight: 500;
}

.article-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #0284c7;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.article-info p {
    color: #0c2340;
    margin: 0;
    font-weight: 500;
}

/* FAQ Styling */
.faq-container {
    margin: 40px 0;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.faq-question {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 16px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-question {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
}

.faq-question::after {
    content: '▼';
    font-size: 12px;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(-180deg);
}

.faq-answer {
    background: #fafafa;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 16px;
    max-height: 1000px;
}

.faq-answer p {
    color: #374151;
    margin: 0;
    line-height: 1.8;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .article-content h2,
    [itemprop="articleBody"] h2 {
        font-size: 24px;
        margin-top: 24px;
    }

    .article-content h3,
    [itemprop="articleBody"] h3 {
        font-size: 18px;
    }

    .article-content pre,
    [itemprop="articleBody"] pre {
        padding: 12px;
        font-size: 13px;
    }

    .article-content table,
    [itemprop="articleBody"] table {
        font-size: 14px;
    }

    .article-content table th,
    .article-content table td,
    [itemprop="articleBody"] table th,
    [itemprop="articleBody"] table td {
        padding: 10px;
    }
}
