/* ═══════════════════════════════════════════════════════════
   Eldoria RôlePlay — site officiel
   Direction : « affiche néon » — titres larges (Unbounded) doublés d'un
   décalage magenta/violet comme une sérigraphie mal calée, grain de film,
   étiquettes collées de travers, cartes éclairées sous la souris.
   Couleurs reprises du logo : rose #f368f3, magenta #da1b81, violet #8b5cf6.
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    --bg: #0e0811; --bg2: #140b18; --card: rgba(26, 16, 31, .72); --card-solid: #1a1020;
    --line: #3b2540; --line-soft: rgba(239, 231, 236, .08);
    --text: #f3ecf1; --soft: #d9ccd6; --muted: #a894a8;
    --pink: #f368f3; --magenta: #da1b81; --violet: #8b5cf6; --gold: #e0b252;
    --grad: linear-gradient(95deg, #da1b81 0%, #f368f3 55%, #b98cff 100%);
    --display: 'Unbounded', sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
    --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
main { flex: 1; outline: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: var(--mono); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px; background: #1c1122; font: 600 11px var(--mono); color: var(--text); vertical-align: 1px; }
code { font: 500 13px var(--mono); padding: 1px 6px; border-radius: 4px; background: rgba(243, 104, 243, .12); color: var(--pink); }
::selection { background: var(--magenta); color: #fff; }

/* Grain de film par-dessus tout (très léger, ne capte pas la souris) */
.grain { position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* ── Libellés ── */
.eyebrow { display: inline-block; font: 600 11px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--pink); }
.sticker { display: inline-block; padding: 5px 12px; font: 700 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #fff; background: var(--grad);
    transform: rotate(-3deg); border-radius: 3px; box-shadow: 3px 3px 0 #000; }
.poster { font: 900 clamp(34px, 5.4vw, 68px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em;
    text-shadow: 3px 3px 0 var(--magenta), 6px 6px 0 rgba(139, 92, 246, .55); }
.poster.sm { font-size: clamp(26px, 3.4vw, 42px); text-shadow: 2px 2px 0 var(--magenta), 4px 4px 0 rgba(139, 92, 246, .5); }
.outline { color: var(--bg); -webkit-text-stroke: 3px var(--text); paint-order: stroke fill; text-shadow: none; }   /* le remplissage couvre les traits internes des lettres */

/* ── En-tête flottant ── */
.top { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1200px, calc(100% - 28px));
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 8px 10px 8px 16px;
    border-radius: 18px; background: rgba(14, 8, 17, .78); border: 1px solid var(--line-soft); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); transition: background .2s; }
