@font-face {
  font-family: 'Black Ops One';
  src: url('fonts/black-ops-one-latin-400-normal.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('fonts/barlow-semi-condensed-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* Memes couleurs que le launcher : nuit bleue, lampadaires au sodium, gilet du zombie, sang. */
:root {
  --night: #0a0e17;
  --steel: #121826;
  --bone: #ece5d3;
  --ash: #9aa0ad;
  --sodium: #f0a23b;
  --sodium-deep: #a8601a;
  --toxic: #8fdc3a;
  --blood: #d0342c;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 18px/1.5 'Barlow Semi Condensed', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sodium); }
code { font-family: inherit; font-weight: 700; color: var(--bone); background: rgba(255, 255, 255, 0.08); padding: 0 5px; }
img { display: block; max-width: 100%; }

h2, h3 { font-weight: 400; margin: 0; }
h2 {
  font-family: 'Black Ops One', sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 1px;
}
h3 { font-weight: 700; font-size: 22px; line-height: 1.2; }

:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }

/* ---------------------------------------------------------------- bandes noires (comme au cinema) */

.topbar, .footbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: #000;
  color: var(--ash);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 52px;
  flex-wrap: wrap;
}
.topbar-name { color: var(--bone); font-weight: 700; text-decoration: none; letter-spacing: 0.03em; }
.topbar nav { display: flex; gap: clamp(12px, 2.4vw, 28px); flex-wrap: wrap; }
.topbar nav a { color: var(--ash); text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 0; }
.topbar nav a:hover { color: var(--bone); }
.topbar nav .nav-shop { color: var(--sodium); }

.footbar {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 15px;
  flex-wrap: wrap;
}
.footbar a { color: var(--ash); }

/* ---------------------------------------------------------------- en-tete : le survivant face a la horde */

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  align-items: center;
  padding: 48px var(--gutter);
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 23, 0) 42%, rgba(10, 14, 23, 0.7) 64%, rgba(10, 14, 23, 0.9) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(10, 14, 23, 0) 26%),
    url('img/hero.jpg') 30% 55% / cover no-repeat;
}
.hero-text { position: relative; grid-column: 2; }

.brand { position: relative; width: fit-content; }
.logo {
  margin: 0;
  font-family: 'Black Ops One', sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 2px;
  text-shadow: 0 3px 0 #000, 0 0 30px rgba(0, 0, 0, 0.9);
}
.logo span { color: var(--toxic); text-shadow: 0 3px 0 #000, 0 0 24px rgba(143, 212, 58, 0.45); }

/* Tampon rouge pose de travers sur le logo, encre irreguliere. */
.stamp {
  position: absolute;
  right: -14px;
  bottom: -1.15em;
  padding: 2px 0.4em 0;
  font-family: 'Black Ops One', sans-serif;
  font-size: clamp(24px, 2.9vw, 38px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blood);
  border: 3px solid var(--blood);
  transform: rotate(-7deg);
  opacity: 0.92;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='220' height='70' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='220' height='70' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-size: 220px 70px;
  mask-size: 220px 70px;
  animation: stamp 0.45s 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes stamp {
  from { transform: rotate(-7deg) scale(1.9); opacity: 0; }
  to { transform: rotate(-7deg) scale(1); opacity: 0.92; }
}

.pitch { margin: 2.4em 0 1.1em; font-size: clamp(19px, 1.8vw, 22px); color: #d9d3c4; max-width: 32ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 22px 11px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.08s, filter 0.15s;
}
.btn-main {
  color: #1c1204;
  background: linear-gradient(#f7b85a, var(--sodium) 55%, #d98a26);
  box-shadow: 0 4px 0 var(--sodium-deep);
}
.btn-main:hover { filter: brightness(1.07); }
.btn-main:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--sodium-deep); }
.btn-ghost { color: var(--bone); background: rgba(10, 14, 23, 0.55); box-shadow: inset 0 0 0 1px rgba(236, 229, 211, 0.3); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--bone); }
.btn[aria-disabled=true] { cursor: not-allowed; filter: saturate(0.2) brightness(0.65); }

