/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #ffffff;
    color: #1c1c1c;
    line-height: 1.7;
    padding: 2rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- HEADER ---------- */
header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 3px solid #1c1c1c;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #1c1c1c;
}

/* ---------- TITRE CLIQUABLE ---------- */
.titre-site {
    text-decoration: none;
    color: #1c1c1c;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    transition: 0.2s;
}

.titre-site:hover {
    color: #4a4a4a;
}

/* ---------- NAVIGATION (mots-clés en tags) ---------- */
nav {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0ddd8;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
}

nav a {
    display: inline-block;
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    text-transform: lowercase;
    padding: 0.4rem 1.2rem;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    transition: 0.25s ease;
}

nav a:hover {
    background: #1c1c1c;
    color: #ffffff;
    border-color: #1c1c1c;
    transform: scale(1.04);
}

/* ---------- ARTICLES (aperçus) ---------- */
.articles h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1c1c1c;
    text-align: center;
    line-height: 1.3;
}

.grille-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

article {
    background: #f7f7f7;
    padding: 1.8rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #1c1c1c;
    transition: 0.25s;
}

article:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

article h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

article h3 a {
    text-decoration: none;
    color: #1c1c1c;
}

article h3 a:hover {
    color: #4a4a4a;
    text-decoration: underline;
}

article p {
    color: #3a3a3a;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.lire-suite {
    display: inline-block;
    color: #1c1c1c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

.lire-suite:hover {
    border-bottom-color: #1c1c1c;
}

/* ---------- FOOTER ---------- */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #d0d0d0;
    text-align: center;
    font-size: 0.9rem;
    color: #7f7f7f;
}

footer .contact {
    margin-top: 0.3rem;
}

footer .contact a {
    color: #7f7f7f;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    border-bottom: 1px solid transparent;
}

footer .contact a:hover {
    color: #1c1c1c;
    border-bottom-color: #1c1c1c;
}

/* ---------- PAGES INTERNES (articles complets) ---------- */
.page-article {
    max-width: 800px;
    margin: 0 auto;
}

.page-article .retour {
    display: inline-block;
    margin-bottom: 2rem;
    color: #1c1c1c;
    text-decoration: none;
    font-weight: 600;
}

.page-article .retour:hover {
    text-decoration: underline;
}

.page-article h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.page-article .contenu {
    font-size: 1.15rem;
    line-height: 1.9;
}

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

/* ---------- LIENS DANS LE TEXTE DES ARTICLES ---------- */
.contenu a {
    color: #3a3a3a;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #b0b0b0;
    transition: 0.2s;
}

.contenu a:hover {
    color: #1c1c1c;
    text-decoration-color: #1c1c1c;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.2rem;
    }

    nav ul {
        gap: 0.5rem;
    }

    nav a {
        font-size: 0.85rem;
        padding: 0.3rem 0.9rem;
    }

    .grille-articles {
        grid-template-columns: 1fr;
    }

    .page-article h1 {
        font-size: 2rem;
    }

    .articles h2 {
        font-size: 1.6rem;
    }
}
