/* Pages légales Stevio : mêmes tokens que index.html */
:root {
  --bg: #131313;
  --surface: #202020;
  --surface-elevated: #1a1a1a;
  --border: #323232;
  --border-light: #3d3d3d;
  --text: #ffffff;
  --text-2: #7a7a7a;
  --text-3: #a3a3a3;
  --prose: #cfcfcf;
  --accent: #dd3c54;
  --todo: #f2b84b;
  --todo-bg: rgba(242, 184, 75, .07);

  --display: 'Archivo', system-ui, sans-serif;
  --ui: 'Inter', system-ui, sans-serif;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1040px;
  --header-h: 68px;

  color-scheme: dark;
}

/* ─── Base ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ─── En-tête ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 19, 19, .8);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.nav-inner { display: flex; align-items: center; height: var(--header-h); }
.logo { display: inline-flex; }
.logo svg { height: 22px; width: auto; fill: #fff; overflow: visible; }
.logo .lg-a, .logo .lg-b { transition: transform .5s var(--ease-spring); }
.logo:hover .lg-a { transform: translate(-14px, -10px); }
.logo:hover .lg-b { transform: translate(14px, 10px); }

/* ─── Titre ─────────────────────────────────────────────────────────────────── */
.page-head { padding: clamp(40px, 7vw, 72px) 0 clamp(40px, 6vw, 56px); }
.page-head h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 44px); font-weight: 750; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.updated { margin-top: 12px; font-size: 14px; color: var(--text-2); }

/* ─── Sommaire + texte ──────────────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; padding-bottom: clamp(64px, 10vw, 112px); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.4; color: var(--text-2); transition: color .2s; }
.toc a:hover, .toc a.on { color: #fff; }

.doc { max-width: 680px; }
.doc section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border); }
.doc h2 { font-family: var(--display); font-size: 21px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.doc p, .doc li { color: var(--prose); }
.doc section > * + * { margin-top: 12px; }
.doc section > h3 { margin-top: 28px; margin-bottom: 0; font-family: var(--display); font-size: 17px; font-weight: 600; color: #fff; }
.doc section > h3 + p { margin-top: 6px; }
.list li { position: relative; padding-left: 18px; }
.list li::before { content: ''; position: absolute; left: 3px; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-2); }
.doc p a { color: #fff; text-decoration: underline; text-decoration-color: var(--border-light); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.doc p a:hover { text-decoration-color: currentColor; }
.doc section > h2 + * { margin-top: 20px; }

/* ─── Blocs de la page Aide et contact ──────────────────────────────────────── */
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px; border-radius: 16px; background: var(--surface-elevated); box-shadow: inset 0 0 0 1px var(--border);
}
.contact p { color: var(--text-3); font-size: 15px; }
.contact-mail { display: inline-block; margin-top: 2px; font-family: var(--display); font-size: clamp(20px, 3vw, 24px); font-weight: 650; letter-spacing: -.01em; color: #fff; transition: color .2s; }
.contact-mail:hover { color: var(--accent); }
.note { padding: 0 4px; }
.note p { font-size: 15px; color: var(--text-3); }
.note .list { margin-top: 6px; }
.note li { font-size: 15px; color: var(--text-3); }

.group { border-radius: 16px; background: var(--surface-elevated); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.group-item { display: block; padding: 18px 22px; }
.group-item + .group-item { border-top: 1px solid var(--border); }
.group-item h3 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.4; color: #fff; }
.group-item p { margin-top: 4px; font-size: 15px; line-height: 1.65; color: var(--text-3); }
.group-link { position: relative; padding-right: 52px; transition: background-color .2s; }
.group-link::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-top: 1.5px solid var(--text-2); border-right: 1.5px solid var(--text-2); transform: rotate(45deg);
  transition: border-color .2s, right .2s;
}
.group-link:hover { background: var(--surface); }
.group-link:hover::after { border-color: #fff; right: 20px; }
.aside { padding: 0 4px; font-size: 15px; }

.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 48px; }
.steps li + li { border-top: 1px solid var(--border); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-light);
  font-family: var(--display); font-size: 14px; font-weight: 600; color: #fff;
}
.doc strong { color: #fff; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-family: var(--display); font-size: 15px; font-weight: 600; transition: background-color .2s;
}
.btn:hover { background: #e64d64; }

/* ─── À rédiger ─────────────────────────────────────────────────────────────── */
.todo { padding: 14px 18px; border-radius: 10px; border: 1px dashed rgba(242, 184, 75, .4); background: var(--todo-bg); }
.todo > strong { font-size: 13px; font-weight: 600; color: var(--todo); }
.todo ul { margin-top: 6px; }
.todo li { font-size: 14px; line-height: 1.6; color: var(--text-3); }
.todo li + li { margin-top: 2px; }
.ph { padding: 1px 6px; border-radius: 5px; border: 1px dashed rgba(242, 184, 75, .4); background: var(--todo-bg); color: var(--todo); font-size: .92em; white-space: nowrap; }

/* ─── Pied de page ──────────────────────────────────────────────────────────── */
.foot { padding: 32px 0 40px; border-top: 1px solid var(--border); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--text-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-3); }
.foot-links a { transition: color .2s; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: #fff; }

/* ─── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
