/* Le site de Grind Slash Reap It : l'habit de l'interface du jeu (fond prune sombre, liserés et titres
   dorés, Cinzel pour les titres, Nunito pour le texte) autour des images du monde Crayon. */

@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url('/fonts/cinzel-700.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 900; font-display: swap; src: url('/fonts/cinzel-900.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('/fonts/nunito-400.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/fonts/nunito-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/nunito-800.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #120c1a;
  --bg-2: #1a1225;
  --plate: rgba(30, 21, 42, 0.86);
  --plate-hi: rgba(44, 31, 60, 0.9);
  --line: rgba(232, 196, 122, 0.22);
  --line-hi: rgba(232, 196, 122, 0.55);
  --gold: #e8c47a;
  --gold-hi: #ffe2a0;
  --gold-lo: #c8862a;
  --text: #efe6d8;
  --muted: #b3a7bd;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font-title: 'Cinzel', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
b { color: var(--gold-hi); font-weight: 800; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 26px; border-radius: 12px;
  font: 900 15px/1.2 var(--font-title); letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn small { display: block; margin-top: 4px; font: 700 12px/1.2 var(--font-body); letter-spacing: 0.04em; text-transform: none; opacity: 0.8; }
.btn-gold {
  color: #2a1608;
  background: linear-gradient(180deg, #ffe7a8 0%, #f0c060 45%, #c8862a 100%);
  box-shadow: 0 0 0 1px rgba(255, 230, 160, 0.6) inset, 0 8px 28px rgba(240, 180, 70, 0.28);
}
.btn-gold:hover { color: #2a1608; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 240, 190, 0.9) inset, 0 12px 36px rgba(240, 180, 70, 0.42); }
.btn-dl { padding: 16px 30px 16px 24px; text-align: left; }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px var(--line-hi) inset; }
.btn-ghost:hover { color: var(--gold-hi); background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 9px 16px; font-size: 12px; }

/* ---------- barre du haut ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 12px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  background: linear-gradient(180deg, rgba(18, 12, 26, 0.92), rgba(18, 12, 26, 0.7));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a, .nav-lang { color: var(--muted); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links a:hover, .nav-lang:hover { color: var(--gold-hi); }

/* ---------- écran d'accueil ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gutter) 40px;
  background:
    linear-gradient(90deg, rgba(18, 12, 26, 0.94) 0%, rgba(18, 12, 26, 0.7) 45%, rgba(18, 12, 26, 0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%),
    url('/img/hero-bg.webp') center / cover no-repeat;
}
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; }
.kicker {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-hi); background: rgba(232, 196, 122, 0.1); box-shadow: 0 0 0 1px var(--line-hi) inset;
}
.hero h1 { margin: 0; }
.hero h1 img { width: min(520px, 100%); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); }
.tagline { margin: 22px 0 14px; font: 900 clamp(22px, 2.6vw, 30px)/1.25 var(--font-title); color: var(--gold-hi); letter-spacing: 0.02em; }
.lead { margin: 0 0 30px; max-width: 34em; font-size: 18px; color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-center { justify-content: center; }
.hero-art { width: 100%; max-width: 620px; justify-self: end; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.stats {
  list-style: none; margin: 56px auto 0; padding: 18px 28px; width: 100%; max-width: var(--wrap);
  display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px 28px;
  background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius);
}
.stats li { display: flex; align-items: baseline; gap: 10px; }
.stats b { font: 900 26px/1 var(--font-title); color: var(--gold-hi); }
.stats span { color: var(--muted); font-weight: 700; font-size: 14px; }

/* ---------- sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 96px var(--gutter) 24px; }
.section-narrow { max-width: 820px; }
.section h2 {
  margin: 0 0 48px; text-align: center;
  font: 900 clamp(28px, 4vw, 42px)/1.15 var(--font-title); letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff8e4 10%, #ffd890 50%, #c8862a 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section h2::after { content: '◆'; display: block; margin-top: 10px; font-size: 14px; color: var(--gold); -webkit-text-fill-color: var(--gold); }
.section .h2-small { margin-top: 80px; font-size: clamp(24px, 3vw, 32px); }
.section-lead { max-width: 44em; margin: -28px auto 40px; text-align: center; color: var(--muted); }

/* ---------- ce qui t'attend ---------- */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.feature.flip .feature-shot { order: 2; }
.feature-shot {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-hi); box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-shot:hover { transform: translateY(-3px) rotate(-0.3deg); box-shadow: var(--shadow), 0 0 0 1px var(--gold); }
.feature-text h3 { margin: 0 0 14px; font: 900 26px/1.2 var(--font-title); color: var(--gold); }
.feature-text p { margin: 0; color: var(--text); }

/* ---------- le monde ---------- */
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: zone; }
.zone { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px 18px; text-align: center; transition: transform 0.2s, border-color 0.2s; }
.zone:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.zone-art {
  height: 170px; margin: 0 -16px 14px; display: grid; place-items: end center; padding: 14px 10px 6px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: radial-gradient(ellipse at 50% 95%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 70%);
}
.zone-art img { max-height: 150px; width: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.zone h3 { margin: 0; font: 900 18px/1.2 var(--font-title); color: var(--gold-hi); }
.zone h3::before { counter-increment: zone; content: counter(zone) '. '; color: var(--gold-lo); }
.zone-lv { margin: 4px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.zone-boss { margin: 0; font-size: 14px; line-height: 1.35; }
.zone-boss span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #ff8a5c; }

.worlds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.world {
  position: relative; overflow: hidden; padding: 92px 18px 20px; text-align: center;
  background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--portal) 35%, transparent); border-radius: var(--radius);
}
.world-seal {
  position: absolute; left: 50%; top: 18px; width: 62px; height: 62px; margin-left: -31px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--portal) 70%, transparent) 0%, transparent 70%);
}
.world-seal::before, .world-seal::after {
  content: ''; position: absolute; left: -6px; right: -6px; top: 26px; height: 10px; border-radius: 3px;
  background: #6b4a2c; box-shadow: 0 1px 0 #2b1a0e; transform: rotate(-22deg);
}
.world-seal::after { transform: rotate(22deg); }
.world h3 { margin: 0; font: 900 17px/1.2 var(--font-title); color: var(--text); }
.world p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.world-lock { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--portal) 70%, white); }

