/* =========================================================
   Pages de contenu éditorial (CGV, mentions légales, RGPD…)
   Mise en forme de {{ post.content }} rendu par page.twig.
   Charte : #412f2c (primaire) / #885346 (tertiaire) / Poppins
   ========================================================= */

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
  color: #412f2c;
  line-height: 1.7;
}

/* --- Titre de la page --- */
.page-content__title {
  font-family: "Abril Fatface", sans-serif !important;
  font-weight: 700 !important;
  font-size: 2.4rem;
  color: #412f2c;
  margin-bottom: 0.5rem;
}

.page-content__title + .page-content__rule {
  width: 70px;
  height: 3px;
  background: #885346;
  border: 0;
  opacity: 1;
  margin: 0 0 3rem;
}

/* --- Corps de texte --- */
.page-content__body > *:first-child {
  margin-top: 0;
}

.page-content__body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #654233;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e8ded9;
}

.page-content__body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #885346;
  margin: 1.75rem 0 0.75rem;
}

.page-content__body p {
  margin-bottom: 1.1rem;
}

.page-content__body strong {
  color: #412f2c;
  font-weight: 700;
}

.page-content__body a {
  color: #885346;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content__body a:hover {
  color: #654233;
}

/* --- Listes --- */
.page-content__body ul,
.page-content__body ol {
  margin: 0 0 1.4rem;
  padding-left: 1.35rem;
}

.page-content__body li {
  margin-bottom: 0.5rem;
}

.page-content__body ul li::marker {
  color: #885346;
}

/* --- Séparateurs --- */
.page-content__body hr {
  border: 0;
  border-top: 1px solid #e8ded9;
  margin: 2.5rem 0;
  opacity: 1;
}

/* --- Tableaux (données RGPD, cookies) --- */
.page-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
}

.page-content__body th {
  background: #f7f2f0;
  color: #412f2c;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e8ded9;
}

.page-content__body td {
  padding: 0.7rem 0.9rem;
  border: 1px solid #e8ded9;
  vertical-align: top;
}

.page-content__body tbody tr:nth-child(even) {
  background: #fcfaf9;
}

/* --- Champs [À COMPLÉTER] : rendus visibles pour ne pas les oublier --- */
.page-content__body mark,
.page-content__body code {
  background: #fff3cd;
  color: #7a5c00;
  padding: 0.1em 0.35em;
  border-radius: 2px;
  font-size: 0.92em;
}

/* --- Mobile --- */
@media (max-width: 767.98px) {
  .page-content {
    padding: 2.5rem 1.1rem 3.5rem;
  }

  .page-content__title {
    font-size: 1.75rem;
  }

  .page-content__body h2 {
    font-size: 1.18rem;
    margin-top: 2rem;
  }

  /* Tableaux : défilement horizontal plutôt que débordement */
  .page-content__body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
