@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&family=Rubik:wght@400;500;600&display=swap');

:root {
  --bg: #0b0e14;
  --surface: #141a24;
  --surface-2: #1b2330;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: #2a3344;
  --cta: #f97316;
  --cta-hover: #ea580c;
  --accent: #38bdf8;
  --ok: #22c55e;
  --danger: #ef4444;
  --featured: #fbbf24;
  --radius: 14px;
  --font: "Rubik", sans-serif;
  --display: "Outfit", sans-serif;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(249, 115, 22, .12), transparent 55%),
    radial-gradient(700px 420px at 92% 0%, rgba(56, 189, 248, .08), transparent 50%),
    var(--bg);
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #7dd3fc; }
img { max-width: 100%; height: auto; display: block; }
.icon { display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--cta); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 20, .88);
  backdrop-filter: blur(12px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--text);
  text-transform: uppercase;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(249,115,22,.35), 0 4px 12px rgba(0,0,0,.4);
}
.logo-word { line-height: 1; }
.logo strong { color: var(--cta); }
.logo:hover { text-decoration: none; color: var(--text); }
.topbar nav {
  display: flex; align-items: center; gap: .15rem 1rem; flex: 1;
}
.topbar nav a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.topbar nav a:hover {
  color: var(--text); border-bottom-color: var(--cta); text-decoration: none;
}
.vs-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.topbar nav a.active { color: var(--text); border-bottom-color: var(--cta); }
.topbar-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; justify-content: flex-end; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.35rem; height: 2.35rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--cta); background: var(--surface-2); text-decoration: none; color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; font: inherit; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.btn.accent, .btn.vote {
  background: var(--cta); border-color: transparent; color: #fff; font-weight: 600;
}
.btn.accent:hover, .btn.vote:hover { background: var(--cta-hover); color: #fff; }
.btn.outline-cta {
  background: transparent; border-color: var(--cta); color: var(--cta); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; font-size: .82rem;
}
.btn.outline-cta:hover { background: rgba(249, 115, 22, .12); color: #fdba74; }
.btn.ghost { background: transparent; }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

main { flex: 1 0 auto; width: 100%; max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; }
main.wide { max-width: none; padding: 0; }
main.wide > .wrap { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; }

.hero-home {
  padding: 2.25rem 0 1.5rem;
}
.hero-home h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .75rem;
  max-width: 18ch;
}
.hero-home .lead {
  color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 42rem; margin: 0 0 1.5rem;
}
.section-title {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 600; margin: 2rem 0 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.muted { color: var(--muted); }
.user { color: var(--muted); font-size: .9rem; }

.moment-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (max-width: 720px) { .moment-grid { grid-template-columns: 1fr; } }
.moment-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  min-height: 220px; border: 1px solid var(--line); box-shadow: var(--shadow);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.moment-card:hover { border-color: var(--cta); text-decoration: none; box-shadow: 0 20px 48px rgba(249,115,22,.15); }
.moment-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.moment-card .overlay {
  position: relative; z-index: 1; min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.15rem;
  background: linear-gradient(180deg, transparent 20%, rgba(11,14,20,.92) 85%);
}
.moment-card .badge {
  position: absolute; top: .85rem; right: .85rem; z-index: 2;
  background: var(--cta); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 6px;
}
.moment-card h3 { margin: 0 0 .35rem; color: #fff; font-family: var(--display); font-size: 1.35rem; }
.moment-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.grid-games {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .75rem;
}
@media (max-width: 1280px) { .grid-games { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 980px) { .grid-games { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .grid-games { grid-template-columns: repeat(2, 1fr); } }
.grid-games-sm { max-width: 480px; margin: 0 auto; grid-template-columns: repeat(2, 1fr); }
.section-center { justify-content: center; text-align: center; }

.game-card {
  position: relative; display: block; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--surface);
  cursor: pointer; aspect-ratio: 2/3;
  transition: border-color .2s, box-shadow .2s;
}
.game-card:hover {
  border-color: var(--cta);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(249,115,22,.35), 0 12px 28px rgba(0,0,0,.35);
}
.game-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .25s ease;
}
.game-card:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .game-card:hover img { transform: none; }
}
.game-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.88) 100%);
  pointer-events: none;
}
/* Badge en bas : ne masque plus le logo du jeu sur la cover */
.pill {
  position: static;
  display: inline-flex; align-items: center;
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .22rem .45rem; border-radius: 5px; color: #fff;
  width: fit-content; max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.pill-hot { background: var(--cta); }
.pill-new { background: #7c3aed; }
.game-card-body {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: .3rem;
  padding: .65rem .6rem .7rem;
  color: #fff;
}
.game-card-body-center { justify-content: center; align-items: center; text-align: center; gap: .35rem; }
.game-card-title {
  font-family: var(--display);
  font-size: clamp(.85rem, 1.1vw, 1.05rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0,0,0,.75);
}
.game-card-meta {
  font-size: .72rem; color: rgba(241,245,249,.88);
  display: flex; align-items: center; gap: .25rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.game-card-body-center .game-card-meta { justify-content: center; }
.chev { color: var(--cta); font-weight: 700; font-size: .85rem; }

.game-card .label { display: none; }

.layout-game { display: grid; grid-template-columns: 240px 1fr; gap: 1.35rem; }
@media (max-width: 860px) { .layout-game { grid-template-columns: 1fr; } }
.side {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; height: fit-content; position: sticky; top: 4.5rem;
}
.side h3 {
  margin: 0 0 .75rem; font-size: .72rem; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase; font-weight: 600;
}
.side a {
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .5rem .45rem; color: var(--text); border-radius: 8px;
  transition: background .2s;
}
.side a.active, .side a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.side .count { color: var(--muted); font-size: .85rem; }
.side-stat {
  margin-top: 1rem; padding: .85rem; border-radius: 10px;
  background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.25);
  color: var(--cta); font-weight: 600; font-size: .95rem;
}

.game-hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); min-height: 200px; margin-bottom: 1.25rem;
}
.game-hero img { width: 100%; height: 220px; object-fit: cover; }
.game-hero .content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(90deg, rgba(11,14,20,.92) 20%, rgba(11,14,20,.35) 100%);
}
.game-hero h1 { margin: 0 0 .4rem; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); }
.game-hero p { margin: 0; color: var(--muted); max-width: 36rem; }

