/* ── MENTIONS LÉGALES — variables locales ────────────────── */
:root {
  --ml-night-2:     #162035;
  --ml-cream-2:     #EDE8DF;
  --ml-on-light:    #1A1F2E;
  --ml-muted-light: #6B7280;
  --ml-border:      rgba(26,31,46,0.09);
  --ml-r-sm: 6px; --ml-r-md: 12px; --ml-r-lg: 20px;
  --ml-max: 900px;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.ml-page {
  max-width: var(--ml-max); margin: 0 auto;
  padding: 112px 56px 96px;
  display: grid; grid-template-columns: 220px 1fr; gap: 64px;
  align-items: start;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.ml-sidebar { position: sticky; top: 88px; }
.ml-sidebar-title { font-size: 10px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ml-muted-light); margin-bottom: 16px; }
.ml-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.ml-sidebar-link {
  display: block; padding: 7px 12px; border-radius: var(--ml-r-sm);
  font-size: 13px; font-weight: 300; color: var(--ml-muted-light);
  text-decoration: none; transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
}
.ml-sidebar-link:hover { color: var(--ml-on-light); background: rgba(26,31,46,0.05); }
.ml-sidebar-link.active { color: var(--coral); border-left-color: var(--coral); background: rgba(224,90,58,0.06); font-weight: 400; }
.ml-sidebar-sep { height: 0.5px; background: var(--ml-border); margin: 12px 0; }
.ml-sidebar-update { font-size: 11px; font-weight: 300; color: rgba(26,31,46,0.35); line-height: 1.4; padding: 0 12px; }

/* ── CONTENU ─────────────────────────────────────────────── */
.ml-content {}

.ml-content-header { margin-bottom: 56px; padding-bottom: 32px; border-bottom: 0.5px solid var(--ml-border); }
.ml-content-tag { font-size: 10px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ml-content-tag::before { content: ''; width: 20px; height: 1px; background: var(--coral); display: block; }
.ml-content-title { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); font-weight: 500; color: var(--ml-on-light); line-height: 1.15; margin-bottom: 12px; }
.ml-content-subtitle { font-size: 14px; font-weight: 300; color: var(--ml-muted-light); line-height: 1.6; }

/* Sections */
.ml-doc-section { margin-bottom: 56px; scroll-margin-top: 96px; }
.ml-doc-section:last-child { margin-bottom: 0; }
.ml-section-divider { height: 0.5px; background: var(--ml-border); margin-bottom: 40px; }

/* Titres */
.ml-doc-h2 {
  font-family: var(--serif); font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500; color: var(--ml-on-light); line-height: 1.2;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 0.5px solid var(--ml-border);
  display: flex; align-items: baseline; gap: 14px;
}
.ml-doc-h2-num {
  font-family: var(--serif); font-size: 13px; font-weight: 400;
  color: var(--coral); letter-spacing: 0.05em;
  white-space: nowrap;
}
.ml-doc-h3 { font-size: 14px; font-weight: 500; color: var(--ml-on-light); margin: 24px 0 8px; letter-spacing: 0.02em; }

/* Texte */
.ml-doc-p { font-size: 14px; font-weight: 300; color: var(--ml-muted-light); line-height: 1.8; margin-bottom: 12px; }
.ml-doc-p:last-child { margin-bottom: 0; }
.ml-doc-p strong { font-weight: 500; color: var(--ml-on-light); }
.ml-doc-p a { color: var(--coral); text-decoration: none; border-bottom: 0.5px solid rgba(224,90,58,0.3); transition: border-color 0.2s; }
.ml-doc-p a:hover { border-color: var(--coral); }

/* Listes */
.ml-doc-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 12px 0; }
.ml-doc-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 300; color: var(--ml-muted-light); line-height: 1.6; }
.ml-doc-list li::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6' fill='%23E05A3A' opacity='.12'/%3E%3Cpath d='M4.5 7l2 2 3-3' stroke='%23E05A3A' stroke-width='1.3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C%2Fsvg%3E") center/contain no-repeat; }
.ml-doc-list li strong { font-weight: 500; color: var(--ml-on-light); }

/* Encadrés */
.ml-doc-box {
  background: white; border-radius: var(--ml-r-lg); padding: 24px 28px;
  border: 0.5px solid var(--ml-border);
  margin: 20px 0;
}
.ml-doc-box-label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.ml-doc-box-label::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
.ml-doc-box--identity { background: var(--night); border-color: rgba(255,255,255,0.07); }
.ml-doc-box--identity .ml-doc-box-label { color: var(--coral); }
.ml-doc-box--identity .id-row { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 0.5px solid rgba(255,255,255,0.07); }
.ml-doc-box--identity .id-row:last-child { border-bottom: none; }
.ml-doc-box--identity .id-label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); width: 140px; flex-shrink: 0; }
.ml-doc-box--identity .id-value { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.85); line-height: 1.4; }
.ml-doc-box--identity .id-value a { color: var(--coral); text-decoration: none; }
.ml-doc-box--notice {
  background: rgba(224,90,58,0.06); border-color: rgba(224,90,58,0.2);
  display: flex; gap: 14px; align-items: flex-start;
}
.ml-doc-box--notice svg { width: 16px; height: 16px; color: var(--coral); flex-shrink: 0; margin-top: 2px; }
.ml-doc-box--notice p { font-size: 13.5px; font-weight: 300; color: var(--ml-on-light); line-height: 1.6; }
.ml-doc-box--notice p strong { font-weight: 500; }

/* Table tarifs */
.ml-doc-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.ml-doc-table th { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ml-muted-light); padding: 10px 14px; border-bottom: 1.5px solid var(--ml-border); text-align: left; background: var(--ml-cream-2); }
.ml-doc-table th:first-child { border-radius: var(--ml-r-sm) 0 0 0; }
.ml-doc-table th:last-child { border-radius: 0 var(--ml-r-sm) 0 0; }
.ml-doc-table td { padding: 12px 14px; border-bottom: 0.5px solid var(--ml-border); font-weight: 300; color: var(--ml-muted-light); vertical-align: top; line-height: 1.5; }
.ml-doc-table td strong { font-weight: 500; color: var(--ml-on-light); }
.ml-doc-table tr:last-child td { border-bottom: none; }
.ml-doc-table tr:hover td { background: rgba(224,90,58,0.02); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .ml-page { grid-template-columns: 1fr; padding: 96px 32px 72px; }
  .ml-sidebar { position: static; display: none; }
}
@media (max-width: 600px) {
  .ml-page { padding: 88px 24px 64px; }
}