/* ---------- galerie ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery button { position: relative; display: block; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s; }
.gallery button:hover { transform: scale(1.02); border-color: var(--gold); }
.gallery span {
  position: absolute; inset: auto 0 0; padding: 22px 12px 8px; text-align: left;
  font-weight: 800; font-size: 13px; color: var(--text);
  background: linear-gradient(0deg, rgba(14, 9, 20, 0.9), transparent);
}

/* ---------- installer ---------- */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  font: 900 18px/1 var(--font-title); color: #2a1608; background: linear-gradient(180deg, #ffe7a8, #c8862a);
}
.steps h3 { margin: 0 0 8px; font: 900 19px/1.2 var(--font-title); color: var(--gold-hi); }
.steps p { margin: 0; font-size: 15px; color: var(--text); }
.steps i { color: var(--gold-hi); font-style: normal; }
.autoupdate { margin: 0 0 30px; text-align: center; font-weight: 800; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq details { background: var(--plate); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { padding: 16px 20px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-weight: 900; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- pied de page, mentions ---------- */
.footer { margin-top: 96px; padding: 40px var(--gutter) 48px; text-align: center; border-top: 1px solid var(--line); background: #0d0912; }
.footer-logo { width: 160px; margin: 0 auto 16px; opacity: 0.85; }
.footer p { margin: 6px 0; font-size: 14px; }
.legal { padding-top: 120px; }
.legal h1 { font: 900 36px/1.2 var(--font-title); color: var(--gold); }
.legal h2 { margin: 56px 0 8px; text-align: left; font-size: 30px; }
.legal h2::after { display: none; }
.legal h3 { margin: 28px 0 6px; font: 900 18px/1.2 var(--font-title); color: var(--gold-hi); }
.legal p { margin: 0; color: var(--text); }

/* ---------- visionneuse ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 5, 12, 0.92); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox figcaption { color: var(--text); font-weight: 800; }
.lightbox button { color: var(--gold); font-size: 48px; line-height: 1; height: 64px; }
.lightbox button:hover { color: var(--gold-hi); }
.lb-close { position: absolute; top: 16px; right: 20px; }

/* ---------- petits écrans ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-lang { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 img { margin: 0 auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { justify-self: center; max-width: 420px; order: -1; margin-bottom: -20px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 20px; }
  .feature.flip .feature-shot { order: 0; }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .zones li:last-child { grid-column: 1 / -1; }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav-logo img { height: 34px; }
  .nav-dl { display: none; }
  .hero { padding-top: 90px; min-height: auto; }
  .hero-art { max-width: 300px; }
  .btn-dl { width: 100%; justify-content: center; }
  .stats { padding: 14px 16px; justify-content: center; }
  .section { padding-top: 72px; }
  .worlds, .gallery { grid-template-columns: 1fr; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .lightbox button { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
  * { transition: none !important; }
}
