/* Site de présentation de Bitume (/decouvrir/, /discover/, /descubrir/), généré par scripts/site/build.mjs.
   Même identité que le jeu (client/ui-tokens.css) : fond nuit, jaune Bitume, Anton pour les titres. */
:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-2: #101317;
  --surface: #161a1f;
  --surface-2: #1d2228;
  --line: #ffffff17;
  --line-strong: #ffffff2e;
  --text: #f3f1e9;
  --muted: #a9b3bb;
  --accent: #f4c64d;
  --accent-ink: #191b18;
  --pink: #ff3ce8;
  --cyan: #29e6ff;
  --story: #86ddbb;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent; font: 800 15px/1 var(--body); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-play { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px #f4c64daa, inset 0 -2px 0 #0000002a; }
.btn-play:hover { background: #ffd666; box-shadow: 0 14px 40px -10px #f4c64dcc, inset 0 -2px 0 #0000002a; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: #ffffff0a; }
.btn-ghost:hover { border-color: #ffffff66; background: #ffffff14; }
.btn-big { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 13px; }

/* ------------------------------------------------------------------ bandeau du haut */
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top);
  transition: background-color .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.top.solid { background: #0b0d10d9; border-bottom-color: var(--line); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.top-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font: 28px/1 var(--display); letter-spacing: .06em; color: var(--accent); text-decoration: none;
  text-shadow: 0 0 22px #f4c64d55; }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: color .15s, background-color .15s; }
.links a:hover { color: var(--text); background: #ffffff0f; }
.top-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #00000033; }
.langs a { padding: 5px 10px; border-radius: 999px; color: var(--muted); font: 700 12px/1.2 var(--body); letter-spacing: .06em;
  text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { background: var(--text); color: var(--bg); }

/* ------------------------------------------------------------------ ouverture */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  padding: 140px 0 clamp(56px, 9vh, 104px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2;
  transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 80% 30%, transparent 0 40%, #0b0d10b0 75%),
    linear-gradient(90deg, #0b0d10f2 0%, #0b0d10c4 38%, #0b0d1033 70%, #0b0d1000 100%),
    linear-gradient(0deg, var(--bg) 0%, #0b0d1000 38%),
    linear-gradient(180deg, #0b0d10cc 0%, #0b0d1000 22%); }
.hero-body { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font: 800 13px/1.3 var(--body);
  letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { margin-top: 18px; }
.wordmark { display: block; font: clamp(96px, 17vw, 228px)/.86 var(--display); letter-spacing: .02em; text-transform: uppercase;
  color: var(--accent); text-shadow: 0 0 60px #f4c64d40, 0 6px 0 #0000004d; }
.tagline { display: block; margin-top: 14px; font: 800 clamp(26px, 3.6vw, 44px)/1.1 var(--body); letter-spacing: -.01em; }
.lead { max-width: 37rem; margin-top: 20px; color: #d9dcd7; font-size: clamp(17px, 1.5vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.badges li { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #0b0d1080;
  color: #dfe3e6; font-size: 13px; font-weight: 600; }
.online { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--story); font-weight: 700; font-size: 14px; }
.online[hidden] { display: none; }
.online::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--story); box-shadow: 0 0 0 4px #86ddbb2e; }

/* ------------------------------------------------------------------ chiffres */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: grid; padding: 30px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font: clamp(46px, 6vw, 72px)/1 var(--display); color: var(--accent); font-weight: 400; }
.stat span { margin-top: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.stat small { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ sections */
section { position: relative; }
.features { display: grid; gap: clamp(72px, 10vw, 140px); padding-block: clamp(80px, 11vw, 150px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature.flip .frame { order: 2; }
.copy h2, .section-head h2 { margin-top: 14px; font: clamp(36px, 4.6vw, 60px)/1.02 var(--display); text-transform: uppercase;
  letter-spacing: .01em; }
.copy > p { margin-top: 18px; color: #cfd4d0; }
.points { display: grid; gap: 10px; margin-top: 24px; }
.points li { position: relative; padding-left: 30px; color: var(--text); font-weight: 600; font-size: 16px; }
.points li::before { content: ''; position: absolute; left: 0; top: .5em; width: 16px; height: 8px; border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }

.frame { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); box-shadow: 0 30px 80px -30px #000000cc, 0 0 0 1px #00000066; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease); }
.frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 #ffffff1f; background: linear-gradient(180deg, #ffffff08, transparent 30%); }
.feature:hover .frame img, .card:hover .frame img { transform: scale(1.035); }
.feature .frame { box-shadow: 0 40px 100px -40px #000, 0 0 0 1px #00000066, 0 0 70px -30px var(--glow, #29e6ff55); }
.feature:nth-child(3n + 2) .frame { --glow: #ff3ce855; }
.feature:nth-child(3n) .frame { --glow: #f4c64d55; }

.band { padding-block: clamp(80px, 10vw, 130px); background:
  radial-gradient(60% 50% at 10% 0%, #29e6ff0d, transparent 70%),
  radial-gradient(50% 40% at 100% 100%, #ff3ce80d, transparent 70%), var(--bg-2);
  border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head > p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card h3 { margin-top: 18px; font: 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(34px, 5vw, 52px); }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: #dfe3e6; }
.places { padding-block: clamp(80px, 10vw, 130px); }

/* ------------------------------------------------------------------ mobile */
.mobile-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.phone { justify-self: center; width: min(300px, 74vw); aspect-ratio: 9 / 19; padding: 12px; border-radius: 46px;
  background: linear-gradient(145deg, #2b3036, #0d0f12 55%); border: 1px solid #ffffff22;
  box-shadow: 0 50px 100px -30px #000, 0 0 0 2px #00000099, 0 0 90px -20px #29e6ff3d; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 35px; background: #000; }
.phone-screen::before { content: ''; position: absolute; z-index: 1; top: 10px; left: 50%; width: 34%; height: 22px;
  transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.fair { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid #f4c64d4d;
  background: linear-gradient(135deg, #f4c64d14, #f4c64d05); }
.fair h3 { font: 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--accent); }
.fair p { margin-top: 8px; color: #d6dad5; font-size: 16px; }

/* ------------------------------------------------------------------ galerie */
.gallery { padding-block: clamp(80px, 10vw, 130px); }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shots li:first-child { grid-column: span 2; grid-row: span 2; }
.thumb { display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.thumb:hover img { transform: scale(1.05); filter: brightness(1.08); }
.lightbox { width: min(96vw, 1500px); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 18px;
  background: #050607; color: var(--text); box-shadow: 0 40px 120px #000; overflow: hidden; }
.lightbox::backdrop { background: #000000d9; }
.lightbox img { width: 100%; max-height: calc(94vh - 56px); object-fit: contain; background: #000; }
.lightbox-caption { padding: 14px 64px 16px 20px; color: var(--muted); font-size: 15px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong);
  border-radius: 50%; background: #0b0d10cc; color: var(--text); font: 400 30px/1 var(--body); cursor: pointer; }
.lb-btn:hover { background: var(--accent); color: var(--accent-ink); }
.lb-prev, .lb-next { top: calc(50% - 52px); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-close { top: 12px; right: 12px; }

/* ------------------------------------------------------------------ FAQ */
.faq { padding-block: 0 clamp(80px, 10vw, 130px); }
.faq-list { display: grid; gap: 12px; max-width: 54rem; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s, background-color .2s; }
.faq details[open] { border-color: #f4c64d55; background: var(--surface-2); }
.faq summary { position: relative; padding: 20px 60px 20px 22px; font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--accent);
  font: 400 30px/1 var(--body); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: #cfd4d0; }

/* ------------------------------------------------------------------ appel final */
.final { display: grid; place-items: center; min-height: min(78vh, 720px); overflow: hidden; isolation: isolate; text-align: center;
  padding-block: 100px; }
.final-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final-shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 70% at 50% 50%, #0b0d1073, #0b0d10e6 80%), linear-gradient(180deg, var(--bg), #0b0d1000 25%, #0b0d1000 75%, var(--bg)); }
.final h2 { font: clamp(56px, 10vw, 132px)/.92 var(--display); text-transform: uppercase; color: var(--accent);
  text-shadow: 0 0 60px #f4c64d40; }
.final p { margin: 18px 0 34px; font-size: clamp(18px, 2vw, 22px); font-weight: 600; }

/* ------------------------------------------------------------------ pied */
.foot { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); background: var(--bg-2); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.foot p a { text-decoration: none; }
.foot p a:hover { color: var(--text); }
.foot .langs { margin-left: auto; }
.foot-play { color: var(--accent); font-weight: 800; text-decoration: none; }
.foot-play:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ apparition au défilement (avec JS seulement) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.seen { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ écrans moyens et étroits */
@media (max-width: 1020px) {
  .links { display: none; }
}
@media (max-width: 900px) {
  .feature, .feature.flip, .mobile-row { grid-template-columns: 1fr; }
  .feature.flip .frame { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { width: min(260px, 66vw); }
  .mobile-row .copy { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-row { height: 60px; gap: 12px; }
  .brand { font-size: 24px; }
  .langs a { padding: 5px 8px; }
  .hero { min-height: 92svh; padding-top: 110px; }
  .hero-img { object-position: 58% 50%; }
  .hero-shade { background:
    linear-gradient(0deg, var(--bg) 0%, #0b0d10d9 46%, #0b0d1059 78%, #0b0d10b3 100%); }
  .actions .btn { flex: 1 1 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .grid-3 { grid-template-columns: 1fr; }
  .shots li:first-child { grid-column: span 2; grid-row: auto; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; }
  .foot .langs { margin-left: 0; }
}
@media (max-width: 380px) {
  .top-end .btn-small { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
