/* Apprécio — styles partagés pour les pages légales (charte v2 « bleu confiance ») */
:root {
  --bg-1: #FBFAF8;
  --bg-2: #FBFAF8;
  --surface: #FFFFFF;
  --surface-2: #F5F3EF;
  --border: #E9E5DD;
  --border-strong: #D9D3C8;
  --ink: #3B4463;
  --ink-strong: #17203A;
  --muted: #6B7392;
  --muted-2: #8A91AB;
  --accent: #2F5BEA;
  --accent-2: #4E77FF;
  --accent-soft: #EAEFFE;
  --good: #1E7A52;
  --shadow-sm: 0 1px 2px rgba(23,32,58,0.06);
  --shadow-md: 0 6px 20px rgba(23,32,58,0.08);
  --ring: 0 0 0 4px rgba(47,91,234,0.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-1: #0F131E;
    --bg-2: #0F131E;
    --surface: #171C2A;
    --surface-2: #1F2536;
    --border: #2A3145;
    --border-strong: #3A4159;
    --ink: #C3C9D8;
    --ink-strong: #EEF1F8;
    --muted: #97A0B6;
    --muted-2: #7D869E;
    --accent: #6E8FFF;
    --accent-2: #8AA4FF;
    --accent-soft: rgba(110,143,255,0.14);
    --good: #43C98B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
    --ring: 0 0 0 4px rgba(110,143,255,0.28);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-1);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 820px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

nav.topnav {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.3px;
  color: var(--ink-strong);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(150deg, #4E77FF, var(--accent));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo svg { display: block; width: 20px; height: 20px; }
.nav-back { color: var(--muted); font-size: 14px; }
.nav-back:hover { color: var(--ink-strong); }

main { padding: 56px 0 80px; }

.page-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
}
.page-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

h2 {
  font-size: 20px;
  color: var(--ink-strong);
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 16px;
  color: var(--ink-strong);
  font-weight: 700;
  margin: 22px 0 8px;
}
p { margin-bottom: 12px; color: var(--ink); }
ul, ol { margin: 8px 0 16px 24px; }
ul li, ol li { margin-bottom: 6px; color: var(--ink); }

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  margin: 18px 0;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: var(--ink);
}

footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--muted); margin: 0 8px; }
footer a:hover { color: var(--ink-strong); }

/* ============= Focus states accessibilité (clavier) ============= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 4px;
}

/* ============= Print styles pour pages légales ============= */
@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
    line-height: 1.5;
  }
  nav.topnav, footer { display: none !important; }
  main { padding: 0; }
  a { color: black; text-decoration: underline; }
  .page-title,
  .page-title * {
    background: none !important;
    -webkit-text-fill-color: black !important;
    color: black !important;
  }
  h2, h3 { color: black; page-break-after: avoid; }
  .callout {
    background: #f5f5f5 !important;
    border: 1px solid #ccc !important;
    color: black !important;
    page-break-inside: avoid;
  }
  table { page-break-inside: avoid; }
  ul li, ol li, p { color: black; }
}