/* Etat du serveur facon recepteur radio. */
.radio { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; font-size: 16px; color: var(--ash); }
.scope { width: 84px; height: 26px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(236, 229, 211, 0.1); flex: none; }
.scope polyline { fill: none; stroke: var(--ash); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.radio.online { color: var(--bone); }
.radio.online .scope polyline { stroke: var(--toxic); filter: drop-shadow(0 0 3px rgba(143, 212, 58, 0.7)); }
.radio.offline .scope polyline { stroke: var(--blood); }

/* ---------------------------------------------------------------- sections */

main > section { padding: clamp(56px, 8vw, 104px) var(--gutter); }
main > section > h2 { margin-bottom: 36px; }

/* Les regles : images et textes en alternance, comme des fiches de dossier. */
.rules { max-width: 1180px; margin: 0 auto; }
.rule {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.rule:nth-of-type(even) img { order: 2; }
.rule img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.rule h3 { font-family: 'Black Ops One', sans-serif; font-weight: 400; font-size: 26px; margin-bottom: 10px; }
.rule:first-of-type h3 { color: var(--blood); }
.rule p { margin: 0; color: #cfc9ba; max-width: 46ch; }

.trailer { background: #000; text-align: left; }
.trailer video { display: block; width: 100%; max-width: 1180px; aspect-ratio: 16 / 9; background: #000; }
.trailer h2 { max-width: 1180px; }

.join { max-width: 1180px; margin: 0 auto; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: step; border-top: 3px solid var(--sodium); padding-top: 18px; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: 'Black Ops One', sans-serif;
  font-size: 44px;
  line-height: 1;
  color: var(--sodium);
  margin-bottom: 10px;
}
.steps p { color: #cfc9ba; margin: 10px 0 16px; }
.address { margin-top: 32px; color: var(--ash); }
.address strong { color: var(--bone); user-select: all; }

/* ---------------------------------------------------------------- boutique */

.shop { background: linear-gradient(180deg, var(--night), #0e0f16 40%, #140d10); }
.shop > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.shop-intro { margin-top: -18px; margin-bottom: 32px; color: #d9d3c4; font-size: 20px; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  background: var(--steel);
  border: 1px solid rgba(236, 229, 211, 0.1);
}
.offer.vedette { border-color: var(--blood); box-shadow: 0 0 0 1px var(--blood), 0 20px 50px rgba(208, 52, 44, 0.15); }
.offer h3 { font-family: 'Black Ops One', sans-serif; font-weight: 400; font-size: 24px; }
.offer .price { font-weight: 700; font-size: 34px; color: var(--sodium); margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.offer p { margin: 0 0 20px; color: #cfc9ba; flex: 1; }
.offer .btn { text-align: center; }
.shop-how { margin-top: 40px; padding: 22px 26px; border-left: 3px solid var(--blood); background: rgba(0, 0, 0, 0.3); }
.shop-how ul { margin: 10px 0 0; padding-left: 20px; color: #cfc9ba; }
.shop-how li { margin: 6px 0; }
.shop-how em { color: var(--bone); font-style: normal; font-weight: 700; }

/* ---------------------------------------------------------------- page des conditions */

.legal { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.legal h1 { font-family: 'Black Ops One', sans-serif; font-weight: 400; font-size: 36px; margin: 0 0 24px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: #cfc9ba; }
.legal .todo { color: var(--sodium); font-weight: 700; }

/* ---------------------------------------------------------------- petits ecrans */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: end; min-height: 92vh; }
  .hero-text { grid-column: 1; }
  .hero-art {
    background:
      linear-gradient(0deg, var(--night) 8%, rgba(10, 14, 23, 0.6) 55%, rgba(10, 14, 23, 0.1) 100%),
      url('img/hero.jpg') 30% 40% / cover no-repeat;
  }
  .rule { grid-template-columns: 1fr; }
  .rule:nth-of-type(even) img { order: 0; }
  .steps, .offers { grid-template-columns: 1fr; }
  .topbar nav { gap: 14px; }
  .topbar nav a { padding: 8px 0; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp { animation: none; }
}
