/* Big City Life — site du serveur
   Ambiance : Los Santos au crépuscule. Ciel couchant, silhouettes de la ville, néons orange et rose. */
/* polices hébergées sur le site (pas de Google Fonts : plus rapide et rien n'est envoyé à Google) */
@font-face { font-family: 'Big Shoulders Display'; src: url('fonts/big-shoulders-display-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Big Shoulders Display'; src: url('fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Big Shoulders Display'; src: url('fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
    --ink: #120E26;        /* nuit */
    --ink-2: #1A1436;      /* nuit, un ton au-dessus */
    --dusk: #2A1A4A;       /* violet du soir */
    --sunset: #FF8A3D;     /* orange Big City Life */
    --neon: #FF4F8B;       /* rose néon de Vespucci */
    --haze: #C9C3E6;       /* texte secondaire */
    --cyan: #46E3FF;       /* HUD en jeu */
    --white: #F7F5FF;
    --line: rgba(201, 195, 230, .14);
    --display: 'Big Shoulders Display', 'Impact', sans-serif;
    --body: 'Instrument Sans', 'Segoe UI', sans-serif;
    --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--sunset); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .98; margin: 0; letter-spacing: .2px; }
p { margin: 0; }
.wrap { width: min(1180px, 90vw); margin: 0 auto; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--white); }

/* ------------------------------------------------------------ navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(18, 14, 38, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); font: 800 26px/1 var(--display); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.links a { color: var(--haze); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.links a:hover { color: var(--white); text-decoration: none; background: rgba(255,255,255,.07); }
.links a.on { color: var(--white); background: rgba(255,255,255,.1); }
.links a.discord { color: var(--white); background: #5865F2; margin-left: 8px; }
.links a.discord:hover { background: #6d78f5; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(18,14,38,.6); color: var(--white); font-size: 20px; cursor: pointer; }

/* ------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
       font: 700 17px/1 var(--body); transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.play { color: var(--ink); background: linear-gradient(100deg, var(--sunset), #FFB36B); box-shadow: 0 10px 34px rgba(255, 138, 61, .45); }
.btn.play:hover { box-shadow: 0 14px 44px rgba(255, 138, 61, .6); }
.btn.dc { color: var(--white); background: rgba(88, 101, 242, .22); box-shadow: inset 0 0 0 1px rgba(150, 160, 255, .5); }
.btn.dc:hover { background: #5865F2; }

/* ------------------------------------------------------------ accueil : la ville au coucher du soleil */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -4;
       background: linear-gradient(180deg, #160F33 0%, #3A1B5C 32%, #8E2F6B 52%, #E2566A 64%, #FF8A3D 74%, #FFC46B 82%); }
.sun { position: absolute; z-index: -3; left: 50%; bottom: 25%; width: min(46vw, 560px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
       background: radial-gradient(circle at 50% 40%, #FFE6A8, #FFB25E 45%, #FF7A4A 75%);
       box-shadow: 0 0 120px 40px rgba(255, 150, 80, .45);
       -webkit-mask: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 28px); mask: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 28px);
       animation: rise 2.2s cubic-bezier(.2, .7, .2, 1) both; }
.city { position: absolute; left: 0; width: 100%; height: auto; bottom: 0; pointer-events: none; }
.city.back { z-index: -2; opacity: .95; bottom: 9vh; }
.city.front { z-index: 0; }
.city .win rect { animation: lightup 3s ease both; }
.city .win rect:nth-child(3n) { animation-delay: .6s; }
.city .win rect:nth-child(5n) { animation-delay: 1.2s; }
.city .win rect:nth-child(7n) { animation: lightup 3s ease 1.6s both, flicker 7s 4s infinite; }
.mark-sub { display: block; margin-bottom: 1.1rem; font: 600 clamp(15px, 1.4vw, 20px)/1.2 var(--body); letter-spacing: .02em; text-transform: none; color: var(--white); padding: 8px 18px; border-radius: 999px; background: rgba(18, 14, 38, .78); backdrop-filter: blur(6px); }
.mark { position: absolute; z-index: -1; left: 0; right: 0; top: 29vh; text-align: center; white-space: nowrap; display: flex; flex-direction: column-reverse; align-items: center;
        font: 900 clamp(86px, 18.5vw, 300px)/.8 var(--display); text-transform: uppercase; letter-spacing: -.01em;
        color: var(--white); text-shadow: 0 6px 40px rgba(60, 10, 60, .45);
        animation: up 1.6s cubic-bezier(.2, .7, .2, 1) .2s both; }
.hero-ui { position: relative; z-index: 2; padding: 90px 0 7vh; background: linear-gradient(0deg, rgba(10, 7, 22, .97) 40%, rgba(10, 7, 22, .7) 70%, transparent); }
.pitch p { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-ui .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.pitch { max-width: 560px; }
.pitch p { color: #E4E0F5; font-size: 19px; margin-bottom: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.connect-code { width: 100%; margin-top: 12px; color: var(--haze); font-size: 14px; }

.live { min-width: 260px; padding: 20px 22px; border-radius: 20px; background: rgba(18, 14, 38, .7); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); }
.live-top { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--haze); font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--haze); }
.dot.on { background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: ping 2s infinite; }
.dot.off { background: #F05252; }
.live-count { font: 900 64px/1 var(--display); margin: 10px 0 2px; }
.live-count small { font-size: 30px; color: var(--haze); font-weight: 800; }
.live-note { color: var(--haze); font-size: 14px; }
.gauge { display: flex; gap: 4px; margin: 12px 0 10px; }
.gauge i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); transition: background .4s; }
.gauge i.on { background: linear-gradient(90deg, var(--sunset), var(--neon)); }

