/* ═══════════ BLOG — Data Workers ═══════════
   Prolonge style.css (mêmes variables : --brand, --glass, …)
   ============================================ */

.blog-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

/* ─── Retour / en-tête ─── */
.blog-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.blog-top a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.blog-top a:hover {
    color: var(--brand);
}

.blog-top img {
    height: 24px;
}

.blog-head {
    text-align: center;
    margin-bottom: 36px;
}

.blog-head .kicker {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-head h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 12px 0 0;
}

.blog-head p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 460px;
    margin: 12px auto 0;
}

/* ─── Filtres ─── */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.chip {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all .2s ease;
}

.chip:hover {
    background: var(--glass-hover);
    border-color: rgba(45, 196, 194, .3);
}

.chip:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(45, 196, 194, .25);
}

/* ─── Liste ─── */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    display: block;
    position: relative;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    color: var(--text-white);
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand);
    transform: scaleY(0);
    transition: transform .3s ease;
}

.post-card:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    border-color: rgba(45, 196, 194, .3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.post-card:hover::before {
    transform: scaleY(1);
}

.post-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.post-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(45, 196, 194, .12);
    border-radius: 6px;
    padding: 4px 9px;
    text-decoration: none;
}

.post-card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.3px;
}

.post-card__excerpt {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 8px;
}

.post-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.post-card__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand);
}

.post-card__more i {
    opacity: .4;
    transition: opacity .2s ease, transform .2s ease;
}

.post-card:hover .post-card__more i {
    opacity: 1;
    transform: translateX(3px);
}

/* ─── À la une ─── */
.post-card--featured {
    background: linear-gradient(135deg, rgba(45, 196, 194, .1) 0%, rgba(15, 23, 42, .4) 100%);
    border-color: rgba(45, 196, 194, .2);
    padding: 28px 26px;
}

.post-card--featured .post-card__title {
    font-size: clamp(21px, 3.4vw, 27px);
    letter-spacing: -.6px;
}

.post-card--featured .post-card__excerpt {
    font-size: 15.5px;
}

.featured-mark {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}

.blog-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    padding: 48px 0;
}

/* ═══════════ ARTICLE ═══════════ */
.article-title {
    font-size: clamp(26px, 4.6vw, 38px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1px;
    margin: 16px 0 0;
    text-align: left;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 34px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.article-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
}

/* ─── Prose ─── */
.prose {
    text-align: left;
    font-size: 16.5px;
    line-height: 1.8;
    color: #cbd5e1;
    text-wrap: pretty;
}

.prose>*+* {
    margin-top: 20px;
}

.prose h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.25;
    letter-spacing: -.4px;
    margin-top: 44px;
}

.prose h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 32px;
}

.prose a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 196, 194, .4);
}

.prose a:hover {
    border-bottom-color: var(--brand);
}

.prose strong {
    color: var(--text-white);
    font-weight: 700;
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.prose li+li {
    margin-top: 8px;
}

.prose li::marker {
    color: var(--brand);
    font-weight: 700;
}

.prose blockquote {
    border-left: 3px solid var(--brand);
    background: rgba(45, 196, 194, .08);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    color: var(--text-white);
    font-size: 16px;
}

.prose blockquote p {
    margin: 0;
}

.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .87em;
    background: rgba(45, 196, 194, .12);
    color: #7fe0de;
    padding: 2px 6px;
    border-radius: 6px;
}

.prose pre {
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 20px 22px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
}

.prose pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
    font-size: inherit;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.prose th,
.prose td {
    text-align: left;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.prose th {
    color: var(--text-white);
    font-weight: 700;
    background: var(--glass);
}

.prose hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.prose img {
    max-width: 100%;
    border-radius: 12px;
}

/* ─── Bas d'article ─── */
.article-foot {
    margin-top: 52px;
    background: linear-gradient(135deg, rgba(45, 196, 194, .1) 0%, rgba(15, 23, 42, .4) 100%);
    border: 1px solid rgba(45, 196, 194, .2);
    border-radius: 24px;
    padding: 30px 24px;
    text-align: center;
}

.article-foot h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.article-foot p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .post-card {
        padding: 18px 20px;
    }
}
