/* Styles CSS pour les articles similaires */

.related-posts {
  margin: 3rem 0;
  padding: 2rem;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.related-posts-header {
  text-align: center;
  margin-bottom: 2rem;
}

.related-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.related-subtitle {
  color: #666;
  font-size: 1rem;
  margin: 0;
  font-style: italic;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0;
}

.post-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-image {
  transform: scale(1.05);
}

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.post-card:hover .post-overlay {
  opacity: 1;
}

.read-more-overlay {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-content {
  padding: 1.5rem;
}

.entry-header {
  margin-bottom: 1rem;
}

.post-categories {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-link {
  color: #8b5a3c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.category-link:hover {
  color: #d4a574;
}

.category-separator {
  color: #999;
  margin: 0 0.25rem;
}

.entry-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  line-height: 1.4;
}

.entry-title-link {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-title-link:hover {
  color: #8b5a3c;
}

.entry-meta {
  font-size: 0.875rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-separator {
  color: #999;
}

.reading-time {
  font-style: italic;
}

.entry-summary {
  margin: 1rem 0;
  color: #555;
  line-height: 1.6;
}

.entry-footer {
  margin-top: auto;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #164C2A;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.read-more-link:hover {
  color: #d4a574;
  transform: translateX(2px);
}

.read-more-icon {
  transition: transform 0.2s ease;
  color: #164C2A !important;
}

.read-more-link:hover .read-more-icon {
  transform: translateX(3px);
}
.read-more-text{
    color: #164C2A !important;
}
.related-posts-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.view-all-posts {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #164C2A !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid #164C2A;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.view-all-posts:hover {
  background-color: #164C2A;
  color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .related-posts {
    margin: 2rem 0;
    padding: 1.5rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .related-title {
    font-size: 1.5rem;
  }
  
  .entry-meta {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .related-posts {
    padding: 1rem;
  }
  
  .post-content {
    padding: 1rem;
  }
  
  .entry-title {
    font-size: 1rem;
  }
}

/* Accessibilitï¿½ */
.screen-reader-text {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}

/* Focus states pour l'accessibilitï¿½ */
.category-link:focus,
.entry-title-link:focus,
.read-more-link:focus,
.view-all-posts:focus {
  outline: 2px solid #8b5a3c;
  outline-offset: 2px;
}

/* Animation de chargement */
.post-card {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dï¿½lai d'animation pour chaque carte */
.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }