/* Variables CSS */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffdd57;
  --background-color: #f9f9f9;
  --text-color: #333;
  --font-family-primary: "Arial", sans-serif;
  --font-family-secondary: "Georgia", serif;
}

/* Global Styles */
body {
  font-family: var(--font-family-primary);
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  background-color: #007bff; /* Bleu */
  color: white; /* Texte en blanc pour le contraste */
  padding: 20px;
  text-align: center;
}

.header-line {
  width: 100%;
  height: 4px;
  background-color: #f9f9f9;
  margin: 10px auto;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

.menu {
  display: flex !important;
  justify-content: center;
}

.author {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.author-photo {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin-right: 20px;
}

.author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: white; /* Rendre le texte de l’auteur bien visible */
}

.author-name {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
  color: white;
}

.publish-date {
  font-size: 0.9em;
  color: white;
}

.article-content {
  background-color: #fff; /* Fond blanc */
  color: #666; /* Texte en noir */
  padding: 40px;
  border-radius: 8px;
  max-width: 1500px; /* Réduit la largeur du texte */
  line-height: 1.8;
  margin: auto;
}

.article-header {
  text-align: center;
  margin-bottom: 50px;
  background-color: #fff !important; /* Assure un fond blanc */
  padding: 30px 20px; /* Augmente l’espace intérieur */
  box-shadow: none; /* Supprime toute ombre si elle existe */
}

/* Ajoute une ligne après le sous-titre pour séparer le contenu */
.article-header-line {
  width: 100%;
  height: 4px;
  background-color: #ddd; /* Couleur plus visible */
  margin: 20px auto; /* Espacement amélioré */
  border-radius: 2px; /* Arrondi léger */
}

.article-title {
  font-size: 2.8rem;
  font-weight: bold;
  color: black; /* Passer en noir */
  margin-bottom: 20px;
}

.article-subtitle {
  font-size: 2.7rem;
  font-weight: bold;
  color: black; /* Passer en noir */
  margin-bottom: 40px;
}

.article-title,
.article-subtitle {
  background-color: transparent !important; /* Supprime tout fond bleu */
  color: #000 !important; /* Texte en noir */
}

.article-body p {
  display: block !important;
  margin-bottom: 35px !important; /* Espacement naturel entre les paragraphes */
  line-height: 2 !important; /* Assure une bonne lisibilité */
  font-size: 1.4rem !important; /* Texte plus grand */
  text-align: justify;
  margin-left: auto; /* Centrer le texte */
  margin-right: auto; /* Centrer le texte */
  color: #666 !important; /* Maintient la couleur gris foncé */
}

.discover-more {
  font-size: 1.5rem;
  font-weight: bold;
  color: black;
}

/* Introduction avec texte et image */
.article-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 35px; /* Ajoute un espace entre les éléments */
  margin-bottom: 20px;
  background: none;
  padding: 0;
  box-shadow: none;
}

.text-container {
  flex: 1;
  text-align: justify;
  font-size: 1.2rem; /* Taille idéale pour un article */
  line-height: 2; /* Aération maximale pour éviter l'effet bloc */
  max-width: 100%; /* Éviter toute contrainte inutile */
  color: #666; /* Assurer que le texte soit bien en noir */
  font-weight: 400; /* Maintenir une lecture fluide (pas trop fin ni trop épais) */
}

.image-container {
  flex: 0 0 400px;
  max-width: 100%;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Corps de l'article */
.article-body {
  max-width: 100%;
  padding: 40px;
  gap: 35px !important; /* Ajoute un espacement direct entre les paragraphes */
  font-size: 1.4rem;
  line-height: 2;
  text-align: justify;
  background-color: #fff;
  border-radius: 8px;
  display: block !important; /* Assure la bonne structure */
  color: #666 !important;
}

.article-intro p,
.text-container p {
  display: block !important;
  margin-bottom: 35px !important; /* Assurer un bon espacement */
  line-height: 2 !important; /* Meilleure lisibilité */
  font-size: 1.2rem !important; /* Texte plus grand */
  text-align: justify !important;
  color: #666 !important; /* Assurer la couleur */
}

.article-banner {
  width: 100%;
  max-height: 30vh; /* Utiliser une unité relative pour la hauteur */
  overflow: hidden;
  display: flex; /* Permet de centrer l'image */
  justify-content: center; /* Centre l'image horizontalement */
  align-items: center; /* Centre l'image verticalement */
  background-color: black; /* Pour éviter les bordures blanches */
}

.article-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Assure un bon remplissage sans distorsion */
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-intro {
    flex-direction: column;
  }

  .text-container {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .image-container {
    flex: 0 0 auto;
  }
}

.article-body p {
  display: block !important;
  margin-bottom: 35px !important; /* Assurer un bon espacement entre les paragraphes */
  line-height: 2 !important; /* Meilleure lisibilité */
  font-size: 1.4rem !important; /* Texte plus grand */
  text-align: justify !important;
  margin-left: auto; /* Centrer le texte */
  margin-right: auto; /* Centrer le texte */
  color: #666 !important; /* Maintient la couleur gris foncé */
}

footer {
  text-align: center;
  padding: 10px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  font-size: 0.9em;
  color: #666;
}