.rank-switch { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }
.rank-switch a {
  padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: .85rem; font-weight: 500; background: var(--surface);
  transition: border-color .2s, color .2s, background .2s;
}
.rank-switch a.active, .rank-switch a:hover {
  border-color: var(--cta); color: var(--text); background: rgba(249,115,22,.12); text-decoration: none;
}

.server-row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 1rem; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem; margin-bottom: .85rem; transition: border-color .2s;
}
.server-row:hover { border-color: #3d4a63; }
@media (max-width: 800px) {
  .server-row { grid-template-columns: 1fr; }
}
.server-row .thumb {
  border-radius: 10px; overflow: hidden; background: var(--surface-2); min-height: 110px;
}
.server-row .thumb img { width: 100%; height: 110px; object-fit: cover; }
.server-row h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-family: var(--display); }
.server-row h3 a { color: var(--text); }
.server-row h3 a:hover { color: var(--cta); }
.server-row .desc { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; line-height: 1.45; }
.server-stats {
  display: flex; flex-direction: column; gap: .45rem; align-items: flex-end;
  min-width: 140px; color: var(--muted); font-size: .85rem;
}
.server-stats strong { color: var(--text); }
.featured-label {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--featured); font-size: .8rem; font-weight: 600; margin-bottom: .35rem;
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem; margin-bottom: .9rem;
}
.card h1, .card h2, .card h3 { font-family: var(--display); }
.card h2, .card h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.meta { display: flex; flex-wrap: wrap; gap: .75rem; color: var(--muted); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.tag {
  font-size: .72rem; padding: .22rem .55rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .03em; font-weight: 500;
}
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.flash-ok { background: #10261a; color: var(--ok); padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid #1e3f2c; }
.flash-err { background: #2a1414; color: var(--danger); padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid #4a2222; }

.banner {
  position: relative; height: 200px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 1rem;
  display: flex; align-items: flex-end; padding: 1.15rem;
  background-color: #0b0e14;
  background-size: cover;
  background-position: center;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,14,20,.25), rgba(11,14,20,.88));
}
.banner > * { position: relative; z-index: 1; }
.server-nav {
  display: flex; flex-wrap: wrap; gap: .25rem 1.1rem;
  border-bottom: 1px solid var(--line); margin-bottom: 1rem; padding-bottom: .15rem;
}
.server-nav a {
  color: var(--muted); padding: .55rem 0; border-bottom: 2px solid transparent; font-weight: 500;
}
.server-nav a.active { color: var(--cta); border-bottom-color: var(--cta); text-decoration: none; }
.server-nav a:hover { color: var(--text); text-decoration: none; }

.review-criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin: .75rem 0; color: var(--muted); font-size: .85rem; }
.reactions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.reaction {
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem; background: #12161e; color: var(--text); cursor: pointer;
}
.back-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--cta); color: #fff; font-size: 1.2rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--shadow); z-index: 30;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.inline { display: inline; }

