/* =====================================================
   ABC BAT - Styles articles de blog
   ===================================================== */

.blog-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary, #1a4971);
    font-weight: 600;
    margin-bottom: 32px;
    text-decoration: none;
    font-size: 14px;
}

.article-back-link:hover {
    color: var(--primary-dark, #0f3555);
}

.article-header {
    margin-bottom: 32px;
}

.article-category {
    display: inline-block;
    background: rgba(26, 73, 113, 0.08);
    color: var(--primary, #1a4971);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.blog-article h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark, #1a1a2e);
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--grey, #6b7280);
    font-size: 14px;
    margin-bottom: 24px;
}

.article-meta i {
    margin-right: 6px;
    color: var(--primary, #1a4971);
}

.article-hero-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 32px;
}

/* --- Sommaire (TOC) --- */
.article-toc {
    background: var(--grey-light, #f7f8fa);
    padding: 24px 28px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary, #1a4971);
}

.article-toc h2 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark, #1a1a2e);
    font-family: 'DM Sans', sans-serif;
}

.article-toc ol {
    padding-left: 20px;
    list-style: decimal;
}

.article-toc li {
    margin-bottom: 8px;
}

.article-toc a {
    color: var(--primary, #1a4971);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
}

.article-toc a:hover {
    text-decoration: underline;
}

/* --- Contenu de l'article --- */
.article-content {
    color: var(--grey-dark, #4a4a5a);
    font-size: 17px;
    line-height: 1.8;
}

.article-content .article-lead {
    font-size: 19px;
    color: var(--dark, #1a1a2e);
    margin-bottom: 32px;
    font-weight: 500;
}

.article-content h2 {
    font-size: 28px;
    margin: 48px 0 18px;
    color: var(--dark, #1a1a2e);
    scroll-margin-top: 100px;
}

.article-content h3 {
    font-size: 21px;
    margin: 32px 0 14px;
    color: var(--dark, #1a1a2e);
}

.article-content p {
    margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
    margin: 18px 0 24px 24px;
    padding-left: 8px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: var(--primary, #1a4971);
    text-decoration: underline;
    font-weight: 500;
}

.article-content strong {
    color: var(--dark, #1a1a2e);
}

.article-content blockquote {
    border-left: 4px solid var(--secondary, #f5a623);
    padding: 16px 24px;
    background: rgba(245, 166, 35, 0.06);
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: var(--grey-dark, #4a4a5a);
    font-style: italic;
}

/* --- Tableaux prix --- */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
    overflow-x: auto;
    display: block;
}

.article-content table thead {
    background: var(--primary, #1a4971);
    color: white;
}

.article-content table th,
.article-content table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-content table tbody tr:nth-child(even) {
    background: var(--grey-light, #f7f8fa);
}

/* --- Encadrés conseils / attention --- */
.article-tip {
    background: rgba(26, 73, 113, 0.05);
    border-left: 4px solid var(--primary, #1a4971);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
}

.article-tip strong {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--primary, #1a4971);
    font-size: 16px;
}

.article-warning {
    background: rgba(245, 166, 35, 0.08);
    border-left: 4px solid var(--secondary, #f5a623);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
}

.article-warning strong {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #c77d0a;
    font-size: 16px;
}

/* --- FAQ details --- */
.article-faq details {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.article-faq details[open] {
    box-shadow: 0 4px 16px rgba(26, 73, 113, 0.08);
}

.article-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    color: var(--dark, #1a1a2e);
    list-style: none;
    position: relative;
    padding-right: 32px;
}

.article-faq summary::-webkit-details-marker {
    display: none;
}

.article-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary, #1a4971);
    transition: transform 0.2s;
}

.article-faq details[open] summary::after {
    content: '−';
}

.article-faq details > p,
.article-faq details > ul {
    margin-top: 14px;
    color: var(--grey-dark, #4a4a5a);
}

/* --- CTA fin d'article --- */
.article-cta {
    margin-top: 60px;
    padding: 40px 32px;
    background: linear-gradient(135deg, var(--primary, #1a4971) 0%, var(--primary-dark, #0f3555) 100%);
    border-radius: 20px;
    color: white;
    text-align: center;
}

.article-cta h3 {
    color: white;
    font-size: 26px;
    margin-bottom: 12px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.article-cta .btn {
    background: white;
    color: var(--primary, #1a4971);
}

.article-cta .btn:hover {
    background: var(--secondary, #f5a623);
    color: white;
}

/* --- Articles liés --- */
.related-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    border-top: 1px solid #e5e7eb;
}

.related-posts h2 {
    font-size: 28px;
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.25s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 73, 113, 0.1);
    border-color: var(--primary, #1a4971);
}

.related-card a {
    color: var(--dark, #1a1a2e);
    text-decoration: none;
}

.related-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark, #1a1a2e);
}

.related-card span {
    font-size: 13px;
    color: var(--primary, #1a4971);
    font-weight: 600;
}

@media (max-width: 768px) {
    .blog-article { padding: 100px 16px 40px; }
    .blog-article h1 { font-size: 30px; }
    .article-content { font-size: 16px; }
    .article-content h2 { font-size: 24px; }
    .article-hero-img { height: 240px; }
}
