@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #0a0d14;
  --bg-elev: #121623;
  --bg-panel: #161b2b;
  --bg-panel-high: #1c2235;
  --bg-input: #0f1320;
  --bg-hover: rgba(91, 141, 255, 0.08);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7ebf3;
  --text-dim: #b4bcce;
  --text-muted: #8b93a7;
  --accent: #5b8dff;
  --accent-strong: #4a7eff;
  --accent-glow: rgba(91, 141, 255, 0.35);
  --accent-2: #a855f7;
  --grad: linear-gradient(135deg, #5b8dff 0%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(91, 141, 255, 0.14) 0%, rgba(168, 85, 247, 0.14) 100%);
  --green: #4ade80;
  --green-bg: rgba(74, 222, 128, 0.12);
  --yellow: #fbbf24;
  --yellow-bg: rgba(251, 191, 36, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.14);
  --blurple: #818cf8;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
  --sidebar-w: 280px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-bg: rgba(10, 13, 20, 0.78);
  --footer-bg: rgba(10, 13, 20, 0.5);
  --bar-bg: rgba(18, 22, 35, 0.92);
  --scroll-thumb: rgba(255, 255, 255, 0.1);
  --scroll-thumb-hover: rgba(255, 255, 255, 0.2);
  --log-text: #c9d1d9;
  --glow-1: rgba(91, 141, 255, 0.09);
  --glow-2: rgba(168, 85, 247, 0.07);
  --switch-knob: #c9d1e5;
  --overlay: rgba(0, 0, 0, 0.55);
  --accent-hover: #86a9ff;
  --green-text: #4ade80;
  --row-sep: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --bg-panel: #ffffff;
  --bg-panel-high: #f1f4fa;
  --bg-input: #f5f7fc;
  --bg-hover: rgba(61, 111, 240, 0.08);
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.20);
  --text: #0f172a;
  --text-dim: #2b3a4f;
  --text-muted: #556378;
  --accent: #2f5bd8;
  --accent-strong: #2448b8;
  --accent-glow: rgba(47, 91, 216, 0.22);
  --accent-2: #7e22ce;
  --grad: linear-gradient(135deg, #2f5bd8 0%, #7e22ce 100%);
  --grad-soft: linear-gradient(135deg, rgba(61, 111, 240, 0.10) 0%, rgba(147, 51, 234, 0.10) 100%);
  --green: #15803d;
  --green-bg: rgba(21, 128, 61, 0.10);
  --yellow: #a16207;
  --yellow-bg: rgba(202, 138, 4, 0.12);
  --red: #c62828;
  --red-bg: rgba(198, 40, 40, 0.08);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --footer-bg: rgba(255, 255, 255, 0.6);
  --bar-bg: rgba(255, 255, 255, 0.92);
  --scroll-thumb: rgba(15, 23, 42, 0.15);
  --scroll-thumb-hover: rgba(15, 23, 42, 0.28);
  --log-text: #1e293b;
  --glow-1: rgba(61, 111, 240, 0.08);
  --glow-2: rgba(147, 51, 234, 0.05);
  --switch-knob: #ffffff;
  --overlay: rgba(15, 23, 42, 0.35);
  --accent-hover: #1e3a8a;
  --green-text: #166534;
  --row-sep: rgba(15, 23, 42, 0.07);
  color-scheme: light;
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: #fff; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--glow-1), transparent 60%),
    radial-gradient(1000px 500px at 110% 0%, var(--glow-2), transparent 60%);
  z-index: -1;
}

h1, h2, h3, h4, h5 { color: var(--text); font-weight: 700; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; line-height: 1.2; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.98rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-dim); }

a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-hover); }

code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .9em; }
code { background: var(--bg-input); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; color: var(--text); }
pre { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; overflow-x: auto; }

hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; }
.hint { color: var(--text-muted); font-size: .85rem; margin: 0; }
.subtitle { color: var(--text-muted); font-size: 1rem; }

