/* Bagz GMod Shop : style place de marché (sombre, accent bleu) */
@font-face { font-family: 'Inter'; src: url('fonts/Inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2605, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JBMono'; src: url('fonts/jetbrains-mono-variable.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
    --bg: #0d1117; --panel: #151b23; --panel2: #1b222c; --panel3: #222a35; --line: #262f3b; --line2: #323c4a;
    --text: #e8edf3; --dim: #a3afbd; --mute: #6f7c8b;
    --blue: #3d8bfd; --blue-h: #5b9dff; --blue-d: rgba(61, 139, 253, .14);
    --green: #2fbf71; --green-h: #3ad180; --gold: #f5b83d; --red: #f0506e;
    --r: 10px; --r-sm: 7px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 14.5px/1.55 'Inter', 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: 'JBMono', ui-monospace, monospace; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--mute); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; text-decoration: none; color: #fff; background: var(--blue); transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--blue-h); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--panel3); color: var(--mute); cursor: not-allowed; }
.btn.ok { background: var(--green); } .btn.ok:hover { background: var(--green-h); }
.btn.wide { width: 100%; height: 46px; font-size: 15px; }
.btn.steam { background: #2a3442; } .btn.steam:hover { background: #344052; }
.btn.steam svg { width: 18px; height: 18px; fill: currentColor; }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); font-weight: 600; font-size: 13px; text-decoration: none; color: var(--text); background: transparent; transition: background .15s, border-color .15s; }
.ghost:hover { background: var(--panel3); }
.ghost.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.ghost.danger { color: var(--red); border-color: rgba(240, 80, 110, .35); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--blue-h); background: var(--blue-d); }

