/* === COMPOSANTS D'ARTICLES UNIFIÉS === */

/* SECTION HERO */
.article-hero {
  background: linear-gradient(rgba(13, 110, 253, 0.5), rgba(10, 88, 202, 0.7)),
    url("../images/meeting-01.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 5rem 1rem;
  margin-bottom: 3rem;
  text-align: center;
  text-shadow: 0.15em 0.15em 0.075em var(--primary-dark);
}

.article-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.article-hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

.article-hero .icon {
  color: inherit;
}

/* CONTENEUR PRINCIPAL */
.articles-container {
  padding: 3rem 1rem;
  background: var(--white);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  justify-content: center;
}

/* CARTE D'ARTICLE */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15);
  border-color: var(--primary-color);
}

.article-title,
.article-subtitle-1,
.article-subtitle-2,
.article-subtitle-3,
.article-subtitle-4,
.article-subtitle-5 {
  color: var(--secondary-color);
}

.article-card .article-title,
.article-card .article-subtitle-1,
.article-card .article-subtitle-2,
.article-card .article-subtitle-3,
.article-card .article-subtitle-4,
.article-card .article-subtitle-5 {
  color: var(--secondary-color);
  font-size: 1.45rem;
}

.article-card .article-subtitle-2 {
  font-size: 1.38rem;
}
.article-card .article-subtitle-3 {
  font-size: 1.31rem;
}
.article-card .article-subtitle-4 {
  font-size: 1.24rem;
}
.article-card .article-subtitle-5 {
  font-size: 1.17rem;
}

/* IMAGE DE L'ARTICLE */
.article-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.article-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-img-wrapper img {
  transform: scale(1.05);
}

/* CONTENU DE LA CARTE */
.article-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

.article-title a:hover {
  color: var(--primary-color);
}

/* MÉTADONNÉES */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-light);
}

.article-author {
  font-weight: 500;
  color: var(--primary-color);
}

.article-date {
  color: var(--gray-medium);
}

/* EXTRATITRE */
.article-excerpt {
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-content .article-paragraphe {
  text-align: justify;
}

/* BOUTON LIRE PLUS */
.article-read-more {
  align-self: flex-start;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.article-read-more:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
  padding-right: 1.5rem;
}

.article-read-more:hover::after {
  content: " →";
  margin-left: 0.5rem;
  transition: margin-left 0.3s ease;
}

/* PAGINATION */
.articles-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.pagination-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-link:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.pagination-link.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* PAGE D'ARTICLE INDIVIDUEL */
.article-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
  background: var(--white);
}

.article-single-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-single-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.article-single-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--gray-medium);
  font-size: 0.95rem;
}

.article-single-content {
  line-height: 1.8;
  font-size: 1.125rem;
  color: var(--gray-dark);
}

.article-single-content h2 {
  color: var(--secondary-color);
  margin: 2rem 0 1rem;
  font-size: 1.75rem;
}

.article-single-content h3 {
  color: var(--secondary-color);
  margin: 1.5rem 0 1rem;
  font-size: 1.5rem;
}

.article-single-content p {
  margin-bottom: 1.5rem;
}

.article-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* COMMENTAIRES */
.comments-section {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 2rem 1rem;
  border-top: 1px solid var(--gray-light);
}

.comments-section h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.comment {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-author {
  font-weight: 600;
  color: var(--primary-color);
}

.comment-date {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

.comment-content {
  line-height: 1.6;
  color: var(--gray-dark);
}

.comment-form {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* === DOMAINES === */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: center;
}

.domain-item {
  background: #e5e7eb;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.domain-item:hover {
  background: #d1d5db;
}

/* === NEWSLETTER === */

.newsletter-form {
  display: flex;
}

.newsletter-form input[type="email"] {
  font-size: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .article-hero h1 {
    font-size: 2.2rem;
  }

  .article-hero p {
    font-size: 1.1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-single-title {
    font-size: 2rem;
  }

  .article-single-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .article-hero {
    padding: 3rem 1rem;
  }

  .article-hero h1 {
    font-size: 1.8rem;
  }

  .article-content {
    padding: 1rem;
  }

  .article-title {
    font-size: 1.25rem;
  }
}