.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  height: var(--nav-h); padding: 0 28px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: .04em;
  color: var(--text);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-logo { width: 28px; height: 28px; border-radius: 8px; -webkit-text-fill-color: initial; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
.nav-links > a, .nav-links > span { color: var(--text-dim); padding: 8px 10px; border-radius: 8px; font-size: .88rem; font-weight: 500; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.nav-links > a:hover { background: var(--bg-hover); color: var(--text); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px !important; background: var(--bg-panel) !important; border: 1px solid var(--border); border-radius: 999px !important; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip img { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.nav-mobile-toggle { display: none; background: var(--bg-panel); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 8px; font-size: 1.1rem; cursor: pointer; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  background: var(--grad); color: #fff !important;
  font-family: inherit; font-size: .93rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 16px rgba(91, 141, 255, 0.25);
  transition: transform .12s var(--ease), box-shadow .18s var(--ease), filter .12s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(91, 141, 255, 0.35); filter: brightness(1.08); color: #fff; }
.btn:active { transform: translateY(0); }
.btn.small { padding: 7px 14px; font-size: .85rem; border-radius: 8px; }
.btn.outline {
  background: transparent; border: 1px solid var(--border-strong); box-shadow: none;
  color: var(--text) !important;
}
.btn.outline:hover { background: var(--bg-hover); border-color: var(--accent); box-shadow: none; filter: none; color: var(--text) !important; }
button.btn { font-family: inherit; }

input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input[type="date"], input[type="time"], input[type="datetime-local"], input:not([type]), textarea, select {
  width: 100%; max-width: 100%;
  padding: 10px 14px; border-radius: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%238b93a7' d='M6 8L0 0h12z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--bg-input); border: 1px solid var(--border); border-radius: 999px; transition: background .18s var(--ease); }
.slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: var(--switch-knob); box-shadow: var(--shadow-sm); border-radius: 50%; transition: transform .18s var(--ease), background .18s var(--ease); }
.switch input:checked + .slider { background: var(--grad); border-color: transparent; }
.switch input:checked + .slider::before { transform: translateX(20px); background: #fff; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group > label { font-weight: 600; font-size: .88rem; color: var(--text-dim); }

.hero {
  text-align: center; padding: 48px 20px 36px; max-width: 820px; margin: 0 auto;
}
.hero-logo { display: block; width: 86px; height: 86px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 20px 60px rgba(91, 141, 255, .25); }
.hero h1 { font-size: 2.4rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.hero h1 span, .hero .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub, .hero p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 24px; }
.hero .btn { padding: 13px 26px; font-size: 1rem; margin: 0 6px 10px; }

.stat-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--bg-panel); border: 1px solid var(--border);
  font-size: .95rem; color: var(--text-dim);
}
.stat-pill strong { color: var(--text); font-weight: 700; }

.feature-card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--bg-panel-high); }
.feature-card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }

.site-footer { margin-top: 60px; padding: 36px 24px 48px; border-top: 1px solid var(--border); background: var(--footer-bg); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 90px repeat(3, 1fr); gap: 36px; align-items: start; }
.footer-logo { width: 72px; height: 72px; border-radius: 16px; opacity: .88; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: var(--text); font-size: .9rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .07em; }
.footer-col a, .footer-col span { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }

