/* My Quiet Haven — pages juridiques.
   Reprend les jetons de l'application (src/theme/colors.ts). */

@font-face {
  font-family: 'Quicksand';
  src: url('/assets/fonts/Quicksand-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}

:root {
  --bg-from: #FEF3EC; --bg-mid: #FCF4F3; --bg-to: #F4F1FB;
  --surface: #FFFFFF; --muted: #FCF2EE;
  --border: #F1E2DA;
  --text: #2E2839; --text-2: #665C72; --text-3: #8A7F95;
  --accent: #6F5FA8; --accent-surface: #EFEBFA;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(176, 139, 134, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-from: #1E1626; --bg-mid: #1A1421; --bg-to: #17131F;
    --surface: #251D30; --muted: #2C2338;
    --border: #382C47;
    --text: #F2E9F2; --text-2: #BCACC2; --text-3: #9A8AA2;
    --accent: #C4B2F5; --accent-surface: #2E2442;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px 64px;
  background: linear-gradient(160deg, var(--bg-from), var(--bg-mid) 45%, var(--bg-to));
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--text);
  padding: 12px 18px; border-radius: 999px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

header.site {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 20px; padding: 28px 0 22px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.mark { width: 34px; height: 34px; display: block; flex: none; }
.mark svg { width: 100%; height: 100%; display: block; }
.name { font-family: 'Quicksand', system-ui, sans-serif; font-weight: 700; font-size: 17px; }

header.site nav { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
header.site nav a {
  font-size: 13.5px; text-decoration: none; color: var(--text-2);
  padding: 6px 13px; border-radius: 999px; border: 1px solid transparent;
}
header.site nav a:hover { background: var(--muted); }
header.site nav a[aria-current="page"] {
  background: var(--accent-surface); color: var(--accent); font-weight: 700;
}

main {
  max-width: 760px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 44px 52px;
}

h1 {
  font-family: 'Quicksand', system-ui, sans-serif; font-weight: 700;
  font-size: 34px; line-height: 1.2; letter-spacing: -0.4px; margin: 0 0 6px;
}
h2 {
  font-family: 'Quicksand', system-ui, sans-serif; font-weight: 700;
  font-size: 22px; line-height: 1.3; margin: 44px 0 12px;
}
h3 {
  font-family: 'Quicksand', system-ui, sans-serif; font-weight: 700;
  font-size: 17.5px; margin: 28px 0 8px;
}

/* Les deux lignes qui suivent le titre : nom du document et date. */
h1 + p { color: var(--text-2); margin-top: 0; }

p { margin: 0 0 16px; }
strong { font-weight: 700; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

ul { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 9px; }
li::marker { color: var(--accent); }

hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.table-scroll { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 700; color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr:last-child td { border-bottom: 0; }

footer.site {
  max-width: 760px; margin: 28px auto 0;
  color: var(--text-3); font-size: 13.5px; line-height: 1.6;
}
footer.site p { margin: 0 0 8px; }
footer.site .note { font-style: italic; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 28px 22px 34px; border-radius: 22px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; margin-top: 36px; }
  header.site { padding: 20px 0 16px; }
  header.site nav { margin-left: 0; width: 100%; }
}

@media print {
  body { background: #fff; padding: 0; }
  main { box-shadow: none; border: 0; padding: 0; max-width: none; }
  header.site nav, .skip { display: none; }
}
