/* =========================
   MENTIONS-LEGALES.CSS
========================= */

.ml-body {
  background: var(--bg-page);
  padding: 60px 0 80px;
}

/* ─── Conteneur centré, largeur réduite pour la lecture ─── */
.ml-container {
  max-width: 860px;
}

/* ─── Bloc intro ─── */
.ml-intro {
  background-image: url('../../assets/img/home/univers/map-bg.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 56px;
  box-shadow: var(--shadow);
}

.ml-intro__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
  text-align: center;
}

/* ─── Contenu WP editor ─── */

/* h2 = titre de section */
.ml-content h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, var(--btn-gold-start), var(--btn-gold-end)) 1;
  line-height: 1.3;
  position: relative;
}

.ml-content h2:first-child {
  margin-top: 0;
}

/* Numéro décoratif (si l'éditeur met "1. Titre") */
.ml-content h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 100%;
  position: absolute;
  left: -20px;
  top: 0;
  background: linear-gradient(to bottom, var(--btn-gold-start), var(--btn-gold-end));
  border-radius: 2px;
}

/* h3 = sous-titre */
.ml-content h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--btn-blue);
  margin: 28px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Paragraphes */
.ml-content p {
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 1em;
}

.ml-content p:last-child {
  margin-bottom: 0;
}

/* Liens */
.ml-content a {
  color: var(--btn-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.ml-content a:hover {
  color: var(--btn-blue-hover);
}

/* Strong */
.ml-content strong {
  font-weight: 600;
  color: var(--text);
}

/* Listes */
.ml-content ul,
.ml-content ol {
  padding-left: 24px;
  margin: 0 0 1em;
}

.ml-content li {
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 6px;
}

/* Bloc mise en valeur (blockquote) */
.ml-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: rgba(57, 86, 121, 0.06);
  border-left: 4px solid var(--btn-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal;
}

.ml-content blockquote p {
  margin: 0;
  font-size: 15px;
  color: var(--btn-blue);
}

/* Séparateur entre sections */
.ml-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(27,27,27,.15), transparent);
  margin: 48px 0;
}

/* ─── Layout sidebar ─── */

.ml-layout {
  display: block; /* mobile : pas de sidebar */
}

.ml-sidebar {
  display: none; /* caché sur mobile/tablette */
}

/* ─── Responsive ─── */

@media (min-width: 768px) {
  .ml-body {
    padding: 80px 0 100px;
  }
  .ml-intro {
    padding: 40px 56px;
  }
  .ml-intro__text {
    font-size: 20px;
  }
  .ml-content h2 {
    font-size: 26px;
    padding-left: 24px;
  }
  .ml-content h2::before {
    left: 0;
  }
}

@media (min-width: 820px) {
  .ml-intro__text  { font-size: 22px; }
  .ml-content h2   { font-size: 30px; }
}

@media (min-width: 992px) {
  .ml-intro__text  { font-size: 25px; }
  .ml-content h2   { font-size: 32px; }
}

@media (min-width: 1200px) {
  .ml-body {
    padding: 100px 0 120px;
  }
  .ml-container {
    max-width: 1100px;
  }

  /* Layout 2 colonnes : sidebar gauche + contenu droite */
  .ml-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 56px;
    align-items: start;
  }

  /* Sidebar sticky */
  .ml-sidebar {
    display: block;
    position: sticky;
    top: 100px;
  }

  .ml-sidebar__label {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c9aa6e;
    margin: 0 0 16px;
  }

  .ml-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid rgba(26,26,46,.1);
  }

  .ml-sidebar__list li {
    margin: 0;
  }

  .ml-sidebar__link {
    display: block;
    padding: 7px 0 7px 14px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    line-height: 1.4;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.2s, border-color 0.2s;
  }

  .ml-sidebar__link:hover {
    color: #1a1a2e;
  }

  .ml-sidebar__link.is-active {
    color: #1a1a2e;
    font-weight: 600;
    border-left-color: #c9aa6e;
  }

  .ml-content h2 {
    font-size: 24px;
  }
}
