/* Articles/Logements Section — Tailwind-compatible, HostPrestige theme */

/* Card entrance animation */
.article-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  filter: blur(6px);
}
.article-card.animate-in {
  animation: articleCardIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.article-card:nth-child(1) { animation-delay: 0.15s; }
.article-card:nth-child(2) { animation-delay: 0.35s; }
.article-card:nth-child(3) { animation-delay: 0.55s; }

@keyframes articleCardIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(6px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Card hover — lift + gold glow + image zoom */
.article-card {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}
.article-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 40px rgba(139,69,19,0.12), 0 0 0 1px rgba(200,148,62,0.2);
}
.article-card:hover img {
  transform: scale(1.08);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Price badge pulse on card hover */
.article-card:hover .price-badge {
  animation: pricePulse 0.6s ease;
}
@keyframes pricePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* City badge slide-in */
.article-card .city-badge {
  transform: translateX(-8px);
  opacity: 0;
  transition: transform 0.4s ease 0.3s, opacity 0.4s ease 0.3s;
}
.article-card.animate-in .city-badge {
  transform: translateX(0);
  opacity: 1;
}

/* Loading spinner */
.articles-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8dcc8;
  border-top-color: #C8943E;
  border-radius: 50%;
  animation: articlesSpin 0.8s linear infinite;
}
@keyframes articlesSpin { to { transform: rotate(360deg); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .article-card, .article-card.animate-in {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