/* ---------- étoiles ---------- */
.stars { position: relative; display: inline-block; width: 80px; height: 15px; vertical-align: middle; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23323c4a' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") 0 0 / 16px 15px repeat-x; }
.stars-fill { position: absolute; inset: 0 auto 0 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b83d' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") 0 0 / 16px 15px repeat-x; }
.stars.sm { width: 65px; height: 12px; background-size: 13px 12px; } .stars.sm .stars-fill { background-size: 13px 12px; }
.stars.lg { width: 110px; height: 21px; background-size: 22px 21px; } .stars.lg .stars-fill { background-size: 22px 21px; }

/* ---------- en-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(13, 17, 23, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand b { font-weight: 800; color: var(--blue); }
.topsearch { position: relative; flex: 1; max-width: 620px; }
.topsearch svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: var(--mute); pointer-events: none; }
.topsearch input[type=search] { width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--panel); color: var(--text); font: inherit; outline: none; transition: border-color .15s, background .15s; }
.topsearch input[type=search]:focus { border-color: var(--blue); background: var(--panel2); }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); color: var(--dim); transition: background .15s, color .15s; }
.iconbtn:hover { background: var(--panel2); color: var(--text); }
.iconbtn svg { width: 19px; height: 19px; fill: currentColor; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.me { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 4px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; max-width: 220px; }
.me:hover { background: var(--panel2); }
.me img { width: 32px; height: 32px; border-radius: 6px; }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: 6px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-size: 13.5px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--panel3); }
.menu-pop button { color: var(--red); }
.catbar { border-top: 1px solid var(--line); background: var(--panel); }
.catbar-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a { position: relative; flex: none; padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--dim); text-decoration: none; transition: color .15s; }
.catbar a:hover { color: var(--text); }
.catbar a.on { color: var(--text); }
.catbar a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--blue); }
.catbar a.ext { margin-left: auto; }

.flash { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; border: 1px solid; }
.flash.ok { background: rgba(47, 191, 113, .1); border-color: rgba(47, 191, 113, .35); color: #6fe0a4; }
.flash.err { background: rgba(240, 80, 110, .1); border-color: rgba(240, 80, 110, .4); color: #ff8ea3; }
.flash.info { background: var(--blue-d); border-color: rgba(61, 139, 253, .4); color: #9cc2ff; }

/* ---------- visuels ---------- */
.art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--ac, #3d8bfd) 55%, #151b23), #10151c 75%); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .art { background: linear-gradient(135deg, #24406b, #10151c 75%); } }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-word { padding: 0 8%; font-size: clamp(17px, 1.6vw, 22px); font-weight: 800; line-height: 1.1; text-align: center; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.own { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 5px; font-size: 11.5px; font-weight: 700; color: #06281a; background: var(--green); }

/* ---------- cartes ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.card-b { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 13px 14px 6px; }
.card-t { font-size: 15.5px; font-weight: 700; }
.card-d { font-size: 13px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-f { display: flex; align-items: center; gap: 10px; padding: 10px 14px 13px; }
.author { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); }
.author img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; background: var(--panel3); }
.card-r { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); }
.card-r .new { color: var(--blue-h); font-weight: 600; }
.price { margin-left: auto; padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 13.5px; color: #fff; background: var(--green); white-space: nowrap; }
.price.soon { color: var(--dim); background: var(--panel3); }

/* ---------- accueil ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 22px; }
.slider { position: relative; border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--line); min-height: 360px; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.slide.on { opacity: 1; visibility: visible; }
.slide .art { aspect-ratio: auto; height: 100%; }
.slide .art-word { font-size: clamp(26px, 3vw, 40px); }
.slide-b { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 30px 30px 50px; background: linear-gradient(90deg, rgba(21, 27, 35, .6), var(--panel) 30%); }
.slide-b .pill { align-self: flex-start; }
.slide-b b { font-size: 28px; font-weight: 800; line-height: 1.15; }
.slide-b > span:not(.pill) { color: var(--dim); }
.slide-f { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.price-tag { padding: 7px 14px; border-radius: 7px; font-weight: 800; font-size: 16px; background: var(--green); color: #fff; }
.price-tag.soon { color: var(--dim); background: var(--panel3); }
.dots { position: absolute; right: 22px; bottom: 18px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 22px; height: 5px; border-radius: 3px; background: var(--line2); transition: background .2s, width .2s; }
.dots button.on { width: 34px; background: var(--blue); }
.side-box { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.side-box h3 { font-size: 16px; margin-bottom: 14px; }
.perks { list-style: none; display: grid; gap: 14px; margin-bottom: 20px; flex: 1; }
.perks li { position: relative; padding-left: 26px; }
.perks li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.perks b { display: block; font-size: 14px; }
.perks span { font-size: 13px; color: var(--dim); }
.block { margin-top: 44px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.block-h h2 { font-size: 21px; }
.block-h a { font-size: 13.5px; font-weight: 600; color: var(--blue-h); text-decoration: none; }
.block-h a:hover { text-decoration: underline; }
.empty { padding: 40px 20px; text-align: center; color: var(--dim); border: 1px dashed var(--line2); border-radius: var(--r); }
.empty a { color: var(--blue-h); }

/* ---------- catalogue ---------- */
.shop { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; margin-top: 26px; }
.filters { align-self: start; position: sticky; top: 130px; display: grid; gap: 18px; }
.f-group { padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.f-group h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 2px 6px 8px; }
.f-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--dim); text-decoration: none; }
.f-item:hover { background: var(--panel2); color: var(--text); }
.f-item.on { background: var(--blue-d); color: var(--blue-h); font-weight: 600; }
.f-item small { font-size: 12px; color: var(--mute); }
.results-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.results-h h1 { font-size: 24px; }
.sorter label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.sorter select { height: 36px; }
.active-f { display: flex; gap: 8px; margin-bottom: 14px; }
.active-f a { padding: 4px 10px; border-radius: 6px; font-size: 12.5px; background: var(--panel2); border: 1px solid var(--line2); text-decoration: none; }

