/* =========================================================
   ROGUE//Z — Dashboard web + espace créateur, design v0
   (snatch00/roguez-design, maquettes/index.html, onglet « Dashboard »).
   Chargé APRÈS theme.css : apparence uniquement, aucune fonction.
   Couleur du profil connecté (--r) : Joueur cyan, Administrateur violet,
   Créateur rose. LOGO PROVISOIRE : composant .logo (texte rogue//z).
   ========================================================= */
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/space-grotesk-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/space-grotesk-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/space-grotesk-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/jetbrains-mono-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/jetbrains-mono-latin-600-normal.woff2") format("woff2")}

:root{
 --bg:#0B0A10;--surface:#14131C;--surface-2:#1E1C29;--line:#2B2938;--text:#F4F2EE;--muted:#9C99AB;--on:#0B0A10;
 --a:#FF6B2C;--c:#3DD9FF;--p:#FF3D7F;--v:#9D7BFF;--y:#FFC93D;
 --r:var(--v);
 /* jetons du thème existant, remappés sur la palette */
 --x-bg:#0B0A10;--x-bg2:#0F0E15;--x-panel:#14131C;--x-surface:#14131C;--x-surface2:#1E1C29;--x-surface3:#262433;
 --x-line:#2B2938;--x-line2:#3A3749;--x-text:#F4F2EE;--x-soft:#D3D0DC;--x-muted:#9C99AB;--x-dim:#6E6B80;
 --x-red:#FF3D7F;--x-orange:#FF6B2C;--x-amber:#FFC93D;--x-cyan:#3DD9FF;--x-green:#3DD9FF;--x-violet:#9D7BFF;
 --x-grad:linear-gradient(135deg,#FF6B2C 0%,#FF3D7F 100%);
 --x-r:14px;--x-r2:14px;--x-r3:16px;
 --x-font:"Space Grotesk","Segoe UI",system-ui,-apple-system,sans-serif;
 --x-display:"Space Grotesk","Segoe UI",system-ui,sans-serif;
 --x-mono:"JetBrains Mono",ui-monospace,Consolas,monospace;
}
html[data-role="joueur"]{--r:var(--c)}
html[data-role="admin"]{--r:var(--v)}
html[data-role="createur"]{--r:var(--p)}
.k-a{--k:var(--a)}.k-p{--k:var(--p)}.k-c{--k:var(--c)}.k-v{--k:var(--v)}.k-y{--k:var(--y)}
.ac-red{--a:#FF3D7F}.ac-cyan{--a:#3DD9FF}.ac-amber{--a:#FFC93D}.ac-violet{--a:#9D7BFF}.ac-green{--a:#3DD9FF}.ac-orange{--a:#FF6B2C}

/* ---------- Base ---------- */
html body{font-family:var(--x-font);background:var(--bg)!important;color:var(--text);line-height:1.5}
html body::before,html body::after{background:var(--bg)!important;background-image:none!important}
html body ::selection{background:color-mix(in srgb,var(--r) 40%,transparent)}
html body :focus-visible{outline:2px solid var(--a)!important;outline-offset:2px}
html body h1,html body h2,html body h3{font-family:var(--x-display);font-weight:700;letter-spacing:-.03em;text-transform:none}
html body .eyebrow,html body kbd,html body code,html body #updated{font-family:var(--x-mono)}
html body [class*="title"],html body .brand,html body .login-card h1{font-family:var(--x-display)!important}
html body .metric strong,html body .metrics strong{font-family:var(--x-mono)!important;font-weight:600!important;letter-spacing:-.03em}

/* ---------- Logo provisoire ---------- */
html body .logo{font-family:var(--x-display)!important;font-weight:700;letter-spacing:-.03em;font-size:1.25rem;display:inline-flex;align-items:baseline;color:var(--text)!important;text-decoration:none;text-transform:none}
html body .logo .sl{color:var(--a)!important;font-family:var(--x-mono)!important;margin:0 1px}
html body .logo .z{color:var(--p)!important}

/* ---------- Boutons (btn-a / btn-ghost / pb du profil) ---------- */
html body .primary,html body #shell .primary,html body #shell button.primary,html body a.primary{background:var(--a)!important;color:var(--on)!important;box-shadow:none!important;border:0!important;border-radius:10px!important;font-weight:700}
html body .primary:hover,html body #shell .primary:hover{filter:brightness(1.08);transform:none}
html body .secondary,html body #shell .secondary,html body a.secondary{background:transparent!important;border:1px solid var(--line)!important;color:var(--text)!important;border-radius:10px!important}
html body .secondary:hover,html body #shell .secondary:hover{border-color:var(--text)!important}
html body .danger,html body #shell .danger{background:color-mix(in srgb,var(--p) 12%,transparent)!important;color:var(--p)!important;border:1px solid color-mix(in srgb,var(--p) 45%,transparent)!important;border-radius:10px!important}

/* ---------- Barre latérale (d-side) ---------- */
html body #shell #sidebar,html body aside#sidebar{top:0!important;bottom:0!important;left:0!important;width:236px!important;padding:14px 12px!important;border-radius:0!important;border:0!important;border-right:1px solid var(--line)!important;background:var(--surface)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;display:flex;flex-direction:column;gap:2px;overflow-y:auto}
html body #shell #sidebar::before{display:none!important}
html body #shell #sidebar .brand{padding:2px 10px!important;margin:0 0 4px;font-size:1.25rem!important;gap:8px}
html body #shell .sidebar-logo{width:26px!important;height:26px!important;box-shadow:none!important;border-radius:8px!important}
html body #shell .sidebar-sub{display:none!important}
html body #shell .rz-search-open{order:2;margin:8px 0 4px!important;padding:8px 10px!important;border-radius:10px!important;background:var(--bg)!important;border:1px solid var(--line)!important;font-size:.8rem!important;font-weight:400!important;color:var(--muted)!important}
html body #shell #nav{order:3;display:flex;flex-direction:column;gap:2px}
html body #shell .sidebar-bottom{order:4;margin-top:auto!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:none!important;padding:12px 10px 4px!important;font-size:.78rem;color:var(--muted)}
html body #shell .status-dot{background:var(--c)!important;box-shadow:none!important}
.rzv-who{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:color-mix(in srgb,var(--r) 12%,var(--surface-2));margin:6px 0 4px}
.rzv-av{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-weight:700;font-size:.85rem;background:var(--r);color:var(--on);flex:none}
.rzv-who-t{min-width:0;flex:1}
.rzv-who-t b{display:block;font-size:.9rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rzv-who-t small{display:block;font-size:.72rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rzv-badge{font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 7px;border-radius:6px;background:var(--r);color:var(--on);flex:none}
html body #shell #nav .nav-section{margin:0!important;padding:0!important;border:0!important;background:none!important}
html body #shell #nav .nav-group-label{font-family:var(--x-font)!important;font-size:.68rem!important;letter-spacing:.12em!important;text-transform:uppercase;color:var(--muted)!important;margin:14px 10px 6px!important;font-weight:500!important;padding:0!important}
html body #shell #nav a{display:flex!important;align-items:center;gap:10px;padding:8px 10px!important;border-radius:9px!important;font-size:.85rem!important;color:var(--muted)!important;width:100%;border:0!important;background:none!important;box-shadow:none!important;font-weight:400!important;min-height:0!important;margin:0!important}
html body #shell #nav a::before,html body #shell #nav a::after{display:none!important}
html body #shell #nav a:hover{color:var(--text)!important}
html body #shell #nav a.active,html body #shell #nav a[aria-current="page"]{background:color-mix(in srgb,var(--r) 16%,transparent)!important;color:var(--text)!important}
html body #shell #nav a.active .rzi,html body #shell #nav a[aria-current="page"] .rzi{color:var(--r)}
html body #shell #nav .rzi{flex:none}
html body #shell #nav .nav-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #shell #nav .nav-lock{margin-left:auto;font-size:.6rem!important;font-weight:700;padding:1px 6px!important;border-radius:99px!important;background:color-mix(in srgb,var(--y) 18%,transparent)!important;color:var(--y)!important;border:0!important;font-family:var(--x-mono)}

/* ---------- Zone principale + en-tête ---------- */
html body #shell>main{margin-left:236px!important;padding:0 22px 22px}
html body #shell>main>header,html body main>header{position:sticky;top:0;margin:0 -22px 0!important;padding:12px 22px!important;min-height:0!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:color-mix(in srgb,var(--bg) 90%,transparent)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:none!important}
html body #shell>main>header::before{display:none!important}
.rzv-crumb{display:block;font-family:var(--x-mono);font-size:.72rem;color:var(--r);margin-bottom:2px}
html body #shell #guild{font-size:.68rem!important;color:var(--muted)!important;background:none!important;border:0!important;padding:0!important;letter-spacing:.06em}
html body #shell #dashboard-persona{font-family:var(--x-mono)!important;font-size:.6rem!important;padding:1px 6px!important;border-radius:6px!important;background:var(--r)!important;color:var(--on)!important;border:0!important}
html body #shell #breadcrumb{display:block;font-family:var(--x-display)!important;font-size:1.15rem!important;font-weight:700;letter-spacing:-.02em;text-transform:none!important;color:var(--text)!important}
html body #shell .header-actions select,html body #shell #server-selector{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:10px!important;color:var(--text)!important;min-height:38px}
html body #shell #refresh{min-height:38px}
html body #shell #content{padding:22px 0 0!important;max-width:none}
html body #shell .main-footer{border-top:1px solid var(--line);color:var(--muted);font-family:var(--x-mono);font-size:.7rem;margin-top:24px;padding-top:14px}

/* ---------- Cartes et éléments des rubriques (habillage commun) ---------- */
html body #shell .card,html body #shell .panel,html body #shell .settings-section{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:none!important;backdrop-filter:none!important}
html body #shell .card::before,html body #shell .card::after{display:none!important}
html body #shell .page-head h1{font-size:1.7rem!important;letter-spacing:-.03em!important;line-height:1.1;text-transform:none!important}
html body #shell .page-head p{color:var(--muted)}
html body #shell input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),html body #shell select,html body #shell textarea{background:var(--bg)!important;border:1px solid var(--line)!important;border-radius:10px!important;color:var(--text)!important}
html body #shell input:focus,html body #shell select:focus,html body #shell textarea:focus{border-color:var(--r)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--r) 22%,transparent)!important}
html body #shell input[type=checkbox],html body #shell input[type=radio],html body #shell input[type=range]{accent-color:var(--r)}
html body #shell table th{color:var(--muted)!important;font-weight:500!important;font-size:.72rem!important;text-transform:uppercase;letter-spacing:.08em}
html body #shell table td,html body #shell table th{border-color:var(--line)!important}
html body #shell .metric,html body #shell .metrics>div{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:14px!important}
html body #shell .save-bar{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:14px!important}
html body dialog{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:16px!important;color:var(--text)}

/* ---------- Accueil (maquette : d-head, kpis, cards) ---------- */
.rzv{display:flex;flex-direction:column;gap:16px}
.rzv-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.rzv-crumb2{font-family:var(--x-mono);font-size:.72rem;color:var(--r);margin:0 0 4px}
.rzv-head h1{font-size:1.7rem!important;letter-spacing:-.03em!important;line-height:1.1;margin:0}
.rzv-head p{color:var(--muted);font-size:.85rem;margin:2px 0 0}
.rzv-head p b{color:var(--text)}
.rzv-act{display:flex;gap:8px;flex-wrap:wrap}
.rzv-sb{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line)!important;border-radius:10px;font-size:.8rem;color:var(--muted)!important;background:var(--surface)!important;cursor:pointer}
.rzv-sb kbd{font-size:.68rem;border:1px solid var(--line);padding:0 5px;border-radius:5px}
.rzv-pb{display:inline-flex;align-items:center;padding:8px 14px;border-radius:10px;font-size:.8rem;font-weight:700;background:var(--r);color:var(--on)!important;text-decoration:none}
.rzv-servers{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.75rem;color:var(--muted)}
.rzv-chip{font-size:.78rem!important;padding:6px 12px!important;border-radius:999px!important;border:1px solid var(--line)!important;color:var(--muted)!important;background:none!important;cursor:pointer}
.rzv-chip.active{background:var(--text)!important;color:var(--bg)!important;border-color:var(--text)!important}
.rzv-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.rzv-kpi{padding:16px;border-radius:14px;border:1px solid var(--line);background:var(--surface);text-decoration:none;color:var(--text)!important;display:flex;flex-direction:column;transition:border-color .2s}
.rzv-kpi:hover{border-color:color-mix(in srgb,var(--r) 50%,var(--line))}
.rzv-kpi:first-child{background:linear-gradient(150deg,color-mix(in srgb,var(--r) 24%,var(--surface)),var(--surface));border-color:color-mix(in srgb,var(--r) 40%,var(--line))}
.rzv-kpi span{font-size:.75rem;color:var(--muted)}
.rzv-kpi b{display:block;font-size:1.6rem;letter-spacing:-.03em;margin:4px 0 2px;line-height:1.15;font-family:var(--x-mono);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rzv-kpi em{font-style:normal;font-size:.75rem;color:var(--r)}
.rzv-grid{display:flex;gap:12px;flex-wrap:wrap}
.rzv-card{flex:1 1 320px;padding:18px;border-radius:14px;border:1px solid var(--line);background:var(--surface);min-width:0}
.rzv-card.wide{flex-basis:100%}
.rzv-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.rzv-card h3{font-size:.95rem!important;margin:0;letter-spacing:-.01em!important}
.rzv-link{font-size:.78rem;color:var(--r)!important;text-decoration:none}
.rzv-muted{color:var(--muted);font-size:.8rem;margin:-6px 0 10px}
.rzv-filter{width:100%;margin-bottom:10px;padding:8px 12px!important;font-size:.82rem}
.rzv-list{display:flex;flex-direction:column;gap:10px;max-height:360px;overflow-y:auto}
.rzv-row{display:flex;align-items:center;gap:12px;font-size:.85rem}
.rzv-row[hidden]{display:none}
.rzv-row-av{position:relative;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:700;font-size:.75rem;background:color-mix(in srgb,var(--k) 20%,transparent);color:var(--k);flex-shrink:0}
.rzv-row-av i{position:absolute;right:-2px;bottom:-2px;width:9px;height:9px;border-radius:50%;background:var(--c);border:2px solid var(--surface)}
.rzv-row-av i.warn{background:var(--y)}
.rzv-row-t{flex:1;min-width:0}
.rzv-row-t b{font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rzv-row-t small{display:block;color:var(--muted);font-size:.74rem}
.rzv-row-r{font-size:.74rem;color:var(--muted);white-space:nowrap}
.rzv-meters{display:flex;flex-direction:column;gap:12px}
.rzv-mt{font-size:.82rem}
.rzv-mt>div:first-child{display:flex;justify-content:space-between;gap:10px}
.rzv-mt b{font-weight:500}
.rzv-mt span{color:var(--muted);white-space:nowrap}
.rzv-meter{height:7px;border-radius:99px;background:var(--surface-2);overflow:hidden;margin-top:6px}
.rzv-meter i{display:block;height:100%;background:var(--k);border-radius:99px;transition:width .8s ease}
.rzv-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.rzv-tile{position:relative;padding:14px;border-radius:12px;background:var(--surface-2);display:flex;flex-direction:column;gap:8px;border:1px solid transparent;transition:border-color .2s;text-decoration:none;color:var(--text)!important}
.rzv-tile:hover{border-color:var(--k)}
.rzv-tile b{font-size:.88rem;font-weight:500}
.rzv-tile small{font-size:.74rem;color:var(--muted);margin-top:-6px}
.rzv-ic{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--k) 18%,transparent);color:var(--k)}
.rzv-lock{position:absolute;top:10px;right:10px;font-family:var(--x-mono);font-size:.58rem;font-weight:700;padding:1px 6px;border-radius:99px;background:color-mix(in srgb,var(--y) 18%,transparent);color:var(--y)}
.rzv-empty{display:flex;flex-direction:column;gap:2px;padding:14px;border:1px dashed var(--line);border-radius:12px;font-size:.85rem}
.rzv-empty small{color:var(--muted)}

/* ---------- Bandeau mobile (masqué sur grand écran) ---------- */
.rzv-strip{display:none}
html body #rzx-bottom{display:none!important}

/* ---------- Connexion (page servie avant la session) ---------- */
html body .login:not([hidden]){display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;padding:0 16px 32px!important;background:var(--bg)!important;min-height:100vh}
html body .login::after{display:none}
html body .login::before{content:"";display:block;flex:none;width:calc(100% + 32px);margin:0 -16px;aspect-ratio:1584/672;max-height:52vh;background:#07060a url("/site/banniere-roguez.webp") center/contain no-repeat;border-bottom:1px solid var(--line)}
html body .login-card{margin-top:-28px;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:18px!important;backdrop-filter:none!important;box-shadow:0 30px 60px -30px rgba(0,0,0,.7)!important;max-width:460px}
html body .login-card .brand{display:inline-flex;font-size:1.4rem!important}
html body .login-card .eyebrow{background:none!important;border:0!important;color:var(--a)!important;padding:0!important;letter-spacing:.14em;font-size:.72rem!important}
html body .login-card h1{font-size:clamp(2rem,6vw,2.8rem)!important;line-height:.95!important;letter-spacing:-.05em!important;text-transform:none!important}
html body .login-card p{color:var(--muted)}

/* ---------- Mobile (maquette : barre latérale devenue bandeau d'onglets) ---------- */
@media (max-width:760px){
 html body #shell>main{margin-left:0!important;padding:0 14px 20px}
 html body #shell>main>header{margin:0 -14px!important;padding:10px 14px!important;position:sticky;top:0;z-index:30;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important}
 html body #shell #sidebar{width:min(300px,calc(100vw - 40px))!important;transform:translateX(-105%);transition:transform .25s;z-index:60;box-shadow:20px 0 40px -20px rgba(0,0,0,.7)!important}
 html body #shell #sidebar.open{transform:none}
 .rzv-strip{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin:0 -14px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:var(--rzv-head,58px);z-index:25}
 .rzv-strip::-webkit-scrollbar{display:none}
 .rzv-strip a{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:9px;font-size:.84rem;color:var(--muted);white-space:nowrap;flex-shrink:0;text-decoration:none}
 .rzv-strip a.active{background:color-mix(in srgb,var(--r) 16%,transparent);color:var(--text)}
 .rzv-strip a.active .rzi{color:var(--r)}
 html body #shell #content{padding-top:16px!important}
 .rzv-sb{display:none}
 .rzv-kpis{grid-template-columns:1fr}
 .rzv-head h1{font-size:1.5rem!important}
 #rzx-scrim{position:fixed;inset:0;z-index:55;background:rgba(0,0,0,.55)}
 #rzx-scrim[hidden]{display:none}
}
@media (max-width:420px){ .rzv-tiles{grid-template-columns:1fr 1fr} }

/* ---------- Logo-texte (fichier unique /assets/logo-texte.webp) ---------- */
html body .brand-text-img{height:24px;width:auto;display:block}
html body #shell #sidebar .brand{display:flex;align-items:center;gap:8px}
html body .login-card .brand .brand-text-img{height:34px}
html body .login-card .brand::before{display:none!important}
/* Sélecteur de langue (i18n.js) aux couleurs du design */
html body #language-selector button{background:var(--surface)!important;color:var(--muted)!important;border:1px solid var(--line)!important;border-radius:9px!important;font-family:var(--x-mono)!important;font-size:.72rem!important;padding:6px 9px!important;min-height:38px}
html body #language-selector button[aria-pressed="true"]{color:var(--text)!important;border-color:var(--r)!important}
html body #shell #sidebar .brand .brand-text-img{height:26px}
html body #shell .sidebar-logo{width:30px!important;height:30px!important}
@media (max-width:760px){
 html body #shell #updated{display:none!important}
 .rzv-strip a span{font-size:.84rem;width:auto}
 html body #shell #rzv-crumb{display:none}
}
/* En-tête : les actions passent à la ligne au lieu de déborder (tablettes) */
@media (min-width:761px) and (max-width:1180px){
 html body #shell>main>header{display:flex!important;flex-wrap:wrap;gap:8px 14px}
 html body #shell .header-actions{flex-wrap:wrap;min-width:0;max-width:100%}
 html body #shell #updated{display:none!important}
}

/* Mise en route : offres (anciens styles en ligne, bloqués par la CSP) */
.onb-steps{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0;margin:0 0 20px}
.onb-card{max-width:980px;width:100%}
.onb-offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:16px}
.onb-offer{margin:0!important;display:flex;flex-direction:column;gap:6px}.onb-offer button{margin-top:auto}
.onb-price{font-size:1.6em;margin:.2em 0}
.onb-trial{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
