/* ============================================================
   BLOG.CSS — Styles pour blog.php et article.php
   SIMAG Solutions Digital
   ============================================================ */

/* ── HERO BLOG ── */
.blog-hero {
    background: linear-gradient(135deg, #0a2463 0%, #1e4db7 60%, #3e92cc 100%);
    color: white;
    padding: 70px 0 60px;
    text-align: center;
}
.blog-hero-content { max-width: 700px; margin: 0 auto; }
.blog-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.blog-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}
.blog-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto;
}

/* ── LISTE ARTICLES ── */
.blog-list-section { padding: 60px 0; background: #f8f9fa; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.blog-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── CARDS ── */
.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(10,36,99,0.10);
}
.blog-card-featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.blog-card-featured .blog-card-body { padding: 32px; }

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.blog-card-category {
    background: #e8f0ff;
    color: #1e4db7;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.blog-card-time { font-size: 12px; color: #888; }
.blog-card-date { font-size: 12px; color: #aaa; }

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a2463;
    margin-bottom: 10px;
    line-height: 1.3;
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: #3e92cc; }

.blog-card-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.blog-tag {
    background: #f0f4ff;
    color: #3e92cc;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 500;
}

.blog-card-link {
    font-size: 13px;
    font-weight: 700;
    color: #fb8500;
    text-decoration: none;
    margin-top: auto;
    transition: color .2s;
}
.blog-card-link:hover { color: #e07000; }

/* ── CTA BLOG ── */
.blog-cta-section { padding: 50px 0; background: white; }
.blog-cta-box {
    background: linear-gradient(135deg, #0a2463, #3e92cc);
    border-radius: 12px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.blog-cta-box h2 { color: white; font-size: 1.5rem; margin-bottom: 8px; }
.blog-cta-box p  { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin: 0; }

/* ── ARTICLE HEADER ── */
.article-header {
    background: linear-gradient(135deg, #0a2463 0%, #1a3a7a 100%);
    color: white;
    padding: 50px 0 40px;
}
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 20px;
}
.article-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.article-breadcrumb a:hover { color: white; }

.article-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}
.article-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    max-width: 800px;
    line-height: 1.25;
    margin-bottom: 14px;
}
.article-header-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    line-height: 1.6;
    margin: 0;
}

/* ── ARTICLE LAYOUT ── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 60px;
    align-items: start;
}
@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { order: -1; }
    .blog-card-featured { flex-direction: column; }
}

/* ── ARTICLE CONTENT ── */
.article-content { max-width: 760px; }

.article-intro {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.75;
    font-weight: 400;
    border-left: 4px solid #3e92cc;
    padding-left: 20px;
    margin-bottom: 32px;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a2463;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8edf5;
}

.article-content p {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 24px;
    color: #444;
    font-size: 0.97rem;
    line-height: 1.75;
}

.article-content li { margin-bottom: 8px; }
.article-content strong { color: #0a2463; }

/* ── HIGHLIGHT BOX ── */
.article-highlight {
    display: flex;
    gap: 16px;
    background: #f0f6ff;
    border: 1px solid #c5d5ea;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}
.article-highlight-icon { font-size: 22px; flex-shrink: 0; }

/* ── STEPS ── */
.article-steps { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.article-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fafbfd;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    padding: 14px 18px;
}
.article-step-num {
    background: #0a2463;
    color: white;
    font-weight: 700;
    font-size: 13px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.article-step div { font-size: 0.9rem; color: #444; line-height: 1.6; }
.article-step strong { color: #0a2463; }

/* ── CTA ARTICLE ── */
.article-cta {
    background: linear-gradient(135deg, #0a2463, #3e92cc);
    border-radius: 10px;
    padding: 28px 32px;
    margin-top: 40px;
    text-align: center;
}
.article-cta h3 { color: white; font-size: 1.2rem; margin-bottom: 8px; }
.article-cta p  { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 20px; }

/* ── SIDEBAR ── */
.article-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }

.sidebar-box {
    background: white;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    padding: 18px;
}
.sidebar-box-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #0a2463;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8edf5;
}
.sidebar-toc { list-style: none; margin: 0; padding: 0; }
.sidebar-toc li { margin-bottom: 8px; }
.sidebar-toc a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: all .2s;
}
.sidebar-toc a:hover {
    color: #0a2463;
    border-left-color: #3e92cc;
    padding-left: 16px;
}
.sidebar-box-cta { background: #f0f4ff; border-color: #c5d5ea; }

/* ── ARTICLES CONNEXES ── */
.articles-connexes {
    background: #f8f9fa;
    padding: 50px 0;
    border-top: 1px solid #e8edf5;
}
.articles-connexes .section-title {
    margin-bottom: 30px;
    color: #0a2463;
}
