/* FunNoxer - feuille de style
   Couleurs reprises du logo (rouge, orange, jaune feu) sur fond sombre chaud.
   Titres : Lilita One. Texte : Rubik. Boutons facon interface Minecraft. */
:root {
  --bg: #120f14;
  --bg-2: #1a161d;
  --panel: #211c25;
  --panel-2: #2a232f;
  --line: #3a3140;
  --edge-dark: #0b090c;
  --text: #f4eef2;
  --muted: #b3a8b6;
  --red: #e8321e;
  --orange: #ff7a1a;
  --yellow: #ffc21a;
  --green: #5fbf4a;
  --link: #ffb347;
  --fire: linear-gradient(90deg, var(--red), var(--orange) 55%, var(--yellow));
  --title: "Lilita One", "Arial Black", sans-serif;
  --sans: "Rubik", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 400; }
h1, h2 { font-family: var(--title); letter-spacing: .3px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: 1.75rem; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; color: var(--muted); }
b, strong { font-weight: 600; }
code, kbd { font: .9em var(--mono); background: #0d0b0e; border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: #ffe2b8; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* En-tete */
.site-head { background: rgba(18, 15, 20, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head::after { content: ""; display: block; height: 2px; background: var(--fire); opacity: .85; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 1.55rem var(--title); letter-spacing: .3px; }
.logo img { width: 46px; height: auto; }
.logo b { color: var(--orange); font-weight: 400; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; font-weight: 500; border-radius: 6px; }
.nav a:hover { color: #fff; background: var(--panel); }
.nav a[aria-current="page"] { color: #fff; background: var(--panel-2); }

/* Boutons facon interface du jeu */
.btn { display: inline-block; cursor: pointer; text-decoration: none; text-align: center; font: 600 1rem var(--sans); color: #fff;
  padding: 10px 18px; background: #6b6b76; border: 2px solid var(--edge-dark);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .28), inset -2px -3px 0 rgba(0, 0, 0, .35); text-shadow: 1px 1px 0 rgba(0, 0, 0, .5); }
.btn:hover { background: #7d7d8a; color: #fff; }
.btn:active { box-shadow: inset -2px -2px 0 rgba(255, 255, 255, .2), inset 2px 3px 0 rgba(0, 0, 0, .35); }
.btn.primary { background: var(--orange); color: #2a1000; text-shadow: none; }
.btn.primary:hover { background: #ff9440; }
.btn.block { display: block; width: 100%; }
.btn.big { padding: 13px 20px; font-size: 1.08rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Panneaux */
.panel, .step, .product, .fx, details.faq, .toc { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { padding: 20px; }

/* Accueil */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(18, 15, 20, .92) 0%, rgba(18, 15, 20, .7) 40%, rgba(18, 15, 20, .1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 15, 20, 0) 30%),
    url("lobby.webp") center 40% / cover no-repeat, var(--bg-2); }
.hero .wrap { display: flex; align-items: center; min-height: min(78vh, 620px); padding-top: 52px; padding-bottom: 60px; }
.hero .wrap > div { max-width: 560px; }
.hero .lead { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); margin-bottom: .15em; }
.hero h1 b { font-weight: 400; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: #d9cfda; max-width: 520px; }
.hero-logo { width: 100%; max-width: 430px; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(255, 90, 20, .35)); }
.ip-box { display: flex; max-width: 470px; margin: 22px 0 12px; border: 2px solid var(--edge-dark); border-radius: 4px; overflow: hidden; }
.ip-box code { flex: 1; border: 0; border-radius: 0; background: #0d0b0e; padding: 12px 14px; font-size: 1rem; color: #fff; overflow-wrap: anywhere; }
.ip-box .btn { border: 0; }
.status { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #666; flex-shrink: 0; }
.status.online .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(95, 191, 74, .18); }
.status.online { color: #d4ecc9; }
.status.offline .dot { background: var(--red); }

.section { padding: 44px 0 6px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head h2::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 2px; background: var(--fire); margin-top: 8px; }
.section-head a { font-weight: 500; }

.news-list { display: grid; gap: 12px; }
.news-item { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; border-left: 4px solid var(--orange); }
.news-item time { font-weight: 600; font-size: .9rem; color: var(--yellow); padding-top: 2px; }
.news-item h3 { margin-bottom: .25em; }
.news-item p { margin: 0; color: #d3c9d4; }

.steps { counter-reset: st; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps .panel { position: relative; padding-top: 54px; }
.steps .panel::before { counter-increment: st; content: counter(st); position: absolute; top: 14px; left: 20px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 1.1rem var(--title); color: #2a1000; background: var(--fire); }
.steps p { margin: 0; color: #d3c9d4; }

/* Jeux */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.game h3 { font-family: var(--title); font-weight: 400; font-size: 1.6rem; letter-spacing: .3px; margin-bottom: .3em; }
.game p { color: #d3c9d4; }
.game ul { margin: .3em 0 0; padding-left: 18px; color: #d3c9d4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { font: 500 .78rem var(--sans); padding: 2px 9px; border-radius: 999px; background: #0d0b0e; border: 1px solid var(--line); color: #ddd3de; }
.tag.new { background: var(--fire); border-color: transparent; color: #2a1000; font-weight: 600; }

/* En-tete des pages */
.page-head { border-bottom: 1px solid var(--line); background: radial-gradient(600px 260px at 90% 0%, rgba(255, 122, 26, .16), transparent 70%), var(--bg-2); }
.page-head .wrap { padding-top: 38px; padding-bottom: 28px; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { margin: 0; color: var(--muted); max-width: 660px; }
.tabs { display: flex; gap: 6px; margin: 24px 0 0; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-radius: 999px; border: 1px solid var(--line); }
.tabs a.on { color: #2a1000; background: var(--orange); border-color: var(--orange); }

/* Boutique */
.step { padding: 20px; margin-bottom: 18px; }
.title { font: 1.4rem var(--title); letter-spacing: .3px; margin: 0 0 14px; }
.name-row { display: flex; gap: 14px; align-items: center; }
.name-row img { image-rendering: pixelated; border-radius: 6px; border: 2px solid var(--edge-dark); background: #0d0b0e; }
.name-row input { flex: 1; min-width: 0; max-width: 360px; font: 500 1.05rem var(--sans); padding: 11px 12px; color: #fff; background: #0d0b0e; border: 1px solid var(--line); border-radius: 6px; }
.name-row input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, .2); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 26px; }
.product { padding: 22px; display: flex; flex-direction: column; position: relative; }
.product h3 { font: 1.7rem var(--title); letter-spacing: .3px; margin: 0; }
.product .price { font: 700 1.4rem var(--sans); margin: 6px 0 12px; }
.product ul { margin: 0 0 18px; padding-left: 18px; color: #d3c9d4; flex: 1; }
.product.popular { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 14px 40px -18px rgba(255, 122, 26, .6); }
.product .ribbon { position: absolute; top: -11px; right: 16px; background: var(--fire); color: #2a1000; font: 600 .75rem var(--sans); padding: 3px 10px; border-radius: 999px; }
.c-vip { color: #ffd84a; } .c-vipplus { color: #ff9a1f; } .c-mvp { color: #49c9ee; } .c-mvpplus { color: #49c9ee; }
.c-perso { background: linear-gradient(90deg, #ff5cd6, #9b5cff, #3de9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product.premium { border: 1px solid transparent; background: linear-gradient(180deg, var(--panel-2), var(--panel)) padding-box, linear-gradient(135deg, #ff5cd6, #9b5cff, #3de9ff) border-box; box-shadow: 0 14px 40px -18px rgba(155, 92, 255, .6); }
.ribbon.premium-ribbon { background: linear-gradient(90deg, #ff5cd6, #9b5cff); } .c-nox { color: #c77dff; } .c-bucks { color: #ffd84d; }
.ttc { font-size: .8rem; color: var(--muted); font-weight: 500; }

.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.fx { padding: 10px; text-align: center; }
.fx canvas { width: 100%; height: 90px; display: block; background: #0d0b0e; border-radius: 6px; }
.fx b { display: block; margin-top: 6px; font-size: .95rem; }
.fx span { font-weight: 600; font-size: .85rem; color: var(--yellow); }

/* Paiement */
.steps-bar { display: flex; gap: 6px; list-style: none; padding: 0; margin: 26px 0 18px; counter-reset: s; flex-wrap: wrap; }
.steps-bar li { counter-increment: s; flex: 1; min-width: 120px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-weight: 500; color: var(--muted); }
.steps-bar li::before { content: counter(s) ". "; }
.steps-bar li.done { color: #c9e8bf; }
.steps-bar li.current { color: #fff; border-color: var(--orange); }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.methods { display: grid; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; background: var(--bg-2); }
.method.selected { border-color: var(--orange); }
.method input { accent-color: var(--orange); width: 18px; height: 18px; }
.m-icon { width: 46px; height: 30px; border-radius: 4px; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; background: #0d0b0e; color: #fff; }
.paypal-icon { background: #003087; font-style: italic; }
.psc-icon { background: #1d3c8f; font-size: .75rem; }
.m-text { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.m-text small { color: var(--muted); }
.m-badge.soon { font-size: .75rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.secure { display: flex; gap: 10px; background: #18261a; border: 1px solid #2e4a2b; border-radius: 8px; padding: 12px; margin-top: 14px; }
.secure p { margin: 0; font-size: .92rem; }
.cgv { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.cgv summary { cursor: pointer; font-weight: 600; }
.cgv ul { color: #d3c9d4; font-size: .92rem; padding-left: 18px; }
.summary { position: sticky; top: 86px; }
.buyer { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.buyer img { image-rendering: pixelated; border-radius: 4px; }
.buyer div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.buyer small { color: var(--muted); }
.line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.line.total { font-size: 1.2rem; border-bottom: 0; font-weight: 600; }
.line.sub { color: var(--muted); font-size: .92rem; }
.line[hidden] { display: none; }
.s-perks { margin: 4px 0 6px; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.check { display: flex; gap: 8px; font-size: .9rem; color: #d3c9d4; margin: 12px 0; align-items: flex-start; }
.check input { accent-color: var(--orange); margin-top: 4px; }
.pay-info { font-size: .88rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.pay-info.warn { color: #ffc56b; }
.empty { text-align: center; }

/* Pages de texte */
.doc { max-width: 800px; }
.doc h2 { font-size: 1.45rem; margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: .35em; }
.doc table { border-collapse: collapse; width: 100%; margin: 10px 0 18px; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--panel-2); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.todo { background: #3a2410; border: 1px dashed var(--orange); color: #ffd27a; padding: 0 5px; border-radius: 3px; font-weight: 600; }
.toc { padding: 14px 18px; margin: 22px 0; }
.toc ol { margin: 0; }
details.faq { padding: 12px 16px; margin-bottom: 8px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; color: #d3c9d4; }
.cmds td:first-child { white-space: nowrap; }

/* Pied de page */
.site-foot { margin-top: 60px; background: var(--bg-2); border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-foot .brand { display: flex; align-items: center; gap: 10px; }
.site-foot .brand img { width: 38px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: #fff; }
.site-foot p { margin: 0; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 120px); background: #2f6b25; border: 2px solid #1c4216; border-radius: 6px; color: #fff; font-weight: 600; padding: 10px 18px; transition: transform .25s; z-index: 60; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: #8f2a1d; border-color: #5c170e; }

@media (max-width: 860px) {
  .steps, .checkout-grid, .games { grid-template-columns: 1fr; }
  .hero { background: linear-gradient(0deg, rgba(18, 15, 20, .95) 20%, rgba(18, 15, 20, .55)), url("lobby.webp") center / cover no-repeat, var(--bg-2); }
  .hero .wrap { min-height: 0; }
  .summary { position: static; }
  .news-item { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 540px) {
  .site-head .wrap { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
  .nav a { padding: 6px 8px; }
  .ip-box { flex-direction: column; }
}

/* Chaines YouTube */
.yt-ico { width: 28px; height: 20px; flex: none; }
.yt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.yt-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; text-decoration: none; color: inherit; border-left: 4px solid #ff0033; transition: transform .15s, box-shadow .15s; }
.yt-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(255, 0, 51, .55); color: inherit; }
.yt-card .yt-ico { width: 42px; height: 30px; }
.yt-card h3 { margin: 0; }
.yt-card p { margin: 2px 0 0; }
.foot-yt { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-yt a { display: inline-flex; align-items: center; gap: 7px; }
.foot-yt .yt-ico { width: 20px; height: 14px; }
@media (max-width: 760px) {
  .yt-grid { grid-template-columns: 1fr; }
  .yt-card { grid-template-columns: auto 1fr; }
  .yt-card .btn { grid-column: 1 / -1; }
}.yt-av { position: relative; width: 64px; height: 64px; flex: none; }
.yt-av img { width: 64px; height: 64px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px var(--line), 0 6px 16px -6px rgba(0, 0, 0, .7); }
.yt-av .yt-ico { position: absolute; right: -6px; bottom: -3px; width: 24px; height: 17px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.foot-av { width: 22px; height: 22px; border-radius: 50%; }
/* Pages des mini-jeux : capture en fond */
.game-hero { position: relative; border-bottom: 1px solid var(--line); min-height: min(78vh, 640px); display: flex; align-items: flex-end;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(18, 15, 20, .55) 38%, rgba(18, 15, 20, .1) 75%),
    linear-gradient(90deg, rgba(18, 15, 20, .85) 0%, rgba(18, 15, 20, 0) 60%),
    var(--shot) var(--pos, center) / cover no-repeat, var(--bg-2); }
.game-hero .wrap { padding-top: 90px; padding-bottom: 40px; width: 100%; }
.game-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; margin: .15em 0 .2em; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.game-hero .lead { max-width: 620px; font-size: 1.15rem; color: #efe6ee; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.game-hero .back { display: inline-block; color: #e9dfe8; text-decoration: none; font-weight: 500; margin-bottom: 14px; padding: 5px 12px;
  border-radius: 999px; background: rgba(13, 11, 14, .55); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(4px); }
.game-hero .back:hover { color: #fff; border-color: var(--orange); }
.game-hero .tag { background: rgba(13, 11, 14, .7); backdrop-filter: blur(4px); }
.game-hero .tag.new { background: var(--fire); }
.game-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.game-detail h2 { font-size: 1.45rem; margin: 0 0 .4em; }
.game-detail p, .game-detail ul { color: #d3c9d4; margin: 0 0 .5em; }
.game-detail ul { padding-left: 18px; }
.game-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.game-nav a { text-decoration: none; color: #fff; font-weight: 600; font-size: 1.05rem; }
.game-nav a small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.game-nav a:last-child { text-align: right; }
.game-nav a:hover { border-color: var(--orange); }

/* Page Jeux : tuiles illustrees */
.game-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 22px;
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--text); isolation: isolate; }
.game-tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--shot) var(--pos, center) / cover no-repeat; transition: transform .5s ease; }
.game-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 11, 16, .96) 18%, rgba(14, 11, 16, .55) 55%, rgba(14, 11, 16, .08) 100%); }
.game-tile:hover::before { transform: scale(1.05); }
.game-tile:hover { border-color: var(--orange); color: var(--text); }
.game-tile h3 { font-family: var(--title); font-weight: 400; font-size: 1.9rem; letter-spacing: .3px; margin: 0 0 .15em; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.game-tile p { margin: 0 0 .6em; color: #e2d8e1; max-width: 520px; }
.game-tile .tag { background: rgba(13, 11, 14, .7); }
.game-tile .tag.new { background: var(--fire); }
.game-tile .more { color: var(--orange); font-weight: 600; }
@media (max-width: 760px) {
  .game-detail, .game-nav { grid-template-columns: 1fr; }
  .game-nav a:last-child { text-align: left; }
  .game-hero { min-height: 520px; }
  .game-tile { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .game-tile::before { transition: none; } }