.info-box {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--grad-soft); border: 1px solid rgba(91, 141, 255, 0.22);
  margin: 14px 0;
}
.info-icon { font-size: 1.2rem; line-height: 1; flex: none; margin-top: 2px; }
.info-box p { margin: 0 0 6px; color: var(--text); font-size: .92rem; }
.info-box p:last-child { margin-bottom: 0; }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bg-input); border: 1px solid var(--border); color: var(--text-dim); }
.status-badge.active { background: var(--green-bg); color: var(--green); border-color: rgba(74, 222, 128, 0.3); }
.premium-tag { display: inline-block; margin-left: 8px; font-size: .68rem; font-weight: 700; background: var(--grad); color: #fff; padding: 2px 8px; border-radius: 4px; letter-spacing: .05em; vertical-align: middle; }
.member-ping { color: var(--accent); font-weight: 600; }
.member-name { font-weight: 600; }

.setting-row {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; }
.setting-text { flex: 1; min-width: 0; }
.setting-text h4 { margin: 0 0 2px; color: var(--text); }
.setting-text p { margin: 0; font-size: .85rem; color: var(--text-muted); }
.setting-control { flex: 0 0 auto; min-width: 220px; max-width: 50%; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.setting-control input, .setting-control select, .setting-control textarea { max-width: 100%; }
.setting-row.locked { opacity: .72; }
.panel-actions-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.section-sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin: 22px 0 6px; font-weight: 600; }

.panel-accordion { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 10px 0; overflow: hidden; }
.panel-accordion[open] { border-color: var(--border-strong); }
.panel-accordion-head { padding: 12px 16px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; font-weight: 600; }
.panel-accordion-head::-webkit-details-marker { display: none; }
.panel-accordion-head::after { content: "▸"; color: var(--text-muted); transition: transform .18s var(--ease); }
.panel-accordion[open] .panel-accordion-head::after { transform: rotate(90deg); }
.panel-accordion-body { padding: 10px 18px 18px; border-top: 1px solid var(--border); }
.panel-name { color: var(--text); }
.panel-meta { color: var(--text-muted); font-size: .82rem; font-weight: 400; }

.app-shell, .app-shell.ge, .guild-manage-container, .ge-shell, .guild-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; gap: 20px; max-width: 1480px; margin: 0 auto; padding: 20px 24px 48px; align-items: start; }

