/* Pages statiques du site Neo (mentions légales, confidentialité, conditions, ventes, plan du site).
   Mêmes jetons que public/404.html ; polices et icône sur la même origine. */
@font-face { font-family: 'Neo UI'; src: url('/fonts/onest-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neo UI'; src: url('/fonts/onest-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #F8F4EE; --text: #0F1E45; --text-2: #596277; --line: #E2DCD1; --code-bg: #EFE9DF; --code-line: transparent;
  --ink: #0F1E45; --core: #2F5BD3; --focus: #2F5BD3; --link: #2F5BD3; --link-hover: #1E3A7E;
  --selection-bg: #D2DDFF; --selection-text: #0F1E45; --core-lueur: none;
}
/* Mode sombre : la même nuit en couches que le site (src/styles/tokens.css) : toile bleu nuit, puces de code sur
   une surface plus claire avec un filet, filets bleutés, lueur discrète sur le noyau du symbole seulement. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A1430; --text: #F3F5FA; --text-2: #A8B2C7; --line: rgba(170, 190, 255, 0.13); --code-bg: #19274B; --code-line: rgba(170, 190, 255, 0.10);
    --ink: #F8F4EE; --core: #7FD8FF; --focus: #9DB4FF; --link: #9DB4FF; --link-hover: #C9D6FF;
    --selection-bg: rgba(124, 157, 255, 0.36); --selection-text: #FFFFFF; --core-lueur: drop-shadow(0 0 6px rgba(127, 216, 255, 0.55));
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1430; --text: #F3F5FA; --text-2: #A8B2C7; --line: rgba(170, 190, 255, 0.13); --code-bg: #19274B; --code-line: rgba(170, 190, 255, 0.10);
  --ink: #F8F4EE; --core: #7FD8FF; --focus: #9DB4FF; --link: #9DB4FF; --link-hover: #C9D6FF;
  --selection-bg: rgba(124, 157, 255, 0.36); --selection-text: #FFFFFF; --core-lueur: drop-shadow(0 0 6px rgba(127, 216, 255, 0.55));
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Neo UI', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--selection-bg); color: var(--selection-text); }
.symbole path[fill="var(--core)"] { filter: var(--core-lueur); }
.entete, main, .pied {
  max-width: 46rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; text-decoration: none; min-height: 44px; }
.symbole { width: 40px; height: auto; display: block; }
.retour { color: var(--text-2); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
main { padding-top: 24px; padding-bottom: 64px; }
h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.chapo { margin: 16px 0 0; color: var(--text-2); font-size: 1.125rem; }
.maj { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
h2 { margin: 44px 0 12px; font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
h2 a { color: inherit; }
p { margin: 0 0 12px; overflow-wrap: anywhere; }
ul { margin: 0 0 12px; padding-left: 1.25em; }
li { margin: 6px 0; overflow-wrap: anywhere; }
strong { font-weight: 600; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 160ms ease, text-decoration-thickness 160ms ease; }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--link-hover); text-decoration-thickness: 2px; } }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.9em; background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--code-line); padding: 1px 6px; border-radius: 6px; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.pied { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 44px; color: var(--text-2); font-size: 14px; }
.pied ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied a { color: var(--text-2); display: inline-block; padding: 8px 0; }
@media (hover: hover) and (pointer: fine) { .pied a:hover { color: var(--text); } }
@media (prefers-reduced-motion: reduce) { a { transition: none; } }
.pied a[aria-current="page"] { color: var(--text); text-decoration: none; font-weight: 600; }
