/* CSS spécifique pour les cartes de publication sur la homepage */

.publications-section-modern {
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  padding: 70px 0;
  position: relative;
}

.publications-section-modern:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.post-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .post-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .post-grid-home {
    grid-template-columns: 1fr;
  }
}

.home-article-card {
  height: 100%;
}

/* Articles futurs en mode admin */
.home-article-card.future-publication {
  position: relative;
}

.home-article-card.future-publication:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(251, 191, 36, 0.5);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.future-post-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(251, 191, 36, 0.15);
  color: #d97706;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  justify-content: center;
}

.future-post-badge i {
  margin-right: 6px;
}

.home-article {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
  height: 520px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.home-article:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.home-article-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-news-thumb {
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}

.post-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-news-thumb:hover img {
  transform: scale(1.08);
}

.post-category-mini {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.post-news-text {
  padding: 25px 25px 5px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #ffffff;
}

.post-news-meta {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}

.publication-type-beautiful,
.reading-time {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.publication-type-beautiful {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(30, 41, 59, 0.15) 100%);
  color: #6d28d9;
}

.reading-time {
  background: rgba(15, 23, 42, 0.08);
  color: #64748b;
}

.post-news-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}

.post-news-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-news-title a:hover {
  color: #3b82f6;
}

.post-news-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 15px;
  flex-grow: 1;
  max-height: 140px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.post-news-tags {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-mini {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: #f1f5f9;
  color: #3b82f6;
  font-weight: 500;
}

.post-news-actions {
  margin-top: auto;
  padding: 15px 25px 25px;
  background-color: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.view-btn:hover svg {
  transform: translateX(3px);
}

.view-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
} 