/* ------------------------------------
   Titre de l’article
------------------------------------- */
.main-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
  line-height: 1.2;
}

/* ------------------------------------
   Section des métadonnées (contributeurs, pages, numéro, date)
------------------------------------- */
.main-content section.ltr,
.main-content section.rtl {
  background-color: #f7f7f7;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.main-content section.ltr div,
.main-content section.rtl div {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* Style pour le nom du contributeur et son rôle */
.main-content section div span {
  color: #666;
  font-style: italic;
  margin-left: 6px;
}

/* Style pour le titre de numéro en gras */
.main-content section div strong {
  font-weight: 600;
  color: #333;
}

/* ------------------------------------
   Styles spécifiques RTL vs LTR
------------------------------------- */
.main-content section.ltr {
  direction: ltr;
  text-align: left;
}

.main-content section.rtl {
  direction: rtl;
  text-align: right;
}

/* ------------------------------------
   Contenu de l’article
------------------------------------- */
.main-content article {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  word-break: break-word;
}

/* Paragraphes justifiés */
.main-content article p {
  text-align: justify;
  margin-bottom: 1em;
}

/* Titres internes */
.main-content article h2,
.main-content article h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

.main-content article h2 {
  font-size: 1.5rem;
}

.main-content article h3 {
  font-size: 1.3rem;
}

/* Listes */
.main-content article ul,
.main-content article ol {
  margin: 1em 0 1em 1.4em;
  color: #333;
}

.main-content article ul li,
.main-content article ol li {
  margin-bottom: 0.5em;
}

/* Citations */
.main-content article blockquote {
  margin: 1.5em 0;
  padding: 12px 16px;
  border-left: 4px solid #ccc;
  background-color: #f5f5f5;
  color: #555;
  font-style: italic;
}

/* Images dans l’article */
.main-content article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 4px;
}

/* Liens dans l’article */
.main-content article a {
  color: #0066cc;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.main-content article a:hover {
  color: #004a99;
}

/* ------------------------------------
   Responsive (mobiles)
------------------------------------- */
@media (max-width: 600px) {
  .main-content h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .main-content section.ltr,
  .main-content section.rtl {
    padding: 12px;
    margin-bottom: 20px;
  }

  .main-content section div {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .main-content article {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .main-content article h2 {
    font-size: 1.4rem;
  }

  .main-content article h3 {
    font-size: 1.2rem;
  }
}
