/* BagzNetwork · site DarkRP · noir + bleu électrique, surfaces plates, aucun halo */
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-variable-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #060608; --bg-2: #0c0c10; --bg-3: #121217;
  --line: #1c1c23; --line-2: #2a2a33;
  --fg: #f2f2f5; --fg-2: #b9b9c3; --fg-3: #7d7d8a; --fg-4: #4e4e59;
  --blue: #2f6bff; --blue-2: #5f8dff; --blue-ink: #0a1230;
  --ok: #3ddc84; --warn: #ffb224; --bad: #ff4d6d;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gut: clamp(16px, 5vw, 80px);
  --max: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Satoshi", system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .95em; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-3); }
.blue { color: var(--blue-2); }

/* barre de progression */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; z-index: 100; }

/* ---------- barre haute ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 var(--gut); background: rgba(6,6,8,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; font-size: 15px; color: var(--blue-2); }
.logo svg { width: 28px; height: 28px; transition: transform .35s var(--ease); }
.logo:hover svg { transform: rotate(-90deg); }
.logo .thin { color: var(--fg); font-weight: 500; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { position: relative; padding: 8px 12px; font-size: 14px; color: var(--fg-2); border-radius: 6px; transition: color .2s, background-color .2s; }
.menu a:hover { color: var(--fg); background: var(--bg-3); }
.menu a.on { color: var(--fg); }
.menu a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--blue); }
.live { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--fg-2); transition: border-color .2s, color .2s; white-space: nowrap; }
.live:hover { border-color: var(--blue); color: var(--fg); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-4); flex: none; }
.led.on { background: var(--ok); animation: blink 2.2s ease-in-out infinite; }
.led.warn { background: var(--warn); animation: blink 1s ease-in-out infinite; }
.led.off { background: var(--bad); }
.led.big { width: 10px; height: 10px; }
@keyframes blink { 50% { opacity: .35; } }
.burger { display: none; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 14px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .menu { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s; }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu a.on::after { display: none; }
  .live { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
}

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--fg); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .15s; will-change: transform; }
.btn:hover { border-color: var(--fg-3); background: var(--bg-3); }
.btn:active { transform: scale(.97) !important; }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: #3f78ff; border-color: #3f78ff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--blue-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--fg); }

/* ---------- en-tête ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 440px); gap: clamp(32px, 5vw, 80px); align-items: end; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vh, 120px) var(--gut) clamp(48px, 8vh, 96px); }
.hero-left { min-width: 0; container-type: inline-size; }
.kicker { display: flex; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.kicker .sep { color: var(--blue); }
.wordmark { margin: 20px 0 24px; font-size: clamp(54px, 9.4vw, 150px); font-size: clamp(54px, 18.5cqw, 150px); font-weight: 900; line-height: .9; letter-spacing: -0.04em; display: flex; flex-direction: column; }
.wordmark .w { display: block; width: max-content; max-width: 100%; }
.wordmark .blue { color: var(--blue); }
.js .wordmark .w { clip-path: inset(0 100% 0 0); animation: wipe .9s var(--ease) forwards; }
.js .wordmark .w + .w { animation-delay: .12s; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.tagline { max-width: 540px; font-size: clamp(17px, 1.5vw, 20px); color: var(--fg-2); }

.connect { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding: 6px 6px 6px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); max-width: 560px; transition: border-color .2s; }
.connect:hover { border-color: var(--fg-3); }
.connect .prompt { font-family: "JetBrains Mono", monospace; color: var(--blue-2); font-weight: 700; }
.connect code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--fg); }
.copy-btn { position: relative; display: inline-grid; place-items: center; height: 40px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--bg-3); color: var(--fg); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; overflow: hidden; transition: background-color .2s, color .2s; }
.copy-btn:hover { background: var(--line-2); }
.copy-btn > span { grid-area: 1 / 1; transition: transform .35s var(--ease), opacity .25s; }
.copy-btn .copy-done { opacity: 0; transform: translateY(110%); color: #fff; }
.copy-btn.done { background: var(--blue); }
.copy-btn.done .copy-label { opacity: 0; transform: translateY(-110%); }
.copy-btn.done .copy-done { opacity: 1; transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* tableau de bord */
.board { border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .14em; color: var(--fg-3); }
.board-stamp { letter-spacing: 0; }
.board-main { padding: 22px 18px 18px; }
.board-status { display: flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.board-players { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.board-players b { font-size: clamp(56px, 6vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.board-players .of { font-size: 18px; color: var(--fg-3); }
.board-players .lbl { width: 100%; font-size: 13px; color: var(--fg-3); }
.bar { height: 4px; margin-top: 16px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); transition: width 1s var(--ease); }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.board-grid div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.board-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.board-grid dt { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.board-grid dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-size: 12px; }
.board.offline .board-players b { color: var(--fg-3); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; align-items: start; } }

/* ---------- sections ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vh, 120px) var(--gut) 0; }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; align-items: baseline; padding-bottom: 20px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.sec-head .idx { color: var(--blue-2); font-size: 13px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.sec-sub { grid-column: 2; max-width: 620px; color: var(--fg-3); font-size: 15px; }

/* la ville */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); }
.col-text { display: grid; gap: 18px; align-content: start; color: var(--fg-2); }
.col-text .big { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; color: var(--fg); font-weight: 500; letter-spacing: -0.01em; }
.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.pillars li:hover { padding-left: 8px; }
.pillars .n { color: var(--blue-2); font-weight: 700; padding-top: 4px; }
.pillars h3 { font-size: 18px; margin-bottom: 6px; }
.pillars p { color: var(--fg-3); font-size: 15px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* métiers */
.tabs { position: relative; display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: none; padding: 12px 16px; border: 0; background: none; color: var(--fg-3); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: color .2s; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--fg); }
.tabs [role="tab"][aria-selected="true"] { color: var(--fg); }
.tab-ink { position: absolute; bottom: -1px; height: 2px; background: var(--blue); transition: left .35s var(--ease), width .35s var(--ease); }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.jobs[hidden] { display: none; }
.job { position: relative; padding: 22px 22px 24px; background: var(--bg-2); transition: background-color .25s; animation: rise .4s var(--ease) both; }
.job:nth-child(2) { animation-delay: .05s; } .job:nth-child(3) { animation-delay: .1s; } .job:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.job::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.job:hover { background: var(--bg-3); }
.job:hover::before { transform: scaleY(1); }
.job header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.job h3 { font-size: 19px; }
.job .pay { font-size: 11px; color: var(--blue-2); white-space: nowrap; }
.job p { font-size: 14.5px; color: var(--fg-3); }

