/* ===================================================== */
/* ======================= BLOG ========================= */
/* ===================================================== */

/* Introduction */
.blog-intro {
  max-width: 800px;
}

h1 {
  margin-bottom: 25px;
  position: relative;
}

h1::after {
  content: "";
  width: 50px;
  height: 3px;
  background: #c2a878;
  position: absolute;
  bottom: -8px;
  left: 0;
}

  
/* Grille articles */

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 50px;
}

/* Cartes articles */
.article-card {
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Images de fond */
.article-1 {
  background-image: url("../images/blog/viessmann.jpg");
}

.article-2 {
  background-image: url("../images/blog/nousassurons.jpg");
}

.avenir {
  background-image: url("../images/blog/avenir.jpg");
}

.article-1,
.article-2,
.avenir {
  background-size: cover;
  background-position: center;
}

/* Overlay */
.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* Contenu */
.article-card > * {
  position: relative;
  z-index: 1;
}

/* Texte */
.article-card h3 {
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.article-card p {
  color: #f5f1eb;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}


/* Lien */
.article-card a {
  margin-top: 10px;
  font-weight: bold;
  color: #ffffff;
}

/* Hover premium */
.article-card:hover {
  transform: translateY(-6px);
  transition: 0.25s ease;
}

.article-card:hover::before {
  background: rgba(0,0,0,0.5);
}


/* ================= MOBILE BLOG ================= */

@media (max-width: 768px) {

  .article-list {
    gap: 25px;
    margin-top: 30px;
  }

  .article-card {
    min-height: 200px;
    padding: 20px;
  }

  .article-card h3 {
    font-size: 1.1em;
  }

  .article-card p {
    font-size: 0.9em;
  }

}