/* ============================================
   ANIMETRE — Styles de la page liste du blog (blog-list.css)
   Chargé après base.css sur blog/index.html uniquement.
   Grille prête à accueillir 10+ articles sans refactor.
   Mobile-first.
   ============================================ */

/* ----- EN-TÊTE DE LA PAGE BLOG ----- */
.blog-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.blog-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

@media (min-width: 600px) {
  .blog-header h1 { font-size: 36px; }
}

.blog-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
}

/* ----- GRILLE D'ARTICLES ----- */
.article-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  gap: var(--space-5);
}

/* 2 colonnes à partir de 700 px */
@media (min-width: 700px) {
  .article-list { grid-template-columns: repeat(2, 1fr); }
}

/* 3 colonnes à partir de 1000 px */
@media (min-width: 1000px) {
  .article-list { grid-template-columns: repeat(3, 1fr); }
}

/* ----- CARD ARTICLE ----- */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.article-card:hover {
  border-color: var(--bg-dark);
  box-shadow: 0 4px 16px rgba(31, 77, 58, 0.1);
}

/* Le lien enveloppe toute la card pour un clic uniforme */
.article-card a {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card-emoji {
  font-size: 36px;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

@media (min-width: 600px) {
  .card-title { font-size: 20px; }
}

.card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1; /* Pousse le lien "Lire" en bas de la card */
}

/* Lien "Lire l'article" en bas de card */
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
