* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; line-height: 1.6; color: #222; background: #e9e9e9; }
a { color: #2e7d32; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* En-tête */
.site-header { background: #222; padding: 1rem 0; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-title { color: #fff; font-size: 1.4rem; font-weight: bold; display: flex; align-items: center; gap: .75rem; }
.site-title img { height: 150px; width: auto; display: block; }
.site-header nav a { color: #ddd; margin-left: 1rem; }
.site-header nav a.active { color: #fff; font-weight: bold; }

/* Mise en page : contenu à gauche + colonne à droite */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.layout > * { min-width: 0; }
.content > :first-child { margin-top: 0; }
.content p:first-child { margin-top: 0; }
.content img { max-width: 100%; height: auto; }

/* Grille d'articles */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.card img { width: 100%; height: auto; display: block; }
.card-body { padding: 1rem; }
.card-body h2 { font-size: 1rem; margin: 0 0 .25rem; }
.card-body time { font-size: .85rem; color: #777; }
.card-body .more { font-weight: normal; font-style: italic; }

/* Colonne de droite */
.sidebar .widget { background: #fff; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.sidebar h3 { margin-top: 0; }
.sidebar ul { padding-left: 1.2rem; margin: 0; }

/* Article seul */
.post { background: #fff; padding: 1.5rem; border-radius: 8px; }
.post img { max-width: 100%; height: auto; }

/* Pied de page */
.site-footer { background: #222; color: #aaa; padding: 1rem 0; text-align: center; }

/* Mobile : une seule colonne */
@media (max-width: 800px) {
    .layout { grid-template-columns: 1fr; }
}

/* Sans colonne de droite, cartes sur 3 colonnes */
.sidebar { display: none; }
.layout { grid-template-columns: 1fr; }
.grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
}

.content > p:first-child img { display: block; margin: 0 auto; }