/* Pages secondaires (légal, 404) — même identité que l'accueil */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
:root {
  --bg: #0b0713; --bg-2: #150e28; --card-solid: #171029;
  --violet: #7c3aed; --violet-deep: #6d28d9; --violet-light: #a78bfa;
  --ink: #f5f0ff; --ink-soft: #d7c9ff; --muted: #9d8ec4;
  --line: rgba(167, 139, 250, 0.16); --line-strong: rgba(167, 139, 250, 0.35);
  --display: 'Syne', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif;
}
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
a { color: var(--violet-light); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card-solid); padding: .5rem 1rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header img { height: 48px; width: auto; display: block; }
.back { color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--violet-light); }

main { flex: 1; padding: 3rem 0 4.5rem; }
h1 { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .5rem; }
.subtitle { color: var(--muted); margin-bottom: 2.5rem; font-size: .9rem; }
h2 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 2.4rem 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
p { color: var(--ink-soft); margin-bottom: 1rem; font-size: .97rem; }
strong { color: var(--ink); }
ul { color: var(--ink-soft); margin: .4rem 0 1rem 1.3rem; font-size: .97rem; }
li { margin-bottom: .35rem; }

.site-footer { border-top: 1px solid var(--line); padding: 1.8rem 0 2.2rem; font-size: .85rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--ink); }

/* 404 */
.notfound { text-align: center; padding: 5rem 0; }
.notfound .code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; background: linear-gradient(120deg, #a78bfa, #c4b5fd, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { max-width: 440px; margin: 1rem auto 2rem; }
.btn { display: inline-block; background: var(--violet); color: #fff; text-decoration: none; font-weight: 600; padding: .9rem 1.7rem; border-radius: 100px; }
.btn:hover { background: var(--violet-deep); }
.notfound .links { margin-top: 2rem; font-size: .9rem; }
.notfound .links a { margin: 0 .6rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
