/* Bickas — thème violet néon */
:root {
  --bg: #08050f;
  --bg2: #0e0819;
  --panel: #140d24;
  --panel2: #1b1231;
  --line: #2a1e47;
  --line2: #3d2c68;
  --text: #ede9f8;
  --muted: #9c90bd;
  --primary: #8b5cf6;
  --primary2: #a78bfa;
  --accent: #c084fc;
  --ok: #22c55e;
  --err: #f43f5e;
  --warn: #f59e0b;
  --radius: 14px;
  --glow: 0 0 24px rgba(139, 92, 246, .28);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(1100px 520px at 85% -10%, rgba(139, 92, 246, .16), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(192, 132, 252, .08), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary2); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
::selection { background: rgba(139, 92, 246, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 2px solid var(--bg); }

/* ------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text); font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--primary); box-shadow: var(--glow); color: #fff; }
.btn.primary { background: linear-gradient(135deg, #7c3aed, #a855f7); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.12); box-shadow: 0 0 28px rgba(168, 85, 247, .45); }
.btn.danger { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .4); color: #fda4af; }
.btn.danger:hover { background: rgba(244, 63, 94, .22); box-shadow: 0 0 20px rgba(244, 63, 94, .25); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { padding: 13px 26px; font-size: 16px; border-radius: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.icon { padding: 6px 9px; }

/* ------------------------------------------------------------ cartes / champs */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 18px; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.card-foot { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dirty { color: var(--warn); font-size: 13px; }

.field { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 6px 22px; padding: 12px 0; border-bottom: 1px solid rgba(42, 30, 71, .6); align-items: start; }
.field:last-child { border-bottom: 0; }
.field.block { grid-template-columns: 1fr; }
.field > label, .field .lab { font-weight: 600; font-size: 14px; }
.field .help { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.field .ctl { min-width: 0; }
.heading { margin: 22px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line2); font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.heading + .help { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.heading:first-child { margin-top: 0; }

input[type=text], input[type=number], input[type=url], input[type=search], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; background: #0d0819; border: 1px solid var(--line2); color: var(--text); border-radius: 9px;
  padding: 9px 12px; font: inherit; font-size: 14px; outline: none; transition: .15s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
input[type=color] { width: 44px; height: 38px; padding: 2px; border-radius: 9px; border: 1px solid var(--line2); background: #0d0819; cursor: pointer; }
input[type=number] { max-width: 180px; }
select { cursor: pointer; }
option, optgroup { background: #120b20; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #2a2044; border-radius: 24px; cursor: pointer; transition: .2s; border: 1px solid var(--line2); }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #9c90bd; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: linear-gradient(135deg, #7c3aed, #a855f7); border-color: transparent; box-shadow: var(--glow); }
.switch input:checked + span::before { transform: translateX(20px); background: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .35); padding: 3px 6px 3px 10px; border-radius: 20px; font-size: 13px; }
.chip button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 3px; line-height: 1; }
.chip button:hover { color: var(--err); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); }

.items { display: grid; gap: 12px; }
.item { border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; background: rgba(13, 8, 25, .6); }
.item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.item-head b { color: var(--primary2); font-size: 13px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(139, 92, 246, .16); color: var(--primary2); border: 1px solid rgba(139, 92, 246, .3); }
.badge.ok { background: rgba(34, 197, 94, .12); color: #86efac; border-color: rgba(34, 197, 94, .3); }
.badge.err { background: rgba(244, 63, 94, .12); color: #fda4af; border-color: rgba(244, 63, 94, .3); }
.badge.warn { background: rgba(245, 158, 11, .12); color: #fcd34d; border-color: rgba(245, 158, 11, .3); }

.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid; margin-bottom: 16px; font-size: 14px; }
.alert.warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .35); color: #fde68a; }
.alert.err { background: rgba(244, 63, 94, .08); border-color: rgba(244, 63, 94, .35); color: #fecdd3; }
.alert.info { background: rgba(139, 92, 246, .08); border-color: rgba(139, 92, 246, .35); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line2); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: rgba(139, 92, 246, .04); }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; }
.tab.active { background: rgba(139, 92, 246, .16); border-color: var(--primary); color: #fff; }

/* ------------------------------------------------------------ layout dashboard */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: rgba(10, 6, 18, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .02em; color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: var(--glow); }
.brand:hover { color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel2); flex: none; }
.avatar.lg { width: 64px; height: 64px; }
.avatar.sm { width: 26px; height: 26px; }
.avatar.sq { border-radius: 12px; }
.guild-pill { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line2); border-radius: 30px; background: var(--panel); cursor: pointer; font-weight: 600; font-size: 14px; max-width: 260px; }
.guild-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); z-index: 50; max-height: 70vh; overflow: auto; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(139, 92, 246, .16); color: #fff; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.rel { position: relative; }

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 60px); }
.side { border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; background: rgba(8, 5, 15, .5); }
.side .group { margin: 16px 10px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: #cfc6e8; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.side a:hover { background: rgba(139, 92, 246, .1); color: #fff; }
.side a.active { background: linear-gradient(90deg, rgba(139, 92, 246, .28), rgba(139, 92, 246, .06)); color: #fff; box-shadow: inset 3px 0 0 var(--primary); }
.side a .off { margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 10px; background: rgba(244, 63, 94, .15); color: #fda4af; }
.main { padding: 26px clamp(16px, 3vw, 40px) 60px; max-width: 1180px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.burger { display: none; }

.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg2)); }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13px; }