aside.ge-side, .ge-side, .guild-rail {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto;
}
.ge-server { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--bg-input); margin-bottom: 10px; color: var(--text); }
.ge-server:hover { background: var(--bg-panel-high); color: var(--text); }
.ge-server-icon { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 700; flex: none; }
.ge-server-icon img { width: 100%; height: 100%; object-fit: cover; }
.ge-server-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ge-server-txt strong { font-size: .88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ge-server-txt small { font-size: .72rem; color: var(--text-muted); }
.ge-group { margin: 10px 0 4px; }
.ge-group-title { color: var(--text-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; margin: 12px 10px 6px; font-weight: 700; }
.ge-link, .cat-btn.ge-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  background: transparent; border: none; color: var(--text-dim);
  font-family: inherit; font-size: .89rem; text-align: left;
  position: relative; transition: background .13s var(--ease), color .13s var(--ease);
}
.ge-link:hover { background: var(--bg-hover); color: var(--text); }
.ge-link.active { background: var(--bg-hover); color: var(--text); }
.ge-link.active::before { content: ""; position: absolute; left: -14px; top: 10%; bottom: 10%; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.ge-link-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ge-repere { display: none; }
.ge-onglet-pastille { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.ge-ico { width: 18px; height: 18px; flex: none; color: var(--text-muted); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ge-link .ge-ico, .ge-server .ge-ico { width: 18px; height: 18px; }
.ge-tete-icone .ge-ico, .ge-tete .ge-ico { width: 24px; height: 24px; color: var(--accent); }
.ge-card-icon .ge-ico, .ge-cartes .ge-ico { width: 20px; height: 20px; color: var(--accent); }
.ge-go .ge-ico { width: 16px; height: 16px; color: var(--text-muted); }
.ge-recherche .ge-ico { width: 16px; height: 16px; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ge-recherche { position: relative; }
.ge-recherche input { padding-left: 36px; }
.ge-card-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.ge-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; justify-content: space-between; }
.ge-go { margin-left: auto; opacity: .6; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.ge-cartes > li:hover .ge-go { opacity: 1; transform: translateX(3px); }

.content-panel { min-width: 0; }
.category-section { display: none; }
.category-section.active { display: block; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.ge-ariane { color: var(--text-muted); font-size: .85rem; margin-bottom: 16px; }
.ge-ariane a { color: var(--text-muted); }
.ge-ariane a:hover { color: var(--text); }
.ge-ariane span { margin: 0 6px; opacity: .5; }

.ge-tete { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; }
.ge-tete-icone { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--grad-soft); color: var(--accent); font-size: 1.4rem; flex: none; }
.ge-tete h1 { margin: 0; font-size: 1.5rem; }
.ge-tete .ge-chapo { margin: 2px 0 0; color: var(--text-muted); font-size: .9rem; }
.ge-tete-rang { margin-left: auto; }

.ge-section { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; }
.ge-section > h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 14px; font-weight: 700; }
.ge-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ge-card-item { padding: 0; margin: 0; list-style: none; }
.ge-card { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-family: inherit; color: var(--text); transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); text-decoration: none; }
.ge-card:hover { border-color: var(--border-strong); background: var(--bg-panel-high); transform: translateY(-2px); color: var(--text); }
.ge-cartes h3 { font-size: .98rem; margin: 0 0 4px; }
.ge-cartes p { font-size: .82rem; margin: 0; color: var(--text-muted); }
.ge-card strong { color: var(--text); font-weight: 600; font-size: .98rem; margin-top: 2px; }
.ge-resume { color: var(--text-muted); font-size: .82rem; line-height: 1.4; min-height: 2em; }
.ge-go { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.ge-etat { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ge-etat.ok { background: var(--green-bg); color: var(--green-text); }
.ge-etat.off { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }
.ge-etat.info { background: var(--grad-soft); color: var(--accent); }

.ge-onglets, .ge-onglets-liste { display: none; }
.ge-chapo { color: var(--text-muted); }
.ge-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ge-chiffre { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ge-chiffre b { display: block; font-size: 1.5rem; color: var(--text); }
.ge-chiffre span { font-size: .78rem; color: var(--text-muted); }

.guild-rail { max-height: calc(100vh - var(--nav-h) - 40px); }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guild-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 12px; color: var(--text); transition: transform .15s var(--ease), border-color .15s var(--ease); }
.guild-card:hover { transform: translateY(-2px); border-color: var(--border-strong); color: var(--text); }
.guild-icon, .guild-avatar-placeholder { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 700; flex: none; object-fit: cover; }
.guild-header { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.guild-header-icon { width: 60px; height: 60px; border-radius: 14px; }
.guild-header-name { font-size: 1.4rem; margin: 0; }

.docs-shell { display: grid; grid-template-columns: 260px 1fr; gap: 24px; max-width: 1300px; margin: 0 auto; padding: 24px 24px 60px; align-items: start; }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; }
.docs-shell > .docs-nav { grid-column: 1; grid-row: 1; }
.docs-shell > .docs-content { grid-column: 2; grid-row: 1; }
.docs-recherche { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; margin-bottom: 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 9px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.docs-recherche:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.docs-recherche input { flex: 1; min-width: 0; border: none !important; background: transparent !important; box-shadow: none !important; padding: 7px 0 !important; font-size: .9rem; }
.docs-recherche kbd { flex: none; font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--text-muted); background: var(--bg-panel); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; white-space: nowrap; }
.docs-lien[hidden], .docs-cat[hidden] { display: none; }
.docs-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 14px 10px 4px; font-weight: 700; }
.docs-lien { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text-dim); font-size: .88rem; margin: 2px 0; }
.docs-lien:hover { background: var(--bg-hover); color: var(--text); }
.docs-lien.actif, .docs-lien[aria-current="page"] { background: var(--grad-soft); color: var(--accent); font-weight: 600; }
.docs-content { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 44px; min-width: 0; }
.docs-content h1 { font-size: 2rem; margin-bottom: 20px; }
.docs-content h3 { margin-top: 28px; color: var(--text); }
.docs-content ul, .docs-content ol { color: var(--text-dim); padding-left: 24px; }
.docs-content li { margin: 6px 0; }
.docs-content p { color: var(--text-dim); }
.docs-content strong { color: var(--text); }
.docs-ariane { color: var(--text-muted); font-size: .85rem; margin-bottom: 14px; }
.docs-ariane a { color: var(--text-muted); }
.docs-ariane a:hover { color: var(--text); }
.docs-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.docs-pager-lien { padding: 10px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; color: var(--text-dim); font-weight: 500; font-size: .9rem; }
.docs-pager-lien:hover { background: var(--bg-panel-high); border-color: var(--accent); color: var(--text); }

.admin-table { display: flex; flex-direction: column; gap: 8px; }
.admin-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.admin-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 700; flex: none; }
.admin-icon.placeholder { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }
.admin-icon img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.admin-info { flex: 1; min-width: 220px; }
.admin-info h4 { margin: 0 0 2px; font-size: .95rem; }
.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.ddos-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ddos-case { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ddos-case b { display: block; font-size: 1.3rem; color: var(--text); font-weight: 700; }
.ddos-case span { font-size: .78rem; color: var(--text-muted); }

.logs-filters { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.logs-filter-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.lf-group { display: flex; flex-direction: column; gap: 6px; }
.lf-group.lf-grow { flex: 1; min-width: 220px; }
.lf-group > label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); font-weight: 700; }
.lf-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.lf-tab { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim); padding: 7px 13px; font-size: .83rem; cursor: pointer; text-decoration: none; font-family: inherit; transition: all .13s var(--ease); }
.lf-tab.active, .lf-tab:hover { background: var(--grad); border-color: transparent; color: #fff; }
.lf-search-row { display: flex; gap: 8px; }
.lf-input { flex: 1; min-width: 0; }
.lf-select { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 7px 12px; font-size: .85rem; font-family: inherit; }
.logs-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .85rem; color: var(--text-muted); flex-wrap: wrap; }
.log-badge { display: inline-block; padding: 2px 9px; border-radius: 5px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.log-badge.info { background: rgba(91, 141, 255, 0.18); color: var(--accent); }
.log-badge.ok { background: var(--green-bg); color: var(--green); }
.log-badge.warning { background: var(--yellow-bg); color: var(--yellow); }
.log-badge.error { background: var(--red-bg); color: var(--red); }
.logs-block { background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; font-family: 'JetBrains Mono', monospace; font-size: .78rem; line-height: 1.6; max-height: 72vh; overflow-y: auto; }
.log-line { padding: 1px 0; white-space: pre-wrap; word-break: break-all; color: var(--log-text); border-bottom: 1px solid var(--row-sep); }
.log-line.warning { color: var(--yellow); }
.log-line.error { color: var(--red); }
.log-empty { color: var(--text-muted); padding: 20px; text-align: center; }
.lg-ip { display: inline-block; background: rgba(91, 141, 255, 0.18); color: var(--accent); border-radius: 4px; padding: 0 7px; margin-right: 8px; font-size: .72rem; }
.lg-ip:hover { background: rgba(91, 141, 255, 0.35); color: var(--text); }

.lg-resume { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.lg-carte { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.lg-carte h4 { margin: 0 0 10px; font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.lg-ligne { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 4px 0; border-bottom: 1px solid var(--border); }
.lg-ligne:last-child { border-bottom: none; }

.lg-onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.lg-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); }
.lg-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; }
.lg-table th { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-panel); position: sticky; top: 0; }
.lg-table td { padding: 10px 14px; border-bottom: 1px solid var(--row-sep); vertical-align: top; }
.lg-date { white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--text-muted); }
.lg-sous { font-size: .75rem; color: var(--text-muted); margin-top: 3px; word-break: break-word; }
.lg-opt { display: inline-block; background: var(--bg-input); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; margin: 2px 4px 0 0; font-size: .72rem; }

