/* Blog and articles */

.blog-hero {
    padding: 82px 0 64px;
    background:
        linear-gradient(120deg, rgba(8, 16, 31, 0.92), rgba(15, 23, 42, 0.62)),
        url("/assets/img/articles/accelerez-votre-ordinateur-en-15-minutes-le-guide-simple-et-efficace.jpg") center / cover no-repeat;
}

.blog-hero-inner {
    max-width: 820px;
}

.blog-eyebrow,
.article-meta {
    color: #facc15;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.blog-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    font-size: 0.84rem;
}

.blog-hero h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 3.35rem;
    line-height: 1.05;
}

.blog-hero p {
    margin: 0;
    max-width: 720px;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.blog-section,
.article-section {
    padding: 74px 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 16, 31, 0.96));
}

.news-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 14px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.news-image-link,
.news-card > img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
    color: #facc15;
    font-size: 0.78rem;
}

.article-meta span,
.article-meta time {
    display: inline-flex;
}

.news-content h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.22rem;
    line-height: 1.22;
}

.news-content p {
    color: #cbd5e1;
}

.tile-link {
    margin-top: auto;
    color: #7dd3fc;
    font-weight: 900;
}

.article-hero {
    padding: 64px 0;
    background: #0b1120;
}

.article-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 34px;
    align-items: center;
}

.article-hero-copy h1 {
    margin: 14px 0 18px;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1.08;
}

.article-hero-copy p {
    margin: 0;
    color: #dbeafe;
    font-size: 1.08rem;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: #7dd3fc;
    font-weight: 900;
}

.article-hero-image {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.article-hero-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.article-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    color: #e2e8f0;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}

.article-body h2 {
    margin: 34px 0 12px;
    color: #ffffff;
    font-size: 1.55rem;
    line-height: 1.2;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3,
.article-body h4 {
    margin: 28px 0 10px;
    color: #f8fafc;
    line-height: 1.25;
}

.article-body h3 {
    font-size: 1.25rem;
}

.article-body h4 {
    font-size: 1.08rem;
}

.article-body p {
    margin: 0 0 18px;
    font-size: 1.03rem;
    line-height: 1.78;
}

.article-body a {
    color: #7dd3fc;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 22px;
    padding-left: 26px;
    color: #dbeafe;
    line-height: 1.72;
}

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

.article-body blockquote {
    margin: 28px 0;
    padding: 20px 22px;
    border-left: 4px solid #38bdf8;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.1);
    color: #e0f2fe;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body figure {
    margin: 34px auto;
    max-width: 760px;
}

.article-body figure:first-child {
    margin-top: 0;
}

.article-body img {
    display: block;
    width: 100%;
    max-height: 560px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    object-fit: contain;
    background: rgba(2, 6, 23, 0.42);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.article-body figcaption {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: center;
}

.article-body table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
    color: #e2e8f0;
}

.article-body th,
.article-body td {
    padding: 13px 15px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-align: left;
    vertical-align: top;
}

.article-body th {
    background: rgba(56, 189, 248, 0.15);
    color: #ffffff;
}

.article-body tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.035);
}

.source-note {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .blog-hero {
        padding: 64px 0 48px;
    }

    .blog-hero h1,
    .article-hero-copy h1 {
        font-size: 2.35rem;
    }

    .article-hero-grid {
        grid-template-columns: 1fr;
    }

    .article-body {
        padding: 24px;
    }

    .article-body figure {
        margin: 26px auto;
    }

    .article-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .blog-hero,
    .article-hero,
    .blog-section,
    .article-section {
        padding-left: 0;
        padding-right: 0;
    }

    .blog-hero {
        padding-top: 54px;
        padding-bottom: 42px;
    }

    .blog-hero h1,
    .article-hero-copy h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .blog-hero p,
    .article-hero-copy p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .article-hero-grid {
        gap: 24px;
    }

    .article-hero-image img {
        aspect-ratio: 16 / 10;
    }

    .article-body {
        padding: 20px;
        border-radius: 12px;
    }

    .article-body h2 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
        overflow-wrap: anywhere;
    }

    .article-body h3 {
        font-size: 1.18rem;
    }

    .article-body p,
    .article-body li {
        font-size: 1rem;
        line-height: 1.72;
    }

    .article-body blockquote {
        padding: 16px;
    }

    .article-body figure {
        margin: 24px auto;
    }

    .article-body img {
        max-height: 420px;
    }

    .article-meta {
        gap: 6px 10px;
        font-size: 0.72rem;
    }
}

@media (max-width: 420px) {
    .blog-hero h1,
    .article-hero-copy h1 {
        font-size: clamp(1.75rem, 11vw, 2.25rem);
    }

    .article-body {
        padding: 16px;
    }

    .article-body ul,
    .article-body ol {
        padding-left: 20px;
    }

    .article-body th,
    .article-body td {
        padding: 10px 12px;
    }
}