.top.solid { background: rgba(14, 8, 17, .96); }
.brand img { height: 42px; width: auto; filter: drop-shadow(0 0 14px rgba(243, 104, 243, .4)); transition: transform .2s; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.nav { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(239, 231, 236, .04); }
.nav a { position: relative; z-index: 1; padding: 8px 18px; border-radius: 9px; font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.on { color: #fff; }
.nav-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: var(--grad); box-shadow: 0 6px 24px rgba(218, 27, 129, .45); transition: left .35s cubic-bezier(.3, 1.4, .5, 1), width .35s cubic-bezier(.3, 1.4, .5, 1); }
.top-r { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.search-btn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.search-btn:hover { color: var(--text); border-color: var(--pink); }
.search-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* ── Boutons ── */
.btn { height: 46px; padding: 0 24px; border-radius: 10px; background: rgba(239, 231, 236, .06); border: 1px solid var(--line); font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .15s, filter .15s, background .15s, border-color .15s; }
.btn:hover { background: rgba(239, 231, 236, .1); border-color: var(--pink); }
.btn:active { transform: translateY(1px); }
.btn.grad { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 28px rgba(218, 27, 129, .35), inset 0 -2px 0 rgba(0, 0, 0, .15); }
.btn.grad:hover { filter: brightness(1.08) saturate(1.1); transform: translateY(-1px); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 11px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── Cartes éclairées sous la souris (--mx / --my posées en JS) ── */
.glow { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; isolation: isolate; }
.glow::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(243, 104, 243, .16), transparent 60%); }
.glow:hover::before { opacity: 1; }
.glow:hover { border-color: rgba(243, 104, 243, .45); }

/* ═════ Accueil ═════ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: -30px; background: url('img/ville.webp') center 62% / cover no-repeat; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.04); transition: transform .4s ease-out; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(14, 8, 17, .94) 0%, rgba(14, 8, 17, .55) 55%, rgba(14, 8, 17, .1) 100%), linear-gradient(180deg, rgba(14, 8, 17, 0) 55%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 1; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 99px; background: rgba(14, 8, 17, .7); border: 1px solid var(--line); font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #4ebe7d; box-shadow: 0 0 0 0 rgba(78, 190, 125, .6); animation: ping 1.8s infinite; }
.status.off i { background: #8a7a8a; animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(78, 190, 125, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(78, 190, 125, 0); } }
.hero h1 { margin: 26px 0 8px; font: 900 clamp(36px, 11vw, 150px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.03em; }
.hero h1 .l1 { display: block; color: #140b18; -webkit-text-stroke: 4px var(--text); paint-order: stroke fill; }
.hero h1 .l2 { display: block; padding-top: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(5px 5px 0 rgba(139, 92, 246, .45)); }
.hero .lede { max-width: 540px; margin: 22px 0 32px; font-size: 18px; color: var(--soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-side { position: absolute; right: 24px; bottom: 90px; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero-side .sticker:nth-child(2) { transform: rotate(2deg); background: #fff; color: var(--bg); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 1; transform: translateX(-50%); font: 600 10px var(--mono); letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }

.sec { padding: 90px 0 20px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-h .eyebrow { margin-bottom: 14px; }

/* Parcours « ton premier jour » : une ligne de métro */
.route { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-top: 34px; }
.route::before { content: ''; position: absolute; top: 44px; left: 4%; right: 4%; height: 4px; border-radius: 4px; background: var(--grad); opacity: .85; }
.stop { position: relative; padding-top: 30px; }
.stop .dot { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 4px solid var(--pink); box-shadow: 0 0 18px rgba(243, 104, 243, .6); }
.stop .n { font: 700 11px var(--mono); letter-spacing: .2em; color: var(--pink); }
.stop b { display: block; margin: 6px 0; font: 700 16px/1.25 var(--display); text-transform: uppercase; }
.stop p { font-size: 14px; color: var(--muted); }
.stop a { display: inline-block; margin-top: 8px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }

/* Portes d'entrée (wiki / boutique / armes) */
.doors { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.door { padding: 30px; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; }
.door .big { font: 900 64px/1 var(--display); color: var(--card-solid); -webkit-text-stroke: 3px rgba(243, 104, 243, .6); paint-order: stroke fill; }
.door h3 { font: 700 24px var(--display); text-transform: uppercase; margin: 10px 0 6px; }
.door p { color: var(--muted); font-size: 15px; }
.door .go { margin-top: 18px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.door:hover .go { text-decoration: underline; text-underline-offset: 4px; }

/* Vitrine des véhicules en coins */
.showroom { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.showroom::-webkit-scrollbar { height: 6px; } .showroom::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.car { scroll-snap-align: start; }
.car .pic { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 90%, #2a1732, #120a16 70%); }
.car .pic img { width: 100%; height: 100%; object-fit: cover; }
.car .pic svg { width: 70px; height: 70px; stroke: #5b3f63; stroke-width: 1.3; fill: none; }
.car .meta { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.car .meta b { font-size: 15px; line-height: 1.3; }
.coins { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--mono); color: var(--gold); white-space: nowrap; }
.coins img { width: 18px; height: 18px; }

/* ═════ Wiki ═════ */
.page-head { padding: 140px 0 40px; position: relative; }
.page-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 80% 0%, rgba(218, 27, 129, .18), transparent 70%); }
.page-head p { max-width: 620px; color: var(--soft); margin-top: 16px; font-size: 17px; }
.wiki { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-bottom: 80px; align-items: start; }
.w-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; }
.w-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-solid); margin-bottom: 10px; }
.w-search svg { width: 16px; height: 16px; stroke: var(--muted); stroke-width: 2; fill: none; flex: none; }
.w-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--text); font: 14px 'Inter', sans-serif; }
.w-cat { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--soft); text-align: left; }
.w-cat:hover { background: rgba(239, 231, 236, .05); }
.w-cat.on { background: rgba(243, 104, 243, .12); color: #fff; box-shadow: inset 3px 0 0 var(--pink); }
.w-cat span { font: 600 11px var(--mono); color: var(--muted); }
.w-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.w-card { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.w-card .eyebrow { font-size: 10px; }
.w-card h3 { font: 700 18px/1.3 var(--display); text-transform: uppercase; }
.w-card p { font-size: 14px; color: var(--muted); }
.w-card .go { margin-top: auto; padding-top: 6px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.article { padding: 34px 38px; }
.article .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article .back:hover { color: var(--pink); }
.article h2 { margin: 12px 0 18px; }
.prose { font-size: 16px; color: var(--soft); }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--pink); }
.prose b { color: var(--text); }
.prose a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.prose .tip { padding: 14px 16px; border-radius: 10px; border-left: 3px solid var(--pink); background: rgba(243, 104, 243, .07); font-size: 15px; }
.empty { padding: 44px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Clavier interactif */
.kb { margin: 10px 0 18px; padding: 18px; border-radius: 12px; background: #120a16; border: 1px solid var(--line); overflow-x: auto; }
.kb-row { display: flex; gap: 6px; margin-bottom: 6px; }
.k { flex: none; width: 44px; height: 44px; border-radius: 7px; border: 1px solid #2c1d31; border-bottom-width: 3px; background: #1a1020; color: #5e4a63; font: 600 11px var(--mono); display: flex; align-items: center; justify-content: center; }
.k.w15 { width: 68px; } .k.w2 { width: 92px; } .k.w25 { width: 116px; } .k.sp { width: 300px; }
.k.on { color: #fff; border-color: var(--magenta); background: linear-gradient(180deg, #3a1540, #25102b); cursor: pointer; box-shadow: 0 0 14px rgba(243, 104, 243, .25); }
.k.on:hover, .k.sel { background: var(--grad); color: #fff; box-shadow: 0 0 22px rgba(243, 104, 243, .6); }
.kb-info { min-height: 76px; padding: 16px 18px; border-radius: 10px; background: rgba(243, 104, 243, .07); border: 1px solid var(--line); }
.kb-info b { font: 700 16px var(--display); text-transform: uppercase; margin-right: 8px; }

/* Tableau (intérim) */
.tbl { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14px; }
.tbl th { text-align: left; font: 600 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line-soft); }
.tbl tr:hover td { background: rgba(243, 104, 243, .04); }
.tbl .pay { font-family: var(--mono); color: #7ad59c; white-space: nowrap; }
.tier { display: inline-block; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: rgba(139, 92, 246, .18); color: #c4b5fd; }

/* ═════ Armes ═════ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.chip:hover { border-color: var(--pink); }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.arsenal { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.wcard { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.w-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.w-top h3 { font: 700 20px/1.2 var(--display); text-transform: uppercase; margin-top: 6px; }
.side-tag { font: 700 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; white-space: nowrap; }
.side-tag.civil { background: rgba(122, 213, 156, .14); color: #7ad59c; }
.side-tag.lspd { background: rgba(96, 165, 250, .15); color: #93c5fd; }
.stats { display: flex; flex-direction: column; gap: 9px; }
.stat { display: grid; grid-template-columns: 78px 1fr 72px; align-items: center; gap: 10px; font-size: 12px; }
.stat span:first-child { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: #2a1a30; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); width: 0; transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.stat b { font: 600 12px var(--mono); text-align: right; }
.w-where { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.w-where b { color: var(--text); }
.w-note { font-size: 13px; color: var(--muted); }
.cmp { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cmp i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); }
.wcard.picked { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.wcard.picked .cmp { color: var(--pink); } .wcard.picked .cmp i { background: var(--pink); border-color: var(--pink); }
.compare { position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translateX(-50%); width: min(760px, calc(100% - 28px)); padding: 16px 18px; border-radius: 16px;
    background: rgba(20, 11, 24, .97); border: 1px solid var(--pink); box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(218, 27, 129, .2); }
.cmp-grid { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 6px 14px; font-size: 13px; align-items: center; }
.cmp-grid .h { font: 700 14px var(--display); text-transform: uppercase; }
.cmp-grid .k2 { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cmp-grid .win { color: #7ad59c; font-weight: 700; }
.cmp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.banned { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ban { padding: 18px; border-radius: 12px; border: 1px dashed rgba(255, 143, 176, .35); background: rgba(218, 27, 129, .05); }
.ban b { display: block; font: 700 14px var(--display); text-transform: uppercase; margin-bottom: 4px; color: #ffb3c9; }
.ban p { font-size: 13px; color: var(--muted); }

/* ═════ Boutique ═════ */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
/* un pack = un billet : talon détachable à droite, perforations */
.ticket { position: relative; display: grid; grid-template-columns: 1fr 64px; min-height: 170px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s; }
.ticket:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--pink); }
.ticket .main { padding: 20px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.ticket .no { font: 600 10px var(--mono); letter-spacing: .2em; color: var(--muted); }
.ticket .amt { font: 900 34px/1 var(--display); }
.ticket .amt small { display: block; margin-top: 6px; font: 600 10px var(--mono); letter-spacing: .24em; color: var(--pink); }
.ticket .cost { font: 700 18px var(--display); }
.ticket .stub { position: relative; display: flex; align-items: center; justify-content: center; background: var(--grad); border-left: 2px dashed rgba(14, 8, 17, .8); }
.ticket .stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px var(--mono); letter-spacing: .24em; text-transform: uppercase; color: #fff; }
.ticket::before, .ticket::after { content: ''; position: absolute; right: 56px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); z-index: 1; }
.ticket::before { top: -8px; } .ticket::after { bottom: -8px; }
.ticket.best { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 14px 50px rgba(218, 27, 129, .25); }
.ticket .best-tag { position: absolute; top: 12px; right: 76px; }
.ticket .coin-mini { width: 26px; height: 26px; opacity: .9; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
.how .glow { padding: 22px; }
.how .n { font: 900 32px/1 var(--display); color: var(--card-solid); -webkit-text-stroke: 2.4px var(--pink); paint-order: stroke fill; }
.how b { display: block; margin: 10px 0 4px; font: 700 15px var(--display); text-transform: uppercase; }
.how p { font-size: 14px; color: var(--muted); }

/* ═════ Pied de page ═════ */
.foot { margin-top: 60px; border-top: 1px solid var(--line-soft); padding: 50px 0 26px; font-size: 14px; background: linear-gradient(180deg, transparent, rgba(218, 27, 129, .05)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand img { height: 70px; width: auto; margin-bottom: 12px; }
.foot-brand p { color: var(--muted); max-width: 300px; }
.foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; gap: 8px; }
.foot-grid b { font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); margin-bottom: 4px; }
.foot-grid a { color: var(--soft); } .foot-grid a:hover { color: #fff; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }

/* ═════ Fenêtres ═════ */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(8, 4, 10, .78); display: flex; align-items: center; justify-content: center; padding: 20px; }
.dialog { position: relative; width: 100%; max-width: 440px; padding: 28px; border-radius: 18px; background: var(--card-solid); border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(218, 27, 129, .15); display: flex; flex-direction: column; gap: 18px; }
.x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.x:hover { background: rgba(239, 231, 236, .08); color: var(--text); }
.x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.d-head { display: flex; align-items: center; gap: 16px; }
.d-head img { width: 60px; height: auto; }
.d-head h3 { font: 700 20px/1.2 var(--display); text-transform: uppercase; margin: 4px 0 2px; }
.price { font: 600 16px var(--display); color: var(--pink); }
#step-id, #step-pay, #step-done { display: flex; flex-direction: column; gap: 12px; }
label { font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
#m-id { height: 54px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 16px; font: 600 22px var(--mono); letter-spacing: .3em; color: var(--text); outline: none; }
#m-id:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(243, 104, 243, .15); }
#m-id::placeholder { font: 400 14px 'Inter', sans-serif; letter-spacing: 0; color: #7d6a7d; }
.hint { font-size: 13px; color: var(--muted); }
.hint b { color: var(--text); }
.ok-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ok-line .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ebe7d; }
.done { font-size: 15px; color: var(--soft); }
.done b { color: var(--text); }
.err { font-size: 13px; font-weight: 600; color: #ff8fb0; }
.err:empty { display: none; }

/* Recherche globale */
.palette-wrap { align-items: flex-start; padding-top: 12vh; }
.palette { width: 100%; max-width: 620px; border-radius: 16px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 50px rgba(218, 27, 129, .15); overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 18px; height: 18px; stroke: var(--pink); stroke-width: 2; fill: none; flex: none; }
.pal-in input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--text); font: 16px 'Inter', sans-serif; }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.pal-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; text-align: left; }
.pal-item.on { background: rgba(243, 104, 243, .12); }
.pal-item b { font-size: 14px; font-weight: 600; }
.pal-item small { display: block; font-size: 12px; color: var(--muted); }
.pal-item .t { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pink); white-space: nowrap; }

/* Apparition au défilement */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .rise { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
    .top { grid-template-columns: auto 1fr; }
    .top-r { display: none; }
    .nav { justify-self: end; }
    .nav a { padding: 8px 10px; font-size: 10px; letter-spacing: .08em; }
    .route { grid-template-columns: 1fr; }
    .route::before { top: 0; bottom: 0; left: 11px; right: auto; width: 4px; height: auto; }
    .stop { padding: 0 0 0 42px; }
    .doors, .how { grid-template-columns: 1fr; }
    .wiki { grid-template-columns: 1fr; }
    .w-side { position: static; }
    .w-grid { grid-template-columns: 1fr; }
    .article { padding: 24px 20px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .hero-side { display: none; }
}
@media (max-width: 560px) {
    .brand img { height: 34px; }
    .top { padding: 6px 6px 6px 10px; gap: 8px; }
    .nav { gap: 0; padding: 3px; }
    .nav a { padding: 7px 7px; font-size: 9.5px; letter-spacing: .02em; }
    .hero h1 .l1 { -webkit-text-stroke-width: 3px; }
    .foot-grid { grid-template-columns: 1fr; }
    .stat { grid-template-columns: 64px 1fr 60px; }
}
