:root {
    --ink: #27231f;
    --muted: #645c55;
    --line: #ded7ce;
    --paper: #fbfaf7;
    --soft: #f0ebe3;
    --accent: #a83a1f;
    --accent-dark: #762714;
    --green: #42664a;
    --blue: #245f73;
    --white: #fff;
    --shadow: 0 18px 45px rgba(39, 35, 31, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.button,
.article-card,
.article a {
    text-decoration: none;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.blog-hero {
    display: grid;
    min-height: calc(78vh - 72px);
    padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 5vw, 5rem);
    color: var(--white);
    background: linear-gradient(135deg, var(--ink), var(--accent-dark));
}

.blog-hero-content {
    align-self: end;
    max-width: 860px;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero .eyebrow {
    color: #f0b69d;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 22ch;
    margin-bottom: 1.2rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    line-height: 0.98;
    font-weight: 500;
}

h2 {
    margin-bottom: 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 500;
}

h3 {
    margin: 2rem 0 0.55rem;
    font-size: 1.25rem;
    line-height: 1.25;
}

.lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.1rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.2;
}

.button.primary {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.button.secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.section-heading {
    max-width: 900px;
}

.article-index {
    background: var(--soft);
}

.article-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.article-card {
    display: grid;
    align-content: start;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(39, 35, 31, 0.07);
}

.article-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--soft);
}

.article-card span,
.article-card strong,
.article-card p {
    margin-right: 1.2rem;
    margin-left: 1.2rem;
}

.article-card span {
    margin-top: 1.2rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.article-card strong {
    margin-top: 0.4rem;
    font-size: 1.15rem;
    line-height: 1.25;
}

.article-card p {
    margin-top: 0.7rem;
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.96rem;
}

.articles {
    background: var(--paper);
}

.article {
    max-width: 880px;
    margin: 0 auto clamp(3rem, 8vw, 6rem);
    padding: clamp(1.2rem, 4vw, 3rem);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(39, 35, 31, 0.07);
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.article.visible {
    opacity: 1;
    transform: translateY(0);
}

.article .date {
    margin-bottom: 0.6rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.article h1,
.article h2 {
    max-width: 760px;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.article h3 {
    color: var(--accent-dark);
}

.article p,
.article li {
    color: var(--muted);
}

.article p {
    margin-bottom: 1.2rem;
}

.article strong {
    color: var(--ink);
}

.article a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.article-back {
    max-width: 880px;
    margin: 0 auto 1rem;
}

.article-back a {
    color: var(--accent);
    font-weight: 900;
    text-decoration: none;
}

.article ul,
.article ol {
    margin: 0 0 1.5rem;
    padding-left: 1.4rem;
}

.article li {
    margin-bottom: 0.45rem;
}

.image-titre {
    margin: 1.5rem 0 2rem;
}

.image-titre img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--soft);
}

.annonce {
    margin: 2.5rem 0;
    padding: clamp(1.2rem, 4vw, 2rem);
    color: var(--white);
    background: var(--accent-dark);
    border-radius: 8px;
}

.annonce h3,
.annonce p {
    color: var(--white);
}

.annonce h3 {
    margin-top: 0;
}

.annonce a {
    color: var(--white);
}

footer {
    display: grid;
    gap: 0.5rem;
    padding: 2rem clamp(1rem, 5vw, 5rem);
    color: rgba(255, 255, 255, 0.78);
    background: var(--ink);
    font-size: 0.95rem;
}

footer h3,
footer p {
    margin: 0;
}

footer h3 {
    color: var(--white);
    font-size: 1rem;
}

footer a {
    color: var(--white);
    font-weight: 800;
}

@media (max-width: 980px) {
    .article-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .blog-hero {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .blog-hero-content {
        display: grid;
        gap: 1rem;
    }

    .blog-hero-content .eyebrow,
    .blog-hero-content h1,
    .blog-hero-content .lead,
    .hero-actions {
        margin: 0;
    }

    h1 {
        line-height: 1.15;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
