/* ============================================================
   RushQuatuor — site vitrine. Palette sunset du jeu.
   Pur CSS, zéro dépendance externe (fonctionne offline).
   ============================================================ */

:root {
  --sky-top:    #1b1840;
  --sky-mid:    #523060;
  --sky-warm:   #c44830;
  --sun:        #ffa050;
  --sun-pale:   #ffd590;
  --gold:       #FFB347;
  --gold-pale:  #FFE9A8;
  --ember:      #E85A2E;
  --deep:       #2a0a05;

  --c-thief:    #E55757;  /* Voleuse  */
  --c-mage:     #5990E5;  /* Mage     */
  --c-knight:   #74D974;  /* Chevalier*/
  --c-thief2:   #F2CC5C;  /* Voleuse 2*/

  --ink:        #1c0604;
  --paper:      #FFE8C8;
  --muted:      #c9a88f;

  --bg:         #140a14;
  --panel:      rgba(255, 230, 200, 0.04);
  --panel-bd:   rgba(255, 200, 150, 0.14);

  --max:        1120px;
  --radius:     16px;
  --font-display: Impact, "Arial Black", Haettenschweiler, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-pale); }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 10, 20, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-bd);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.nav__logo { height: 34px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav__links a { color: var(--muted); font-size: 0.94rem; font-weight: 600; letter-spacing: 0.3px; }
.nav__links a:hover { color: var(--gold-pale); }
.nav__cta {
  background: linear-gradient(180deg, var(--gold) 0%, var(--ember) 100%);
  color: #2a0a05 !important; padding: 8px 16px; border-radius: 10px;
  font-weight: 800; box-shadow: 0 4px 14px rgba(232, 90, 46, 0.35);
}
.nav__burger { display: none; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 56px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 68% 38%, rgba(255,160,80,0.35), transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 32%, var(--sky-warm) 64%, var(--sun) 86%, var(--sun-pale) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1000px; padding: 0 24px; }
.hero__art {
  width: 100%; max-width: 940px; margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,200,150,0.12);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}
.hero__tag {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: #2a0a05; margin: 26px auto 26px; max-width: 640px; font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,220,170,0.4);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.02rem; letter-spacing: 0.3px;
  padding: 15px 28px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(180deg, #FFD27A 0%, var(--gold) 35%, var(--ember) 100%);
  color: #2a0a05;
  box-shadow: 0 10px 30px rgba(232, 90, 46, 0.45), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary:hover { box-shadow: 0 14px 38px rgba(232, 90, 46, 0.6); color: #2a0a05; }
.btn--ghost {
  background: rgba(255, 232, 200, 0.08); color: var(--paper);
  border-color: var(--panel-bd); backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 232, 200, 0.14); color: var(--gold-pale); }
.btn__sub { font-weight: 600; font-size: 0.78rem; opacity: 0.8; }
.btn__ico { width: 20px; height: 20px; }

/* ── Sections ───────────────────────────────────────────── */
section { position: relative; }
.band { padding: 88px 0; }
.band--alt { background: linear-gradient(180deg, rgba(82,48,96,0.10), rgba(40,10,5,0.18)); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; font-weight: 800;
  color: var(--ember); margin: 0 0 10px;
}
.h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: 1px; line-height: 1.05;
  margin: 0 0 18px;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold) 50%, var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0 0 8px; }
.section-head { margin-bottom: 46px; }

/* ── Feature grid ───────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--feat { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--panel-bd);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.card:hover { border-color: rgba(255,179,71,0.4); transform: translateY(-3px); background: rgba(255,230,200,0.07); }
.card__ico { font-size: 1.7rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--gold-pale); }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ── Classes ────────────────────────────────────────────── */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.klass {
  border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden;
  border: 1px solid var(--panel-bd); background: var(--panel);
}
.klass::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent);
}
.klass::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.22;
}
.klass__avatar {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px;
  background: var(--accent); border: 3px solid rgba(0,0,0,0.35);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4); position: relative; z-index: 1;
}
.klass h3 { margin: 0 0 4px; font-size: 1.4rem; font-family: var(--font-display); letter-spacing: 0.5px; color: var(--paper); }
.klass__role { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.klass ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.96rem; }
.klass li { margin-bottom: 6px; }
.klass li b { color: var(--paper); }

/* ── Themes ─────────────────────────────────────────────── */
.themes { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  background: var(--panel); border: 1px solid var(--panel-bd); color: var(--paper);
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ── Controls table ─────────────────────────────────────── */
.controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ctrl {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; background: var(--panel); border: 1px solid var(--panel-bd); border-radius: 12px;
}
.key {
  flex: 0 0 auto; min-width: 56px; text-align: center;
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 1px;
  padding: 8px 12px; border-radius: 10px;
  background: linear-gradient(180deg, #3a2230, #1d0e1c); color: var(--gold-pale);
  border: 1px solid rgba(255,200,150,0.2); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.4);
}
.ctrl__txt b { color: var(--gold-pale); }
.ctrl__txt span { color: var(--muted); font-size: 0.92rem; }

/* ── Download ───────────────────────────────────────────── */
.download {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232,90,46,0.22), transparent 60%),
    linear-gradient(180deg, rgba(40,10,5,0.4), rgba(20,10,20,0.2));
  border-top: 1px solid var(--panel-bd); border-bottom: 1px solid var(--panel-bd);
}
.dl-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid rgba(255,179,71,0.3);
  border-radius: 22px; padding: 48px 36px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}
.dl-card .h2 { margin-bottom: 8px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; margin: 22px 0 28px; }
.dl-meta div { color: var(--muted); font-size: 0.95rem; }
.dl-meta b { color: var(--gold-pale); display: block; font-size: 1.05rem; }
.dl-hash {
  margin-top: 22px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.76rem; color: var(--muted); word-break: break-all;
  background: rgba(0,0,0,0.3); border: 1px solid var(--panel-bd); border-radius: 10px; padding: 12px 14px;
}
.dl-hash b { color: var(--paper); }
.dl-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────── */
.footer { padding: 50px 0 40px; border-top: 1px solid var(--panel-bd); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { height: 30px; }
.footer__credits { color: var(--muted); font-size: 0.86rem; max-width: 520px; }
.footer__credits a { color: var(--gold); }

/* ── Reveal animation ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .grid--3, .classes, .controls { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .klass:hover { transform: none; }
}
