/* Pages publiques de Circuit : présentation, aide, confidentialité (couleurs « Vitrail nocturne » du jeu, polices système) */
:root {
  --bg: #f3eef9; --card: #ffffff; --ink: #221b3b; --muted: #5b5478; --line: rgba(34, 27, 59, 0.12);
  --gold: #f2b544; --night: #14121f; --shadow: 0 2px 0 rgba(34, 27, 59, 0.08);
  --title: ui-rounded, 'SF Pro Rounded', -apple-system, system-ui, sans-serif;
  --text: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --bg: #14121f; --card: #1f1c33; --ink: #f4eedd; --muted: #b3abcc; --line: rgba(244, 238, 221, 0.14); --shadow: none; }
}
:root[data-theme='dark'] { --bg: #14121f; --card: #1f1c33; --ink: #f4eedd; --muted: #b3abcc; --line: rgba(244, 238, 221, 0.14); --shadow: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--title); font-weight: 800; font-size: 22px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 10px; border-radius: 18px; }
nav a[aria-current='page'] { background: var(--gold); color: #221b3b; }
@media (max-width: 480px) { .brand span { display: none; } nav a { font-size: 15px; padding: 6px 9px; } }

.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; color: #f4eedd; background: var(--night); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 31, 0) 30%, rgba(20, 18, 31, 0.85) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 32px; }
.hero h1 { font-family: var(--title); font-weight: 800; font-size: clamp(48px, 12vw, 88px); line-height: 0.95; margin: 0 0 10px; color: var(--gold); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hero p { font-size: clamp(17px, 4.4vw, 21px); max-width: 560px; margin: 0 0 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; padding: 10px 18px; border-radius: 24px; background: var(--gold); color: #221b3b; text-decoration: none; }

section { padding: 40px 0 8px; }
h2 { font-family: var(--title); font-weight: 800; font-size: 32px; line-height: 1.05; margin: 0 0 14px; }
h3 { font-family: var(--title); font-weight: 700; font-size: 21px; line-height: 1.15; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.feat b { display: block; font-family: var(--title); font-size: 19px; margin: 2px 0 4px; }
.feat span { color: var(--muted); font-size: 15.5px; line-height: 1.45; display: block; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.shots img { border-radius: 18px; border: 1px solid var(--line); }

.offer { background: var(--card); border: 2px solid color-mix(in srgb, var(--gold) 60%, transparent); border-radius: 16px; padding: 18px; }
.offer ul { margin: 0; padding-left: 20px; }
.offer li { margin: 4px 0; }

.doc { max-width: 720px; padding: 28px 0 40px; }
.doc h1 { font-family: var(--title); font-weight: 800; font-size: 36px; line-height: 1.05; margin: 0 0 6px; }
.date { color: var(--muted); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 2px; margin: 16px 0; box-shadow: var(--shadow); }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; }
summary { cursor: pointer; padding: 12px 14px; font-weight: 600; }
details > div { padding: 0 14px 4px; }

footer { border-top: 1px solid var(--line); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 20px 16px 32px; color: var(--muted); font-size: 15px; }
