/**
 * Styles pour l'interface publique du module Articles
 */

/* Styles pour le carrousel */
.articles-carousel {
  margin-bottom: 3rem;
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(255, 255, 255, 1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: #007bff;
}

/* Styles pour les cartes d'articles */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-image {
  height: 250px;
  overflow: hidden;
}

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

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

.article-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.article-excerpt {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-link {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.3s;
}

.article-link:hover {
  background-color: #0056b3;
  color: #fff;
}

/* Styles pour la page d'article */
.article-header {
  margin-bottom: 2rem;
}

.article-title-large {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.article-meta-large {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #6c757d;
}

.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.article-content-large {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.article-source {
  font-style: italic;
  color: #6c757d;
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-left: 5px solid #007bff;
  border-radius: 0.25rem;
}

.article-source a {
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

.article-source a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.article-tags {
  margin-bottom: 2rem;
}

.article-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f8f9fa;
  color: #495057;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.article-tag:hover {
  background-color: #e9ecef;
  color: #212529;
}

/* Styles pour les commentaires */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
}

.comment-form {
  margin-bottom: 2rem;
}

.comment-list {
  margin-bottom: 2rem;
}

.comment-item {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  margin-bottom: 1rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
}

.comment-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.comment-content {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .article-title-large {
    font-size: 2rem;
  }

  .article-featured-image {
    max-height: 300px;
  }
}