/* règles + faq */
.rules, .faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: grid; grid-template-columns: 44px 1fr auto 24px; gap: 14px; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 17px; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--blue-2); }
.faq summary { grid-template-columns: 1fr 24px; }
summary .rn { color: var(--blue-2); font-size: 13px; }
summary .tag { font-size: 11px; color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; }
summary::after { content: ""; justify-self: end; width: 10px; height: 10px; border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg); transition: transform .3s var(--ease), border-color .2s; margin-top: -4px; }
details[open] summary::after { transform: rotate(225deg); margin-top: 4px; border-color: var(--blue-2); }
.rule-body { overflow: hidden; }
.rule-body p { padding: 0 0 20px 58px; color: var(--fg-2); font-size: 15.5px; max-width: 760px; }
.faq .rule-body p { padding-left: 0; }
.rule-body code { padding: 1px 6px; border-radius: 4px; background: var(--bg-3); color: var(--blue-2); }
@media (max-width: 640px) { summary { grid-template-columns: 36px 1fr 24px; } summary .tag { display: none; } .rule-body p { padding-left: 0; } }

/* fin */
.end { max-width: var(--max); margin: clamp(72px, 10vh, 140px) auto 0; padding: 0 var(--gut); display: grid; gap: 22px; justify-items: start; }
.end-big { font-size: clamp(40px, 7vw, 110px); font-weight: 900; letter-spacing: -0.045em; line-height: .95; }
.connect.small { margin-top: 0; }

/* pied */
.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; max-width: var(--max); margin: 64px auto 0; padding: 24px var(--gut) 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.foot a:hover { color: var(--fg); }

/* apparition au défilement, sans flou ni grosse translation */
.js .r { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .r.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .r, .js .wordmark .w { opacity: 1; transform: none; clip-path: none; }
}

/* mobile : la commande complète reste lisible */
@media (max-width: 520px) {
  .connect { flex-wrap: wrap; padding: 12px 12px 10px 14px; gap: 10px; }
  .connect code { flex-basis: calc(100% - 30px); white-space: normal; word-break: break-all; font-size: 14px; }
  .connect .copy-btn { margin-left: auto; }
}