.module { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: .15s; }
.module:hover { border-color: var(--line2); }
.module.on { border-color: rgba(139, 92, 246, .4); background: linear-gradient(180deg, rgba(139, 92, 246, .1), var(--panel)); }
.module .ico { font-size: 22px; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(139, 92, 246, .14); border-radius: 10px; flex: none; }
.module h3 { font-size: 15px; }
.module p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }

.gcard { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg2)); transition: .15s; }
.gcard:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-2px); }
.gcard b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }

/* ------------------------------------------------------------ modal / drawer / toasts */
.overlay { position: fixed; inset: 0; background: rgba(4, 2, 10, .72); backdrop-filter: blur(4px); z-index: 100; display: flex; justify-content: flex-end; animation: fade .15s; }
.overlay.center { justify-content: center; align-items: center; padding: 20px; }
.drawer { width: min(1180px, 100%); height: 100%; background: var(--bg2); border-left: 1px solid var(--line2); overflow-y: auto; padding: 24px; animation: slide .2s; }
.dialog { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.dialog h3 { margin-bottom: 8px; font-size: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }

#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: grid; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 14px; max-width: 380px; animation: slide .2s; }
.toast.ok { border-color: rgba(34, 197, 94, .5); }
.toast.err { border-color: rgba(244, 63, 94, .55); }

.loader { display: grid; place-items: center; padding: 60px; color: var(--muted); }
.spin { width: 28px; height: 28px; border: 3px solid var(--line2); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ aperçu embed Discord */
.editor-split { display: grid; grid-template-columns: 1fr; gap: 14px; }
.editor-split > :last-child { order: -1; }
.drawer .editor-split { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); }
.drawer .editor-split > :last-child { order: 0; position: sticky; top: 0; align-self: start; }
@media (max-width: 1000px) { .drawer .editor-split { grid-template-columns: 1fr; } .drawer .editor-split > :last-child { order: -1; position: static; } }
.preview { background: #313338; color: #dbdee1; border-radius: 12px; padding: 16px; font-family: "gg sans", "Segoe UI", sans-serif; font-size: 15px; min-height: 60px; border: 1px solid #1e1f22; overflow-wrap: anywhere; }
.preview .pm { display: flex; gap: 12px; }
.preview .pm > img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.preview .pn { font-weight: 600; color: #fff; }
.preview .pn i { font-style: normal; background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
.preview .pc { white-space: pre-wrap; margin-top: 2px; }
.pemb { margin-top: 6px; display: grid; grid-template-columns: auto; max-width: 520px; background: #2b2d31; border-left: 4px solid #8b5cf6; border-radius: 4px; padding: 8px 14px 12px 12px; gap: 4px; position: relative; }
.pemb .pa { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.pemb .pa img { width: 24px; height: 24px; border-radius: 50%; }
.pemb .pt { font-weight: 700; font-size: 16px; color: #fff; }
.pemb .pt a { color: #00a8fc; }
.pemb .pd { font-size: 14px; white-space: pre-wrap; }
.pemb .pf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.pemb .pf > div { grid-column: span 3; font-size: 14px; }
.pemb .pf > div.inline { grid-column: span 1; }
.pemb .pf b { display: block; font-size: 14px; color: #fff; }
.pemb .pi { max-width: 100%; border-radius: 6px; margin-top: 6px; max-height: 300px; object-fit: cover; }
.pemb .pth { position: absolute; top: 10px; right: 10px; width: 72px; height: 72px; border-radius: 6px; object-fit: cover; }
.pemb .pft { font-size: 12px; color: #b5bac1; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.pemb .pft img { width: 18px; height: 18px; border-radius: 50%; }
.pbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pbtns span { background: #4e5058; color: #fff; padding: 6px 14px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.pmention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.pvar { background: rgba(139, 92, 246, .3); color: #ddd6fe; border-radius: 3px; padding: 0 3px; font-size: 13px; }
.preview code { background: #1e1f22; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.varlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.varlist button { background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .3); color: var(--primary2); border-radius: 6px; padding: 2px 8px; font: 12px ui-monospace, Consolas, monospace; cursor: pointer; }
.varlist button:hover { background: rgba(139, 92, 246, .28); }
.subcard { border: 1px dashed var(--line2); border-radius: 12px; padding: 14px; margin-top: 10px; }

/* ------------------------------------------------------------ graphiques */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: 10px; font-size: 13px; margin: 8px 0; }
.hbar .track { height: 10px; border-radius: 6px; background: #1d1433; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #c084fc); border-radius: 6px; }
.hbar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip { position: fixed; pointer-events: none; background: #0d0819; border: 1px solid var(--line2); padding: 6px 10px; border-radius: 8px; font-size: 12.5px; z-index: 300; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }

/* ------------------------------------------------------------ lecteur musique */
.player { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.player img.cover { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--panel2); }
.progress { height: 6px; background: #1d1433; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #c084fc); }

/* ------------------------------------------------------------ landing */
.hero { position: relative; text-align: center; padding: 70px 20px 40px; overflow: hidden; }
.hero .bannerbg { position: absolute; inset: 0; background: url(/assets/banner.png) center/cover no-repeat; opacity: .16; mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(38px, 7vw, 76px); font-weight: 900; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #c4b5fd 70%, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 21px); color: #cfc6ea; max-width: 720px; margin: 14px auto 28px; }
.hero .logo { width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 0 60px rgba(139, 92, 246, .55); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 30px 0; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--panel), var(--bg2)); transition: .2s; }
.feature:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-3px); }
.feature .ico { font-size: 28px; margin-bottom: 10px; }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.stats-strip { display: flex; justify-content: center; gap: clamp(20px, 6vw, 70px); padding: 24px 0; flex-wrap: wrap; }
.stats-strip b { display: block; font-size: 34px; font-weight: 900; background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-strip span { color: var(--muted); font-size: 13px; }
.section-title { text-align: center; font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-top: 50px; }
.section-sub { text-align: center; color: var(--muted); margin: 6px 0 10px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.step { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #a855f7); font-weight: 800; box-shadow: var(--glow); }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 20px; border-top: 1px solid var(--line); margin-top: 60px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 60px; width: 280px; transform: translateX(-105%); transition: .2s; background: var(--bg2); }
  .side.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .8); }
  .burger { display: inline-flex; }
  .field { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 90px 1fr 50px; }
  .guild-pill { max-width: 150px; }
}

/* ------------------------------------------------------------ pages légales */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 20px 20px; }
.legal h1 { font-size: 32px; margin-bottom: 4px; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; color: var(--accent); }
.legal h3 { font-size: 15px; margin: 18px 0 4px; }
.legal p, .legal li { color: #d8d1ec; font-size: 15px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 5px 0; }
.legal code { background: var(--panel2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