.cl-head { text-align: center; margin: 24px 0 36px; }
.cl-head h1 { font-size: 2.1rem; }
.cl-timeline { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; padding: 0 16px 60px; }
.cl-version { display: grid; grid-template-columns: 160px 1fr; gap: 28px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 30px; }
.cl-latest { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 141, 255, 0.14), var(--shadow); }
.cl-aside { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cl-pastille { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 1.35rem; font-weight: 800; color: var(--accent); background: var(--grad-soft); padding: 4px 14px; border-radius: 10px; border: 1px solid rgba(91, 141, 255, 0.25); }
.cl-badge-latest { font-size: .68rem; font-weight: 800; background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 5px; letter-spacing: .06em; text-transform: uppercase; }
.cl-date { font-size: .82rem; color: var(--text-muted); }
.cl-body h2 { margin: 0 0 14px; font-size: 1.3rem; }
.cl-sub { font-size: .95rem; margin: 18px 0 6px; font-weight: 700; display: flex; gap: 6px; }
.cl-sub-add { color: var(--green); }
.cl-sub-fix { color: var(--yellow); }
.cl-list { margin: 0; padding-left: 22px; line-height: 1.6; }
.cl-list li { margin: 4px 0; font-size: .92rem; color: var(--text-dim); }

.ih-mut { color: var(--text-muted); }
.ih-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.ih-in { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); padding: 9px 14px; border-radius: 8px; width: 100%; font-family: inherit; }
.ih-btn { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: .88rem; }
.ih-btn:hover { background: var(--bg-panel-high); border-color: var(--accent); }
.ih-btn.g { background: var(--grad); border-color: transparent; color: #fff; }
.ih-copy { display: flex; gap: 6px; margin: 6px 0; }
.ih-copy .ih-in { font-family: 'JetBrains Mono', monospace; font-size: .82rem; }
.ih-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ih-flash { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--yellow-bg); color: var(--yellow); margin-bottom: 14px; border: 1px solid rgba(251, 191, 36, 0.25); }
.ih-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }

