/* Pages annexes du site (contact, mentions légales, notes de version) : même style que le guide (public/guide.css). */
:root {
  color-scheme: dark;
  --bg: #140e0a; --card: #231910; --card2: #2c2016; --line: #ffffff14; --line2: #e8c48a33;
  --text: #f6ecd8; --muted: #c8b694; --dim: #9a8a6c;
  --gold: #f2c46d; --orange: #ef9532; --orange2: #c4600f;
  --title: 'Lilita One', 'Trebuchet MS', sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 16px/1.65 Nunito, system-ui, sans-serif; overflow-x: hidden; isolation: isolate; }
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, #ef953226, transparent 70%); }
img { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--title); font-weight: 400; letter-spacing: .2px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 12px; border: 0;
  font: 800 16px Nunito, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-play { color: #fff9ee; background: linear-gradient(180deg, #f7ac4f, var(--orange) 50%, var(--orange2)); border: 1px solid #ffd29b;
  box-shadow: 0 3px 0 #7a3708, 0 10px 24px -6px #ef953299; text-shadow: 0 1px 0 #8a4310; }
.btn-play:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); background: #ffffff10; border: 1px solid #ffffff30; }
.btn-ghost:hover { background: #ffffff1c; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 20; background: #140e0acc; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand img { display: block; width: 150px; height: auto; }
.topbar nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.topbar nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.topbar nav a:not(.btn):hover, .topbar nav a[aria-current="page"] { color: var(--text); }
/* Ouverte dans le jeu (cadre) : logo et bouton « Retour au jeu » seulement (le ✕ du jeu est alors caché). */
html.framed .topbar nav a:not(.btn) { display: none; }

/* En-tête de page */
.page { flex: 1; width: min(860px, 100% - 32px); padding: 48px 0 0; }
.page-head { margin-bottom: 28px; text-align: center; }
.kicker { display: inline-block; margin-bottom: 10px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.page-head h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 50px); line-height: 1.05; text-shadow: 0 4px 24px #000a; }
.page-head p:not(.kicker) { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 17px; }

/* Cartes */
.card { padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line); box-shadow: 0 20px 44px -26px #000; }
.card + .card { margin-top: 18px; }
.muted { color: var(--muted); }

/* Texte long (mentions légales) */
.prose { color: #e6d8bb; }
.prose h2 { margin: 40px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; color: var(--text); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; color: var(--text); }
.prose p { margin: 10px 0; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.toc a { padding: 6px 14px; border-radius: 99px; background: #ffffff0d; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.toc a:hover { color: var(--text); background: #ffffff18; }
.summary { margin: 22px 0; padding: 18px 22px; border-radius: 14px; background: #ef953214; border: 1px solid #ef953244; border-left: 4px solid var(--orange); }
.summary h3 { margin: 0 0 8px; }
.table { overflow-x: auto; margin: 14px 0; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: #ffffff0d; color: var(--text); }
tr:last-child td { border-bottom: 0; }

/* Formulaire (contact) */
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
label { display: block; font-size: 14px; font-weight: 800; color: var(--text); }
label > input, label > select, label > textarea { display: block; margin-top: 6px; }
label small { font-weight: 600; color: var(--dim); }
input, select, textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid #ffffff26; background: #0f0a07b3;
  color: var(--text); font: 15px Nunito, system-ui, sans-serif; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: #231910; color: var(--text); }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px #ef953233; }
.two { display: flex; gap: 14px; }
.two > label { flex: 1; min-width: 0; }
.actions { display: flex; align-items: center; gap: 12px; }
.status { margin-right: auto; font-size: 14px; color: var(--muted); }
.status.err { color: #ff9a7a; }
.ok { padding: 18px 0 6px; text-align: center; color: var(--muted); }
.ok b { display: block; margin-bottom: 4px; color: var(--text); font: 400 24px var(--title); }
@media (max-width: 520px) { .two { flex-direction: column; } }

/* Liens (Discord, X) */
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.links a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: #ffffff0d; border: 1px solid var(--line);
  color: var(--text); font-weight: 800; text-decoration: none; }
.links a:hover { background: #ffffff18; }
.links svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.links .discord-link { background: #5865f2; border-color: #8891ff; }
.links .discord-link:hover { background: #6773f5; }

/* Pied de page */
.footer { margin-top: 64px; padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; font-weight: 700; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer p { margin: 0; max-width: 760px; }

@media (max-width: 640px) {
  .topbar nav a:not(.btn) { display: none; }
  .brand img { width: 128px; }
  .page { padding-top: 32px; }
  .page-head p:not(.kicker) { font-size: 16px; }
}
