/*
 * SHADOW HEIST — pages publiques (présentation, confidentialité, assistance).
 * Mêmes jetons que le jeu (scripts/ui/ui_kit.gd) : nuit, laque, ardoise, blanc, or comme seul accent.
 * Aucune ressource externe : polices Barlow embarquées (OFL, fonts/OFL.txt), aucun script.
 */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/BarlowCondensed-ExtraBold.ttf) format('truetype'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Barlow-Regular.ttf) format('truetype'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Barlow-SemiBold.ttf) format('truetype'); }

:root {
  --ink: #070a12;
  --night: #0b1020;
  --lacquer: #141b2d;
  --slate: #1d2640;
  --night-hi: #29344f;
  --white: #f4f6fb;
  --muted: #a3adc2;
  --gold: #ffc53d;
  --gold-hi: #ffd873;
  --gold-deep: #a8740e;
  --laser: #ff3346;
  --hair: rgba(244, 246, 251, 0.1);
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
  --wide: 1040px;
  --measure: 720px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0e1528 0, var(--night) 520px);
  background-color: var(--night);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; color: var(--white); }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--white); }
h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 1.04; }
h1 { font-size: clamp(42px, 8.4vw, 76px); }
h2 { font-size: clamp(30px, 5vw, 42px); }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 8px; background: var(--white); color: var(--night); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---- Barre du haut -------------------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 60px;
  padding: 8px var(--gutter);
  padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(11, 16, 32, 0.94);
  border-bottom: 1px solid var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 24px; text-decoration: none; text-transform: uppercase; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.top-links a { color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0; }
.top-links a:hover, .top-links a[aria-current='page'] { color: var(--white); }

/* ---- Accueil -------------------------------------------------------------------------------- */
.hero { max-width: var(--wide); margin: 0 auto; padding: clamp(28px, 6vw, 64px) var(--gutter) 0; display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.hero-text { display: grid; gap: 18px; justify-items: start; }
.hero-art { width: 100%; aspect-ratio: 841 / 1000; object-fit: cover; border-radius: 22px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.15fr 0.85fr; } }

.kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.kicker::before { content: ''; width: 11px; height: 11px; flex: none; background: var(--gold); transform: rotate(45deg); border-radius: 1px; }
.lead { color: var(--muted); font-size: clamp(18px, 2.4vw, 20px); line-height: 1.5; max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.facts li { padding: 5px 13px; border-radius: 999px; background: var(--lacquer); color: var(--white); font-size: 14px; font-weight: 600; }

.band { max-width: var(--wide); margin: 0 auto; padding: clamp(44px, 8vw, 80px) var(--gutter) 0; display: grid; gap: 24px; }
.band-head { display: grid; gap: 10px; max-width: var(--measure); }
.band-head p:not(.kicker) { color: var(--muted); }
.note { color: var(--muted); font-size: 15px; max-width: var(--measure); }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; }
.card { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: 18px; background: var(--lacquer); color: var(--white); text-decoration: none; }
.card p { color: var(--muted); font-size: 16px; }
.card small { display: block; color: var(--gold); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
a.card:hover { background: var(--slate); color: var(--white); }

.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(46%, 220px), 1fr)); list-style: none; }
.shots figure { margin: 0; display: grid; gap: 8px; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: var(--lacquer); }
.shots figcaption { color: var(--muted); font-size: 14px; line-height: 1.35; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { padding: 5px 12px; border-radius: 10px; background: var(--lacquer); color: var(--muted); font-size: 15px; }
.tags.is-strong li { color: var(--white); font-weight: 600; }

.plate { display: grid; gap: 12px; padding: 24px; border-radius: 18px; background: var(--lacquer); max-width: var(--measure); }
.plate p { color: var(--muted); }
.plate .price { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--gold); }

.publisher { color: var(--muted); font-size: 15.5px; padding-bottom: clamp(44px, 8vw, 72px); }
.publisher p { max-width: var(--measure); }
.publisher strong { color: var(--white); }

/* ---- Pages de texte ------------------------------------------------------------------------- */
.doc { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(28px, 6vw, 56px) var(--gutter) clamp(44px, 8vw, 72px); display: grid; gap: 22px; }
.doc > h1 { font-size: clamp(38px, 7vw, 60px); }
.date { color: var(--muted); font-size: 14px; }
.doc section { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--hair); scroll-margin-top: 70px; }
.doc h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(25px, 4vw, 31px); }
.doc h2 .n { color: var(--gold); font-size: 0.72em; }
.doc h3 { margin-top: 6px; font-size: 18px; }
.doc p, .doc li { color: #c9d0de; }
.doc strong { color: var(--white); }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 7px; }
.doc li::marker { color: var(--gold); }
.ui { display: inline; padding: 1px 6px; border-radius: 6px; background: var(--slate); color: var(--white); font-size: 0.86em; font-weight: 600; }

.brief { display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: var(--lacquer); }
.brief h2 { font-size: 25px; }
.btn { display: inline-flex; justify-self: start; align-items: center; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 600; text-decoration: none; box-shadow: 0 3px 0 var(--gold-deep); }
.btn:hover { background: var(--gold-hi); color: var(--night); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding-left: 0 !important; }
.chips a { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--slate); color: var(--white); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.chips a:hover { background: var(--night-hi); }

details { padding: 13px 16px; border-radius: 13px; background: var(--lacquer); }
details[open] { padding-bottom: 16px; }
details > *:not(summary) { margin-top: 10px; }
summary { cursor: pointer; color: var(--white); font-weight: 600; }
summary::marker { color: var(--gold); }

/* ---- Pied de page --------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--hair); background: var(--ink); color: var(--muted); font-size: 14.5px; padding-bottom: env(safe-area-inset-bottom); }
.foot-in { max-width: var(--wide); margin: 0 auto; padding: 28px var(--gutter); display: grid; gap: 12px; }
.foot-brand { color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--white); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