/* ---------- fiche ---------- */
.pd { padding: 22px 0 70px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 16px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--dim); font-weight: 500; }
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.pd-head h1 { font-size: 30px; }
.pd-head .lead { color: var(--dim); font-size: 15.5px; margin-top: 4px; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; font-size: 13.5px; }
.pd-meta .author { font-size: 13.5px; }
.pd-meta .author img { width: 20px; height: 20px; }
.tab-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.viewer { border-radius: var(--r); border: 1px solid var(--line); }
.viewer .art-word { font-size: clamp(28px, 4vw, 48px); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 110px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .15s, border-color .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; } .thumb.on { opacity: 1; border-color: var(--blue); }
.tabs { display: flex; gap: 4px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; padding: 12px 16px; font-weight: 600; font-size: 14px; color: var(--dim); }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--blue); }
.count { margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; background: var(--panel3); color: var(--dim); }
.tab-pane { display: none; padding-top: 22px; }
.tab-pane.on { display: block; }
.desc p { color: var(--dim); margin-bottom: 14px; font-size: 15px; }
.desc h3 { font-size: 17px; margin: 26px 0 12px; }
.feats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feats li { position: relative; padding: 10px 12px 10px 34px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.feats li::before { content: ''; position: absolute; left: 13px; top: 15px; width: 10px; height: 5px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.versions { list-style: none; display: grid; gap: 8px; }
.versions li { padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.versions li.cur { border-color: rgba(61, 139, 253, .45); color: var(--text); }
.pd-side { position: sticky; top: 130px; display: grid; gap: 14px; }
.buybox { padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.buy-price { font-size: 30px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.checkout { display: grid; gap: 10px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--dim); cursor: pointer; }
.check input { flex: none; margin-top: 2px; width: 16px; height: 16px; accent-color: var(--blue); }
.check a, .note a { color: var(--blue-h); }
.note { margin-top: 10px; font-size: 12.5px; color: var(--mute); }
.infos { padding: 6px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.infos div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.infos div:last-child { border-bottom: 0; }
.infos dt { color: var(--mute); }
.infos dd { font-weight: 600; text-align: right; }
.infos a { color: var(--blue-h); text-decoration: none; }
.seller { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.seller img { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: var(--panel3); }
.seller div { flex: 1; min-width: 0; }
.seller b { display: block; }
.seller span { font-size: 12.5px; }

/* ---------- avis ---------- */
.review-form { padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); margin-bottom: 22px; display: grid; gap: 12px; }
.review-form h3 { font-size: 15px; }
.rate-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate-input input { position: absolute; opacity: 0; pointer-events: none; }
.rate-input label { font-size: 26px; line-height: 1; color: var(--line2); cursor: pointer; transition: color .1s; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: var(--gold); }
.rate-input input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 4px; }
.row-btns { display: flex; gap: 10px; align-items: center; }
.box-note { padding: 14px 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); margin-bottom: 20px; }
.box-note a { color: var(--blue-h); }
.review-sum { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.review-sum > b { font-size: 42px; font-weight: 800; line-height: 1; }
.review-sum div { display: grid; gap: 4px; font-size: 13px; }
.reviews { display: grid; gap: 12px; }
.review { padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.review-h { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.review-h img, .review-h .av { width: 36px; height: 36px; border-radius: 7px; background: var(--panel3); }
.review-h div { flex: 1; display: grid; }
.review-h div span { font-size: 12px; }
.review p { color: var(--dim); font-size: 14px; }
.reply { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--blue); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--panel2); }
.reply b { font-size: 12.5px; color: var(--blue-h); }
.admin-r { margin-top: 10px; font-size: 12.5px; }
.admin-r summary { cursor: pointer; color: var(--mute); }
.admin-r form { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.admin-r textarea { flex: 1; }

/* ---------- pages ---------- */
.page { padding: 34px 0 70px; }
.page > h1 { font-size: 30px; margin: 6px 0 22px; }
.page.center { text-align: center; padding: 110px 0; }
.page.center p { color: var(--dim); margin-bottom: 22px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-h); }
.back { display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--dim); text-decoration: none; }
.back:hover { color: var(--text); }
.legal { max-width: 820px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p { color: var(--dim); margin-bottom: 10px; }
.legal a { color: var(--blue-h); }
.lib { display: grid; gap: 12px; }
.lib-row { display: flex; align-items: center; gap: 18px; padding: 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.art.sm { width: 140px; flex: none; border-radius: var(--r-sm); text-decoration: none; }
.art.sm .art-word { font-size: 13px; }
.lib-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lib-info a { text-decoration: none; }
.lib-info b { font-size: 16px; }
.lib-info > span { font-size: 12.5px; color: var(--mute); }
.lic { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.lic code { font-size: 12.5px; letter-spacing: .05em; color: var(--gold); }
.lib-act { display: flex; align-items: center; gap: 14px; }
.badge { font-size: 12.5px; font-weight: 600; color: var(--dim); }

/* ---------- admin ---------- */
.admin h2 { font-size: 18px; margin: 34px 0 12px; }
.admin .sec-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.admin .sec-head h1 { font-size: 28px; margin-top: 4px; }
.admin .sec-head .btn { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats div { padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.stats span { display: block; font-size: 12px; font-weight: 600; color: var(--mute); }
.stats b { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; }
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 11px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); background: var(--panel2); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl td small { display: block; color: var(--mute); font-size: 11.5px; }
.tbl a { text-decoration: none; }
.tbl code { font-size: 12px; color: var(--gold); }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.ok { color: var(--green); font-weight: 700; }
.warn { color: var(--gold); font-weight: 600; }
.st { font-weight: 700; }
.st-paid { color: var(--green); } .st-gift { color: var(--gold); } .st-pending { color: var(--blue-h); } .st-refunded { color: var(--red); }
.gift { display: flex; flex-wrap: wrap; gap: 10px; }
input:not([type]), input[type=text], input[type=number], input[type=search], select, textarea { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 8px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
select option { background: var(--panel2); }
.gift input { width: 260px; height: 40px; } .gift select { height: 40px; min-width: 220px; }
.edit .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 22px; }
.edit label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--dim); }
.edit label.check { flex-direction: row; margin-bottom: 8px; }
.edit textarea { resize: vertical; line-height: 1.5; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.box { padding: 16px; margin-bottom: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.box h3 { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; color: var(--blue-h); }
.box p { font-size: 13.5px; margin-bottom: 10px; }
.box small { color: var(--mute); font-size: 12px; }
.box .prev { border-radius: var(--r-sm); margin-bottom: 10px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.file input { font-size: 12.5px; color: var(--mute); }
input[type=color] { width: 70px; height: 36px; padding: 2px; border-radius: 6px; border: 1px solid var(--line2); background: transparent; }
.gal-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.gal-edit label { margin: 0; font-size: 11.5px; }
.gal-edit img { border-radius: 5px; aspect-ratio: 16 / 9; object-fit: cover; }
.edit-bar { display: flex; gap: 12px; align-items: center; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 35%); }
.danger-zone { display: flex; gap: 12px; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.danger-zone small { color: var(--mute); font-size: 12px; }

/* ---------- pied de page ---------- */
.foot { margin-top: 60px; border-top: 1px solid var(--line); background: var(--panel); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; padding: 40px 0 26px; }
.foot-brand p { margin-top: 12px; max-width: 320px; font-size: 13.5px; color: var(--dim); }
.foot h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; gap: 7px; }
.foot-grid a:not(.brand) { font-size: 13.5px; color: var(--dim); text-decoration: none; }
.foot-grid a:not(.brand):hover { color: var(--text); }
.fine { padding: 16px 0 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .home-top, .pd-grid, .shop, .edit .cols { grid-template-columns: minmax(0, 1fr); }
    .slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .slide .art { aspect-ratio: 16 / 9; height: auto; }
    .slider { min-height: 0; height: 470px; }
    .slide-b { padding: 18px 20px 40px; background: var(--panel); }
    .slide-b b { font-size: 22px; }
    .filters, .pd-side { position: static; }
    .filters { grid-template-columns: 1fr 1fr; }
    .grid, .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .feats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .top-in { gap: 10px; height: 58px; }
    .brand span { display: none; }
    .me span, .btn.steam span { display: none; }
    .btn.steam { padding: 0 11px; }
    .grid, .grid.g3 { grid-template-columns: minmax(0, 1fr); }
    .filters { grid-template-columns: 1fr; }
    .results-h { flex-direction: column; align-items: flex-start; }
    .pd-head h1 { font-size: 24px; }
    .lib-row { flex-wrap: wrap; }
    .lib-act { width: 100%; justify-content: space-between; }
    .row3 { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
}
