/* ===================================================
   KUDSHIBA — blog.css
   Page d'accueil du blog : grille de tuiles d'articles
   =================================================== */

/* ========== TITRE DE SECTION ========== */
.blog-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 1.5rem 0 2rem;
  letter-spacing: 0.02em;
  color: #2c3e2d;
}

/* ========== GRILLE D'ARTICLES ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 6%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== TUILE (CARD) ========== */
.blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- Article ancien (> 1 mois) --- */
.blog-card--old {
  background: #e4e2dc;
}

/* ========== PHOTO (groupe 1) ========== */
.blog-card__image {
  padding: 0.8rem;
  box-sizing: border-box;
}

.blog-card__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ========== FOOTER ========== */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #000000;
  transform: translateY(-2px);
}

.footer-links span {
  color: #000000;
}

/* ========== TEXTE (groupe 2) ========== */
.blog-card__body {
  padding: 0.8rem;
  box-sizing: border-box;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  font-size: 1.25rem;               /* ~20px */
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: #1a1a1a;
}

.blog-card__subtitle {
  font-size: 0.875rem;              /* ~14px */
  font-style: italic;
  margin: 0 0 0.5rem;
  color: #6b7c5e;
}

.blog-card__desc {
  font-size: 0.875rem;              /* ~14px */
  line-height: 1.6;
  color: #4a4a4a;
  text-align: justify;
  margin: 0;
  /* Limite à 5 lignes max */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 4%;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .blog-heading {
    font-size: 1.6rem;
  }
}