/* FREIGHT — site vitrine. Chrome du jeu : bleu nuit, liseré doré, panneaux d'instruments. Aucune dépendance externe. */
:root {
  --navy: #07192A; --navy-2: #0D2A42; --navy-3: #123652; --panel: rgba(13, 42, 66, .82);
  --gold: #F4B14A; --gold-dark: #B57B23; --cream: #FBF4E4; --mist: #BFD3E2; --teal: #86DBC4; --coral: #E97458;
  --sea-light: #58B1E2;
  --font-display: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--cream); background: var(--navy); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
.shell { width: min(1160px, 100% - 2.5rem); margin: 0 auto; }
.eyebrow { font-family: var(--font-display); letter-spacing: .18em; text-transform: uppercase; font-size: .74rem; color: var(--gold); font-weight: 700; margin: 0 0 .5rem; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--cream); }
p { margin: 0 0 1rem; }
.muted { color: var(--mist); }

/* En-tête : même bandeau que le jeu */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 2px solid var(--gold); }
.topbar .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--cream); font-family: var(--font-display); font-weight: 800; letter-spacing: .34em; font-size: 1.2rem; }
.brand .wave { color: var(--teal); font-size: 1.3rem; letter-spacing: 0; }
.topbar nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.topbar nav a { color: var(--cream); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .06em; padding: .5rem .85rem; border: 1px solid rgba(191,211,226,.35); border-radius: 8px; }
.topbar nav a:hover { border-color: var(--gold); color: var(--gold); }
.topbar nav a.cta { background: var(--gold); color: var(--navy); border-color: var(--gold); box-shadow: 0 3px 0 var(--gold-dark); }

/* Accroche : la mer du jeu animée (hero.js) sous la capture du port, qui s'efface dès que la scène est prête */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: var(--navy-3); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero canvas.sea { z-index: -4; }
.hero canvas.deck { z-index: -3; }
.hero .bg { position: absolute; inset: 0; z-index: -2; background: url("assets/vitrine-quai.jpg") center 40% / cover no-repeat; transition: opacity 1.4s ease; }
.hero.live .bg { opacity: 0; }
.hero .veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,25,42,.25) 0%, rgba(7,25,42,.55) 55%, var(--navy) 100%); }
.hero .sound { position: absolute; top: 1rem; right: max(1.25rem, calc((100% - 1160px) / 2)); z-index: 2; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(191,211,226,.5); background: rgba(7,25,42,.55); color: var(--cream); font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; cursor: pointer; backdrop-filter: blur(4px); }
.hero .sound .wave { color: var(--mist); font-size: 1.1rem; }
.hero .sound:hover { border-color: var(--gold); color: var(--gold); }
.hero .sound[aria-pressed="true"] { border-color: var(--teal); }
.hero .sound[aria-pressed="true"] .wave { color: var(--teal); }
.hero .shell { padding: 5rem 0 2.5rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; max-width: 12ch; text-shadow: 0 6px 24px rgba(0,0,0,.55); }
.hero .lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 40rem; color: var(--cream); margin-top: 1rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.4rem; }
.button { display: inline-block; padding: .85rem 1.4rem; border-radius: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; text-decoration: none; border: 2px solid transparent; }
.button.primary { background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 var(--gold-dark); }
.button.primary:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--gold-dark); }
.button.ghost { color: var(--cream); border-color: rgba(251,244,228,.7); background: rgba(7,25,42,.35); }
.button[aria-disabled="true"] { opacity: .6; cursor: not-allowed; box-shadow: none; }

/* Bandeau d'instruments, comme le bas du HUD */
.instruments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.2rem; border: 2px solid var(--gold); border-radius: 12px; background: var(--panel); backdrop-filter: blur(4px); }
.instrument { padding: 1rem 1.2rem; border-right: 1px solid rgba(244,177,74,.35); }
.instrument:last-child { border-right: 0; }
.instrument .value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--cream); line-height: 1.1; }
.instrument .label { font-size: .84rem; color: var(--mist); }

/* Panneaux : cartes du HUD */
.panel { background: var(--panel); border: 2px solid var(--gold); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.35); }
section { padding: 4.5rem 0; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.feature.flip { grid-template-columns: 1fr 1.15fr; }
.feature.flip .shot { order: 2; }
.feature .text h2 { margin-bottom: .6rem; }
.feature .text p { color: var(--mist); font-size: 1.03rem; }
.shot { padding: 6px; }
.shot .frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--navy-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { padding: .55rem .4rem .2rem; font-size: .82rem; color: var(--mist); }
.shot figcaption b { color: var(--gold); font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; margin-right: .5rem; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.checks li { padding-left: 1.6rem; position: relative; color: var(--cream); }
.checks li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(134,219,196,.25); }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.pillar { padding: 1.3rem 1.2rem 1.4rem; border-color: rgba(244,177,74,.55); }
.pillar svg { width: 44px; height: 44px; display: block; margin-bottom: .8rem; }
.pillar h3 { font-size: 1.1rem; margin-bottom: .4rem; letter-spacing: .02em; }
.pillar p { margin: 0; color: var(--mist); font-size: .96rem; }

/* Galerie */
.gallery { background: var(--navy-2); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.4rem; }

/* Progression : ligne d'étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.4rem; counter-reset: step; }
.step { padding: 1.1rem 1.1rem 1.2rem; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--gold); display: block; margin-bottom: .3rem; }
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--mist); font-size: .93rem; }

/* Téléchargement */
.download .panel { padding: 2.4rem 1.6rem; text-align: center; max-width: 44rem; margin: 0 auto; }
.download h2 { margin-bottom: .6rem; }
.download .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--mist); font-size: .93rem; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.3rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(191,211,226,.35); color: var(--mist); font-size: .88rem; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244,177,74,.6); } 50% { box-shadow: 0 0 0 7px rgba(244,177,74,0); } }

footer { border-top: 1px solid rgba(191,211,226,.2); padding: 1.6rem 0 2.2rem; color: var(--mist); font-size: .88rem; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }

@media (max-width: 880px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .shots { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .instruments { grid-template-columns: 1fr; }
  .instrument { border-right: 0; border-bottom: 1px solid rgba(244,177,74,.35); }
  .instrument:last-child { border-bottom: 0; }
  .hero { min-height: 0; }
  .hero .shell { padding-top: 14rem; }
  .hero .bg { background-position: center 0; background-size: auto 60%; background-color: var(--navy); }
  .hero .sound { top: .75rem; right: .75rem; }
  .hero .veil { background: linear-gradient(180deg, rgba(7,25,42,.15) 0%, rgba(7,25,42,.35) 30%, var(--navy) 58%, var(--navy) 100%); }
  .topbar .shell { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}
