/* ═══════════════════════════════════════════════════
   JMK-Web — mentions-legales.css (page-specific)
   Mobile-first accordion
   ═══════════════════════════════════════════════════ */

/* ── HEADER ── */
.ml-header {
  background: var(--navy);
  padding: 7rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.ml-header-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 64px 64px;
}
.ml-header-inner { position: relative; z-index: 1; }

.ml-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 1.2rem;
  font-size: 0.72rem; letter-spacing: 0.06em;
}
.ml-breadcrumb a { color: rgba(61,133,212,0.7); text-decoration: none; }
.ml-breadcrumb-sep { color: rgba(255,255,255,0.2); }
.ml-breadcrumb-current { color: rgba(255,255,255,0.45); }

.ml-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 1rem;
}
.ml-header h1 span { color: var(--accent-light); }

.ml-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(61,133,212,0.12);
  border: 1px solid rgba(61,133,212,0.25);
  border-radius: 3px; padding: 5px 12px;
  font-size: 0.7rem; font-weight: 500;
  color: var(--accent-light); letter-spacing: 0.06em;
}
.ml-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }

/* ── CORPS ── */
.ml-body { background: #f4f7fa; padding: 2rem 0 4rem; }

.ml-sidebar { display: none; }

.ml-section {
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.ml-section-toggle {
  display: flex; align-items: center;
  width: 100%; padding: 1.1rem 1.2rem;
  background: none; border: none; cursor: pointer;
  text-align: left; gap: 12px;
  transition: background 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.ml-section-toggle:hover { background: #f8fafc; }

.ml-section-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem; font-weight: 800;
  color: var(--accent); letter-spacing: 0.06em;
  flex-shrink: 0; min-width: 24px;
}
.ml-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: #0f1f33; flex: 1; text-align: left;
}
.ml-chevron {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke: #94a3b8; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s;
}
.ml-section.open .ml-chevron { transform: rotate(180deg); }
.ml-section.open .ml-section-toggle { background: #f8fafc; }
.ml-section.open .ml-section-num { color: var(--accent); }

.ml-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.ml-section.open .ml-section-body {
  max-height: 2000px;
}
.ml-section-body-inner {
  padding: 0 1.2rem 1.4rem;
  border-top: 1px solid #f1f5f9;
}
.ml-section-body-inner p {
  font-size: 0.88rem; color: #475569;
  line-height: 1.8; font-weight: 400;
  margin-top: 1rem; margin-bottom: 0;
}
.ml-section-body-inner p + p { margin-top: 0.8rem; }
.ml-section-body-inner strong { color: #0f1f33; font-weight: 500; }
.ml-section-body-inner a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(61,133,212,0.2);
}

/* ── TABLE ── */
.ml-table {
  width: 100%; border-collapse: collapse;
  margin-top: 1rem; border-radius: 8px;
  overflow: hidden; border: 1px solid #e2eaf4;
}
.ml-table tr { border-bottom: 1px solid #f1f5f9; }
.ml-table tr:last-child { border-bottom: none; }
.ml-table td {
  padding: 9px 12px; vertical-align: top;
  font-size: 0.84rem; line-height: 1.5;
}
.ml-table td:first-child {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.04em; color: #94a3b8;
  text-transform: uppercase; background: #f8fafc;
  border-right: 1px solid #f1f5f9;
  width: 38%;
}
.ml-table td:last-child { color: #0f1f33; font-weight: 400; }
.ml-table a { color: var(--accent); text-decoration: none; }

/* ── DROITS ── */
.ml-h3 {
  margin-top: 1.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1f33;
}
.ml-droits { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 8px; }
.ml-droits li {
  display: flex; gap: 10px; align-items: flex-start;
  background: #f8fafc; border: 1px solid #e2eaf4;
  border-radius: 6px; padding: 10px 12px;
  font-size: 0.84rem; color: #475569; line-height: 1.5;
}
.ml-droits li::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
  flex-shrink: 0; margin-top: 6px;
}
.ml-droits li strong { display: block; color: #0f1f33; font-weight: 600; font-size: 0.78rem; }

/* ── NOTE ── */
.ml-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(61,133,212,0.05);
  border: 1px solid rgba(61,133,212,0.15);
  border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 11px 13px;
  font-size: 0.82rem; color: #3d5a78;
  line-height: 1.65; margin-top: 1rem;
}
.ml-note svg {
  width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── DESKTOP ── */
@media (min-width: 860px) {
  .ml-header { padding: 9rem 0 5rem; }
  .ml-body { padding: 4rem 0 6rem; }
  .ml-sections { max-width: 760px; margin: 0 auto; }
  .ml-section-toggle { cursor: default; padding: 1.4rem 1.6rem 1rem; }
  .ml-section-toggle:hover { background: none; }
  .ml-chevron { display: none; }
  .ml-section-body { max-height: none !important; overflow: visible; }
  .ml-section-body-inner { padding: 0 1.6rem 1.6rem; border-top: 1px solid #f1f5f9; }
  .ml-section-num { font-size: 0.75rem; }
  .ml-section-title { font-size: 1.05rem; }
}