.legal-title { text-align: center; font-size: 2rem; margin: 12px 0 22px; }
.legal-content { max-width: 820px; margin: 0 auto; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 44px; line-height: 1.75; }
.legal-content h2 { margin-top: 28px; color: var(--text); }
.legal-content p { color: var(--text-dim); }
.legal-grid { max-width: 920px; margin: 20px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding: 0 20px; }
.legal-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin: 0; color: var(--text); text-align: center; font-weight: 600; font-size: 1rem; transition: transform .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease); }
.legal-card:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--bg-panel-high); color: var(--text); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 820px; margin: 20px auto; }
.team-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }

.config-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin: 14px 0; }
.config-content { max-width: 820px; margin: 0 auto; }
.cle-panneau { background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: .95rem; margin: 6px 0; }
.cle-liste { background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: .88rem; margin: 6px 0; }

.rule-card { background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.rule-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rule-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }

.ban-form { background: var(--bg-input); border: 1px solid var(--red); border-radius: 10px; padding: 14px 18px; margin: 8px 0 10px 60px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ban-form input[type="text"] { flex: 1; min-width: 200px; }
.hidden-form, .ban-form.hidden-form { display: none !important; }
.cle-gen { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.cle-gen input { flex: 1; min-width: 220px; }

.locked { opacity: .72; }
.ok { color: var(--green); }

.step-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 10px 0; }

.navbar .brand { order: 0; }
.navbar .nav-links { order: 1; }
.navbar .theme-toggle { order: 2; }
.navbar .nav-mobile-toggle { order: 3; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: 8px; border-radius: 10px; background: var(--bg-panel); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; flex: none; padding: 0; transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease); }
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-soleil { display: none; }
:root[data-theme="light"] .theme-toggle .ico-soleil { display: block; }
:root[data-theme="light"] .theme-toggle .ico-lune { display: none; }

.rail-icon { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; }
.rail-icon.placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg-panel); color: var(--text-dim); font-weight: 700; }
.guild-rail a.active .rail-icon, .guild-rail a:hover .rail-icon { border-color: var(--accent); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--border-strong); }
.nav-dot.on { background: var(--green); }

.ge-tete-texte { min-width: 0; flex: 1; }
.ge-vide { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-muted); background: var(--bg-input); }
.ge-vide .ge-ico { width: 26px; height: 26px; color: var(--text-muted); }