@keyframes rise { from { translate: -50% 30%; opacity: .3; } }
@keyframes up { from { transform: translateY(14vh); opacity: 0; } }
@keyframes lightup { from { opacity: 0; } }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .2; } 96% { opacity: .9; } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ------------------------------------------------------------ sections de l'accueil */
.block { padding: 110px 0; }
.block + .block { padding-top: 40px; }
.head { max-width: 720px; margin-bottom: 48px; }
.head h2 { font-size: clamp(44px, 6vw, 76px); margin-bottom: 16px; }
.head p { color: var(--haze); font-size: 19px; }

/* la ville : liste éditoriale, pas des cartes */
.city-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.feature svg { width: 30px; height: 30px; color: var(--sunset); margin-top: 6px; }
.feature:nth-child(4n+2) svg, .feature:nth-child(4n+3) svg { color: var(--neon); }
.feature h3 { font-size: 30px; margin-bottom: 8px; }
.feature p { color: var(--haze); }

/* rejoindre : une vraie suite d'étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 27px; left: 28px; right: 12%; height: 2px; background: linear-gradient(90deg, var(--sunset), var(--neon), transparent); }
.step { position: relative; padding-right: 30px; }
.step::before { counter-increment: s; content: counter(s); position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
                font: 900 28px/1 var(--display); color: var(--ink); background: var(--white); margin-bottom: 22px; box-shadow: 0 0 0 8px var(--ink); }
.step:first-child::before { background: var(--sunset); }
.step h3 { font-size: 30px; margin-bottom: 8px; }
.step p { color: var(--haze); }

/* touches : de vraies touches de clavier */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px 28px; }
.key { display: flex; align-items: center; gap: 16px; color: #E4E0F5; }
kbd { flex: none; min-width: 58px; height: 52px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px;
      font: 800 22px/1 var(--display); color: var(--ink); background: linear-gradient(180deg, #FFFFFF, #DCD7F0);
      box-shadow: 0 5px 0 #8E86B5, 0 8px 18px rgba(0,0,0,.4); }

.outro { position: relative; overflow: hidden; padding: 120px 0 0; text-align: center; background: linear-gradient(180deg, var(--ink), #2A1A4A 70%, #5A2460); }
.outro h2 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 18px; }
.outro p { color: #E4E0F5; font-size: 19px; margin: 0 auto 30px; max-width: 520px; }
.outro .actions { justify-content: center; }
.outro svg.city { position: relative; display: block; margin-top: 80px; }

/* bandeau en live sur Twitch */
.livebar { position: fixed; inset: 0 0 auto; z-index: 60; height: 42px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 16px;
           color: #fff; background: linear-gradient(90deg, #6B2BD9, #9146FF 50%, #6B2BD9); font-size: 15px; white-space: nowrap; overflow: hidden; }
.livebar:hover { text-decoration: none; filter: brightness(1.1); }
.livebar .rec { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #FF3B3B; box-shadow: 0 0 0 0 rgba(255,59,59,.7); animation: rec 1.6s infinite; }
.livebar .lt { overflow: hidden; text-overflow: ellipsis; max-width: 46vw; opacity: .9; }
.livebar .lv { opacity: .75; }
.livebar .go { flex: none; padding: 3px 12px; border-radius: 999px; background: #fff; color: #6B2BD9; font-weight: 700; font-size: 13px; }
body.is-live .nav { top: 42px; }
@keyframes rec { 70% { box-shadow: 0 0 0 9px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
@media (max-width: 700px) { .livebar .lt, .livebar .lv { display: none; } }

/* réseaux */
.soc { display: inline-flex; gap: 2px; margin-left: 6px; }
.soc a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0 !important; border-radius: 50%; color: var(--haze); }
.soc a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.soc svg { width: 20px; height: 20px; }
footer .soc { margin: 0; }
.follows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.follow { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: 22px; color: var(--white); background: var(--ink-2); transition: transform .15s, background .2s; }
.follow:hover { text-decoration: none; transform: translateY(-3px); }
.follow > svg { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 14px; color: #fff; }
.follow span { display: flex; flex-direction: column; gap: 2px; }
.follow b { font: 800 30px/1 var(--display); }
.follow em { font-style: normal; font-weight: 600; color: var(--haze); font-size: 15px; }
.follow small { color: var(--haze); font-size: 15px; margin-top: 8px; }
.follow.twitch > svg { background: #9146FF; }
.follow.twitch:hover { background: rgba(145, 70, 255, .22); }
.follow.tiktok > svg { background: #000; box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55; }
.follow.tiktok:hover { background: rgba(254, 44, 85, .16); }
.follow.instagram > svg { background: radial-gradient(circle at 30% 110%, #FDCB52 0 15%, #FD5949 40%, #D6249F 65%, #285AEB 95%); }
.follow.instagram:hover { background: rgba(214, 36, 159, .18); }

/* questions fréquentes */
.qas { max-width: 820px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 800 28px/1.1 var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font: 700 22px/1 var(--body); color: var(--ink); background: var(--sunset); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--haze); padding: 0 0 24px; max-width: 70ch; }

/* ------------------------------------------------------------ pages intérieures */
.page-top { position: relative; padding: 150px 0 0; overflow: hidden; background: linear-gradient(180deg, #160F33, #3A1B5C 60%, #8E2F6B); isolation: isolate; }
.page-top .wrap { position: relative; z-index: 1; padding-bottom: 210px; }
.page-top h1 { font-size: clamp(60px, 9vw, 128px); }
.page-top p { color: #E4E0F5; font-size: 19px; max-width: 640px; margin-top: 16px; }
.page-top .city { z-index: 0; height: 200px; width: 100%; }
.page-top p { text-shadow: 0 2px 14px rgba(10, 7, 22, .9); }
.page-body { padding: 70px 0 110px; }

/* règlement */
.rules { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; }
.toc a { color: var(--haze); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--white); text-decoration: none; background: rgba(255,255,255,.05); }
.toc a.on { color: var(--white); border-left-color: var(--sunset); background: rgba(255, 138, 61, .08); border-radius: 0 10px 10px 0; }
.chapter { scroll-margin-top: 100px; padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line); }
.chapter:last-child { border: 0; }
.chapter h2 { font-size: 46px; margin-bottom: 22px; }
.chapter h2 small { display: block; font: 600 15px/1 var(--body); color: var(--sunset); margin-bottom: 10px; letter-spacing: 0; }
.chapter ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.chapter li { counter-increment: r; position: relative; padding: 12px 0 12px 46px; color: #E4E0F5; max-width: 70ch; }
.chapter li::before { content: counter(r); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
                      font: 800 16px/1 var(--display); color: var(--haze); background: rgba(255,255,255,.07); }
.chapter li b { color: var(--white); }
.term { font-weight: 700; color: var(--neon); }
.notice { margin-top: 10px; padding: 18px 22px; border-radius: var(--radius); background: rgba(255, 138, 61, .1); color: #FFE1C2; }

/* métiers */
.group { margin-bottom: 80px; }
.group > h2 { font-size: 52px; margin-bottom: 8px; }
.group > p { color: var(--haze); margin-bottom: 30px; max-width: 640px; }
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.job { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px; border-radius: 20px; background: var(--ink-2); overflow: hidden; }
.job::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--sunset)); }
.job .badge { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--c, var(--sunset)) 18%, transparent); }
.job h3 { font-size: 32px; margin-bottom: 6px; }
.job p { color: var(--haze); }
.ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--haze); }
.ladder span { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.06); }
.ladder span:last-child { color: var(--ink); background: var(--c, var(--sunset)); font-weight: 700; }
.ladder i { font-style: normal; opacity: .5; }
.interim { display: flex; flex-wrap: wrap; gap: 10px; }
.interim span { padding: 10px 18px; border-radius: 999px; background: var(--ink-2); font-weight: 600; }
.interim span em { font-style: normal; color: var(--haze); font-weight: 400; font-size: 14px; }

/* patch notes : une frise */
.timeline { position: relative; }
.release { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding-bottom: 70px; position: relative; }
.release::before { content: ''; position: absolute; left: 200px; translate: 24px 0; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.release .when { text-align: right; padding-top: 4px; }
.release .when h2 { font-size: 30px; margin-bottom: 6px; }
.release .when time { color: var(--haze); font-size: 15px; }
.release .when span { color: var(--haze); font-size: 15px; }
.release .when .new { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--cyan); }
.release .body { position: relative; padding-left: 30px; }
.release .body::before { content: ''; position: absolute; left: -31px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--sunset); box-shadow: 0 0 0 6px var(--ink); }
.release h3 { font-size: 30px; margin: 0 0 10px; }
.release h3:not(:first-child) { margin-top: 34px; }
.release ul { margin: 0; padding: 0; list-style: none; }
.release li { position: relative; padding: 6px 0 6px 24px; color: #E4E0F5; max-width: 72ch; }
.release li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 8px; height: 2px; background: var(--sunset); }

/* ------------------------------------------------------------ pied de page */
footer { background: #0A0716; color: var(--haze); font-size: 14px; padding: 34px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--haze); }
.foot-links a:hover { color: var(--white); }

/* ------------------------------------------------------------ mobile et accessibilité */
@media (max-width: 900px) {
    .hero { justify-content: flex-start; }
    .mark { position: relative; top: auto; margin-top: 130px; white-space: normal; line-height: .82; font-size: 25vw; }
    .sun { bottom: auto; top: 110px; width: 78vw; }
    .hero-ui { margin-top: 34vw; padding-top: 70px; }
    .burger { display: block; }
    .links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 5vw 20px; background: rgba(18, 14, 38, .97); border-bottom: 1px solid var(--line); }
    .links.open { display: flex; }
    .links a.discord { margin: 6px 0 0; text-align: center; }
    .city-list, .jobs, .follows { grid-template-columns: 1fr; }
    .soc { margin: 8px 0 0; justify-content: center; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .steps::before { display: none; }
    .rules { grid-template-columns: 1fr; }
    .toc { position: static; flex-direction: row; flex-wrap: wrap; }
    .release { grid-template-columns: 1fr; gap: 14px; }
    .release::before, .release .body::before { display: none; }
    .release .when { text-align: left; }
    .release .body { padding-left: 0; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .live { width: 100%; }
    .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
