:root {
  --red: #e10600; --yellow: #ffd600; --green: #43d17a; --discord: #5865f2;
  --bg: #0c0c0e; --panel: #16161a; --line: rgba(255, 255, 255, .09); --text: #f2f2f2; --muted: #9a9aa2;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif; color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 10% -10%, rgba(225, 6, 0, .28), transparent 45%),
    repeating-linear-gradient(45deg, #121215 0 5px, #0c0c0e 5px 10px);
}
a { color: var(--yellow); }
em { font-style: normal; color: var(--red); }
main { flex: 1; width: min(1180px, 100% - 32px); margin: 0 auto; padding: 32px 0 56px; }

/* ---------- Barre du haut ---------- */
.top {
  display: flex; align-items: center; gap: 28px; padding: 14px max(16px, calc(50% - 590px));
  background: rgba(12, 12, 14, .85); backdrop-filter: blur(8px); border-bottom: 2px solid var(--red); position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: 'Russo One'; font-size: 26px; }
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.top nav { display: flex; gap: 20px; flex: 1; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 600; opacity: .85; }
.top nav a:hover { opacity: 1; color: var(--yellow); }
.account { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--red); color: #fff; font: 800 15px Inter, sans-serif; letter-spacing: .02em;
}
.btn:hover { filter: brightness(1.12); }
.btn.big { display: block; width: 100%; text-align: center; padding: 15px; font-size: 17px; margin: 14px 0 6px; }
.btn.discord { background: var(--discord); }
.btn.ghost { background: transparent; border: 2px solid var(--line); }
.btn[disabled] { background: #3a3a40; color: var(--muted); cursor: not-allowed; }
.hint { color: var(--muted); font-size: 14px; }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; padding: 46px 40px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.hero .stripes { position: absolute; top: -30%; right: 6%; width: 110px; height: 160%; transform: rotate(18deg);
  background: linear-gradient(90deg, var(--red) 0 46%, transparent 46% 58%, var(--yellow) 58% 100%); opacity: .85; }
.hero h1 { font-family: 'Russo One'; font-size: clamp(34px, 6vw, 64px); line-height: 1; position: relative; }
.hero p { margin: 16px 0 24px; font-size: 18px; color: #d6d6dc; position: relative; }
.search { display: flex; gap: 10px; max-width: 560px; position: relative; }
.search input, .sell input, .sell textarea, .sell select {
  flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0f0f12; color: var(--text); font: 15px Inter, sans-serif;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 20px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.chip.on { background: var(--red); border-color: var(--red); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--red); }
.cover { position: relative; aspect-ratio: 2 / 1; background: #000; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.price { position: absolute; right: 10px; top: 10px; background: var(--yellow); color: #111; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.price.free, .price-big.free { background: var(--green); color: #0b2b17; }
.info { padding: 14px 16px 16px; }
.type { color: var(--red); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.info h3 { font-family: 'Russo One'; font-size: 20px; margin: 4px 0 6px; }
.info p { color: #c9c9d0; font-size: 14px; line-height: 1.4; }
.seller { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty h2 { font-family: 'Russo One'; color: var(--text); margin-bottom: 8px; }

/* ---------- Page produit ---------- */
.product { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.media img { width: 100%; border-radius: 16px; border: 1px solid var(--line); display: block; }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; align-self: start; }
.side h1 { font-family: 'Russo One'; font-size: 32px; margin: 6px 0; }
.tagline { color: #d6d6dc; }
.price-big { display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 10px; background: var(--yellow); color: #111; font: 800 24px Inter, sans-serif; }
.side dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin-top: 18px; font-size: 14px; }
.side dt { color: var(--muted); }
.description { grid-column: 1 / -1; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; line-height: 1.6; }
.description p + p { margin-top: 12px; }

/* ---------- Formulaires et messages ---------- */
.form-page, .message { max-width: 760px; margin: 0 auto; }
.form-page h1, .message h1 { font-family: 'Russo One'; font-size: 42px; margin-bottom: 10px; }
.lead { color: #c9c9d0; margin-bottom: 22px; }
.sell { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.sell label { display: grid; gap: 6px; font-weight: 600; }
.sell small { color: var(--muted); font-weight: 400; }
.sell .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sell .check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.error { background: rgba(225, 6, 0, .15); border: 1px solid var(--red); padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.message p { margin: 12px 0; font-size: 17px; }
.status { font-weight: 800; }
.status.ok { color: var(--green); } .status.ko { color: var(--red); } .status.pending { color: var(--yellow); }
.mine { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 12px; overflow: hidden; }
.mine th, .mine td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.mine small { display: block; color: var(--muted); }
.legal h2 { font-family: 'Russo One'; font-size: 20px; margin: 22px 0 6px; color: var(--yellow); }
.legal p { color: #d6d6dc; line-height: 1.6; }

/* ---------- Bas de page ---------- */
.bottom { text-align: center; color: var(--muted); padding-bottom: 22px; }
.checker { height: 18px; margin-bottom: 18px; opacity: .8; background: conic-gradient(#f2f2f2 25%, #111 0 50%, #f2f2f2 0 75%, #111 0) 0 0 / 18px 18px; }

.search input { min-width: 0; }

@media (max-width: 820px) {
  .top { flex-wrap: wrap; gap: 10px 18px; }
  .top nav { order: 3; flex-basis: 100%; }
  .account { margin-left: auto; }
  .product { grid-template-columns: 1fr; }
  .sell .row { grid-template-columns: 1fr; }
  .hero { padding: 30px 22px; }
  .hero .stripes { width: 60px; right: -10px; opacity: .5; }
  .mine { display: block; overflow-x: auto; }
}
@media (max-width: 520px) {
  .btn.discord:not(.big) { padding: 9px 12px; font-size: 13px; }
  .account span { display: none; }
  .search { flex-direction: column; }
}
