/* GameNest : site de présentation.
   Direction : un ciel de jour et une île en pixel art. La police pixel porte les titres,
   Figtree le texte. Une seule audace (l'île animée), le reste reste calme. */
:root {
  --sky: #cfe8f4;
  --sky-deep: #b5dbee;
  --paper: #f5f8f1;
  --ink: #1d2b1a;
  --ink-2: #4c5c47;
  --grass: #3f7f28;
  --grass-hover: #336a20;
  --dirt: #8a5a3b;
  --gmod: #1f6fbf;
  --line: #d4e0cd;
  --card: #ffffff;
  --display: 'Pixelify Sans', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img, svg { display: block; }
a { color: var(--grass); text-underline-offset: 3px; }
a:hover { color: var(--grass-hover); }
code { font: 0.92em ui-monospace, 'Cascadia Mono', Consolas, monospace; }
:focus-visible { outline: 3px solid var(--dirt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h2 { font: 700 clamp(28px, 4vw, 40px)/1.15 var(--display); letter-spacing: 0.005em; }
h3 { font: 700 18px/1.3 var(--body); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.top { background: var(--sky); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 22px var(--display); }
.brand:hover { color: var(--ink); }
.top-nav { display: flex; gap: 22px; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .top-nav { display: none; } }

/* ---------- Accueil ---------- */
.hero { background: var(--sky); padding: 28px 0 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.hero-text { padding-bottom: 12px; }
.hero h1 { font: 700 clamp(38px, 6.2vw, 64px)/1.04 var(--display); letter-spacing: -0.005em; max-width: 15ch; }
.lead { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 46ch; }

.cta { margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  font: 700 17px var(--body); text-decoration: none; border-radius: 10px; transition: background .15s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--grass); color: #fff; padding: 17px 30px;
  box-shadow: 0 4px 0 #2a5a1a; }
.btn-main:hover { background: var(--grass-hover); color: #fff; }
.btn-main .win { width: 20px; height: 20px; }
.btn-ghost { background: transparent; color: var(--ink); padding: 12px 18px; border: 2px solid var(--ink); }
.btn-ghost:hover { background: rgba(29, 43, 26, .06); color: var(--ink); }
.btn-small { background: var(--ink); color: #fff; padding: 7px 14px; font-size: 14px; border-radius: 8px; }
.btn-small:hover { background: #2f402b; }
.cta-meta { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.cta-after { margin-top: 14px; font-size: 15px; background: #fff8e1; border: 1px solid #efd48a; border-radius: 10px; padding: 10px 14px; max-width: 46ch; }

.os-notice { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 20px 22px; max-width: 520px;
  box-shadow: 6px 6px 0 var(--ink); }
.os-notice h3 { font: 700 22px/1.2 var(--display); }
.os-notice p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.os-notice .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.island { margin: 0; justify-self: center; width: min(100%, 600px); }
.island svg { width: 100%; height: auto; image-rendering: pixelated; }
.island .bob { animation: bob 5s ease-in-out infinite; }
.island .led-a { animation: led 1.1s steps(1) infinite; }
.island .led-b { animation: led 1.7s steps(1) infinite .4s; }
.island .led-c { animation: led 1.3s steps(1) infinite .9s; }
.island .packet { animation: rise 2.6s linear infinite; }
.island .packet:nth-of-type(2) { animation-delay: .87s; }
.island .packet:nth-of-type(3) { animation-delay: 1.73s; }
.island .melon { animation: float 3.2s ease-in-out infinite; }
.island .beam { animation: led 0.9s steps(1) infinite; }
@keyframes float { 50% { transform: translateY(-0.8px); } }
@keyframes bob { 50% { transform: translateY(-0.6px); } }
@keyframes led { 50% { opacity: .25; } }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(-9px, -8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .island .bob, .island .led-a, .island .led-b, .island .led-c, .island .packet, .island .melon, .island .beam { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.split-intro p { margin-top: 16px; color: var(--ink-2); max-width: 36ch; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 36px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.features p { margin-top: 4px; color: var(--ink-2); font-size: 16px; }

/* Icônes en pixel art (dessinées en CSS, 8 x 8 cases de 4 px) */
.px { width: 32px; height: 32px; margin-top: 2px; image-rendering: pixelated; background-repeat: no-repeat; background-size: 32px 32px; }
.px-bolt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23f0b429' d='M4 0h2v1H5v1H4v1h3v1H6v1H5v1H4v1H3v1H2V6h1V5h1V4H1V3h1V2h1V1h1z'/%3E%3C/svg%3E"); }
.px-globe { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%233f7f28' d='M2 0h4v1h1v1h1v4H7v1H6v1H2V7H1V6H0V2h1V1h1z'/%3E%3Cpath fill='%235fa8d3' d='M3 1h2v1h1v1H5v1H4V3H3V2H2V1zM1 4h2v1h1v2H3V6H2V5H1zM6 4h1v2H6v1H5V5h1z'/%3E%3C/svg%3E"); }
.px-screen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%231d2b1a' d='M0 1h8v5H0z'/%3E%3Cpath fill='%2372b043' d='M1 2h1v1H1zM2 3h1v1H2zM1 4h1v1H1zM3 4h2v1H3z'/%3E%3Cpath fill='%238a5a3b' d='M3 6h2v1H3zM2 7h4v1H2z'/%3E%3C/svg%3E"); }
.px-folder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23c98a3a' d='M0 1h3v1h5v5H0z'/%3E%3Cpath fill='%23f0b429' d='M0 3h8v4H0z'/%3E%3C/svg%3E"); }
.px-disk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%235a4e8c' d='M0 0h7v1h1v7H0z'/%3E%3Cpath fill='%23e8e4f5' d='M2 0h4v3H2zM1 5h6v3H1z'/%3E%3Cpath fill='%235a4e8c' d='M4 1h1v1H4z'/%3E%3C/svg%3E"); }
.px-shield { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%232f6fb0' d='M1 0h6v5H6v1H5v1H3V6H2V5H1z'/%3E%3Cpath fill='%235fa8d3' d='M4 1h2v3H5v1H4z'/%3E%3C/svg%3E"); }

/* Étapes : une vraie séquence, donc numérotée */
.steps-section { background: #eef4ea; }
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px;
  display: grid; place-items: center; font: 700 24px var(--display); color: #fff; background: var(--dirt);
  box-shadow: inset 0 -4px 0 #6f4630, inset 0 4px 0 #5fa83a; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 16px; max-width: 34ch; }

/* ---------- Avertissements ---------- */
.warn-intro { max-width: 62ch; }
.warn-intro p { margin-top: 16px; color: var(--ink-2); }
.warn-grid { display: grid; gap: 24px; margin-top: 44px; }
@media (min-width: 900px) { .warn-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.warn-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.howto { margin: 20px 0 0; padding-left: 22px; }
.howto li { margin: 6px 0; }
.howto li::marker { font-weight: 700; color: var(--dirt); }
.note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* Maquettes fidèles des fenêtres, pour que l'utilisateur les reconnaisse */
.mock { margin-top: 18px; border-radius: 10px; font-family: 'Segoe UI', system-ui, sans-serif; user-select: none; }
.mock-chrome { background: #fff; border: 1px solid #dadce0; box-shadow: 0 4px 16px rgba(60, 64, 67, .18); padding: 12px 14px; max-width: 380px; color: #202124; }
.mc-head { font-size: 13px; font-weight: 600; color: #5f6368; margin-bottom: 10px; }
.mc-row { display: grid; grid-template-columns: 28px 1fr 18px; gap: 10px; align-items: center; }
.mc-icon { width: 28px; height: 28px; border-radius: 50%; background: #fce8e6; color: #c5221f; display: grid; place-items: center; font-weight: 700; }
.mc-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; min-width: 0; }
.mc-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-text span { color: #c5221f; }
.mc-more { color: #5f6368; font-size: 18px; text-align: center; }
.mc-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.mc-btn { font-size: 13px; font-weight: 600; color: #1a73e8; padding: 6px 12px; border: 1px solid #dadce0; border-radius: 16px; }
.mc-keep { outline: 3px solid #f0b429; outline-offset: 2px; }

.mock-smartscreen { background: #0b5cad; color: #fff; padding: 20px 22px; max-width: 420px; border-radius: 4px; }
.ss-title { font-size: 22px; font-weight: 300; line-height: 1.2; }
.ss-body { margin-top: 12px; font-size: 13px; line-height: 1.45; opacity: .95; }
.ss-link { display: inline-block; margin-top: 10px; font-size: 13px; text-decoration: underline; outline: 3px solid #f0b429; outline-offset: 3px; }
.ss-meta { margin-top: 14px; font-size: 13px; opacity: .9; }
.ss-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ss-btn { font-size: 13px; padding: 6px 14px; border: 2px solid #fff; background: transparent; }
.ss-run { outline: 3px solid #f0b429; outline-offset: 2px; }

.trust { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.trust > p { margin-top: 8px; color: var(--ink-2); max-width: 75ch; }
.hash { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.hash code { background: #eef4ea; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; word-break: break-all; font-size: 14px; flex: 1 1 320px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 700 24px var(--display); color: var(--dirt); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }

/* ---------- Pied de page ---------- */
.foot { background: var(--ink); color: #c9d4c4; padding: 36px 0; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.brand-small { color: #fff; font-size: 18px; }
.foot p { font-size: 14px; max-width: 70ch; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 15px; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Les deux jeux ---------- */
.games { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 860px) { .games { grid-template-columns: 1fr 1fr; gap: 28px; } }
.game { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; border-top: 6px solid var(--accent); }
.game-mc { --accent: var(--grass); }
.game-gm { --accent: var(--gmod); }
.game-head { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.game-head .px { grid-row: 1 / span 2; margin: 0; }
.game-head h3 { font: 700 26px/1.1 var(--display); color: var(--accent); }
.game-sub { font-size: 14px; color: var(--ink-2); }
.game ul { margin: 18px 0 0; padding-left: 20px; }
.game li { margin: 8px 0; color: var(--ink); }
.game li::marker { color: var(--accent); }
.game code { background: #eef2f6; border-radius: 4px; padding: 1px 5px; }
.px-grass { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%238a5a3b' d='M0 2h8v6H0z'/%3E%3Cpath fill='%235fa83a' d='M0 0h8v2H0zM0 2h1v1H0zM3 2h1v2H3zM6 2h1v1H6z'/%3E%3Cpath fill='%236f4630' d='M1 4h1v1H1zM5 5h1v1H5zM2 6h1v1H2zM6 7h1v1H6z'/%3E%3C/svg%3E"); }
.px-melon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%233f8f2f' d='M2 0h4v1h1v1h1v4H7v1H6v1H2V7H1V6H0V2h1V1h1z'/%3E%3Cpath fill='%2323601f' d='M2 1h1v6H2zM5 1h1v6H5z'/%3E%3Cpath fill='%238fd8ff' d='M3 1h1v1H3z'/%3E%3C/svg%3E"); }

/* FiveM (troisième jeu) */
:root { --fivem: #c25e12; }
.game-fm { --accent: var(--fivem); }
@media (min-width: 1000px) { .games { grid-template-columns: repeat(3, 1fr); } }
.px-car { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8612c' d='M2 2h4v1h1v1h1v2H0V4h1V3h1z'/%3E%3Cpath fill='%239fd3ff' d='M3 3h1v1H3zM5 3h1v1H5z'/%3E%3Cpath fill='%231e1e1e' d='M1 6h2v1H1zM5 6h2v1H5z'/%3E%3C/svg%3E"); }