.quota { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -6px 0 18px; padding: 7px 14px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 999px; font-size: .83rem; color: var(--text-dim); }
.quota strong { color: var(--text); font-weight: 600; }
.quota a { color: var(--accent); }
.quota a:hover { text-decoration: underline; }
.quota.plein { border-color: var(--yellow); background: var(--yellow-bg); }
.quota.plein strong { color: var(--yellow); }

.save-bar { position: sticky; bottom: 12px; z-index: 30; display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 16px; background: var(--bar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.save-bar[hidden] { display: none !important; }
.save-bar .btn { padding: 10px 24px; }
.save-etat { margin: 0 auto 0 0; font-size: .87rem; color: var(--text-muted); }
.save-etat .modifie { display: none; color: var(--yellow); font-weight: 600; }
.app-shell[data-modifie="true"] .save-etat .intact { display: none; }
.app-shell[data-modifie="true"] .save-etat .modifie { display: inline; }
.app-shell[data-modifie="true"] .save-bar { border-color: var(--yellow); }

.log-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.log-card { background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.log-card h4 { margin: 0 0 8px; font-size: .88rem; }
.log-card select { width: 100%; }

.rr-form { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 22px; margin-bottom: 20px; }

.welcome-split { display: flex; gap: 28px; align-items: flex-start; }
.welcome-form { flex: 1; min-width: 0; }
.welcome-preview { width: 340px; flex-shrink: 0; position: sticky; top: calc(var(--nav-h) + 20px); }
.preview-label { color: var(--text-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px; }
.discord-msg { background: #313338; border-radius: 12px; padding: 16px; display: flex; gap: 12px; font-family: "gg sans", "Segoe UI", sans-serif; border: 1px solid rgba(0, 0, 0, 0.2); }
.discord-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.discord-body { flex: 1; min-width: 0; }
.discord-author { color: #f2f3f5; font-weight: 600; font-size: .95rem; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.discord-bot-tag { background: #5865f2; color: #fff; font-size: .6rem; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.discord-embed { background: #2b2d31; border-left: 4px solid #5b8dff; border-radius: 4px; padding: 12px 14px; margin-top: 4px; }
.discord-embed-text { color: #f2f3f5; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.discord-embed-desc { color: #dbdee1; font-size: .85rem; white-space: pre-line; line-height: 1.4; }
.discord-banner { margin-top: 12px; border-radius: 6px; height: 110px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.discord-banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15)); display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.discord-banner-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); flex-shrink: 0; }
.discord-banner-text { color: #fff; font-size: .78rem; line-height: 1.3; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.discord-fake-btn { margin-top: 12px; background: #248046; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; font-size: .85rem; font-weight: 600; cursor: default; }
.welcome-split .setting-row { max-width: none; }

.panel-danger-row { display: flex; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.panel-new-form { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-top: 20px; }
.panel-add-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.panel-add-row input { flex: 1; }
.panel-add-subject { margin-top: 12px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.plan-card .price { font-size: 1.6rem; font-weight: 800; margin: 10px 0 20px; color: var(--text); }

.member-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.member-role { margin: 0 0 14px; color: var(--text-muted); font-size: .82rem; }

.ge-tiroir-tete, .ge-tiroir-fermer, .mobile-backdrop, .mobile-toggle, .ge-onglets, .ge-drawer-btn { display: none; }

@media (max-width: 1180px) {
  .navbar { padding: 0 20px; gap: 12px; }
  .theme-toggle { margin-left: auto; }
  .nav-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; width: 38px; height: 38px; padding: 0; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-elev); flex-direction: column; align-items: stretch; padding: 10px 14px 16px; border-bottom: 1px solid var(--border); margin-left: 0; z-index: 99; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-links > span { padding: 10px 12px; }
  .user-chip { max-width: none; align-self: flex-start; }
}

@media (max-width: 1024px) {
  .app-shell, .app-shell.ge, .guild-manage-container, .ge-shell, .guild-shell, .docs-shell { grid-template-columns: 1fr; }
  .docs-shell > .docs-content { grid-column: 1; }
  .guild-rail { position: static; max-height: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-logo { grid-column: 1 / -1; }

  aside.ge-side, .ge-side, .docs-shell > .docs-nav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000;
    width: min(320px, 86vw); max-height: none; border-radius: 0;
    border: none; border-right: 1px solid var(--border);
    transform: translateX(-100%); transition: transform .25s var(--ease);
    box-shadow: var(--shadow-lg); overflow-y: auto; padding-top: 16px;
  }
  .app-shell[data-mobile-open="true"] .ge-side,
  .docs-shell[data-mobile-open="true"] > .docs-nav { transform: translateX(0); }

  .ge-tiroir-tete { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
  .ge-tiroir-tete strong { color: var(--text); font-size: .95rem; }
  .ge-tiroir-fermer { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-input); border: 1px solid var(--border); color: var(--text); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1rem; font-family: inherit; }

  .mobile-backdrop { display: block; position: fixed; inset: 0; z-index: 999; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .22s var(--ease); }
  .app-shell[data-mobile-open="true"] .mobile-backdrop,
  .docs-shell[data-mobile-open="true"] .mobile-backdrop { opacity: 1; pointer-events: auto; }

  .mobile-toggle { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 96; background: var(--grad); color: #fff; border: none; padding: 12px 18px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
  .mobile-toggle::before { content: "☰"; font-size: 1.05rem; }

  .ge-onglets { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--bar-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .ge-onglets-liste { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
  .ge-onglet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 58px; padding: 8px 2px 6px; background: none; border: none; cursor: pointer; font: inherit; color: var(--text-muted); font-size: .68rem; font-weight: 600; position: relative; -webkit-tap-highlight-color: transparent; }
  .ge-onglet .ge-ico { width: 21px; height: 21px; color: inherit; }
  .ge-onglet-txt { line-height: 1.1; text-align: center; }
  .ge-onglet.active { color: var(--accent); }
  .ge-onglet.active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
  .ge-onglet .ge-onglet-pastille { position: absolute; top: 8px; right: calc(50% - 18px); border: 2px solid var(--bg-panel); }

  .app-shell .content-panel { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .save-bar { position: fixed; left: 12px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom)); margin: 0; z-index: 80; }
  .app-shell[data-barre-enregistrer="true"] .content-panel { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

  .welcome-split { flex-direction: column; }
  .welcome-preview { width: 100%; position: static; margin-top: 10px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .hero { padding: 28px 16px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-logo { width: 72px; height: 72px; }
  .setting-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .setting-control { justify-content: flex-start; min-width: 0; max-width: none; width: 100%; }
  .setting-control input, .setting-control select, .setting-control textarea { width: 100%; }
  .docs-content { padding: 24px 20px; }
  .legal-content { padding: 24px 22px; }
  .cl-version { grid-template-columns: 1fr; gap: 14px; padding: 20px 22px; }
  .cl-aside { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .app-shell, .guild-manage-container, .ge-shell, .guild-shell, .docs-shell, .container { padding-left: 16px; padding-right: 16px; }
  .ge-tete { padding: 16px; }
  .ge-tete h1 { font-size: 1.2rem; }
  .ban-form { margin-left: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .save-etat { display: none; }
  .save-bar .btn { width: 100%; justify-content: center; }
  .panel-add-row { flex-direction: column; align-items: stretch; }
  .panel-danger-row .btn { flex: 1; justify-content: center; }
  .quota { border-radius: 12px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .btn { padding: 10px 16px; }
  .hero h1 { font-size: 1.5rem; }
  input, textarea, select { font-size: 16px; }
  .ge-tete { flex-direction: column; align-items: flex-start; text-align: left; }
  .ge-tete-rang { margin-left: 0; }
  .lg-table { min-width: 560px; }
  .discord-banner { height: 90px; }
}

@media print {
  body::before, .navbar, .site-footer, .ge-side, .docs-nav, .guild-rail, .docs-pager, .ge-onglets, .save-bar, .mobile-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .ge-section, .docs-content, .legal-content { border: 1px solid #ccc; break-inside: avoid; }
}
