/* Orion Dashboard · nuit bleue et cyan */
@font-face { /* titres : police NAVIEO (twinletter, licence Envato Elements) */
  font-family: "Navieo"; src: url("navieo.woff2") format("woff2"), url("navieo.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --night: #030C16; --deep: #081A2B; --panel: #0B2034; --panel2: #0E2840; --line: #15324A;
  --teal: #34B1B3; --cyan: #85FCFE; --star: #EAF7FA; --soft: #BFD6DF; --dust: #86A3B3;
  --ok: #3DDC97; --err: #FF6B6B; --warn: #FFC83D; --radius: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; color: var(--star); font: 15px/1.5 'Manrope', system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 85% -10%, #0F3A4A55, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #0F3A4A40, transparent 60%), var(--night);
}
body::before { /* étoiles */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5; z-index: 0;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 72% 12%, #cfe, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 88% 64%, #bff, transparent),
    radial-gradient(1px 1px at 22% 88%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 35%, #dff, transparent),
    radial-gradient(1px 1px at 93% 92%, #fff, transparent), radial-gradient(1px 1px at 5% 50%, #cff, transparent);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand { font-family: 'Navieo', 'Oxanium', Georgia, serif; font-weight: 400; letter-spacing: .3px; }
h1 { font-size: 28px; margin: 0 0 4px; }
h2 { font-size: 20px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 0 0 10px; color: var(--soft); }
.muted { color: var(--dust); }
.small { font-size: 13px; }

/* ---- structure */
.layout { position: relative; z-index: 1; display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: #04101Ccc; border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0;
        height: 100vh; overflow-y: auto; backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--star); margin: 0 6px 22px; }
.brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 8px #34B1B388); }
.brand span { color: var(--cyan); }
.guild-pill { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--panel);
              border: 1px solid var(--line); margin-bottom: 18px; color: var(--star); }
.guild-pill img, .gicon { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--panel2); }
.gicon { display: grid; place-items: center; font-weight: 700; color: var(--cyan); }
.nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--dust); margin: 16px 8px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--soft);
         font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--panel); color: var(--star); text-decoration: none; }
