/* ============================================================
   BLOG ARTICLE — Composants visuels riches
   Utilisé exclusivement dans blog_article.php via .blog-content
   ============================================================ */

/* ── Base prose overrides ── */
.blog-content {
    color: #374151;
    font-size: 1.0625rem;
    line-height: 1.8;
}
.blog-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}
.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 650;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.blog-content p { margin-bottom: 1.25rem; }
.blog-content ul, .blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.blog-content li { margin-bottom: 0.4rem; }
.blog-content strong { color: #111827; }
.blog-content a { color: #0066CC; text-decoration: underline; }
.blog-content a:hover { color: #0052A3; }
.blog-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

/* ── Callout boxes ── */
.blog-callout {
    display: flex;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
    border-radius: 0.75rem;
    margin: 1.75rem 0;
    border-left: 4px solid;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.blog-callout-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1.5;
}
.blog-callout-body strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-callout.tip {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
}
.blog-callout.tip .blog-callout-body strong { color: #15803d; }

.blog-callout.warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #78350f;
}
.blog-callout.warning .blog-callout-body strong { color: #b45309; }

.blog-callout.danger {
    background: #fef2f2;
    border-color: #ef4444;
    color: #7f1d1d;
}
.blog-callout.danger .blog-callout-body strong { color: #b91c1c; }

.blog-callout.info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e3a5f;
}
.blog-callout.info .blog-callout-body strong { color: #1d4ed8; }

/* ── Stat boxes (chiffres clés) ── */
.blog-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}
.blog-stat-card {
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 0.875rem;
    padding: 1.25rem 1rem;
    text-align: center;
}
.blog-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0066CC;
    line-height: 1.1;
    display: block;
}
.blog-stat-label {
    font-size: 0.8rem;
    color: #4b5563;
    margin-top: 0.35rem;
    line-height: 1.4;
}
.blog-stat-card.danger .blog-stat-number { color: #dc2626; }
.blog-stat-card.danger { background: #fff5f5; border-color: #fecaca; }
.blog-stat-card.success .blog-stat-number { color: #16a34a; }
.blog-stat-card.success { background: #f0fdf4; border-color: #bbf7d0; }
.blog-stat-card.warning .blog-stat-number { color: #d97706; }
.blog-stat-card.warning { background: #fffbeb; border-color: #fde68a; }

/* ── Tableau stylé ── */
.blog-table-wrap {
    overflow-x: auto;
    margin: 1.75rem 0;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.blog-table thead tr {
    background: #0066CC;
    color: #fff;
}
.blog-table thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.blog-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.blog-table tbody tr:last-child { border-bottom: none; }
.blog-table tbody tr:nth-child(even) { background: #f9fafb; }
.blog-table tbody tr:hover { background: #eff6ff; }
.blog-table td {
    padding: 0.75rem 1rem;
    color: #374151;
    vertical-align: top;
}
.blog-table td.td-ok { color: #16a34a; font-weight: 600; }
.blog-table td.td-ko { color: #dc2626; font-weight: 600; }
.blog-table td.td-badge {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge-green {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    padding: 0.2em 0.65em;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-red {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.2em 0.65em;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-blue {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.2em 0.65em;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-gray {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.2em 0.65em;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ── Comparaison 2 colonnes ── */
.blog-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.75rem 0;
}
@media (max-width: 600px) {
    .blog-compare { grid-template-columns: 1fr; }
}
.blog-compare-card {
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid;
}
.blog-compare-card .compare-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.blog-compare-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}
.blog-compare-card.good {
    background: #f0fdf4;
    border-color: #86efac;
}
.blog-compare-card.good .compare-title { color: #15803d; }
.blog-compare-card.bad {
    background: #fef2f2;
    border-color: #fca5a5;
}
.blog-compare-card.bad .compare-title { color: #b91c1c; }
.blog-compare-card.neutral {
    background: #f8faff;
    border-color: #bfdbfe;
}
.blog-compare-card.neutral .compare-title { color: #1d4ed8; }

/* ── Checklist ── */
.blog-checklist {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}
.blog-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.45rem 0;
    font-size: 0.9375rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
.blog-checklist li:last-child { border-bottom: none; }
.blog-checklist li::before {
    content: '✓';
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 0.1rem;
}
.blog-checklist li strong { color: #111827; }

/* ── Timeline étapes ── */
.blog-timeline {
    position: relative;
    padding-left: 2.25rem;
    margin: 1.75rem 0;
    border-left: 2px solid #dbeafe;
}
.blog-timeline-item {
    position: relative;
    padding: 0 0 1.75rem 1.25rem;
}
.blog-timeline-item:last-child { padding-bottom: 0; }
.blog-timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    background: #0066CC;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #0066CC;
}
.blog-timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0066CC;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.blog-timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}
.blog-timeline-body {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.55;
}

/* ── Erreurs numérotées (7 erreurs) ── */
.blog-errors {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin: 1.75rem 0;
}
.blog-error-item {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    align-items: flex-start;
}
.blog-error-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}
.blog-error-content strong {
    display: block;
    color: #b91c1c;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}
.blog-error-content p {
    font-size: 0.9rem;
    color: #374151;
    margin: 0;
    line-height: 1.55;
}

/* ── Recap / Boîte conclusion ── */
.blog-recap {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 0.875rem;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}
.blog-recap-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0066CC;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-recap ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-recap ul li {
    padding: 0.3rem 0;
    font-size: 0.9375rem;
    color: #1f2937;
    display: flex;
    gap: 0.5rem;
}
.blog-recap ul li::before {
    content: '→';
    color: #0066CC;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── FAQ accordion look ── */
.blog-faq {
    margin: 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.blog-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}
.blog-faq-q {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    padding: 0.9rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.blog-faq-q::before {
    content: 'Q';
    background: #0066CC;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.blog-faq-a {
    font-size: 0.9rem;
    color: #374151;
    padding: 0.9rem 1.25rem;
    line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .blog-stats { grid-template-columns: 1fr 1fr; }
    .blog-stat-number { font-size: 1.6rem; }
    .blog-table thead th, .blog-table td { padding: 0.6rem 0.75rem; font-size: 0.875rem; }
    .blog-callout { flex-direction: column; gap: 0.4rem; }
}