.form { max-width: 420px; display: grid; gap: .85rem; }
.form label { display: grid; gap: .35rem; color: var(--muted); font-size: .9rem; font-weight: 500; }
.form input, .form textarea, .form select {
  width: 100%; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line);
  background: #0f131a; color: var(--text); font: inherit;
}
.form .hint { font-size: .8rem; color: #64748b; }
.auth-panel { max-width: 440px; margin: 1rem auto; }
.auth-panel h1 { font-family: var(--display); margin: 0 0 .75rem; font-size: 1.6rem; }
.auth-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1rem; font-size: .9rem; }
.oauth-grid { display: grid; gap: .65rem; margin: 1rem 0; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center;
  padding: .75rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid #2a3140; color: #f3f4f6; background: #151a24;
  transition: border-color .15s, transform .15s;
}
.oauth-btn:hover { border-color: var(--cta); transform: translateY(-1px); }
.oauth-google { border-color: #3c4043; }
.oauth-discord { background: #5865F2; border-color: #5865F2; color: #fff; }
.oauth-steam { background: #1b2838; border-color: #66c0f4; }
.oauth-twitch { background: #9146FF; border-color: #9146FF; color: #fff; }
.oauth-github { background: #24292f; border-color: #30363d; color: #fff; }
.auth-divider {
  display: flex; align-items: center; gap: .75rem; color: #8b93a7; font-size: .85rem; margin: 1.1rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: #2a3140;
}

.legal-page { max-width: 720px; }
.legal-page h1 { margin: 0 0 .5rem; font-size: 1.65rem; font-family: var(--display); }
.legal-page h2 { margin: 1.5rem 0 .55rem; font-size: 1.05rem; }
.legal-page p, .legal-page li { line-height: 1.55; color: var(--muted); }
.code-block {
  background: #0f131a; border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1rem; overflow-x: auto; color: var(--accent); font-size: .9rem;
}

/* Captcha */
.captcha-prompt { margin: .25rem 0 1rem; color: var(--text); font-size: 1.05rem; }
.captcha-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  max-width: 480px; margin-bottom: 1rem; user-select: none;
}
.captcha-tile {
  position: relative; display: block; cursor: pointer;
  border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #12161e; aspect-ratio: 1;
}
.captcha-tile input { position: absolute; opacity: 0; pointer-events: none; }
.captcha-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.captcha-check {
  position: absolute; top: .35rem; right: .35rem; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; background: var(--cta); color: #fff; font-size: .85rem;
  display: none; align-items: center; justify-content: center; font-weight: 700;
}
.captcha-tile:has(input:checked) { border-color: var(--cta); box-shadow: 0 0 0 2px rgba(249,115,22,.35); }
.captcha-tile:has(input:checked) .captcha-check { display: flex; }
.captcha-tile:hover { border-color: #4a5568; }

/* Footer */
.site-footer {
  margin-top: auto; background: #07090c; border-top: 1px solid var(--line); color: var(--muted);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 2.25rem 1.5rem 1.75rem;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem 2.5rem;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text); font-family: var(--display);
  font-size: 1.15rem; text-transform: uppercase; font-weight: 700; margin-bottom: 1.25rem;
  text-decoration: none;
}
.footer-brand strong { color: var(--cta); }
.footer-brand:hover { text-decoration: none; color: var(--text); }
.footer-brand .logo-mark { width: 32px; height: 32px; border-radius: 7px; }
.footer-block { margin-bottom: 1.35rem; }
.footer-heading {
  margin: 0 0 .65rem; color: var(--text); font-size: .95rem; font-weight: 600;
  display: flex; align-items: center; gap: .45rem; font-family: var(--display);
}
.footer-text { margin: 0 0 .75rem; font-size: .9rem; line-height: 1.45; max-width: 28rem; }
.newsletter-form {
  display: flex; max-width: 280px; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #0f131a;
}
.newsletter-form input[type="email"] {
  flex: 1; border: 0; background: transparent; color: var(--text); padding: .65rem .75rem; font: inherit; min-width: 0;
}
.newsletter-submit {
  border: 0; background: var(--surface-2); color: #fff; padding: 0 .9rem; cursor: pointer;
}
.newsletter-submit:hover { background: #252c3c; }
.discover-chip {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .7rem;
  background: #0f131a; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: .85rem;
}
.discover-chip:hover { border-color: var(--cta); text-decoration: none; color: var(--text); }
.discover-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.6rem; height: 1.6rem; border-radius: 4px; background: var(--cta); color: #fff;
  font-size: .65rem; font-weight: 700;
}
.footer-types { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem 1.5rem; }
.footer-types ul, .footer-list, .footer-langs ul { list-style: none; margin: 0; padding: 0; }
.footer-types a, .footer-list a, .footer-langs a { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.footer-types a:hover, .footer-list a:hover, .footer-langs a:hover { color: var(--cta); text-decoration: none; }
.footer-social { display: flex; gap: .55rem; flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.footer-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; max-width: 16rem; }
.footer-bar {
  border-top: 1px solid #1a1f28; background: #050608;
  padding: .85rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .75rem 1.5rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.footer-legal a { color: var(--muted); font-size: .85rem; }
.footer-legal a:hover { color: var(--cta); text-decoration: none; }
.footer-copy { margin: 0 0 0 auto; font-size: .8rem; color: #64748b; }
@media (max-width: 720px) {
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }
  .topbar { flex-wrap: wrap; }
  .topbar nav { order: 3; width: 100%; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Moderation / tickets / admin */
.vs-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 420px;
  width: calc(100% - 2rem);
}
.vs-modal::backdrop { background: rgba(0,0,0,.65); }
.vs-modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}
.vs-modal-card h2 { font-family: var(--display); margin: 0 0 .75rem; }
.vs-modal-card p { color: var(--muted); line-height: 1.45; }
.page-warn {
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-bottom: .85rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.page-warn-info { border-color: var(--accent); }
.page-warn-warn { border-color: var(--cta); background: rgba(249,115,22,.12); }
.page-warn-critical { border-color: var(--danger); background: rgba(239,68,68,.12); }
.ticket-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticket-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.ticket-thread { display: flex; flex-direction: column; gap: .75rem; margin: 1.25rem 0; }
.ticket-msg {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.ticket-msg.staff { border-color: rgba(249,115,22,.45); }
.ticket-msg header { display: flex; gap: .5rem; align-items: center; margin-bottom: .35rem; flex-wrap: wrap; }
.badge.status-open { color: var(--ok); }
.badge.status-pending { color: var(--featured); }
.badge.status-closed { color: var(--muted); }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.admin-tile {
  display: flex; flex-direction: column; gap: .5rem;
  color: inherit; text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.admin-tile:hover { border-color: var(--cta); transform: translateY(-2px); color: inherit; text-decoration: none; }
.admin-count { font-family: var(--display); font-size: 1.8rem; color: var(--cta); font-weight: 700; }
.footer-list a[href*="tickets"] { color: var(--cta); font-weight: 600; }

/* —— Blog & Guides —— */
.blog-tabs {
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
  border-bottom: 1px solid var(--line);
  margin: 0 0 1.5rem; padding-bottom: .15rem;
}
.blog-tabs a {
  color: var(--muted); font-weight: 500; padding: .55rem 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.blog-tabs a:hover, .blog-tabs a.active {
  color: var(--text); border-bottom-color: var(--cta); text-decoration: none;
}
.blog-hero { margin: 0 0 1.75rem; }
.blog-hero h1 {
  font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 .4rem;
}
.blog-hero p { color: var(--muted); margin: 0; max-width: 40rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit; text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.blog-card:hover { border-color: var(--cta); transform: translateY(-3px); color: inherit; text-decoration: none; }
.blog-card-cover {
  position: relative; min-height: 160px;
  background: #1a1028 center/cover no-repeat;
  padding: 1rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.blog-card-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,14,20,.15), rgba(11,14,20,.88));
}
.blog-card-label {
  position: relative; z-index: 1;
  align-self: flex-start;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #fb7185;
  margin-bottom: .45rem;
}
.blog-card-cover-title {
  position: relative; z-index: 1;
  font-family: var(--display); font-size: 1.05rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-brand {
  position: absolute; right: .75rem; bottom: .65rem; z-index: 1;
  font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .04em;
}
.blog-card-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: .45rem; }
.blog-card-body h2 {
  font-family: var(--display); font-size: 1rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-body p {
  margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.blog-card-meta { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.blog-card-meta .author { color: var(--cta); font-weight: 600; }
.blog-pager {
  display: flex; justify-content: flex-end; gap: .4rem; margin: 1.75rem 0 0; flex-wrap: wrap;
}
.blog-pager a, .blog-pager .current {
  min-width: 2.2rem; height: 2.2rem; padding: 0 .55rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.blog-pager .current { background: var(--cta); border-color: var(--cta); color: #fff; font-weight: 600; }
.blog-pager a:hover { color: var(--text); border-color: var(--cta); text-decoration: none; }
.blog-article-hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 200px; padding: 1.5rem; margin: 0 0 1.25rem;
  background: #1a1028 center/cover;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.blog-article-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,14,20,.2), rgba(11,14,20,.92));
}
.blog-article-hero > * { position: relative; z-index: 1; }
.blog-article-hero h1 { font-family: var(--display); margin: .35rem 0 .5rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.blog-article-content { line-height: 1.55; }
.blog-article-content h2 { margin-top: 1.25rem; }
.footer-blog li { margin-bottom: .45rem; font-size: .88rem; }

.guides-hero, .guide-page-hero {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.5rem;
  align-items: center;
  background:
    radial-gradient(600px 280px at 20% 0%, rgba(249,115,22,.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 800px) {
  .guides-hero, .guide-page-hero { grid-template-columns: 1fr; }
}
.guides-hero h1, .guide-page-hero h1 {
  font-family: var(--display); margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}
.guides-hero-feats {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.guides-hero-feats li {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: .7rem 1rem; font-weight: 500;
}
.guides-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 980px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.guide-card-cover {
  width: 3.25rem; height: 3.25rem; border-radius: 8px;
  object-fit: cover; border: 1px solid var(--line);
}
.guide-card-icon {
  width: 2.2rem; height: 2.2rem; border-radius: 8px;
  background: rgba(249,115,22,.15); color: var(--cta);
  display: grid; place-items: center; font-weight: 700;
}
.guide-card h3 { font-family: var(--display); margin: 0; font-size: 1.05rem; }
.guide-sub { margin: 0; color: var(--muted); font-size: .88rem; }
.tag-accent { background: rgba(249,115,22,.18); color: var(--cta); border: none; }
.guide-cta { margin-top: auto; width: 100%; text-align: center; }
.guides-suggest { text-align: center; padding: 1.5rem; margin-top: .5rem; }
.guides-suggest h2 { font-family: var(--display); }

.guide-layout {
  display: grid; grid-template-columns: 1.65fr .7fr; gap: 1.25rem; align-items: start;
}
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } }
.guide-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 4.5rem; }
.guide-toc { margin: 0; padding-left: 1.2rem; }
.guide-toc a { color: var(--cta); }
.guide-info-list { margin: 0; }
.guide-info-list > div {
  display: flex; justify-content: space-between; gap: .75rem;
  padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.guide-info-list dt { color: var(--cta); font-weight: 600; }
.guide-info-list dd { margin: 0; text-align: right; }
.guide-checklist { list-style: none; margin: 0; padding: 0; }
.guide-checklist li {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .45rem 0; font-size: .9rem; border-bottom: 1px solid var(--line);
}
.guide-checklist .n {
  flex-shrink: 0; width: 1.4rem; height: 1.4rem; border-radius: 999px;
  background: rgba(249,115,22,.2); color: var(--cta);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}
.guide-checks { list-style: none; padding: 0; }
.guide-checks li { padding: .35rem 0 .35rem 1.4rem; position: relative; }
.guide-checks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--cta); font-weight: 700;
}
.guide-code {
  background: #0a0c10; border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem; overflow-x: auto; position: relative; margin: .75rem 0;
}
.guide-code::before {
  content: attr(data-label); position: absolute; top: .4rem; right: .65rem;
  font-size: .7rem; color: var(--muted); text-transform: uppercase;
}
.guide-code code { font-family: ui-monospace, monospace; font-size: .82rem; white-space: pre; color: #e2e8f0; }
.guide-tip, .guide-info {
  border-radius: 10px; padding: .85rem 1rem; margin: .85rem 0;
  border: 1px solid var(--line); background: var(--surface-2); font-size: .92rem;
}
.guide-tip { border-color: rgba(56,189,248,.4); }
.guide-faq {
  border: 1px solid var(--line); border-radius: 10px; padding: .65rem .85rem;
  margin: .45rem 0; background: var(--surface-2);
}
.guide-faq summary { cursor: pointer; font-weight: 500; }
.breadcrumb a { color: var(--cta); }

/* —— VS footer v2 + plugins —— */
.vs-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(249,115,22,.06), transparent 120px),
    #07090e;
}
.vs-footer-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 2.2fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .vs-footer-top { grid-template-columns: 1fr; }
}
.vs-footer-tagline {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
  max-width: 22rem;
  margin: .65rem 0 1.1rem;
}
.vs-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .vs-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .vs-footer-cols { grid-template-columns: 1fr; }
}
.vs-footer-plug {
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(249,115,22,.35);
  border-radius: var(--radius);
  background: rgba(249,115,22,.08);
}
.social-btn {
  width: 2.65rem; height: 2.65rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.28);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color: #e8eef7;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.social-btn:hover {
  border-color: var(--cta);
  color: #fff;
  background: rgba(249,115,22,.16);
  text-decoration: none;
  transform: translateY(-2px);
}
.social-btn[aria-label="Discord"]:hover { border-color: #5865F2; background: rgba(88,101,242,.18); color: #c5caff; }
.social-btn[aria-label="X"]:hover { border-color: #e7e9ea; background: rgba(231,233,234,.12); }
.social-btn[aria-label="GitHub"]:hover { border-color: #a78bfa; background: rgba(167,139,250,.14); color: #ddd6fe; }
.social-btn[aria-label="Facebook"]:hover { border-color: #1877F2; background: rgba(24,119,242,.18); color: #9ec1ff; }
.social-icon { width: 18px; height: 18px; display: block; }
.tier-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .45rem; }
.tier-list li {
  display: flex; flex-wrap: wrap; gap: .45rem .75rem; align-items: baseline;
  padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: .9rem;
}
.tier-list code { font-size: .78rem; color: var(--muted); }

.plugins-hero {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.plugins-hero h1 { font-family: var(--display); margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.plugin-hero-cover { border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.plugin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.plugin-card-head { display: flex; gap: .85rem; align-items: center; }
.plugin-card-head img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line);
}
.plugin-card-head h2 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 .25rem; }
.plugin-card-head h2 a { color: var(--text); }
.plugin-card-head h2 a:hover { color: var(--cta); text-decoration: none; }
.plugin-install { font-size: .85rem; color: var(--muted); margin: 0; }
.plugin-dl { display: flex; flex-direction: column; gap: .5rem; margin-top: .25rem; }
.plugin-dl select {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: .45rem .55rem;
}

/* —— Page jeu v2 (hero + stats + feed) —— */
.gh-hero {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  margin-bottom: 0;
}
.gh-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(7,9,14,.94) 12%, rgba(7,9,14,.55) 55%, rgba(7,9,14,.35) 100%),
    var(--gh-cover) center / cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05);
}
.gh-hero-inner {
  position: relative; z-index: 1;
  padding: 1.75rem 1.5rem 2.25rem;
  max-width: 44rem;
}
.gh-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .45rem .7rem .45rem .45rem;
  border-radius: 14px;
  background: rgba(15,18,26,.72);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  margin-bottom: 1rem;
}
.gh-badge img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
}
.gh-badge strong { display: block; font-size: .92rem; }
.gh-badge span {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--muted); font-size: .8rem; margin-top: .15rem;
}
.gh-badge .icon { width: 14px; height: 14px; color: #fbbf24; }
.gh-hero h1 {
  margin: 0 0 .65rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.gh-lead {
  margin: 0 0 1.15rem;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 36rem;
}
.gh-cta { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }

.gh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: -1.35rem 0 1.25rem;
  position: relative;
  z-index: 2;
  padding: 0 .35rem;
}
@media (max-width: 900px) {
  .gh-stats { grid-template-columns: 1fr 1fr; margin-top: .85rem; }
}
.gh-stat {
  display: flex; gap: .75rem; align-items: center;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.22);
  background: linear-gradient(165deg, rgba(22,27,38,.95), rgba(12,15,22,.98));
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.gh-stat-ico {
  width: 2.35rem; height: 2.35rem; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(249,115,22,.14);
  color: var(--cta);
  flex-shrink: 0;
}
.gh-stat strong { display: block; font-size: 1.05rem; font-family: var(--display); }
.gh-stat span { color: var(--muted); font-size: .8rem; }

.gh-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.35rem;
}
@media (max-width: 900px) {
  .gh-feed { grid-template-columns: 1fr; }
}
.gh-feed-card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.gh-feed-card:hover {
  border-color: rgba(249,115,22,.45);
  text-decoration: none;
  transform: translateY(-2px);
}
.gh-feed-label {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cta); font-weight: 700;
}
.gh-feed-card strong {
  font-size: .95rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gh-feed-server { display: flex; gap: .7rem; align-items: center; margin-top: .15rem; }
.gh-feed-server img {
  width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line);
}
.gh-feed-plugin {
  background: linear-gradient(145deg, rgba(249,115,22,.12), rgba(249,115,22,.04));
  border-color: rgba(249,115,22,.35);
}

.gh-seo {
  margin: 0 0 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gh-seo h2 {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}
.gh-seo p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .95rem; }

.server-row-featured {
  border-color: rgba(251,191,36,.35);
  background: linear-gradient(120deg, rgba(251,191,36,.07), var(--surface) 40%);
}
.server-row .thumb { position: relative; }
.featured-pin {
  position: absolute; top: .4rem; left: .4rem; z-index: 1;
  width: 1.7rem; height: 1.7rem; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(251,191,36,.95); color: #1a1205;
}
.featured-pin .icon { width: 14px; height: 14px; }

.rank-num {
  color: var(--cta); font-weight: 700; margin-right: .25rem;
}
.gh-side .side-stat { text-align: center; }


/* —— Votes / clics style Top-Serveurs (dark VS) —— */
.server-row {
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: stretch;
}
.server-main { min-width: 0; }
.server-slots { margin: .45rem 0 0; font-size: .82rem; }
.srv-metrics {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .4rem;
  min-width: 11.5rem;
  justify-content: center;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}
.stat-pill strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-pill-ico { width: 16px; height: 16px; flex-shrink: 0; }
.stat-votes {
  background: rgba(139, 92, 246, .18);
  border: 1px solid rgba(167, 139, 250, .35);
  color: #ddd6fe;
}
.stat-votes .stat-pill-ico { color: #c4b5fd; }
.stat-clicks {
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .28);
  color: #e2e8f0;
}
.stat-clicks .stat-pill-ico { color: #94a3b8; }
.stat-stars {
  display: flex;
  align-items: center;
  gap: .1rem;
  padding: .15rem .2rem;
  font-size: .95rem;
  line-height: 1;
}
.stat-stars .star { color: #334155; }
.stat-stars .star.on { color: #fbbf24; }
.stat-rev { color: var(--muted); font-size: .78rem; margin-left: .25rem; }
.srv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: .25rem;
}
.btn-discord {
  width: 2.15rem; height: 2.15rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #f97316;
  text-decoration: none;
}
.btn-discord:hover { border-color: #f97316; background: rgba(249,115,22,.12); text-decoration: none; }
.btn-see {
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  font-size: .82rem !important;
  padding: .45rem .7rem !important;
}
.btn-see:hover { border-color: var(--cta) !important; color: var(--cta) !important; text-decoration: none; }
.srv-actions .btn.vote {
  font-size: .85rem;
  padding: .5rem .9rem;
  text-transform: none;
  letter-spacing: 0;
}
@media (max-width: 800px) {
  .srv-metrics { min-width: 0; width: 100%; }
  .srv-actions { justify-content: flex-start; }
}

/* —— Formulaire serveur (propre, centré) —— */
.sf-wrap {
  max-width: 640px;
  margin: 0 auto 2rem;
}
.sf-head {
  text-align: center;
  margin: 0 0 1.5rem;
}
.sf-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cta);
  font-weight: 700;
}
.sf-head h1 {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -.02em;
}
.sf-lead {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.sf-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.sf-block {
  padding: 0 0 1.25rem;
  margin: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
}
.sf-block:last-of-type { border-bottom: 0; margin-bottom: .5rem; padding-bottom: .5rem; }
.sf-block-title {
  margin: 0 0 .85rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.sf-hint {
  font-size: .72rem;
  letter-spacing: .04em;
  font-weight: 600;
  color: rgba(249,115,22,.9);
  text-transform: none;
}
.sf-hint-text {
  margin: -.35rem 0 .75rem;
  color: var(--muted);
  font-size: .85rem;
}
.sf-meta { margin: 0 0 1rem; font-size: .92rem; }
.sf-label {
  display: grid;
  gap: .4rem;
  margin: 0 0 .9rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
}
.sf-label:last-child { margin-bottom: 0; }
.sf-form input[type=text],
.sf-form input[type=url],
.sf-form input[type=number],
.sf-form select,
.sf-form textarea {
  width: 100%;
  background: #0b0e14;
  color: var(--text);
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 10px;
  padding: .7rem .85rem;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.sf-form input:focus,
.sf-form select:focus,
.sf-form textarea:focus {
  outline: none;
  border-color: rgba(249,115,22,.65);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.sf-form textarea { resize: vertical; min-height: 6rem; line-height: 1.45; }
.sf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
@media (max-width: 560px) {
  .sf-grid-2 { grid-template-columns: 1fr; }
  .sf-form { padding: 1.1rem 1rem; }
}
.htag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.htag-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.htag-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.htag-chip span {
  display: inline-flex;
  padding: .42rem .78rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.3);
  background: #0b0e14;
  color: #94a3b8;
  font-size: .86rem;
  font-weight: 600;
  transition: border-color .15s, background .15s, color .15s, transform .12s;
}
.htag-chip:hover span {
  border-color: rgba(249,115,22,.45);
  color: var(--text);
}
.htag-chip.on span,
.htag-chip:has(input:checked) span {
  border-color: rgba(249,115,22,.7);
  background: rgba(249,115,22,.16);
  color: #ffd4b0;
  transform: translateY(-1px);
}
.sf-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.25rem;
  padding-top: .35rem;
}
.sf-submit {
  min-width: 11rem;
  padding: .7rem 1.25rem !important;
  font-size: .95rem !important;
}
.sf-link {
  color: var(--cta);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}
.sf-link:hover { text-decoration: underline; }
.tag-htag {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;
}
a.tag-htag:hover { text-decoration: none; border-color: var(--cta); color: var(--cta); }

/* —— Recherche globale —— */
.vs-search[hidden] { display: none !important; }
.vs-search {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4.5rem 1rem 2rem;
}
.vs-search-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 8, 14, .72);
  backdrop-filter: blur(8px);
}
.vs-search-panel {
  position: relative; z-index: 1;
  width: min(720px, 100%);
  background: #12171f;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  padding: 1.1rem 1.1rem 1rem;
}
.vs-search-x {
  position: absolute; top: .55rem; right: .65rem;
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: .2rem .45rem;
}
.vs-search-x:hover { color: #fff; }
.vs-search-bar {
  display: flex; gap: .55rem; align-items: stretch;
}
.vs-search-bar input[type="search"] {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: #0b0e14; color: var(--text);
  padding: .75rem 1rem; font: inherit; font-size: 1.05rem;
}
.vs-search-bar input:focus {
  outline: none; border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(249,115,22,.2);
}
.vs-search-bar .btn { border-radius: 10px; padding: .75rem 1.15rem; }
.vs-search-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; margin: .55rem 0 .35rem; flex-wrap: wrap;
}
.vs-search-meta a { color: var(--cta); font-size: .88rem; font-weight: 600; text-decoration: none; }
.vs-search-meta a:hover { text-decoration: underline; }
.vs-search-hint { color: var(--muted); font-size: .8rem; }
.vs-search-hint kbd {
  display: inline-block; padding: .1rem .35rem; border-radius: 4px;
  border: 1px solid var(--line); background: #0b0e14; font-size: .72rem;
}
.vs-search-results {
  list-style: none; margin: .5rem 0 0; padding: 0;
  max-height: min(52vh, 420px); overflow: auto;
  border: 1px solid var(--line); border-radius: 10px;
  background: #0b0e14;
}
.vs-search-results:empty { display: none; }
.vs-search-results li a {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .7rem .9rem; color: var(--text); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.vs-search-results li:last-child a { border-bottom: 0; }
.vs-search-results li a:hover,
.vs-search-results li a.is-active {
  background: rgba(249,115,22,.12);
  color: #fff;
}
.vs-search-results .sr-title { font-weight: 600; font-size: .95rem; }
.vs-search-results .sr-label { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.vs-search-empty { text-align: center; margin: .85rem 0 .25rem; }
.vs-search-more {
  display: block; text-align: center; margin-top: .65rem;
  color: var(--cta); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.vs-search-more:hover { text-decoration: underline; }
.search-page-form {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
  margin: 0 0 1.25rem;
}
.search-page-form input[type="search"] {
  flex: 1 1 220px; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
  padding: .7rem .9rem; font: inherit;
}
.search-page-form select {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
  padding: .65rem .75rem; font: inherit;
}
.search-result-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.search-result-list li a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.search-result-list li:last-child a { border-bottom: 0; }
.search-result-list li a:hover { background: var(--surface-2); }
.search-result-title { font-weight: 600; }
.search-result-label { color: var(--muted); font-size: .9rem; }