.nav a.on { background: linear-gradient(90deg, #34B1B333, transparent); color: var(--cyan); box-shadow: inset 3px 0 0 var(--cyan); }
.nav a.off { opacity: .4; pointer-events: none; }
.main { padding: 28px clamp(16px, 4vw, 44px) 60px; max-width: 1200px; width: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.me { display: flex; align-items: center; gap: 10px; }
.me img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--teal); }

/* ---- blocs */
.card { background: linear-gradient(180deg, #0B2034ee, #081A2Bee); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 20px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.stat { font-family: 'Navieo', 'Oxanium', serif; font-size: 34px; font-weight: 800; color: var(--cyan); line-height: 1.1; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px;
         border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--soft); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: #3DDC9755; } .badge.err { color: var(--err); border-color: #FF6B6B55; }
.badge.cyan { color: var(--cyan); border-color: #85FCFE55; } .badge.warn { color: var(--warn); border-color: #FFC83D55; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---- formulaires */
label { display: block; font-weight: 700; font-size: 13px; color: var(--soft); margin: 12px 0 6px; }
input[type=text], input[type=search], input[type=number], input[type=url], input[type=datetime-local], input[type=color], textarea, select {
  width: 100%; background: #04101C; color: var(--star); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #34B1B333; }
input[type=color] { padding: 4px; height: 42px; }
input[type=file] { color: var(--soft); font-size: 13px; }
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--soft); margin: 10px 0; cursor: pointer; }
.check input { accent-color: var(--teal); width: 16px; height: 16px; }
.roles { max-height: 180px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #04101C; }
.roles .check { margin: 6px 0; font-size: 14px; }
.help { font-size: 12.5px; color: var(--dust); margin-top: 5px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer;
       font: 700 14px 'Manrope', sans-serif; color: var(--night); background: linear-gradient(135deg, var(--cyan), var(--teal));
       box-shadow: 0 6px 18px #34B1B340; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--soft); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--teal); color: var(--star); }
.btn.danger { background: transparent; color: var(--err); border: 1px solid #FF6B6B66; box-shadow: none; }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.inline { display: inline; margin: 0; }

/* ---- listes */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--dust); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #04101C88; }
.item-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.vs { font-family: 'Navieo', 'Oxanium', serif; font-weight: 800; font-size: 17px; }
.bar { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin: 6px 0 2px; display: flex; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.bar i + i { background: #2D7FF9; }
details summary { cursor: pointer; color: var(--cyan); font-weight: 700; margin-top: 10px; }
details[open] summary { margin-bottom: 8px; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--soft); font-weight: 700; }
.tabs a.on { background: #34B1B322; color: var(--cyan); border-color: #34B1B366; }
.rank { font-family: 'Oxanium', sans-serif; font-weight: 800; color: var(--cyan); width: 44px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; margin-right: 8px; background: var(--panel2); }

/* ---- messages */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; border: 1px solid; display: flex;
         justify-content: space-between; gap: 12px; align-items: center; }
.flash.ok { background: #3DDC9714; border-color: #3DDC9755; color: #B9F5DA; }
.flash.err { background: #FF6B6B14; border-color: #FF6B6B55; color: #FFC9C9; }

/* ---- connexion */
.hero { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.hero img { width: 120px; filter: drop-shadow(0 0 30px #34B1B399); margin-bottom: 18px; }
.hero h1 { font-size: 40px; } .hero h1 span { color: var(--cyan); }
.discord { background: #5865F2; color: #fff; box-shadow: 0 8px 26px #5865F255; padding: 13px 22px; font-size: 15px; }

.guild-card { display: flex; align-items: center; gap: 14px; color: var(--star); transition: border-color .15s, transform .15s; }
.guild-card:hover { border-color: var(--teal); text-decoration: none; transform: translateY(-2px); }
.guild-card .gicon, .guild-card img { width: 52px; height: 52px; font-size: 20px; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; } .nav-title { width: 100%; }
}
button.badge { font: 700 12px "Manrope", sans-serif; cursor: pointer; }
button.badge:hover { border-color: var(--err); color: var(--err); }
code { background: #04101C; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }

/* ---- choix de la langue */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #04101C; }
.lang-switch a { padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--dust); }
.lang-switch a:hover { color: var(--star); text-decoration: none; background: var(--panel); }
.lang-switch a.on { color: var(--night); background: linear-gradient(135deg, var(--cyan), var(--teal)); }
.lang-corner { position: fixed; top: 16px; right: 16px; z-index: 5; }
.me { flex-wrap: wrap; }

/* ---- aperçu d'embed Discord */
.embed-preview { border-left: 4px solid var(--teal); background: #04101C; border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.embed-preview p { margin: 6px 0 10px; color: var(--soft); }
.embed-preview .ef { margin: 8px 0; } .embed-preview .ef > b { display: block; margin-bottom: 2px; }
.embed-preview code { font-size: 12.5px; }
.topbar .me { margin-left: auto; }

/* ---- boutons importants : cyan métallisé, couleurs du logo Orion */
.btn:not(.ghost):not(.danger):not(.discord), .lang-switch a.on {
  color: #032328; text-shadow: 0 1px 0 #FFFFFF59;
  background: linear-gradient(180deg, #F2FFFF 0%, #B4FBFC 16%, #85FCFE 34%, #4FD3D6 52%, #34B1B3 66%, #23898C 82%, #5ED8DC 100%);
  border: 1px solid #B8FDFE99;
  box-shadow: inset 0 1px 0 #FFFFFFCC, inset 0 -2px 4px #0A3F4266, 0 6px 18px #34B1B34D;
  position: relative; overflow: hidden;
}
.btn:not(.ghost):not(.danger):not(.discord)::after { /* reflet qui passe au survol */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, #FFFFFF80, transparent); transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn:not(.ghost):not(.danger):not(.discord):hover::after { left: 120%; }
.btn:not(.ghost):not(.danger):not(.discord):hover { filter: brightness(1.06) saturate(1.1); }

/* ---- page Messages du bot */
details.msg { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #04101C88; }
details.msg > summary { list-style: none; display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin: 0; color: var(--star); flex-wrap: wrap; }
details.msg > summary::-webkit-details-marker { display: none; }
details.msg > summary::before { content: "▸"; color: var(--cyan); transition: transform .15s; }
details.msg[open] > summary::before { transform: rotate(90deg); }
details.msg[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.msg-label { font-weight: 700; }
.msg-peek { color: var(--dust); font-size: 13px; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-body { padding: 4px 14px 14px; }
.embed-preview .subtext, .subtext { font-size: 12px; color: var(--dust); }
.mention { background: #5865F233; color: #C9CDFB; border-radius: 4px; padding: 0 3px; font-weight: 600; }

.msg-preview { background: #04101C; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
details.vars ul { margin: 6px 0 4px; padding-left: 18px; color: var(--soft); } details.vars li { margin: 3px 0; }
details.vars summary { margin-top: 8px; }

.bots-pick { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.bots-pick .check { margin: 2px 0; font-size: 13px; }
