/* Blog : liste des articles et mise en forme du corps d'article.
   Les classes reprennent celles des articles d'origine (callouts, tableaux,
   encadrés) pour que leur HTML soit réutilisé tel quel. */

/* ---------- Liste des articles ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-item {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; padding: 22px 24px;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.blog-item:hover { box-shadow: 0 10px 28px rgba(11,79,108,.1); transform: translateY(-2px); }
.blog-item .blog-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.blog-item .blog-cat {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--pale); color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.blog-item h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.35; color: var(--navy); }
.blog-item p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.blog-item .text-link { margin-top: auto; }
@media (max-width: 1080px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Corps d'article ---------- */
.article-wrap { max-width: 760px; }
.article-wrap > :first-child { margin-top: 0; }
.article-byline { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.article-byline time { color: var(--muted); }
.article-tags-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag-link { color: var(--blue); font-weight: 600; text-decoration: none; }

.article-content { font-size: 16px; line-height: 1.75; color: var(--ink); }
.article-content h2 { margin: 34px 0 12px; font-size: 23px; line-height: 1.25; color: var(--navy); }
.article-content h3 { margin: 26px 0 8px; font-size: 18px; color: var(--navy); }
.article-content p { margin: 0 0 14px; }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 22px; }
.article-content li { margin-bottom: 7px; }
.article-content a { color: var(--blue); }
.article-content strong { color: var(--navy); }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; }
.article-intro { font-size: 17px; line-height: 1.7; color: var(--muted); }

/* Encadrés */
.article-callout {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 22px 0; padding: 16px 18px;
  border-radius: 10px; border: 1px solid var(--line); background: #f7fbff;
  font-size: 15px; line-height: 1.65;
}
.article-callout p:last-child { margin-bottom: 0; }
.article-callout-primary { border-color: rgba(8,123,150,.35); background: var(--pale); }
.article-callout-warning { border-color: #f3d9a4; background: #fffaf0; }
.article-callout-stat { border-color: rgba(8,123,150,.35); background: var(--navy); color: #fff; }
.article-callout-stat strong, .article-callout-stat a { color: #7fd8e8; }
.callout-icon { flex: none; font-size: 18px; line-height: 1.4; }

.article-key-takeaway {
  margin: 26px 0; padding: 18px 20px;
  border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0;
  background: var(--pale); font-size: 15px; line-height: 1.7;
}
.article-checklist { list-style: none; padding-left: 0; }
.article-checklist li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.article-checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}

/* Tableaux */
.article-table-wrap { overflow-x: auto; margin: 22px 0; }
.article-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-table th, .article-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-table th { background: #f7fbff; color: var(--navy); font-weight: 700; }
.cell-yes { color: #1a7f4b; font-weight: 600; }
.cell-no { color: #b4232a; font-weight: 600; }
.cell-partial, .cell-warning { color: #9a6700; font-weight: 600; }

/* Vignette des cartes d'article */
.blog-item { padding: 0; overflow: hidden; }
.blog-thumb { display: block; height: 150px; overflow: hidden; background: var(--pale); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-item .blog-meta,
.blog-item h3,
.blog-item p,
.blog-item .text-link { margin-left: 22px; margin-right: 22px; }
.blog-item .blog-meta { margin-top: 16px; }
.blog-item .text-link { margin-bottom: 20px; }

/* Filtres par catégorie */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.blog-filter {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.blog-filter:hover { border-color: var(--blue); color: var(--blue); }
.blog-filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.blog-empty { color: var(--muted); font-size: 15px; }

/* Image de couverture d'article */
.article-cover { margin: 0 0 24px; }
.article-cover img { width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: 12px; display: block; }
