:root {
  --bg: #0f0818; --bg-2: #150c22; --card: #1b1129; --card-2: #261a38; --line: #33234a; --line-2: #45305f;
  --text: #f5f1fa; --muted: #aaa0bd; --faint: #766c8a;
  --accent: #8b45c9; --accent-2: #b070ec; --accent-soft: rgba(139, 69, 201, .22); --pink: #f0456a; --orange: #f5a623; --grad: linear-gradient(135deg, #8b45c9 0%, #e0446b 70%, #f5a623 130%);
  --ok: #23a55a; --ok-soft: rgba(35, 165, 90, .16); --warn: #f0b232; --warn-soft: rgba(240, 178, 50, .16);
  --bad: #f23f43; --bad-soft: rgba(242, 63, 67, .16); --gold: #f1c40f; --gold-soft: rgba(241, 196, 15, .14);
  --radius: 12px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
::selection { background: #8b45c9; color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; } .col { display: flex; flex-direction: column; gap: 10px; } .grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .center { justify-content: center; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px;
  background: var(--card-2); color: var(--text); cursor: pointer; font-weight: 600; transition: .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: #33224b; text-decoration: none; }
.btn.primary { background: var(--grad); } .btn.primary:hover { filter: brightness(1.12); }
.btn.vote { background: linear-gradient(135deg, #f0456a, #f5a623); color: #fff; } .btn.vote:hover { filter: brightness(1.1); }
.btn.success { background: var(--ok); } .btn.success:hover { filter: brightness(1.1); }
.btn.danger { background: var(--bad-soft); color: #ff7a7d; } .btn.danger:hover { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line-2); } .btn.ghost:hover { background: var(--card-2); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 34px; padding: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid #fff6; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
label.field .hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); font-size: 12px; }
input[type=text], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; outline: none; transition: .15s;
  text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled, select:disabled, textarea:disabled { opacity: .5; cursor: not-allowed; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a0a4ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input[type=color] { width: 44px; height: 38px; padding: 2px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 24px; transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--ok); } .switch input:checked + span::after { transform: translateX(18px); }

/* ---------- Cards, badges */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card h3 { font-size: 15px; margin-bottom: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--card-2); color: var(--muted); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.nodot::before { display: none; }
.badge.running { background: var(--ok-soft); color: #3ddc84; } .badge.paused { background: var(--warn-soft); color: var(--warn); }
.badge.ended { background: var(--accent-soft); color: #9aa4ff; } .badge.cancelled { background: var(--bad-soft); color: #ff7a7d; }
.badge.premium { background: var(--gold-soft); color: var(--gold); } .badge.free { background: var(--card-2); color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); overflow: hidden; }
.avatar.sq { border-radius: 10px; } .avatar.lg { width: 48px; height: 48px; font-size: 18px; } .avatar.xl { width: 64px; height: 64px; font-size: 24px; }

/* ---------- Layout (logged in) */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 800; font-size: 16px; }
.brand img, .brand .logo { width: 34px; height: 34px; border-radius: 10px; }
.brand .logo { background: var(--grad); display: grid; place-items: center; }
.guild-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: left; margin-bottom: 14px; }
.guild-switch:hover { border-color: var(--line-2); }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.nav .label { padding: 12px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--card); color: var(--text); } .nav a.active { background: var(--accent-soft); color: #b3bbff; }
.nav a .count { margin-left: auto; font-size: 11px; background: var(--card-2); border-radius: 10px; padding: 1px 8px; color: var(--muted); }
.userbox { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 32px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 20px; }
.content { padding: 20px 32px 40px; width: 100%; max-width: none; }
.burger { display: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: relative; overflow: hidden; }
.stat .n { font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 6px; }
.stat .l { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat .ic { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.stat .ic svg { width: 20px; height: 20px; }
.section { margin-top: 18px; } .section > .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .section > .head h2 { font-size: 16px; }

/* ---------- Table */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 800; white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover td { background: var(--card-2); }
td .prize { font-weight: 700; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); padding: 4px; border-radius: 10px; overflow: auto; }
.tabs button { background: none; border: 0; padding: 7px 14px; border-radius: 7px; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); } .tabs button.on { background: var(--accent); color: #fff; }
.tabs button .c { opacity: .7; font-weight: 600; margin-left: 4px; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--faint); margin-bottom: 8px; stroke-width: 1.5; }
.empty h3 { color: var(--text); margin-bottom: 4px; }

/* ---------- Server grid */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.server { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: .15s; }
.server:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); }
.server .name { font-weight: 800; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Modal, drawer, toast, menu */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: pop .18s; }
.modal.wide { max-width: 1080px; }
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.modal > header { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal > header h2 { font-size: 17px; }
.modal > .body { padding: 18px; overflow: auto; } .modal > footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.drawer-ov { justify-content: flex-end; padding: 0; }
.drawer { background: var(--bg-2); border-left: 1px solid var(--line-2); width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; animation: slide .2s; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer > header { padding: 20px 24px; border-bottom: 1px solid var(--line); } .drawer > .body { padding: 20px 24px; overflow: auto; flex: 1; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--card-2); border: 1px solid var(--line-2); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); animation: slide .2s; white-space: pre-line; }
.toast.ok { border-left-color: var(--ok); } .toast.err { border-left-color: var(--bad); } .toast.warn { border-left-color: var(--warn); }
.menu { position: fixed; z-index: 150; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; min-width: 220px; max-height: 60vh; overflow: auto; box-shadow: var(--shadow); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: left; border-radius: 6px; cursor: pointer; color: var(--text); }
.menu button:hover, .menu button.on { background: var(--accent-soft); } .menu button.dng { color: #ff7a7d; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- Detail */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; } .kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; min-width: 0; word-break: break-word; }
.list { display: flex; flex-direction: column; } .list .item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .list .item:last-child { border-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 3px 6px 3px 10px; font-size: 13px; }
.chip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 16px; line-height: 1; } .chip button:hover { color: #ff7a7d; }
.chip.quick { padding: 4px 12px; cursor: pointer; font-weight: 600; color: var(--muted); } .chip.quick:hover { border-color: var(--accent); color: var(--text); }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--gold); background: var(--gold-soft); border-radius: 12px; padding: 1px 8px; text-transform: none; letter-spacing: 0; }
.lock svg { width: 12px; height: 12px; }
.fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.fieldset > .legend { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.fieldset.locked { opacity: .92; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: #c4caff; font-size: 13px; }
.notice.gold { background: var(--gold-soft); color: #f6dd7b; } .notice.err { background: var(--bad-soft); color: #ffb0b2; }
.bar { height: 8px; background: var(--card-2); border-radius: 8px; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 8px; }

/* ---------- Discord embed preview */
.preview-wrap { position: sticky; top: 0; }
.dc { background: #313338; border-radius: 10px; padding: 16px; font-family: "gg sans", var(--font); color: #dbdee1; }
.dc .msg { display: flex; gap: 14px; } .dc .nm { font-weight: 600; color: #fff; } .dc .tag { background: #5865f2; color: #fff; font-size: 10px; border-radius: 4px; padding: 0 5px; margin-left: 6px; font-weight: 700; vertical-align: 1px; }
.dc .em { margin-top: 6px; background: #2b2d31; border-left: 4px solid var(--c, #5865f2); border-radius: 4px; padding: 10px 14px 12px; max-width: 480px; }
.dc .em .au { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px; } .dc .em .au img, .dc .em .au i { width: 22px; height: 22px; border-radius: 50%; background: #4e5058; display: block; }
.dc .em .ti { font-weight: 700; color: #fff; margin-bottom: 8px; font-size: 16px; overflow-wrap: anywhere; }
.dc .q { border-left: 4px solid #4e5058; padding-left: 10px; margin: 0 0 8px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; } .dc .q b { color: #fff; }
.dc .em img.big { width: 100%; border-radius: 6px; margin-top: 6px; }
.dc .ft { font-size: 12px; color: #b5bac1; margin-top: 8px; }
.dc .btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .dc .b { padding: 5px 14px; border-radius: 4px; font-weight: 600; font-size: 13px; color: #fff; display: inline-flex; gap: 6px; }
.b.blue { background: #5865f2; } .b.grey { background: #4e5058; } .b.red { background: #da373c; }

/* ---------- Landing */
.land { min-height: 100vh; background: radial-gradient(1200px 500px at 70% -10%, rgba(139, 69, 201, .38), transparent 60%), radial-gradient(800px 400px at 0% 10%, rgba(240, 69, 106, .14), transparent 60%), var(--bg); }
.land nav { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 22px 24px; }
.hero { max-width: 1180px; margin: 0 auto; padding: 44px 24px 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.hero h1 span { background: linear-gradient(90deg, #b070ec, #f0456a 55%, #f5a623); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 17px; max-width: 540px; margin: 18px 0 28px; }
.land section { max-width: 1180px; margin: 0 auto; padding: 32px 24px; } .land section h2 { font-size: 28px; text-align: center; margin-bottom: 8px; } .land section > p.sub { text-align: center; color: var(--muted); margin: 0 0 34px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: #aab3ff; display: grid; place-items: center; margin-bottom: 14px; } .feature h3 { margin-bottom: 6px; } .feature p { margin: 0; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; margin: 0 auto; } .plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; } .plan.pro { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--card) 40%); }
.plan h3 { font-size: 20px; margin-bottom: 14px; } .plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; } .plan li { display: flex; gap: 10px; align-items: flex-start; } .plan li svg { color: var(--ok); margin-top: 2px; }
.land footer { text-align: center; color: var(--faint); padding: 30px; border-top: 1px solid var(--line); }
.langsw { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px; } .langsw button { background: none; border: 0; padding: 4px 10px; border-radius: 6px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 12px; } .langsw button.on { background: var(--accent); color: #fff; }
.langcard { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg-2); flex: 1; } .langcard.on { border-color: var(--accent); background: var(--accent-soft); } .langcard .flag { font-size: 26px; }
.skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; min-height: 80px; } @keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; } .side { position: fixed; left: 0; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 96px; width: 280px; z-index: 90; transform: translateX(-100%); transition: .2s; } .side.open { transform: none; box-shadow: var(--shadow); }
  .burger { display: inline-flex; } .topbar, .content { padding-left: 18px; padding-right: 18px; }
  .stats { grid-template-columns: 1fr 1fr; } .hero { grid-template-columns: 1fr; padding-top: 30px; } .features { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr; }
  .create-grid { grid-template-columns: 1fr !important; } .preview-wrap { position: static; }
}
@media (max-width: 600px) { .grid2, .grid3, .features, .plans { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat .ic { display: none; } .stat .n { font-size: 24px; } .content { padding-top: 14px; } .topbar h1 { font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .topbar { gap: 8px; } .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

.drawer > header, .drawer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer > header h2 { font-size: 18px; overflow-wrap: anywhere; }

.login-short { display: none; }
/* ---------- Accueil mobile : bandeau qui ne déborde plus */
.land nav > div:last-child { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .land nav { padding: 14px 16px; gap: 10px; }
  .land nav .brand { padding: 0; } .land nav .brand span.bn { display: none; }
  .land nav > div:last-child { gap: 8px !important; }
  .land nav .btn { height: 34px; padding: 0 11px; font-size: 13px; }
  .land nav .login-full { display: none; } .land nav .login-short { display: inline; }
  .hero { padding: 22px 16px 10px; gap: 22px; } .hero p { margin: 12px 0 20px; font-size: 15px; }
  .land section { padding: 24px 16px; } .land section h2 { font-size: 23px; }
  .hero .btn.lg { height: 42px; padding: 0 16px; font-size: 14px; }
}

/* ---------- Historique d'activité */
.feed { display: flex; flex-direction: column; gap: 8px; }
.feed-item { display: flex; gap: 12px; padding: 11px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.fi-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.fi-ic svg { width: 17px; height: 17px; }
.fi-body { min-width: 0; flex: 1; } .fi-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .fi-top .muted { font-size: 12px; }
.t-create .fi-ic, .t-resume .fi-ic, .t-blacklist_remove .fi-ic, .t-join .fi-ic { background: var(--ok-soft); color: #3ddc84; }
.t-cancel .fi-ic, .t-delete .fi-ic, .t-blacklist_add .fi-ic { background: var(--bad-soft); color: #ff7a7d; }
.t-pause .fi-ic, .t-leave .fi-ic, .t-edit .fi-ic { background: var(--warn-soft); color: var(--warn); }

/* Bouton dans un état vide : icône normale (pas la grosse icône grise) */
.empty .btn svg { width: 16px; height: 16px; margin: 0; color: inherit; stroke-width: 2; }
@media (max-width: 1000px) { .nav { flex: none; overflow: visible; } .userbox { margin-top: 16px; } }

/* Écrans larges : on exploite la place */
.table-wrap, .card, .section { max-width: none; }
@media (min-width: 1700px) { .content { padding: 28px 48px 48px; } .topbar { padding-left: 48px; padding-right: 48px; } .stat .n { font-size: 34px; } .servers { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.land .hero, .land section { max-width: clamp(1180px, 70vw, 1500px); }

/* Pages légales + pied de page */
.legal { max-width: 820px; margin: 0 auto; padding: 24px 20px 60px; line-height: 1.65; }
.legal h1 { font-size: 30px; margin: 8px 0 4px; } .legal h2 { font-size: 18px; margin: 28px 0 8px; } .legal p, .legal li { color: var(--muted); } .legal ul { padding-left: 20px; } .legal a { color: var(--accent-2); }
.legal .upd { color: var(--faint); font-size: 13px; margin-bottom: 20px; }
.foot { text-align: center; color: var(--faint); padding: 26px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.foot nav { display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; margin-top: 8px; } .foot a { color: var(--muted); text-decoration: none; } .foot a:hover { color: var(--text); text-decoration: underline; }
.side .sidefoot { padding: 8px 10px 0; font-size: 11px; color: var(--faint); line-height: 1.7; } .side .sidefoot a { color: var(--faint); text-decoration: none; margin-right: 8px; } .side .sidefoot a:hover { color: var(--text); }
.side .sidefoot nav { display: flex; flex-wrap: wrap; gap: 2px 10px; } .side .sidefoot a { white-space: nowrap; margin-right: 0; }

.btn.primary, .btn.vote { border-color: transparent; background-origin: border-box; background-clip: border-box; }
.notice { align-items: center; margin-bottom: 18px; } .notice svg { flex: none; }

/* Mobile : durée → boutons rapides → gagnants (le PC ne change pas) */
@media (max-width: 600px) { .dur-grid { display: contents; } .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } }

/* Indicateur « Live » */
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live-dot.on { color: #3ddc84; } .live-dot.on i { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@media (max-width: 600px) { .live-dot { font-size: 0; gap: 0; } }
