/* -*- coding: utf-8 -*- */
/*
 * Style du blog.
 * Reprend la police et la structure générale du site (grille.css),
 * mais avec une identité un peu plus "carnet de bord / éditorial" :
 * fond légèrement teinté, titres en empattements, cartes pour les billets.
 *
 * Adaptez les variables ci-dessous à votre charte (couleurs de grille.css).
 */

:root {
  --blog-accent: #8a3324;       /* à ajuster selon votre charte */
  --blog-accent-light: #c9745f;
  --blog-bg: #faf7f2;
  --blog-card-bg: #ffffff;
  --blog-text: #2b2b2b;
  --blog-muted: #767676;
  --blog-border: #e7e0d5;
}

body.blog-body {
  background-color: var(--blog-bg);
  color: var(--blog-text);
}

.blog-header h3 {
  margin-bottom: 0;
}

.blog-home-link {
  color: inherit;
  text-decoration: none;
}
.blog-home-link:hover {
  text-decoration: underline;
}

.blog-header .slogan {
  font-style: italic;
  color: var(--blog-muted);
}

/* Sidebar */
.blog-sidebar .menu li {
  margin-bottom: 0.4em;
}

.blog-tags-title {
  margin-top: 1.5em;
  margin-bottom: 0.3em;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8em;
  color: var(--blog-muted);
  letter-spacing: 0.05em;
}

.blog-tag-list {
  list-style: none;
  padding-left: 0;
}
.blog-tag-list li {
  font-size: 0.9em;
}
.blog-tag-list a {
  color: var(--blog-accent);
  text-decoration: none;
}
.blog-tag-list a:hover {
  text-decoration: underline;
}
.blog-tag-count {
  color: var(--blog-muted);
  font-size: 0.85em;
}

/* Filtrage actif */
.blog-filter-notice {
  background: var(--blog-card-bg);
  border-left: 4px solid var(--blog-accent);
  padding: 0.6em 1em;
  margin-bottom: 1.5em;
}

/* Liste des billets */
.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.blog-post-summary,
.blog-post-full {
  background: var(--blog-card-bg);
  border: 1px solid var(--blog-border);
  border-radius: 6px;
  padding: 1.4em 1.6em;
}

.blog-post-date {
  font-size: 0.85em;
  color: var(--blog-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.3em 0;
}

.blog-post-title {
  font-family: Georgia, 'Times New Roman', serif;
  margin: 0 0 0.4em 0;
  line-height: 1.25;
}

.blog-post-summary .blog-post-title {
  font-size: 1.4em;
}
.blog-post-full .blog-post-title {
  font-size: 2em;
}

.blog-post-title a {
  color: var(--blog-text);
  text-decoration: none;
}
.blog-post-title a:hover {
  color: var(--blog-accent);
}

.blog-post-tags {
  margin: 0.4em 0;
}

.blog-tag-pill {
  display: inline-block;
  background: var(--blog-bg);
  border: 1px solid var(--blog-border);
  border-radius: 999px;
  padding: 0.1em 0.8em;
  margin-right: 0.4em;
  margin-bottom: 0.3em;
  font-size: 0.78em;
  color: var(--blog-accent);
  text-decoration: none;
}
.blog-tag-pill:hover {
  background: var(--blog-accent);
  color: #fff;
  border-color: var(--blog-accent);
}

.blog-post-excerpt {
  color: var(--blog-text);
  margin: 0.6em 0;
}

.blog-read-more a {
  color: var(--blog-accent);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9em;
}
.blog-read-more a:hover {
  text-decoration: underline;
}

/* Billet complet */
.blog-post-body {
  margin-top: 1.2em;
  line-height: 1.65;
}
.blog-post-body p {
  margin: 0 0 1em 0;
}
.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.blog-post-body blockquote {
  border-left: 3px solid var(--blog-accent-light);
  margin: 1em 0;
  padding: 0.2em 1em;
  color: var(--blog-muted);
  font-style: italic;
}

.blog-back-link {
  margin-top: 2em;
}
.blog-back-link a {
  color: var(--blog-accent);
  text-decoration: none;
}
.blog-back-link a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Widget "billets récents du blog"
 * Collez ce bloc dans blog/css/blog.css  OU  dans votre css/grille.css,
 * selon que vous chargez déjà blog.css sur les pages où le widget apparaît.
 * ───────────────────────────────────────────────────────────────────────────── */

.blog-widget {
  border: 1px solid #d9d2c8;
  border-radius: 5px;
  padding: 0.9em 1.1em;
  background: #faf7f2;       /* même teinte que le blog */
  font-size: 0.92em;
}

.blog-widget-title {
  margin: 0 0 0.7em 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82em;
  color: #767676;
}
.blog-widget-title a {
  color: inherit;
  text-decoration: none;
}
.blog-widget-title a:hover {
  text-decoration: underline;
}

.blog-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-widget-item {
  padding: 0.35em 0;
  border-bottom: 1px solid #e7e0d5;
  line-height: 1.35;
}
.blog-widget-item:last-child {
  border-bottom: none;
}

.blog-widget-date {
  display: block;
  font-size: 0.78em;
  color: #767676;
}

.blog-widget-item a {
  color: #8a3324;
  text-decoration: none;
}
.blog-widget-item a:hover {
  text-decoration: underline;
}

.blog-widget-tags {
  display: block;
  font-size: 0.75em;
  color: #999;
  font-style: italic;
}

.blog-widget-more {
  margin: 0.6em 0 0 0;
  text-align: right;
  font-size: 0.82em;
}
.blog-widget-more a {
  color: #8a3324;
  text-decoration: none;
  font-weight: bold;
}
.blog-widget-more a:hover {
  text-decoration: underline;
}

.blog-widget-empty {
  color: #999;
  font-style: italic;
  margin: 0;
}
