/* Réinitialisation de base : enlève les marges par défaut du navigateur */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #2c2c2c;
}

/* En-tête du site */
header {
    background-color: #0d0d0d;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 32px;
}

/* Menu de navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #c0392b;
}

/* Contenu principal */
main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 30px;
}

article {
    background-color: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

article h3 {
    color: #c0392b;
    margin-bottom: 8px;
}

/* Pied de page */
footer {
    background-color: #0d0d0d;
    color: white;
    text-align: center;
    padding: 15px;
}

/* Adaptation mobile (écrans de moins de 600px de large) */
@media (max-width: 600px) {

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    header h1 {
        font-size: 26px;
    }

    main {
        padding: 0 15px;
    }

}

/* Liens des titres d'articles sur l'accueil */
article h3 a {
    color: #c0392b;
    text-decoration: none;
}

article h3 a:hover {
    text-decoration: underline;
}

/* Page article complet */
.article-complet h2 {
    color: #0d0d0d;
    margin-bottom: 10px;
    font-size: 28px;
}

.article-complet .meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}

.article-complet p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.retour {
    display: inline-block;
    margin-top: 10px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

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

/* Informations meta sous les articles */
.meta {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* Contenu complet de l'article */
.contenu-article {
    margin-top: 20px;
    line-height: 1.8;
    font-size: 17px;
    color: #2c2c2c;
}

.contenu-article p {
    margin-bottom: 15px;
}
/* Nouveau header */
.site-header { background: #0d0d0d; padding: 0; }
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 1px solid #222;
}
.site-logo {
    font-size: 36px;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: bold;
}
.site-logo span { color: #c0392b; }
.header-date { color: #888; font-size: 13px; }
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}
.nav-gauche a, .nav-centre a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
    display: inline-block;
    transition: all 0.2s;
}
.nav-gauche a:hover, .nav-centre a:hover {
    color: white;
    border-bottom: 3px solid #c0392b;
}
.nav-centre { display: flex; }
.nav-droite a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    background: #c0392b;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.nav-droite a:hover { background: #a93226; }

/* ── COMMENTAIRES ── */
.section-commentaires {
    margin-top: 40px;
    border-top: 3px solid #c0392b;
    padding-top: 30px;
}
.titre-commentaires {
    font-size: 20px;
    color: #0d0d0d;
    margin-bottom: 20px;
}
.succes-comment {
    background: #eafaf1;
    color: #27ae60;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.aucun-comment {
    color: #888;
    font-style: italic;
    margin-bottom: 20px;
}
.carte-commentaire {
    background: #f9f9f9;
    border-left: 3px solid #c0392b;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 6px 6px 0;
}
.comment-entete {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.comment-nom {
    font-weight: bold;
    color: #0d0d0d;
    font-size: 14px;
}
.comment-date {
    font-size: 12px;
    color: #888;
}
.comment-texte {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.formulaire-commentaire {
    background: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 25px;
}
.formulaire-commentaire h4 {
    font-size: 16px;
    color: #0d0d0d;
    margin-bottom: 15px;
}
.comment-champ {
    margin-bottom: 15px;
}
.comment-champ input,
.comment-champ textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}
.comment-champ input:focus,
.comment-champ textarea:focus {
    outline: none;
    border-color: #c0392b;
}
.comment-champ textarea { resize: vertical; }
.btn-commenter {
    background: #c0392b;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
.btn-commenter:hover { background: #a93226; }