/* ============================================================
   JoyWing — site vitrine mockup
   Thème « cockpit de nuit » : bleus nuit, orange post-combustion,
   cyan HUD. Aucune ressource externe.
   ============================================================ */

:root {
  --bg-0: #070b14;
  --bg-1: #0d1526;
  --bg-2: #131e35;
  --line: rgba(79, 216, 255, 0.14);
  --text: #e8edf6;
  --text-dim: #9aa8c0;
  --orange: #ff7a1a;
  --orange-hot: #ffa04d;
  --cyan: #4fd8ff;
  --font-display: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "Cascadia Code", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin-bottom: 2.5rem; }
h1 em, h2 em { font-style: normal; color: var(--orange); }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary {
  background: var(--orange);
  color: #140900;
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--orange-hot);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 122, 26, 0.35);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(79, 216, 255, 0.05);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-wide { width: 100%; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand span { color: var(--orange); }
.brand-mark { width: 24px; height: 24px; color: var(--cyan); }

.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--cyan); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: hero-zoom 6s ease-out forwards;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg-0) 4%, rgba(7, 11, 20, 0.72) 38%, rgba(7, 11, 20, 0.15) 70%, rgba(7, 11, 20, 0.4) 100%);
}

.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(7, 11, 20, 0.12) 3px 4px);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-content {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 9rem 1.5rem 4.5rem;
}

.hero-sub {
  max-width: 34rem;
  margin: 1.4rem 0 2.2rem;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.hero-sub strong { color: var(--cyan); font-family: var(--font-mono); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--orange);
}
.hero-stats dd {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Coins HUD décoratifs */
.hud-corner {
  position: absolute;
  width: 56px; height: 56px;
  border: 1px solid rgba(79, 216, 255, 0.45);
  pointer-events: none;
}
.hud-corner.tl { top: 84px; left: 20px; border-right: none; border-bottom: none; }
.hud-corner.br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* ---------- Sections ---------- */

.section { padding: 6.5rem 0; }
.section-alt {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 760px; }

.section-sub { color: var(--text-dim); max-width: 36rem; margin: -1.5rem 0 2.5rem; }

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 2.2rem 1.8rem 1.8rem;
  overflow: hidden;
}
.section .step { background: var(--bg-1); }

.step-num {
  position: absolute;
  top: 0.8rem; right: 1.1rem;
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(79, 216, 255, 0.1);
}

.step-icon { width: 44px; height: 44px; color: var(--cyan); margin-bottom: 1.2rem; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Fonctionnalités ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.feature {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  padding: 1.4rem 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-left-color: var(--orange); }
.feature h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--cyan); }
.feature:hover h3 { color: var(--orange-hot); }
.feature p { font-size: 0.88rem; color: var(--text-dim); }

/* ---------- Spécifications ---------- */

.spec-wrap { overflow-x: auto; border: 1px solid var(--line); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table tr:nth-child(odd) { background: var(--bg-1); }
.spec-table th, .spec-table td { padding: 0.85rem 1.2rem; text-align: left; }
.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
  width: 220px;
  border-right: 1px solid var(--line);
}
.spec-table td { color: var(--text); font-family: var(--font-mono); font-size: 0.88rem; }

/* ---------- Offres ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 1.5rem;
}

.price-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2.4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.price-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 50px rgba(255, 122, 26, 0.12);
}

.badge {
  position: absolute;
  top: -0.8rem; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #140900;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  white-space: nowrap;
}

.price-card h3 { font-size: 1.2rem; }
.price { font-family: var(--font-mono); }
.price .amount { font-size: 3.2rem; font-weight: 700; color: var(--text); }
/* Marge un peu plus large qu'à l'origine : le code « CHF » est un mot, pas un symbole. */
.price .currency { font-size: 1.4rem; color: var(--orange); margin-left: 0.45rem; }

.price-card ul { list-style: none; flex: 1; }
.price-card li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  color: var(--text-dim);
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(79, 216, 255, 0.1);
}
.price-card li::before {
  content: "»";
  position: absolute; left: 0.2rem;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- Précommande ---------- */

.preorder {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

.field input, .field select {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { border-color: var(--cyan); }
.field input.invalid { border-color: var(--orange); }

.form-note { font-size: 0.8rem; color: var(--text-dim); text-align: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  font-size: 0.9rem;
  color: var(--orange-hot);
  text-align: center;
  font-family: var(--font-mono);
}

.btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.confirm {
  background: var(--bg-1);
  border: 1px solid var(--cyan);
  padding: 2.5rem 2rem;
  text-align: center;
  animation: confirm-in 0.4s ease-out;
}
@keyframes confirm-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.confirm svg { width: 56px; height: 56px; color: var(--cyan); margin: 0 auto 1rem; }
.confirm h3 { color: var(--cyan); margin-bottom: 0.6rem; }
.confirm p { color: var(--text-dim); }
.confirm .form-note { margin-top: 1rem; }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }

details {
  background: var(--bg-2);
  border: 1px solid var(--line);
}
details summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--orange);
  transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details[open] summary { color: var(--cyan); }
details p { padding: 0 1.4rem 1.3rem; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  background: var(--bg-0);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer p { font-size: 0.82rem; color: var(--text-dim); }
.footer nav { display: flex; gap: 1.4rem; }
.footer nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer nav a:hover { color: var(--cyan); }

/* ---------- Animations d'apparition ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }
.reveal.d4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .hero-content { padding-top: 7rem; }
  .hud-corner { display: none; }
  .section { padding: 4.5rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Pages légales ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 7rem 1.5rem 4rem; }
.legal-back { display: inline-block; margin-bottom: 2rem; color: var(--cyan); text-decoration: none; font-size: 0.9rem; }
.legal-back:hover { text-decoration: underline; }
.legal h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal .updated { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 2.5rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 2.4rem 0 0.8rem; color: var(--cyan); }
.legal h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); }
.legal ul, .legal ol { margin: 0.6rem 0 0.6rem 1.3rem; }
.legal li { margin: 0.35rem 0; }
.legal a { color: var(--cyan); }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.legal th { color: var(--text); font-weight: 600; }
.legal-note { border: 1px solid var(--line); background: var(--bg-2); border-radius: 8px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
/* Champ que l'éditeur doit compléter avant mise en production — volontairement voyant. */
.todo { background: rgba(255, 122, 26, 0.16); border: 1px dashed var(--orange); color: var(--orange-hot); padding: 0.05rem 0.4rem; border-radius: 4px; font-weight: 600; font-size: 0.95em; }
