/* Style par défaut pour tous les liens */
a {
  color: #333333; /* Couleur gris foncé (changez selon vos préférences) */
}

/* Style optionnel lorsque la souris passe sur le lien */
a:hover {
  color: #0056b3; /* Change la couleur au survol */
  text-decoration: underline; /* Remet le soulignement au survol (optionnel) */
}

/* --- Structure globale --- */
.article-page {
  background-color: #ffffff;
  color: #555555;
}

.article-container {
  max-width: 800px; /* Largeur idéale pour un article de blog lisible */
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* 7. Hero Image plein écran */
.article-hero {
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 75%;
}

/* En-tête de l'article (1 à 6) */
.article-header {
  margin-bottom: 2.5rem;
}

/* 1. Tag dans un joli carré */
.article-tag {
  display: inline-block;
  color: var(--secondary-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "montserrat", sans-serif;
  border: 1px solid var(--secondary-color);
}

/* 2. Titre */
.article-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* 3. Sous-titre */
.article-subtitle {
  font-size: 2rem;
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Style de la citation dans le header */
.article-header-quote {
  margin: 1.5rem 0 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--secondary-color); /* Finesse du trait rose/primaire */
}

.article-header-quote-text {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-style: italic;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.article-header-quote-author {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary-color);
  display: block;
}

/* 4, 5, 6. Méta-informations */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #777777;
}

.article-dot {
  font-size: 0.6rem;
}
.article-translation-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.75rem;
  font-style: italic;
}

.article-translation-note a {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Style du bouton d'écoute */
.listen-btn {
  color: #fff;
  background-color: var(--secondary-color);
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.listen-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.listen-icon {
  color: #fff;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Classe pour cacher/afficher la boîte */
.audio-box.hidden {
  display: none;
}

/* Le lecteur audio natif prend toute la largeur de sa boîte */
.audio-box audio {
  width: 100%;
}

/* 9. Contenu de l'article */
.article-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.7;
}

.article-section-title {
  font-size: 1.4rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-quote {
  border-left: 3px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.article-list {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-ordered-list li {
  margin-bottom: 15px; /* Espace entre chaque élément de la liste */
}

.article-ordered-list p {
  margin-top: 5px; /* Rapproche un peu le paragraphe de son titre */
  margin-bottom: 0;
}
.article-inline-image {
  margin: 2rem 0;
  text-align: center;
}

.article-inline-image img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.article-inline-image figcaption {
  font-size: 0.8rem;
  color: #888888;
  font-style: italic;
}

/* 10. Related Articles (Articles liés) */
.article-related-section {
  background-color: var(--third-color);
  padding: 5rem 2rem;
  margin-top: 4rem;
}

.related-section-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
}

.related-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.related-card-img-wrapper {
  position: relative;
  height: 200px;
}

.related-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #ffffff;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.related-card-content {
  padding: 1.5rem;
}

.related-card-content h4 {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.4;
}

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