/* RS Launcher — site vitrine (même langage visuel que le launcher) */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #000;
  --text: #f5f5f5;
  --dim: #a3a3a3;
  --faint: #6b6b6b;
  --line: rgba(255, 255, 255, .13);
  --line-inner: rgba(255, 255, 255, .045);
  --glass: rgba(8, 8, 8, .55);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Scène animée en fond (rendue en basse résolution, pixels francs) */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  image-rendering: pixelated;
}

/* Verre : fond flouté, teinte sombre, liseré extérieur + fin liseré intérieur (incrustation) */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01) 160px), var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  border: 1px solid var(--line-inner);
  pointer-events: none;
}

/* ---------------------------------------------------------------- Navigation */
.nav {
  --radius: 999px;
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 10px 10px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.brand img { height: 20px; width: auto; }
/* mode Halloween / Noël : monogramme décoré, un peu plus grand sans élargir la barre */
.brand img.seasonal { height: 30px; margin: -5px 0; }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.links a:hover { color: var(--text); background: rgba(255, 255, 255, .07); }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  padding: 16px 28px;
  background: #f2f2f2;
  color: #0a0a0a;
  font-size: 16px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(255, 255, 255, .35); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost {
  padding: 15px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.btn-small { padding: 9px 18px; font-size: 14px; background: #f2f2f2; color: #0a0a0a; }
.btn-small:hover { background: #fff; }
.btn.is-disabled { opacity: .5; cursor: default; pointer-events: none; }

.btn-block { width: 100%; justify-content: center; }
.btn-danger { padding: 13px 22px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: var(--text); font-size: 14px; }
.btn-danger:hover { background: #f2f2f2; color: #0a0a0a; }

/* Navigation : état du compte */
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.account-pill:hover { background: rgba(255, 255, 255, .12); }
.head { width: 26px; height: 26px; border-radius: 7px; image-rendering: pixelated; }
.head-large { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }

/* ---------------------------------------------------------------- Connexion / inscription */
.auth {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 220px);
  margin: 0 auto;
  padding: 56px 0;
}
.auth-single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.auth-aside h2 { margin: 28px 0 8px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.auth-logo { width: min(360px, 100%); height: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6)); }
.auth-lead { margin: 0 0 32px; color: var(--dim); font-size: 17px; }
.perks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: 16px; }
.perks strong { display: block; font-size: 15px; font-weight: 600; }
.perks span { color: var(--dim); font-size: 14px; }
.perks .head { flex: none; width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.perk-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}
.perk-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-card { --radius: 30px; width: 100%; padding: 40px 36px 34px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.auth-card h1 { margin: 0 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.auth-sub { margin: 0 0 28px; color: var(--dim); font-size: 14px; }
.auth-card > .btn-primary { margin-top: 8px; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 8px; color: var(--dim); font-size: 13px; font-weight: 600; }
.input { position: relative; }
.input > svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke .2s;
}
.input input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 46px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(0, 0, 0, .5);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .02);
  color: var(--text);
  font: 500 15px "Inter", sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input input::placeholder { color: #4d4d4d; }
.input input:hover { border-color: rgba(255, 255, 255, .2); }
.input input:focus {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(0, 0, 0, .6);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .55), 0 0 0 4px rgba(255, 255, 255, .07);
}
.input:focus-within > svg { stroke: var(--text); }
.toggle-pw {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.toggle-pw:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.toggle-pw.on { color: var(--text); }
.toggle-pw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field small { display: block; min-height: 16px; margin-top: 7px; color: var(--faint); font-size: 12px; }
.field.invalid input { border-color: rgba(255, 255, 255, .75); }
.field.invalid small { color: var(--text); font-weight: 500; }

/* Case à cocher (« Rester connecté ») */
.check { display: flex; align-items: center; gap: 12px; margin: 2px 0 20px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 7px;
  background: rgba(0, 0, 0, .45);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.check .box svg { width: 15px; height: 15px; fill: none; stroke: #0a0a0a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease); }
.check input:checked + .box { border-color: #f2f2f2; background: #f2f2f2; }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.check:hover .box { border-color: rgba(255, 255, 255, .5); }
.check small { color: var(--faint); font-weight: 400; }

/* Bandeau cookies */
.cookie-banner {
  --radius: 22px;
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(760px, calc(100% - 32px));
  padding: 16px 16px 16px 20px;
  transform: translateX(-50%);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, .9);
  animation: banner-in .7s var(--ease) .8s both;
}
.cookie-banner.hide { animation: banner-out .4s var(--ease) forwards; }
@keyframes banner-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes banner-out { to { opacity: 0; transform: translate(-50%, 24px); } }
.cookie-banner p { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.55; }
.cookie-banner strong { color: var(--text); }
.cookie-banner a { color: var(--text); text-underline-offset: 3px; }
.cookie-banner .btn-small { flex: none; border: 0; font-family: inherit; cursor: pointer; }
.cookie-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.cookie-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Page cookies */
.legal { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 32px; }
.legal h1 { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -.02em; }
.legal h2 { margin-top: 12px; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.table-wrap { width: 100%; overflow-x: auto; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cookie-table th { padding: 12px 14px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.cookie-table td { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--dim); vertical-align: top; }
.cookie-table code { padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .08); color: var(--text); font-size: 13px; }

/* Jauge de solidité du mot de passe */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.strength i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); transition: background .3s; }
.strength[data-level="1"] i:nth-child(-n+1),
.strength[data-level="2"] i:nth-child(-n+2),
.strength[data-level="3"] i:nth-child(-n+3),
.strength[data-level="4"] i { background: #f2f2f2; }

.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  font-size: 14px;
  font-weight: 500;
  animation: shake .45s;
}
.form-error svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

form .btn { border: 0; font-family: inherit; }
.btn-submit { height: 52px; font-size: 15px; }
.btn-submit svg { transition: transform .25s var(--ease); }
.btn-submit:hover svg { transform: translateX(3px); }
.btn-ghost.btn-block { height: 50px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; color: var(--faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }

/* ---------------------------------------------------------------- Espace compte (blocs bien espacés) */
.account {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 32px;
}
.avatar { display: block; flex: none; width: 26px; height: 26px; border-radius: 7px; image-rendering: pixelated; }
.avatar-large { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 30px -10px rgba(0, 0, 0, .9); }
.profile { display: flex; align-items: center; gap: 28px; padding: 36px 40px; }
.profile h1 { margin: 4px 0 6px; font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.profile .overline { margin: 0; }
.profile-logout { margin-left: auto; }
.muted { margin: 0; color: var(--dim); font-size: 14px; }
.notice { --radius: 20px; margin: 0; padding: 18px 26px; font-size: 15px; }

.panel { --radius: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 36px 40px; }
.panel h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.panel p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.65; }
.panel p strong { color: var(--text); }
.panel .field { width: 100%; margin: 0; }
.panel > .btn, .row { margin-top: 6px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row form { margin: 0; }
.account-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

/* Mon compte : PC où le launcher est connecté */
.device-list { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.device-list li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--line-inner); }
.device-list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.device-list span { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.device-list strong { color: var(--text); }
.device-list small { display: block; margin-top: 2px; font-size: 13px; }

/* Boutons dans les blocs : jamais de texte blanc sur fond blanc */
a.btn-primary, .panel a.btn-primary, .card a.btn-primary { color: #0a0a0a; text-decoration: none; }
a.btn-ghost, .card a.btn-ghost { color: var(--text); text-decoration: none; }

/* Skin */
.skin-panel { flex-direction: row; align-items: stretch; gap: 44px; }
.skin-preview {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 220px;
  padding: 24px 0 18px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 70%), rgba(0, 0, 0, .35);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
#skin-canvas { width: 120px; height: 240px; image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); }
.skin-caption { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.skin-form { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 28px 20px;
  border: 1.5px dashed rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(0, 0, 0, .3);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.over { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .05); }
.dropzone.ready { border-style: solid; border-color: rgba(255, 255, 255, .5); }
.dropzone.invalid { border-color: rgba(255, 255, 255, .8); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 26px; height: 26px; margin-bottom: 4px; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { font-size: 15px; }
.dropzone span { color: var(--faint); font-size: 13px; }
.field-error { margin: -8px 0 0 !important; color: var(--text) !important; font-size: 13px !important; font-weight: 500; }
.field-error::before { content: "! "; font-weight: 700; }
.model { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.model legend { width: 100%; margin-bottom: 10px; color: var(--dim); font-size: 13px; font-weight: 600; }
.model label { position: relative; cursor: pointer; }
.model input { position: absolute; opacity: 0; }
.model span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.model small { color: var(--faint); font-weight: 500; }
.model input:checked + span { border-color: #f2f2f2; background: #f2f2f2; color: #0a0a0a; }
.model input:checked + span small { color: #555; }
.model input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

.danger { --radius: 20px; padding: 22px 28px; }
.danger summary { cursor: pointer; color: var(--dim); font-size: 14px; font-weight: 600; }
.danger form { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 440px; margin-top: 18px; }
.danger form .field { width: 100%; margin: 0; }
.danger p { margin: 0; color: var(--dim); font-size: 14px; }

/* Page 404 */
.not-found { min-height: 70vh; }
.title { font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }

/* ---------------------------------------------------------------- Accueil */
.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 12vh, 128px) 0 96px;
}
.overline {
  margin: 0 0 18px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1 { margin: 0; }
.logo {
  width: min(620px, 100%);
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6));
}
.logo.seasonal { width: min(580px, 100%); }
.lead {
  max-width: 560px;
  margin: 26px 0 34px;
  color: var(--dim);
  font-size: clamp(17px, 2vw, 19px);
}
.lead strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.meta { margin: 16px 0 0; color: var(--faint); font-size: 13px; }

/* Statut des serveurs */
.status {
  --radius: 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  width: fit-content;
  max-width: 100%;
  margin-top: 44px;
  padding: 16px 24px;
}
.status-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.status-sep { flex: none; width: 1px; align-self: stretch; background: var(--line); }
.dot {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  animation: blink 1.4s ease-in-out infinite;
}
.dot.online { background: #fff; animation: none; }
.dot.online::before, .dot.online::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #fff;
  animation: pulse 2s ease-out infinite;
}
.dot.online::after { animation-delay: 1s; }
.dot.offline { background: transparent; border: 1.5px solid rgba(255, 255, 255, .45); animation: none; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
@keyframes blink { 50% { opacity: .3; } }
.status-text { display: flex; flex-direction: column; line-height: 1.35; }
.status-text strong { font-size: 14px; font-weight: 600; }
.status-text span { color: var(--dim); font-size: 13px; }
.status-item picture { display: contents; }
.status-logo { flex: none; width: auto; height: 36px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)); }

/* Codes promo en cours (accueil ; pages des serveurs : servers.css) */
.promo-banner { display: flex; flex-direction: column; gap: 10px; }
.promo-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.promo-what { flex: 1 1 220px; margin: 0; }
.promo-code { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed currentColor; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.promo-code svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.promo-go { white-space: nowrap; }
.promo-preview { margin: 0; font-size: 12.5px; opacity: .75; }
.promo-home { --radius: 22px; width: fit-content; max-width: 100%; margin-top: 14px; padding: 14px 22px; }
.promo-home .promo-kind { color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.promo-home .promo-off { color: var(--text); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.promo-home .promo-what { color: var(--dim); font-size: 14px; }
.promo-home .promo-what strong { color: var(--text); font-weight: 600; }
.promo-home .promo-code { padding: 7px 12px; border-radius: 10px; color: var(--text); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 600; letter-spacing: .06em; transition: background .2s; }
.promo-home .promo-code:hover { background: rgba(255, 255, 255, .08); }
.promo-home .promo-go { color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.promo-home .promo-go:hover { text-decoration: underline; text-underline-offset: 3px; }
.promo-home .promo-preview { color: var(--faint); }
.promo-home .promo-item + .promo-item { padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- Sections */
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 24px;
  scroll-margin-top: 80px;
}
.section h2 { margin: 0 0 28px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.01em; }
.grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.features { grid-template-columns: repeat(4, 1fr); }
.steps { grid-template-columns: repeat(3, 1fr); }
.news { grid-template-columns: repeat(3, 1fr); }
.card {
  --radius: 22px;
  padding: 26px 24px 24px;
  transition: transform .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .22); }
.card h3 { margin: 18px 0 8px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.6; }
.card a { color: var(--text); text-underline-offset: 3px; }
.pix { display: block; width: 40px; height: 40px; image-rendering: pixelated; }
.step {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f2f2f2;
  color: #0a0a0a;
  font-weight: 700;
}

/* Actualités */
.news .card { display: flex; flex-direction: column; min-height: 180px; }
.news .date {
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
}
.news .card h3 { margin-top: auto; padding-top: 22px; }
.news a.card { text-decoration: none; }
.empty { color: var(--faint); }

/* Serveurs : logo sur un halo à la couleur du thème */
.servers { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.server-card { --accent: 224, 165, 60; display: flex; flex-direction: column; padding: 14px 14px 22px; }
.server-card.theme-mining { --accent: 92, 225, 214; }
.server-card.theme-feerique { --accent: 95, 201, 255; }
.server-card > :not(.server-art) { margin-left: 14px; margin-right: 14px; }
.server-art {
  display: grid;
  place-items: center;
  height: 230px;
  padding: 18px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 55% 65% at 50% 55%, rgba(var(--accent), .3), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
  overflow: hidden;
}
.server-art picture { display: contents; }
.server-art img {
  width: 100%;
  height: 194px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55));
  transition: transform .5s var(--ease);
}
.server-card:hover .server-art img { transform: scale(1.04) translateY(-3px); }
.server-name { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.server-kind {
  margin-top: 20px;
  margin-bottom: 0;
  color: rgb(var(--accent));
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.server-card h3 { margin-top: 10px; }
.server-card .chips { margin-top: 16px; }
.server-status {
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--dim);
  font-size: 13px;
}

/* ---------------------------------------------------------------- Pied de page */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--faint);
  font-size: 13px;
}
.footer p { margin: 0; }
.footer .brand { color: var(--dim); }

/* Notification */
.toast {
  --radius: 999px;
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .4s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- Animations d'apparition */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal-scroll { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scroll.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scroll { opacity: 1; transform: none; animation: none; transition: none; }
  .dot, .dot::before, .dot::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- Mobile */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps, .news, .servers, .account-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; justify-items: center; padding-top: 32px; }
  .auth-aside { display: none; }
  .auth-card { max-width: 460px; }
  .profile { flex-wrap: wrap; padding: 28px; }
  .profile-logout { margin-left: 0; }
  .panel { padding: 28px; }
  .skin-panel { flex-direction: column; align-items: stretch; }
  .skin-preview { width: 100%; }
  .links { display: none; }
  .nav .btn-small { margin-left: auto; }
}
@media (max-width: 560px) {
  .cookie-banner { flex-wrap: wrap; bottom: 12px; }
  .cookie-banner .btn-small { width: 100%; justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .status { flex-direction: column; align-items: flex-start; gap: 14px; }
  .status-sep { width: 100%; height: 1px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- Boutique */
.shop { display: flex; flex-direction: column; gap: 26px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 32px; }
.shop h1 { margin: 6px 0 10px; font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.shop-head .lead { max-width: 620px; margin: 0; }
.wallet { --radius: 24px; display: flex; flex: none; flex-direction: column; gap: 6px; min-width: 260px; padding: 22px 26px; }
.wallet-label { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wallet-amount { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.wallet-amount small, .price small { color: var(--dim); font-size: .5em; font-weight: 600; letter-spacing: 0; }
.wallet-guest { font-size: 18px; }
.wallet .row { margin-top: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--dim); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.tab.on { border-color: #f2f2f2; background: #f2f2f2; color: #0a0a0a; }
button.tab { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; cursor: pointer; }
button.tab img { height: 20px; width: auto; }
/* Administration : interrupteur du mode Halloween / Noël */
.season-switch { padding: 24px 32px; }
.season-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.season-head h2 { margin-bottom: 4px; }
.season-head form { margin: 0; }
.empty { --radius: 22px; margin: 0; padding: 28px; color: var(--dim); text-align: center; }
.products { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.product { --radius: 24px; display: flex; flex-direction: column; overflow: hidden; color: var(--text); text-decoration: none; transition: transform .35s var(--ease), border-color .35s; }
.product:hover { transform: translateY(-5px); }
.product-img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .08), rgba(0, 0, 0, 0) 70%), rgba(0, 0, 0, .35); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img img.placeholder, .product-page-img img.placeholder { width: 34%; height: auto; object-fit: contain; opacity: .35; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.product-body .overline { margin: 0; font-size: 11px; }
.product-body h3 { margin: 0; font-size: 18px; font-weight: 700; }
.clamp { display: -webkit-box; margin: 0; overflow: hidden; color: var(--dim); font-size: 14px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font-size: 12px; font-weight: 600; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.price-large { font-size: 34px; }
.back { align-self: flex-start; color: var(--dim); font-size: 14px; font-weight: 600; text-decoration: none; }
.back:hover { color: var(--text); }
.product-page { --radius: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; }
.product-page-img { display: grid; place-items: center; min-height: 320px; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .08), rgba(0, 0, 0, 0) 70%), rgba(0, 0, 0, .35); }
.product-page-img img { width: 100%; height: 100%; object-fit: cover; }
.product-page-body { display: flex; flex-direction: column; gap: 14px; padding: 40px 44px; }
.product-page-body h1 { margin: 0; }
.product-page-body .overline { margin: 0; }
.desc { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.7; }
.facts { display: grid; gap: 10px; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.facts span { color: var(--faint); }
.buy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 10px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.buy-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.deliveries { display: grid; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.delivery { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.delivery div { display: flex; flex-direction: column; gap: 3px; }
.status-dot { display: inline-block; flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.status-dot.s-done { background: #f2f2f2; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.status-dot.s-pending { background: transparent; border: 2px solid rgba(255, 255, 255, .6); animation: blink 1.4s ease-in-out infinite; }
.status-dot.s-failed { background: transparent; border: 2px solid rgba(255, 255, 255, .35); }
.status-dot.s-cancelled { background: rgba(255, 255, 255, .12); }
.credits-page { gap: 14px; max-width: 760px; }
.credits-page h1 { margin: 0; }
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; width: 100%; margin-top: 8px; }
.amount { --radius: 18px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px 12px; cursor: pointer; transition: transform .25s var(--ease); }
.amount input { position: absolute; opacity: 0; pointer-events: none; }
.amount strong { font-size: 24px; font-weight: 700; }
.amount span { color: var(--dim); font-size: 13px; }
.amount em { margin-top: 8px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-style: normal; font-weight: 600; }
.amount:hover { transform: translateY(-3px); }
.amount:has(input:checked) { box-shadow: 0 0 0 2px #f2f2f2; }
.amount:has(input:checked) em { background: #f2f2f2; color: #0a0a0a; }
.amounts .btn-block, .amounts .secure { grid-column: 1 / -1; }
.secure { font-size: 13px; }
.shop-panel { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
.shop-panel > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.shop-panel .row { margin: 0; }

/* Tableaux et listes */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 12px; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--dim); vertical-align: middle; }
.table td strong, .table td a { color: var(--text); }
.table td a { text-underline-offset: 3px; }
.table .actions { display: table-cell; text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
.table .thumb { width: 56px; min-width: 56px; padding-right: 4px; }
.table .thumb img { display: block; flex: none; width: 40px; height: 40px; max-width: none; border-radius: 10px; object-fit: cover; }
.table .thumb img.avatar { width: 28px; height: 28px; border-radius: 7px; }
.badge { display: inline-block; margin: 2px 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.b-done { border-color: rgba(255, 255, 255, .5); color: var(--text); }
.badge.b-pending { border-style: dashed; color: var(--text); }
.badge.b-failed { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .12); color: var(--text); }
.badge.b-cancelled { opacity: .55; }
.lines { display: grid; width: 100%; margin: 0; padding: 0; list-style: none; }
.lines li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--dim); font-size: 14px; }
.lines li:first-child { border-top: 0; }
.lines li > strong { color: var(--text); }
.lines li > em { color: var(--faint); font-size: 12.5px; font-style: normal; white-space: nowrap; }
.plus { color: var(--text); }
.minus { color: var(--dim); }
.mono, .mono input, textarea.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.small { font-size: 12px; }
textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  outline: none;
  background: rgba(0, 0, 0, .45);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; cursor: pointer; }
textarea:focus, select:focus { border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 0 4px rgba(255, 255, 255, .07); }
.field code, .muted code, .panel code { padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--text); font-size: 12.5px; }

/* ---------------------------------------------------------------- Administration */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 24px; width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 48px; }
.admin-side { --radius: 24px; position: sticky; top: 96px; padding: 22px 16px; }
.admin-side .overline { margin: 0 10px 12px; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side a { padding: 9px 12px; border-radius: 12px; color: var(--dim); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.admin-side a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.admin-side a.on { color: #0a0a0a; background: #f2f2f2; }
.side-title { margin: 14px 12px 4px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.admin-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.admin-main .panel { padding: 28px 30px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin-head h1 { margin: 4px 0 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.admin-head .overline { margin: 0; }
.admin-head .overline a { color: inherit; text-decoration: none; }
.admin-head .overline a:hover { color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { --radius: 20px; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }
.kpi span { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.kpi strong { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.kpi em { color: var(--dim); font-size: 13px; font-style: normal; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; }
.panel-head h2 .status-dot { margin-top: 0; }
.admin-form { display: flex; flex-direction: column; gap: 20px; }
.admin-form .panel { gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.field-row .field { margin: 0; }
.panel fieldset.field { width: 100%; margin: 0; padding: 0; border: 0; }
.panel fieldset.field legend { margin-bottom: 10px; color: var(--dim); font-size: 13px; font-weight: 600; }
.panel .check { margin: 4px 0; }
.form-actions { margin: 0; }
.form-img { display: block; width: 120px; height: 80px; margin-bottom: 10px; border-radius: 12px; object-fit: cover; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
.inline-form .input { flex: 1 1 200px; }
.inline-form .input-small { flex: 0 0 90px; }
.inline-form .check { margin: 0; }
.inline-form .input input, .search .input input, .field-row .input input, .admin-form .input input, .credit-form .input input { padding-left: 16px; }
.btn-xs { padding: 7px 14px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.sub-row { justify-content: space-between; width: 100%; margin: 0; }
/* Administration → Catégories : boutiques (serveurs) où la catégorie apparaît */
.cat-servers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; flex-basis: 100%; }
.cat-servers .check { margin: 0; }
.search { display: flex; gap: 10px; }
.search .input { width: 260px; }
.player-title { display: flex; align-items: center; gap: 20px; }
.player-title h1 { margin: 2px 0 4px; }
.credit-form { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
.token-box { gap: 12px; }
.token { width: 100%; margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: 14px; background: rgba(0, 0, 0, .5); color: var(--text); font-size: 15px; user-select: all; }
.steps-list { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--dim); font-size: 14px; line-height: 1.6; }
.pager { justify-content: center; width: 100%; }
.panel p.rules { font-size: 13px; }
/* Administration → En jeu (échanges, journal du jeu) : filtres et lignes */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: end; gap: 12px; width: 100%; }
.filters .field { margin: 0; }
.filters .field > span { margin-bottom: 6px; }
.filters .input input, .filters select { box-sizing: border-box; height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14px; line-height: 42px; }
.filters .filters-actions { display: flex; gap: 8px; }
.filters details { grid-column: 1 / -1; }
.filters summary { color: var(--dim); font-size: 13px; font-weight: 600; cursor: pointer; }
.filters details[open] .filters { margin-top: 12px; }
.log-table td { padding: 9px 12px; vertical-align: top; }
.log-table .when { white-space: nowrap; color: var(--faint); font-size: 12.5px; }
.log-table .where { white-space: nowrap; font-size: 12.5px; }
.log-table .what { color: var(--text); word-break: break-word; }
.badge.t-ALERTE { border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .16); color: var(--text); }
.badge.t-ECHANGE, .badge.t-MARCHE, .badge.t-CAISSE { border-style: dashed; color: var(--text); }
.trade-side { display: block; min-width: 180px; color: var(--text); }
.trade-side small { display: block; color: var(--faint); font-size: 12px; }
.day-files { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1000px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .admin-side nav { flex-flow: row wrap; }
  .side-title { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-cols, .product-page { grid-template-columns: 1fr; }
  .shop-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  .field-row, .kpis { grid-template-columns: 1fr; }
  .product-page-body { padding: 28px 22px; }
  .shop-panel { flex-direction: column; align-items: flex-start; }
  .lines li { grid-template-columns: 1fr auto; }
  .lines li > em { grid-column: 1 / -1; }
}

/* Moyens de paiement */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; grid-column: 1 / -1; }
.pay-methods .btn { justify-content: center; height: 52px; }
.btn-paypal { padding: 14px 24px; border: 0; background: #ffc439; color: #0a0a0a; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn-paypal:hover { background: #ffd366; transform: translateY(-2px); }
.btn-paypal svg { stroke: #003087; }

/* Pages légales et consentements */
.legal-text { gap: 12px; }
.legal-text h1 { margin: 0 0 6px; }
.legal-text h2 { margin: 18px 0 0; font-size: 19px; }
.legal-text p, .legal-text li { color: var(--dim); font-size: 15px; line-height: 1.7; }
.legal-text ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.legal-text strong { color: var(--text); }
.legal-text a, .legal-links a, .consent a { color: var(--text); text-underline-offset: 3px; }
.todo { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); color: var(--text); font-weight: 600; }
.legal-links { margin: 0; color: var(--faint); font-size: 14px; text-align: center; }
.check.consent { align-items: flex-start; margin: 4px 0 6px; font-size: 13.5px; font-weight: 500; line-height: 1.55; }
.check.consent .box { flex: none; margin-top: 1px; }
.check.consent span:last-child { color: var(--dim); }
.amounts .consent { grid-column: 1 / -1; }
.legal-editor { font-size: 13px; line-height: 1.6; }
.table .acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }

/* ---------------------------------------------------------------- Connexion : mot de passe oublié, double authentification */
.login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 2px 0 20px; }
.login-row .check { margin: 0; }
.link-small { color: var(--dim); font-size: 13.5px; font-weight: 500; text-underline-offset: 3px; }
.link-small:hover { color: var(--text); }
.form-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  font-size: 14px;
  font-weight: 500;
}
.form-ok svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}
.auth-badge svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-badge.big { flex: none; width: 80px; height: 80px; margin: 0; border-radius: 22px; }
.auth-badge.big svg { width: 38px; height: 38px; }
.auth-sub strong { color: var(--text); }
.back-link { margin-top: 12px; }
.code-input { font-size: 20px !important; font-weight: 600; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.code-input::placeholder { letter-spacing: .18em; }

/* Mon compte : adresse e-mail en attente, double authentification */
.panel h2 .badge { margin-left: 8px; vertical-align: 3px; }
.pending { padding: 10px 14px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 12px; font-size: 14px !important; }
.link-button { padding: 0; margin-left: 8px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.recovery .codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: code; }
.recovery .codes li { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(0, 0, 0, .35); text-align: center; }
.recovery .codes code { background: none; padding: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 16px; letter-spacing: .06em; color: var(--text); }
.twofa-setup { padding: 34px 40px; }
.steps-2fa { display: grid; gap: 30px; width: 100%; }
.step-2fa { display: flex; align-items: flex-start; gap: 20px; margin: 0; }
.step-2fa .step { flex: none; }
.step-2fa h2 { margin: 6px 0 6px; font-size: 18px; }
.step-2fa .grow { flex: 1; min-width: 0; }
.step-2fa .form-error { margin: 12px 0 0; }
.qr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 16px; }
.qr { width: 196px; height: 196px; padding: 10px; border-radius: 16px; background: #fff; }
.qr svg { display: block; width: 100%; height: 100%; }
.secret { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.secret > span { color: var(--dim); font-size: 13px; font-weight: 600; }
.secret code { padding: 10px 14px !important; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 16px !important; letter-spacing: .08em; word-break: break-all; }
.secret small { color: var(--faint); font-size: 12px; }
.code-row { margin-top: 14px; }
.code-row .input { width: 190px; }

/* Administration : e-mails */
.notice-ok { padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--text) !important; font-weight: 500; }
.test-row .input { flex: 1; min-width: 220px; max-width: 380px; }
/* champ sans icône (code, e-mail de test) : pas de marge réservée à gauche */
.input > input:first-child { padding-left: 16px; }
@media (max-width: 560px) {
  .twofa-setup { padding: 26px 22px; }
  .step-2fa { gap: 14px; }
  .qr { width: 170px; height: 170px; }
}

/* Accueil : cartes serveurs cliquables (vers leur page) */
a.server-card { color: inherit; text-decoration: none; }
.server-card .server-status { margin-top: 18px; }
.server-more { display: inline-flex; gap: 8px; margin-top: auto; padding-top: 18px; color: rgb(var(--accent)); font-size: 14px; font-weight: 700; transition: gap .3s var(--ease); }
.server-card:hover .server-more { gap: 14px; }
.section-lead { margin: -14px 0 28px; color: var(--dim); font-size: 15px; }
.section-lead a { color: var(--text); text-underline-offset: 3px; }

/* Abonnements : formules (boutique) et suivi (Mon compte) */
.plans { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.amount.plan { gap: 4px; padding: 22px 16px 20px; text-align: center; }
.plan-name { color: var(--text) !important; font-size: 15px !important; font-weight: 700; letter-spacing: .02em; }
.plan-desc { margin-top: 8px; color: var(--dim); font-size: 12.5px; line-height: 1.45; }
.plan-taken { margin-top: 8px; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: 12px; font-weight: 600; }
.amount.is-taken { cursor: default; opacity: .65; }
.amount.is-taken:hover { transform: none; }
.my-subs { display: grid; gap: 6px; width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.my-subs p { margin: 0; color: var(--dim); font-size: 14px; }
.my-subs strong { color: var(--text); }
.my-subs a { color: var(--text); }
.sub-card { display: grid; gap: 6px; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .03); }
.sub-card.sub-active { border-color: rgba(255, 255, 255, .28); }
.sub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sub-top strong { font-size: 17px; }
.sub-card p.muted { margin: 0; font-size: 14px; }
.sub-card form { justify-self: start; margin-top: 4px; }
#abonnement, #factures { scroll-margin-top: 90px; }
.lines li a { color: var(--text); text-underline-offset: 3px; }

/* page des votes (/voter) */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; width: 100%; }
.vote-card { --radius: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.vote-card h2 { margin: 0; font-size: 22px; }
.vote-card form { margin: 0; }
.vote-num { color: var(--faint); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.vote-state { margin: 0; font-size: 14px; }
.vote-state.is-ready { color: #7ee2a8; }
.vote-state.is-wait { color: var(--dim); }
.btn.is-off { opacity: .5; pointer-events: none; }
.vote-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; }
.vote-steps li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); counter-increment: step; }
.vote-steps li strong::before { content: counter(step) ". "; color: var(--faint); }
.vote-steps span { color: var(--dim); font-size: 14px; }
.vote-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; width: 100%; margin-top: 28px; }
.vote-board { --radius: 22px; padding: 24px; }
.vote-board h2 { margin: 0; font-size: 20px; }
.vote-board > p { margin: 2px 0 0; }
.vote-board ol { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.vote-board li { display: grid; grid-template-columns: 34px 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.vote-board li img { border-radius: 5px; image-rendering: pixelated; }
.vote-board .rank { color: var(--faint); font-variant-numeric: tabular-nums; }
.vote-board .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-board li.top1 .rank { color: #f5c542; }
.vote-board li.top2 .rank { color: #d9dde3; }
.vote-board li.top3 .rank { color: #d08a4a; }

/* Administration : plugins et commandes de chaque serveur (catalogue envoyé par RSLink) */
.catalog-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; }
.catalog-search .input { flex: 1 1 320px; }
.catalog-search .input input { padding-left: 16px; }
.catalog-tools .chips { gap: 8px; }
.catalog-tools .chip { text-decoration: none; transition: color .2s, border-color .2s; }
.catalog-tools .chip:hover { border-color: rgba(255, 255, 255, .4); color: var(--text); }
.chip-btn { background: none; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cat-group { width: 100%; border-top: 1px solid rgba(255, 255, 255, .07); }
.cat-group > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 4px; color: var(--text); cursor: pointer; list-style: none; }
.cat-group > summary::-webkit-details-marker { display: none; }
.cat-group > summary::before { content: "▸"; color: var(--faint); transition: transform .2s; }
.cat-group[open] > summary::before { transform: rotate(90deg); }
.cat-group > summary .muted { font-size: 13px; }
.cat-group > summary .badge:last-child { margin-left: auto; }
.cat-group > .table-wrap { padding-bottom: 14px; }
.cat-table td { vertical-align: top; }
.cat-table .cat-name { width: 1%; white-space: nowrap; }
.cat-table code, .cat-usage { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.cat-copy { padding: 0; border: 0; background: none; color: var(--text); font-size: 14px; font-weight: 600; text-align: left; cursor: copy; }
.cat-copy:hover code { text-decoration: underline; text-underline-offset: 3px; }
.cat-aliases, .cat-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.cat-aliases { max-width: 260px; white-space: normal; }
.cat-sub > span:first-child { margin-right: 4px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cat-what p { margin: 0 0 6px; color: var(--dim); }
.cat-usage { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .045); color: var(--text); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.cat-perm { width: 200px; }
.cat-perm code { color: var(--dim); font-size: 12px; overflow-wrap: anywhere; }
.cat-id, .cat-file { font-size: 12px; word-break: break-all; }
.cat-link { font-size: 12px; }
.cat-none { margin: 0; color: var(--faint); font-size: 13px; }
[data-catalog-section][hidden], [data-catalog-group][hidden], [data-catalog-item][hidden], [data-catalog-empty][hidden] { display: none !important; }
@media (max-width: 900px) {
  .cat-table .cat-name { white-space: normal; }
}
/* petit écran : chaque commande en bloc (nom, description et utilisation, permission) */
@media (max-width: 700px) {
  .cat-cmds thead { display: none; }
  .cat-cmds, .cat-cmds tbody, .cat-cmds tr, .cat-cmds td { display: block; width: auto; }
  .cat-cmds tr { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
  .cat-cmds td { padding: 4px 0; border: 0; }
  .cat-cmds .cat-name, .cat-cmds .cat-perm { width: auto; }
  .cat-cmds .cat-aliases { max-width: none; }
  .cat-cmds .cat-perm:has(.empty) { display: none; }
}
