/* === VM FeedSync - Grille 4 articles sur une seule ligne === */

.vmfeedsync-container {
  font-family: "Inter", Arial, sans-serif;
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 30px;
  color: #333;
}

.vmfeedsync-title {
  text-align: center;
  color: #4054b2;
  border-bottom: 3px solid #f6a310;
  padding-bottom: 8px;
  margin-bottom: 45px;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

/* --- Grille fixe : toujours 4 colonnes max sur une ligne --- */
.vmfeedsync-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  overflow: hidden;
  justify-items: center;
}

/* Ajustements responsive */
@media (max-width: 1200px) {
  .vmfeedsync-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .vmfeedsync-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .vmfeedsync-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Carte article --- */
.vmfeedsync-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  max-width: 320px;
}

.vmfeedsync-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* --- Lien global --- */
.vmfeedsync-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- Image --- */
.vmfeedsync-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f3f3f3;
}

.vmfeedsync-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vmfeedsync-card:hover img {
  transform: scale(1.08);
}

/* --- Contenu texte --- */
.vmfeedsync-card-body {
  flex: 1;
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vmfeedsync-card-body h3 {
  font-size: 1rem;
  color: #4054b2;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
  transition: color 0.3s ease;
  min-height: 40px;
}

.vmfeedsync-card:hover h3 {
  color: #f6a310;
}

.vmfeedsync-card-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
}

.vmfeedsync-card-desc {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  text-align: left;
}

/* --- État vide --- */
.vmfeedsync-empty {
  text-align: center;
  color: #999;
  font-style: italic;
  font-size: 0.95rem;
  padding: 40px 0;
}

/* --- Effet accent sur hover --- */
.vmfeedsync-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #4054b2, #f6a310);
  transition: width 0.3s ease;
}

.vmfeedsync-card:hover::after {
  width: 100%;
}

/* --- Légère animation d’apparition --- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.vmfeedsync-card {
  animation: fadeUp 0.6s ease forwards;
}

