/* ===== Blog — vient compléter static/home/style.css, ne redéfinit pas les styles de l'app ===== */

.blog-shell {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 4% 64px;
}

/* Fil d'ariane */
.breadcrumb {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 24px;
}
.breadcrumb-sep {
    margin: 0 6px;
}
.breadcrumb-current {
    color: #333;
}

/* Liste des articles */
.blog-header {
    margin-bottom: 32px;
}
.blog-header h1 {
    margin: 0 0 8px;
}
.blog-intro {
    color: #555;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.article-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.article-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.article-card-link {
    color: inherit;
    display: block;
}
.article-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.article-card-body {
    padding: 16px;
}
.article-card-body h2 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #316FA2;
}
.article-card-body p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 8px;
}
.article-card-body time {
    font-size: 0.8rem;
    color: #999;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
.pagination-current {
    color: #777;
    font-size: 0.9rem;
}

/* Article détail */
.article-full-header h1 {
    margin-bottom: 8px;
}
.article-full-header time {
    color: #777;
    font-size: 0.9rem;
}

.article-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin: 24px 0;
}

.toc {
    background: #f7f9fb;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
}
.toc-title {
    font-weight: bold;
    margin: 0 0 8px;
    color: #333;
}
.toc ul {
    margin: 0;
    padding-left: 20px;
}
.toc ul li {
    list-style: disc;
}
.toc a {
    color: #316FA2;
}

.article-content {
    margin-top: 24px;
}
.article-content h2 {
    margin: 32px 0 12px;
    color: #282828;
}
.article-content h3 {
    margin: 24px 0 10px;
    color: #282828;
}
.article-content p {
    margin: 0 0 16px;
}
.article-content ul,
.article-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.article-content ul li {
    list-style: disc;
}
.article-content ol li {
    list-style: decimal;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 0.9rem;
}
.article-content th,
.article-content td {
    border: 1px solid #e1e1e1;
    padding: 8px 12px;
    text-align: left;
}
.article-content th {
    background: #f7f9fb;
}
