/* =====================================================
   ZEDMENU — main.css
   Inspiration : keyser.gg + cosmos.pm — brut, centré, direct.
   Zéro décoration gratuite. Un seul accent.
   ===================================================== */

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

:root {
  --accent: #d4af37;
  --accent-rgb: 212, 175, 55;
  --accent-strong: #e5c04a;

  --bg: #0a0a0b;
  --bg-elev: #121214;
  --bg-card: #15151a;
  --bg-input: #1a1a1f;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #ffffff;
  --text-mute: rgba(255, 255, 255, 0.65);
  --text-dim: rgba(255, 255, 255, 0.4);

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }

/* ============ CURSOR GLOW ============ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 25%, transparent 60%);
  mix-blend-mode: screen;
  will-change: transform;
  transition: opacity 0.25s ease;
  opacity: 0;
}
.cursor-glow.active { opacity: 1; }
@media (hover: none) {
  .cursor-glow { display: none; }
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ============ GRILLE DE FOND ============ */
/* Grille blanche de base */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 100%);
}

/* Grille or révélée au passage du curseur */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 55px 55px;
  opacity: 0.75;
  mask-image: radial-gradient(
    260px circle at var(--cursor-x, -400px) var(--cursor-y, -400px),
    black 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 90%
  );
  -webkit-mask-image: radial-gradient(
    260px circle at var(--cursor-x, -400px) var(--cursor-y, -400px),
    black 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 90%
  );
  transition: opacity 0.25s ease;
}
@media (hover: none) {
  body::after { display: none; }
}

body > * { position: relative; z-index: 1; }
.nav { z-index: 100; }

/* ============ TOP ANNOUNCEMENT BAR ============ */
.top-announce {
  position: relative;
  z-index: 101;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.06) 50%, rgba(var(--accent-rgb), 0.14));
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
  font-size: 0.84rem;
}
.top-announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  padding-right: 2.5rem;
}
.top-announce-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text);
  text-align: center;
}
.top-announce-text { color: rgba(255, 255, 255, 0.88); }
.top-announce-text strong { color: #fff; font-weight: 700; }
.top-announce-cta {
  color: var(--accent-strong);
  font-weight: 600;
  transition: transform 0.15s ease;
}
.top-announce-link:hover .top-announce-cta { transform: translateX(2px); }
.top-announce-close {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-mute);
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.top-announce-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============ CONTAINER ============ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ NAV ============ */
@property --holo-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition:
    top 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    box-shadow 0.4s ease;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding 0.3s ease;
}

/* Pilule flottante noire avec un reflet qui passe de temps en temps */
.nav.is-floating {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1100px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 12px 42px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav.is-floating .nav-inner {
  padding: 0.72rem 1.3rem;
  position: relative;
  z-index: 2;
}

/* Reflet blanc qui balaie la navbar flottante */
.nav.is-floating::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: navShimmer 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes navShimmer {
  0%   { left: -45%; opacity: 0; }
  12%  { opacity: 1; }
  60%  { left: 100%; opacity: 1; }
  61%  { opacity: 0; }
  100% { left: 100%; opacity: 0; }
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-brand video { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; display: block; pointer-events: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mute);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-mute);
  transition: all 0.15s ease;
}
.nav-icon:hover { color: var(--text); border-color: var(--border-strong); }
.nav-cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #000;
  transition: all 0.15s ease;
}
.nav-cta:hover { background: var(--accent-strong); }

.nav-burger { display: none; }
.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mute);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-mobile a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.nav.is-floating:has(.nav-mobile:not([hidden])) {
  border-radius: 20px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { gap: 0.75rem; padding: 0.85rem 1rem; }
}
@media (max-width: 560px) {
  .nav-icon--desktop { display: none; }
  .nav-right { gap: 0.4rem; }
  .nav-cta { padding: 0.5rem 0.85rem; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn:hover { border-color: var(--border-strong); background: var(--bg-input); }

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* ============ HERO ============ */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
}
.hero--minimal {
  padding: 5.25rem 0 1.5rem;
}
.hero--minimal .hero-title {
  margin-bottom: 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mute);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 auto 1.5rem;
  max-width: 900px;
}
.hero-title .dot { color: var(--accent); }
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--text-mute);
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 auto 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-image {
  margin-top: 4rem;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 40px 100px -20px rgba(0, 0, 0, 0.9),
    0 0 60px -10px rgba(var(--accent-rgb), 0.15);
}
.hero-image img { width: 100%; height: auto; display: block; }

.hero--product {
  padding-top: 4.5rem;
}

/* ============ CATALOG SHOWCASE (ACCUEIL MULTI-PRODUITS) ============ */
.catalog-grid {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 850px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.catalog-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.catalog-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-3px);
  box-shadow: 0 28px 70px -20px rgba(0, 0, 0, 0.85), 0 0 40px -15px rgba(var(--accent-rgb), 0.16);
}
.catalog-card--featured {
  border-color: rgba(var(--accent-rgb), 0.25);
}
.catalog-visual {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #08080a;
  border-bottom: 1px solid var(--border);
}
.catalog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.catalog-card:hover .catalog-visual img {
  transform: scale(1.03);
}
.catalog-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.catalog-body {
  padding: 1.6rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.catalog-head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.catalog-head--solo {
  margin-bottom: 1.15rem;
}
.catalog-head--solo h3 {
  font-size: 1.45rem;
}
.catalog-sep {
  color: var(--text-dim);
  font-weight: 600;
  margin: 0 0.12rem;
}
.catalog-game {
  color: var(--accent-strong);
}
.catalog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.catalog-desc {
  margin: 0 0 1.15rem;
  color: var(--text-mute);
  font-size: 0.92rem;
  line-height: 1.55;
}
.catalog-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.catalog-chips li {
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 600;
}
.catalog-foot {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.catalog-price span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
}
.catalog-price strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ============ SECTION ============ */
.section { padding: 5rem 0; }
.section--catalog { padding: 2.25rem 0 4.5rem; }
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head--compact {
  margin-bottom: 1.75rem;
}
.section-head--compact .section-eyebrow {
  font-size: 0.85rem;
}
.section-head h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0.75rem;
}
.section-head p {
  color: var(--text-mute);
  max-width: 560px;
  margin: 0 auto;
}
.section-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============ FEATURES GRID (texte brut) ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 1.75rem 1.5rem;
  background: var(--bg);
}
.feature-icon {
  width: 18px; height: 18px;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.feature p {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ============ PRICING ============ */
.pricing-banner {
  max-width: 1050px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0a0a0b;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 30px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 50px -12px rgba(var(--accent-rgb), 0.15);
}
.pricing-banner--compact {
  margin-bottom: 1.5rem;
}
.pricing-banner video {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.pricing-split {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 850px) {
  .pricing-split { grid-template-columns: 1fr; gap: 1.5rem; }
}

.pricing-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a0b;
  border: 1px solid var(--border);
  min-height: 100%;
}
.pricing-visual img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.pricing-visual:hover img { transform: scale(1.025); }
.pricing-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
@media (max-width: 850px) {
  .pricing-visual img { min-height: 320px; }
}

.pricing {
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pricing.is-tilting {
  transition: transform 0.1s linear;
}
.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.07),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pricing.is-tilting::before {
  opacity: 1;
}
.pricing > * {
  position: relative;
  z-index: 1;
}
.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.pricing-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.pricing-tag {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.pricing-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  width: 100%;
}
.pricing-switch button {
  position: relative;
  padding: 0.6rem 0.75rem;
  background: transparent;
  color: var(--text-mute);
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pricing-switch button:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.pricing-switch button:active {
  transform: scale(0.97);
}
.pricing-switch button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.pricing-switch button.active {
  background: var(--accent);
  color: #000;
}
.pricing-switch button.just-activated {
  animation: switchPulse 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes switchPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
  }
  40% {
    transform: scale(1.045);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.08);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(212, 175, 55, 0);
  }
}
.pricing-switch-badge {
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  padding: 0.18rem 0.65rem;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0,0,0,0.3);
  pointer-events: none;
  white-space: nowrap;
}
.pricing-switch button.active .pricing-switch-badge {
  background: #000;
  color: var(--accent);
}
.pricing-switch button.active {
  background: var(--accent);
  color: #000;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}
.pricing-price-val {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
}
.pricing-price-val.flip {
  animation: priceFlip 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes priceFlip {
  0% {
    opacity: 0;
    transform: translateY(-14px);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.pricing-price-per {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.pricing-list li {
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
}
.pricing-list li:first-child { border-top: none; }
.pricing-list li::before {
  content: "";
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  flex-shrink: 0;
}
.pricing-cta { width: 100%; }

/* ============ FAQ ============ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq details {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-mute);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-body {
  padding-top: 0.75rem;
  color: var(--text-mute);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
}
.footer-brand img { width: 22px; height: 22px; }
.footer-brand video { width: 22px; height: 22px; object-fit: cover; border-radius: 50%; display: block; pointer-events: none; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* ============ MENU PREVIEW (interactif) ============ */
.menu-window {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  align-items: stretch;
  overflow: hidden;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 60px -10px rgba(212, 175, 55, 0.15);
}
@media (max-width: 820px) {
  .menu-window { grid-template-columns: 1fr; }
}

/* Sidebar */
.menu-sidebar {
  background: #050506;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.menu-brand {
  text-align: center;
  padding: 0.25rem 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.menu-brand-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.menu-brand-logo::before {
  content: "";
  position: absolute;
  inset: 20%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28), transparent 60%);
  border-radius: 50%;
  z-index: 0;
}
.menu-brand-logo img,
.menu-brand-logo video {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.55));
  position: relative;
  z-index: 2;
  display: block;
  pointer-events: none;
}

/* 3 comètes dorées en SVG qui orbitent avec une vraie traînée en arc */
@keyframes cometSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Card qui apparaît/disparaît selon l'état du toggle */
.menu-card--conditional {
  display: none;
}
.menu-card--conditional.is-shown {
  display: block;
  animation: cardReveal 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Rows conditionnelles (show/hide selon un toggle) */
.menu-row.show-if,
.show-if { display: none !important; }
.menu-row.show-if.is-shown,
.show-if.is-shown {
  display: flex !important;
  animation: cardReveal 0.25s ease;
}
.menu-row.hide-if.is-hidden,
.hide-if.is-hidden { display: none !important; }

/* Tooltip sur les ? d'aide */
.help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
  font-weight: 700;
  cursor: help;
  margin-left: 0.3rem;
}
.help::before {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.8rem;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.help:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* Touche de maintien (affichage de la hotkey assignée) */
.menu-key {
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: #fff;
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.menu-key:hover {
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--accent);
}
.menu-key.is-listening {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
  animation: keyListen 1s ease-in-out infinite;
}
@keyframes keyListen {
  0%, 100% { box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25); }
  50% { box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.55); }
}

/* Dropdown (menu-dropdown remplace les anciens menu-select) */
.menu-dropdown {
  position: relative;
  margin-top: 0.5rem;
}
.menu-dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.menu-dropdown.is-open .menu-dropdown-selected,
.menu-dropdown-selected:hover {
  border-color: rgba(212, 175, 55, 0.4);
}
.menu-dropdown-selected svg {
  width: 12px; height: 12px;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.menu-dropdown.is-open .menu-dropdown-selected svg { transform: rotate(180deg); }

.menu-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  z-index: 30;
  padding: 0.3rem;
  display: none;
}
.menu-dropdown.is-open .menu-dropdown-panel { display: block; animation: cardReveal 0.2s ease; }

.menu-dropdown-panel::-webkit-scrollbar { width: 6px; }
.menu-dropdown-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 999px; }

.menu-dropdown-item {
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.12s ease, color 0.12s ease;
}
.menu-dropdown-item:hover { background: rgba(255, 255, 255, 0.03); color: #fff; }
.menu-dropdown-item.is-active { background: rgba(212, 175, 55, 0.08); color: var(--accent); font-weight: 600; }

.menu-dropdown-item .box {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-dropdown-item.is-checked .box {
  background: var(--accent);
  border-color: var(--accent);
}
.menu-dropdown-item.is-checked .box::after {
  content: "";
  width: 7px; height: 4px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg) translate(1px, -1px);
}

.menu-dropdown-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.3rem 0.5rem;
}

/* Preset buttons (x2 x3 x4 x5...) */
.menu-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.menu-preset-btn {
  all: unset;
  text-align: center;
  padding: 0.55rem 0;
  background: var(--accent);
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.menu-preset-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}
.menu-preset-btn:active { transform: scale(0.97); }
.menu-preset-btn.is-active {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4);
}

/* Radio group (Actuel / Liste à proximité, etc.) */
.menu-radio-group {
  display: flex;
  gap: 1.25rem;
  margin: 0.3rem 0 0.75rem;
  flex-wrap: wrap;
}
.menu-radio {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s;
}
.menu-radio:hover { color: #fff; }
.menu-radio::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: background 0.15s, box-shadow 0.15s;
}
.menu-radio.is-active {
  color: #fff;
}
.menu-radio.is-active::before {
  background: var(--accent, #D4AF37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Infos véhicule (Cible / Statut) */
.veh-info {
  margin: 0.3rem 0 0.8rem;
}
.veh-info-cible {
  color: var(--accent, #D4AF37);
  font-weight: 600;
  font-size: 0.84rem;
  margin-bottom: 0.35rem;
}
.veh-info-statut {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}
.veh-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Grille d'action buttons 2x2 */
.menu-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.menu-action-grid .menu-action-btn {
  margin: 0;
  min-width: 0;
}

/* Texte informatif dans une card (ex : "Tu dois être dans un véhicule.") */
.menu-row-text {
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Bouton d'action pleine largeur (Survie : Soigner / Armure max, Véhicule, etc.) */
.menu-action-btn {
  display: block;
  width: 100%;
  background: #e8c547;
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.7rem 0.5rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.1s;
}
.menu-action-btn:hover {
  filter: brightness(1.08);
}
.menu-action-btn:active { transform: scale(0.98); }
.menu-action-btn + .menu-row { padding-top: 0.4rem; }
.menu-action-btn:not(:first-of-type) { margin-top: 0.5rem; }

/* Pill tabs (2 ou 3 options exclusives type Ghost Peek / Dash) */
.menu-pill-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.menu-pill-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.menu-pill-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.menu-pill-tab:active { transform: scale(0.98); }
.menu-pill-tab.is-active {
  background: var(--accent, #D4AF37);
  color: #000;
}

/* ========= THEME ENGINE (vars + variants appliquées en live) ========= */
.menu-window {
  --mw-bg: #0b0b0d;
  --mw-card-bg: rgba(255, 255, 255, 0.025);
  --mw-sidebar: #050506;
  --mw-border: rgba(255, 255, 255, 0.04);
  --mw-text: #ffffff;
  --mw-accent: #D4AF37;
  --mw-cat-color: #8a8a95;
  --mw-card-radius: 10px;
  --mw-window-radius: 24px;
  --mw-window-opacity: 1;
  --mw-font-scale: 1;
  background: var(--mw-bg);
  border-radius: var(--mw-window-radius);
  color: var(--mw-text);
}
.menu-window .menu-card {
  background: var(--mw-card-bg);
  border-color: var(--mw-border);
  border-radius: var(--mw-card-radius);
}
.menu-window .menu-sidebar {
  background: var(--mw-sidebar);
}
.menu-window .menu-main { font-size: calc(1em * var(--mw-font-scale)); }

/* Couleur texte : s'applique sur les labels/titres principaux */
.menu-window .menu-row-label,
.menu-window .menu-row,
.menu-window .menu-brand-name,
.menu-window .menu-nav-item,
.menu-window .menu-tab,
.menu-window .menu-card-title,
.menu-window .enl-player-name,
.menu-window .lieu-name,
.menu-window .arme-item-name,
.menu-window .arme-cat,
.menu-window .music-side-item,
.menu-window .music-playlist-name,
.menu-window .music-greet,
.menu-window .music-section-title,
.menu-window .music-artist-name,
.menu-window .music-album-title,
.menu-window .music-player-title,
.menu-window .zed-status-main,
.menu-window .rs-status-txt {
  color: var(--mw-text);
}
.menu-window .menu-row-label { opacity: 0.85; }
.menu-window .menu-nav-item { opacity: 0.72; }
.menu-window .menu-nav-item.is-active { opacity: 1; }
.menu-window .menu-nav-item.is-active { color: #000; }
.menu-window .menu-tab { opacity: 0.6; }
.menu-window .menu-tab.is-active { opacity: 1; }

/* Catégories sidebar (ASSIST / LOCAL / MONDE / DIVERS) : utilisent --mw-cat-color par défaut */
.menu-window .menu-nav-title {
  color: var(--mw-cat-color);
}
/* "Utiliser l'accent" ON : les catégories prennent l'accent */
.menu-window.categories-accent .menu-nav-title {
  color: var(--mw-accent);
}

/* Override accent-dependant pieces pour qu'ils suivent --mw-accent */
.menu-window .menu-toggle.is-on,
.menu-window .pricing-switch-opt.active {
  background: var(--mw-accent);
  border-color: var(--mw-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--mw-accent) 45%, transparent);
}
.menu-window .menu-slider .fill,
.menu-window .menu-slider .knob {
  background: var(--mw-accent);
}
.menu-window .menu-slider .knob {
  box-shadow: 0 0 0 1px var(--mw-accent), 0 0 8px color-mix(in srgb, var(--mw-accent) 40%, transparent);
}
.menu-window .menu-nav-item.is-active {
  background: var(--mw-accent);
}
.menu-window .menu-tab.is-active::after,
.menu-window .menu-card-title::after {
  background: var(--mw-accent);
}
.menu-window .menu-card-title {
  border-bottom-color: color-mix(in srgb, var(--mw-accent) 35%, transparent);
}

/* Ligne d'accent OFF : vire la barre or sous les titres de card */
.menu-window:not(.cards-accent) .menu-card-title {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}
.menu-window:not(.cards-accent) .menu-card-title::after { display: none; }

/* Icônes de section : ajoute un petit indicateur devant chaque titre */
.menu-window.cards-icons .menu-card-title::before {
  content: '●';
  color: var(--mw-accent);
  margin-right: 0.45rem;
  font-size: 0.8em;
}

/* ---- Widget style : Interrupteur (slide switch) ---- */
.menu-window.widget-interrupteur .menu-toggle {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}
.menu-window.widget-interrupteur .menu-toggle::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease, background 0.2s;
}
.menu-window.widget-interrupteur .menu-toggle::after { content: none; display: none; }
.menu-window.widget-interrupteur .menu-toggle.is-on {
  background: var(--mw-accent);
  border-color: var(--mw-accent);
}
.menu-window.widget-interrupteur .menu-toggle.is-on::before {
  transform: translateX(14px);
  background: #000;
}

/* ---- Widget style : Carré (square check) ---- */
.menu-window.widget-carre .menu-toggle {
  border-radius: 4px;
}

/* ---- Cursor style : Minimal (fin) ---- */
.menu-window.cursor-minimal .menu-slider .rail {
  height: 2px;
}
.menu-window.cursor-minimal .menu-slider .knob {
  width: 8px;
  height: 8px;
  border-width: 1px;
}

/* ---- Cursor style : Épais ---- */
.menu-window.cursor-epais .menu-slider .rail {
  height: 6px;
}
.menu-window.cursor-epais .menu-slider .knob {
  width: 16px;
  height: 16px;
}

/* ========= PARAMÈTRES - THÈME ========= */
.theme-disposition {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 0.6rem;
  margin: 0.3rem 0 0.2rem;
}
.theme-dispo-tile {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1.5px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.7rem 0.75rem 0.9rem;
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: all 0.15s;
  min-width: 0;
}
.theme-dispo-tile:hover { border-color: rgba(255,255,255,0.12); }
.theme-dispo-tile.is-active {
  background: rgba(212,175,55,0.05);
  border-color: var(--accent, #D4AF37);
}
.theme-dispo-mini {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: #0a0a0b;
}
.theme-dispo-name {
  font-weight: 700;
  font-size: 0.86rem;
}
.theme-dispo-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.theme-dispo-radio {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.theme-dispo-tile.is-active .theme-dispo-radio {
  background: var(--accent, #D4AF37);
  border-color: var(--accent, #D4AF37);
  box-shadow: 0 0 8px rgba(212,175,55,0.5);
}

.theme-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.3rem 0 0.2rem;
}
.theme-preset {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1.5px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.45rem 0.3rem 0.5rem;
  cursor: pointer;
  text-align: center;
  color: #fff;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}
.theme-preset:hover { border-color: rgba(255,255,255,0.12); }
.theme-preset.is-active {
  background: rgba(212,175,55,0.07);
  border-color: var(--accent, #D4AF37);
}
.theme-preset-check {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent, #D4AF37);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-preset-swatch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.3rem;
  background: #0a0a0b;
  border-radius: 5px;
  margin-bottom: 0.4rem;
  min-height: 24px;
}
.theme-preset-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.theme-preset-bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.theme-preset-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
}
.theme-preset-bars span:nth-child(1) { width: 90%; }
.theme-preset-bars span:nth-child(2) { width: 70%; }
.theme-preset-bars span:nth-child(3) { width: 50%; }
.theme-preset-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-preset-sang { background: linear-gradient(135deg, #2a0a0a 0%, #4a0a0a 100%); }
.theme-preset-ocean { background: linear-gradient(135deg, #0a1a2a 0%, #0a2a4a 100%); }
.theme-preset-mysth { background: linear-gradient(135deg, #2a0a2a 0%, #4a0a4a 100%); }
.theme-preset-cosmos { background: linear-gradient(135deg, #0a0a2a 0%, #1a1a3a 100%); }
.theme-preset-japon { background: linear-gradient(135deg, #2a0a0a 0%, #000 100%); }
.theme-preset-neige { background: linear-gradient(135deg, #1a1a2a 0%, #2a2a3a 100%); }
.theme-preset-term { background: linear-gradient(135deg, #0a1a0a 0%, #0a2a0a 100%); }
.theme-preset-graph { background: linear-gradient(135deg, #1a1a2a 0%, #2a1a3a 100%); }
.theme-preset-rbow { background: linear-gradient(135deg, #2a0a2a 0%, #0a1a2a 100%); }
.theme-preset-minuit { background: linear-gradient(135deg, #050520 0%, #0a0a3a 100%); }
.theme-preset-crep { background: linear-gradient(135deg, #2a1a0a 0%, #4a2a0a 100%); }
.theme-preset-neon { background: linear-gradient(135deg, #1a1a0a 0%, #2a2a0a 100%); }
.theme-preset-hall { background: linear-gradient(135deg, #2a1a0a 0%, #4a2a0a 100%); }
.theme-preset-noel { background: linear-gradient(135deg, #0a2a1a 0%, #2a0a0a 100%); }

.theme-preset-badge {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}
.theme-preset-locked { cursor: not-allowed; }
.theme-preset-locked .theme-preset-swatch { filter: brightness(0.5); }
.theme-preset-locked .theme-preset-name { opacity: 0.6; }
.theme-preset-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 20px;
  height: 20px;
  color: #fff;
  z-index: 2;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8));
}
.theme-preset-badge-limit {
  background: linear-gradient(90deg, #ff8c3a 0%, #ff5555 100%);
  color: #fff;
}
.theme-preset-badge-lock {
  background: linear-gradient(90deg, #d4af37 0%, #b8942e 100%);
  color: #000;
}

/* ========= AFFICHAGE - MUSIQUE ========= */
.music-app {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.6rem;
  background: #0d0d0f;
  border-radius: 10px;
  overflow: hidden;
  min-height: 440px;
}
.music-side {
  background: #0a0a0b;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.music-side-nav, .music-side-section {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 0.4rem;
}
.music-side-item {
  all: unset;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.music-side-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.music-side-item:hover { color: #fff; background: rgba(255,255,255,0.04); }
.music-side-item.is-active { color: #fff; background: rgba(255,255,255,0.06); }
.music-playlist-item {
  all: unset;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.music-playlist-item:hover { background: rgba(255,255,255,0.04); }
.music-playlist-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
}
.music-playlist-icon svg { width: 18px; height: 18px; }
.music-playlist-icon-liked {
  background: linear-gradient(135deg, #d4af37 0%, #f3d151 100%);
  color: #000;
}
.music-playlist-info { min-width: 0; }
.music-playlist-name {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
}
.music-playlist-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}
.music-side-foot {
  margin-top: auto;
  padding: 0.5rem 0.4rem 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.music-side-foot-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.4rem;
}
.music-side-provider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  font-size: 0.78rem;
  color: #fff;
}
.music-side-provider svg { width: 14px; height: 14px; margin-left: auto; color: rgba(255,255,255,0.4); }
.music-provider-dot {
  width: 7px;
  height: 7px;
  background: #ff5555;
  border-radius: 50%;
}

.music-main {
  padding: 1rem 1.25rem 0.5rem;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(212,175,55,0.08) 0%, transparent 160px);
}
.music-greet {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.music-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.music-pill {
  background: rgba(255,255,255,0.08);
  border: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.music-pill:hover { background: rgba(255,255,255,0.12); }
.music-pill.is-active {
  background: var(--accent, #D4AF37);
  color: #000;
}
.music-section-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1rem 0 0.3rem;
}
.music-section-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}
.music-artists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.music-artist {
  text-align: center;
}
.music-artist-pic {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}
.music-pic-a { background: linear-gradient(135deg, #4a90e2 0%, #2c5aa0 100%); }
.music-pic-b { background: linear-gradient(135deg, #555 0%, #222 100%); }
.music-pic-c { background: linear-gradient(135deg, #00d4ff 0%, #004d5e 100%); }
.music-artist-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}
.music-artist-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.76rem;
}
.music-albums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-bottom: 1rem;
}
.music-album-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}
.music-album-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-album-artist {
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  margin-top: 1px;
}
.music-art-1 { background: linear-gradient(135deg, #6b2929 0%, #2a0e0e 100%); }
.music-art-2 { background: linear-gradient(135deg, #8b1a1a 0%, #2a0808 100%); }
.music-art-3 { background: linear-gradient(135deg, #4a3a1a 0%, #1a1408 100%); }

/* Barre de lecture bas */
.music-player {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: #050506;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 0.5rem;
  border-radius: 0 0 10px 10px;
}
.music-player-track {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.music-player-art {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6b2929 0%, #2a0e0e 100%);
  border-radius: 5px;
}
.music-player-info { min-width: 0; }
.music-player-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-player-artist {
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
}
.music-player-src {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.64rem;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 3px;
}

.music-player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.music-player-btns {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.music-pb-btn {
  all: unset;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: color 0.15s;
}
.music-pb-btn:hover { color: #fff; }
.music-pb-btn svg { width: 15px; height: 15px; }
.music-pb-play {
  all: unset;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
}
.music-pb-play svg { width: 15px; height: 15px; }
.music-pb-play:hover { transform: scale(1.05); }

.music-player-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
}
.music-time {
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: center;
}
.music-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.music-bar-fill {
  height: 100%;
  width: 30%;
  background: #fff;
  border-radius: 999px;
}

.music-player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.music-vol {
  width: 70px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.music-vol-fill {
  height: 100%;
  width: 60%;
  background: rgba(255,255,255,0.6);
  border-radius: 999px;
}

/* ========= PARAMÈTRES ========= */
.param-val {
  color: var(--accent, #D4AF37);
  font-weight: 700;
  font-size: 0.84rem;
}
.param-val-red {
  color: #ff5555;
  font-weight: 700;
}
.param-val-mono {
  color: #fff;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.param-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.param-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37 0%, #f3d151 100%);
  border-radius: 999px;
}

/* ========= EXPLOITS - RESSOURCES ========= */
.rs-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  margin: 0.3rem 0 0.75rem;
}
.rs-status-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}
.rs-status-txt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
}
.rs-stat-val { color: rgba(255, 255, 255, 0.85) !important; }

/* Bouton orange (forcer / warning) */
.menu-action-btn-orange {
  background: linear-gradient(180deg, #ffb24c 0%, #e8942a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.menu-action-btn-orange:hover { filter: brightness(1.08); }

/* Variantes de bouton pour Config */
.menu-action-btn-green {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.menu-action-btn-blue {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.menu-action-btn-gray {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.menu-action-btn-purple {
  background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.menu-action-btn-green:hover,
.menu-action-btn-blue:hover,
.menu-action-btn-gray:hover,
.menu-action-btn-purple:hover { filter: brightness(1.08); }

/* ========= CONFIG ========= */
.cfg-list {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cfg-empty {
  padding: 1.5rem 1rem;
  text-align: center;
}
.cfg-empty-main {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.cfg-empty-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}
.cfg-item {
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}
.cfg-item.is-actif {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}
.cfg-item-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cfg-item-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}
.cfg-item-badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent, #D4AF37);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.cfg-item-btns {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
}
.cfg-item-btn {
  all: unset;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s;
}
.cfg-item-btn:hover { filter: brightness(1.08); }
.cfg-item-btn-blue { background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%); }
.cfg-item-btn-red { background: linear-gradient(180deg, #ff6a6a 0%, #e04e4e 100%); }
.cfg-item-meta {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
}

.cfg-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.cfg-actions .menu-action-btn { margin: 0; }
.cfg-actions-2 .menu-action-btn { margin: 0; }

/* Empty state (Ressources / Mes lieux / etc.) avec icône */
.rs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  gap: 0.75rem;
}
.rs-empty-icon {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.2);
}
.rs-empty-txt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ========= EXPLOITS - DONNER ARME ========= */
.menu-search-wrap {
  position: relative;
  margin: 0.4rem 0 0.2rem;
}
.menu-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.menu-input-icon { padding-left: 2.3rem; margin: 0; }

.arme-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.4rem 0 0.2rem;
}
.arme-cat {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.75rem 0.5rem 0.55rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  transition: all 0.15s;
  min-width: 0;
}
.arme-cat:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}
.arme-cat.is-active {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--accent, #D4AF37);
  color: #fff;
}
.arme-cat-icon {
  width: 28px;
  height: 20px;
  color: var(--accent, #D4AF37);
}
.arme-cat-name {
  font-size: 0.76rem;
  font-weight: 600;
}
.arme-cat-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent, #D4AF37);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

/* Bouton rouge (actions dangereuses groupées) */
.menu-action-btn-red {
  background: linear-gradient(180deg, #ff6a6a 0%, #e04e4e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.menu-action-btn-red:hover { filter: brightness(1.08); }

/* Liste des armes (côté droit) */
.arme-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.3rem;
  margin-right: -0.3rem;
}
.arme-list::-webkit-scrollbar { width: 5px; }
.arme-list::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 999px; }
.arme-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
}
.arme-item-icon-wrap {
  width: 38px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  flex-shrink: 0;
}
.arme-item-icon {
  width: 28px;
  height: 20px;
  color: var(--accent, #D4AF37);
}
.arme-item-name {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
}
.arme-item-btn {
  background: #e8c547;
  color: #000;
  border: 0;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: filter 0.15s;
  flex-shrink: 0;
}
.arme-item-btn:hover { filter: brightness(1.08); }

/* ========= EXPLOITS - TÉLÉPORT ========= */
.menu-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0 0.6rem;
  font-size: 0.84rem;
}
.menu-row-val-dim {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

.menu-action-btn.is-disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  cursor: not-allowed;
}
.menu-action-btn.is-disabled:hover { filter: none; }

.coord-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
  margin: 0.4rem 0 0.6rem;
}
.coord-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  padding: 0.5rem 0.6rem;
  min-width: 0;
}
.coord-field label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
}
.coord-field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  padding: 0;
}

.coord-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.coord-actions .menu-action-btn {
  margin: 0;
  min-width: 0;
  padding: 0.6rem 0.3rem;
  font-size: 0.78rem;
}

.lieu-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.3rem;
}
.lieu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 7px;
}
.lieu-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
}
.lieu-go {
  background: #e8c547;
  color: #000;
  border: 0;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: filter 0.15s;
}
.lieu-go:hover { filter: brightness(1.08); }

.save-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.3rem 0 0.3rem;
}
.save-row .menu-input {
  flex: 1;
  min-width: 0;
}
.save-row .menu-action-btn {
  width: auto;
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

/* ========= EN LIGNE ========= */
.menu-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  box-sizing: border-box;
  margin: 0.3rem 0 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}
.menu-input:focus { border-color: rgba(212, 175, 55, 0.4); }
.menu-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.enl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.enl-stat {
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  border-bottom: 2px solid transparent;
}
.enl-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.enl-stat-lbl {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
}
.enl-stat-gold .enl-stat-val { color: var(--accent, #D4AF37); }
.enl-stat-green .enl-stat-val { color: #4ade80; }
.enl-stat-red .enl-stat-val { color: #ff5555; }

.enl-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  margin-top: 0.5rem;
  gap: 0.75rem;
}
.enl-player-main { min-width: 0; flex: 1; }
.enl-player-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}
.enl-player-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
}
.enl-player-right { text-align: right; min-width: 70px; }
.enl-player-dist {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}
.enl-player-bar {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-left: auto;
  overflow: hidden;
}
.enl-player-bar-fill {
  height: 100%;
  background: #4ade80;
  border-radius: 999px;
}

.enl-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
}
.enl-empty-main {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.enl-empty-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.enl-count {
  padding: 0.35rem 0 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}
.enl-count-val { font-weight: 700; }
.enl-count-green { color: #4ade80; }
.enl-count-red { color: #ff5555; }

.enl-vide {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
}

/* ========= ZED IA [BETA] ========= */
.zed-status {
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin: 0.3rem 0 0.75rem;
}
.zed-status-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.zed-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.zed-dot-live {
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
  animation: zedPulse 1.5s ease-in-out infinite;
}
@keyframes zedPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 14px rgba(74, 222, 128, 0.9); }
}
.zed-status-main {
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 0.1rem;
}
.zed-status-main-live {
  color: #4ade80;
}
.zed-status-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.zed-copilot-desc {
  padding: 0.25rem 0 0.4rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  line-height: 1.5;
}

.zed-telemetry {
  padding: 0.5rem 0 0.2rem;
}
.zed-telemetry-dim {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}
.zed-telemetry-main {
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.5;
}
.zed-telemetry-metrics { flex-direction: column; gap: 0.4rem; }
.zed-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.zed-metric:last-child { border-bottom: 0; }
.zed-metric-val {
  color: var(--accent, #D4AF37);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 0.78rem;
}

/* Texte d'aide (sous-section Lever un véhicule) */
.menu-help {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  line-height: 1.4;
  margin-top: 0.5rem;
}
.menu-help + .menu-help { margin-top: 0.2rem; }

/* Color picker */
.menu-color-wrap {
  position: relative;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
}
.menu-color-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 45deg at 50% 50%, #fff 25%, #ccc 25% 50%, #fff 50% 75%, #ccc 75%);
  background-size: 8px 8px;
}
.menu-color-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0.95;
}
.menu-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.menu-color-input::-webkit-color-swatch { border: none; }
.menu-color-input::-moz-color-swatch { border: none; }
.menu-brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.5rem;
}
.menu-brand-v {
  font-size: 0.58rem;
  color: var(--accent);
  letter-spacing: 0;
  vertical-align: super;
}
.menu-brand-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-mute);
  font-weight: 500;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.menu-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-nav-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 0.65rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.menu-nav-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), transparent);
}
.menu-nav-item {
  all: unset;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.38rem 0.7rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.menu-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.menu-nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }
.menu-nav-item.is-active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}

/* Main */
.menu-main {
  padding: 1rem 1.5rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 740px;
}
.menu-screens {
  flex: 1;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 0.3rem;
  margin-right: -0.3rem;
}
.menu-screens::-webkit-scrollbar { width: 6px; }
.menu-screens::-webkit-scrollbar-track { background: transparent; }
.menu-screens::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 999px;
}
.menu-screens::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.55); }

/* Sidebar + main même hauteur grâce au grid, la sidebar scroll aussi si besoin */
.menu-sidebar {
  max-height: 740px;
  overflow-y: auto;
}
.menu-sidebar::-webkit-scrollbar { width: 4px; }
.menu-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 999px; }

/* Tabs */
.menu-tabs {
  display: flex;
  gap: 1.6rem;
  padding: 0.3rem 0 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  all: unset;
  padding: 0.4rem 0.75rem 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}
.menu-tab:hover { color: #fff; }
.menu-tab.is-active {
  color: #fff;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.menu-tab.is-active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Screens */
.menu-screen { display: none; }
.menu-screen.is-active { display: block; animation: menuFade 0.25s ease; }
@keyframes menuFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.menu-grid-single { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
@media (max-width: 720px) {
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
}

.menu-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

/* Card */
.menu-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.65rem 0.9rem 0.9rem;
}
.menu-card-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Rows */
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}
.menu-row-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
  font-weight: 700;
  cursor: help;
}

/* Toggle (style check rond) */
.menu-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}
.menu-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  border-radius: 1px;
  transform: translate(-55%, -75%) rotate(-45deg) scale(0);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}
.menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.menu-toggle.is-on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}
.menu-toggle.is-on::after {
  opacity: 1;
  transform: translate(-55%, -75%) rotate(-45deg) scale(1);
}

/* Slider */
.menu-slider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 170px;
}
.menu-slider input {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  color: #fff;
  font-size: 0.72rem;
  text-align: center;
  padding: 0 4px;
  font-family: inherit;
}
.menu-slider .rail {
  position: relative;
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
.menu-slider .fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--accent);
  border-radius: 999px;
}
.menu-slider .knob {
  position: absolute;
  top: 50%;
  width: 11px; height: 11px;
  background: var(--accent);
  border: 2px solid #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--accent), 0 0 8px rgba(212, 175, 55, 0.4);
  cursor: grab;
}

/* Select (dropdown fake) */
.menu-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: border-color 0.18s ease;
}
.menu-select:hover { border-color: rgba(212, 175, 55, 0.3); }
.menu-select svg {
  width: 12px; height: 12px;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Color swatch */
.menu-color {
  width: 22px; height: 16px;
  background: #fff;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

/* ============ STATUS PAGE ============ */
.hero--minimal-status {
  padding: 5rem 0 2rem;
}
.hero--minimal-status .hero-sub {
  margin-bottom: 0;
}
.status-page {
  padding: 5rem 0 4rem;
}
.status-page--clean {
  padding: 1rem 0 5rem;
}
.status-container {
  max-width: 780px;
}
.status-item--link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.status-item--link:hover {
  background: rgba(255, 255, 255, 0.025);
}
.status-state {
  font-size: 0.85rem;
  font-weight: 600;
}
.status-state--ok {
  color: #4ade80;
}
.status-discord-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}
.status-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.75rem 1.5rem 2.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.06), rgba(255, 255, 255, 0.01) 75%);
  border: 1px solid rgba(74, 222, 128, 0.18);
}
.status-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: #4ade80;
}
.status-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-mute);
}
.status-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.status-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .status-products-grid { grid-template-columns: 1fr; }
}
.status-prod-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.status-prod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.status-prod-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.status-prod-head h3 {
  margin: 0.1rem 0 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.status-prod-rows {
  display: flex;
  flex-direction: column;
}
.status-prod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}
.status-prod-row span {
  color: var(--text-mute);
}
.status-prod-row strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}
.status-prod-row strong.text-ok {
  color: #4ade80;
}
.status-prod-btn {
  width: 100%;
  margin-top: auto;
}
.status-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.status-dot-wrap {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(80, 230, 130, 0.08);
  border: 1px solid rgba(80, 230, 130, 0.25);
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}
.status-dot-live {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulseDot 2s infinite;
}
.status-dot-ok { background: #4ade80; }
.status-dot-warn { background: #fbbf24; }
.status-dot-down { background: #ef4444; }
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.status-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  line-height: 1.1;
}
.text-ok { color: #4ade80; }
.status-sub {
  color: var(--text-mute);
  font-size: 0.98rem;
  max-width: 540px;
  margin: 0 auto;
}

.status-section {
  margin-bottom: 3rem;
}
.status-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.status-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.status-uptime-badge {
  color: var(--text-mute);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.status-list {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--border);
  gap: 1.5rem;
  flex-wrap: wrap;
}
.status-item:last-child { border-bottom: none; }
.status-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 220px;
}
.status-item-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.status-item-desc {
  color: var(--text-mute);
  font-size: 0.82rem;
  margin-top: 2px;
}
.status-item-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.status-item-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-ok {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.badge-warn {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.badge-down {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-item-uptime {
  display: flex;
  gap: 2px;
  min-width: 220px;
}
.up-pip {
  width: 3px;
  height: 22px;
  border-radius: 1.5px;
  flex-shrink: 0;
}
.up-pip.up   { background: #4ade80; opacity: 0.75; }
.up-pip.warn { background: #fbbf24; opacity: 0.8; }
.up-pip.down { background: #ef4444; opacity: 0.85; }
.up-pip:hover { opacity: 1; }

@media (max-width: 700px) {
  .status-item-uptime { display: none; }
  .status-item-right { gap: 0.5rem; }
}

/* Changelog */
.changelog {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.changelog-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.3rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 560px) {
  .changelog-item { grid-template-columns: 1fr; gap: 0.5rem; }
}
.changelog-date {
  color: var(--text-mute);
  font-size: 0.82rem;
  font-weight: 500;
  padding-top: 0.1rem;
}
.changelog-ver {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.changelog-body p {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.9rem;
  line-height: 1.6;
}
.tag-feat, .tag-fix, .tag-perf {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-feat {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.tag-fix {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.tag-perf {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.status-cta {
  margin-top: 3.5rem;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.status-cta p {
  color: var(--text-mute);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

/* ============ FEEDBACK ============ */
.fb-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.fb-rating-stars {
  display: inline-flex;
  gap: 0.2rem;
}
.fb-rating-stars svg {
  width: 24px;
  height: 24px;
  fill: var(--accent, #D4AF37);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}
.fb-rating-num {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.fb-rating-num strong {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fb-rating-num span {
  color: var(--text-mute, rgba(255,255,255,0.5));
  font-size: 0.95rem;
}

.fb-breakdown {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fb-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  color: var(--text-mute, rgba(255,255,255,0.6));
  font-size: 0.9rem;
}
.fb-row-lbl { color: rgba(255, 255, 255, 0.75); }
.fb-row-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.fb-row-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent, #d4af37) 0%, #f3d151 100%);
  border-radius: 999px;
}
.fb-row-cnt {
  text-align: right;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fb-card {
  background: var(--bg-elev, rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  border-radius: 14px;
  padding: 1.3rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.2s, transform 0.2s;
}
.fb-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}
.fb-stars {
  display: inline-flex;
  gap: 0.15rem;
}
.fb-stars svg {
  width: 14px;
  height: 14px;
  fill: var(--accent, #D4AF37);
}
.fb-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.fb-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.fb-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
}
.fb-ava-1 { background: linear-gradient(135deg, #d4af37 0%, #f3d151 100%); }
.fb-ava-2 { background: linear-gradient(135deg, #4a90e2 0%, #2c5aa0 100%); color: #fff; }
.fb-ava-3 { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); color: #fff; }
.fb-ava-4 { background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%); color: #fff; }
.fb-ava-5 { background: linear-gradient(135deg, #ff6a6a 0%, #e04e4e 100%); color: #fff; }
.fb-ava-6 { background: linear-gradient(135deg, #ff8c3a 0%, #e8942a 100%); color: #000; }
.fb-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.fb-tag {
  color: var(--text-mute, rgba(255,255,255,0.45));
  font-size: 0.75rem;
}

/* ============ LOGIN NOTICE (bannière info après redirect ?login=1) ============ */
.login-notice {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 10000;
  width: calc(100% - 2rem);
  max-width: 480px;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.login-notice.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.login-notice[hidden] { display: none; }
.login-notice-inner {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: #15151a;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.login-notice-inner > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent, #D4AF37);
}
.login-notice-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.login-notice-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  line-height: 1.45;
}
.login-notice-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  flex-shrink: 0;
  align-self: flex-start;
}
.login-notice-close:hover { color: #fff; }

/* ============ LOGIN MODAL ============ */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.login-modal.is-open { opacity: 1; }
.login-modal[hidden] { display: none; }
.login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.login-panel {
  position: relative;
  background: #0e0e10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.2rem 2rem 1.8rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.1);
  transform: scale(0.95);
  transition: transform 0.22s ease;
}
.login-modal.is-open .login-panel { transform: scale(1); }
.login-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: inline-flex;
  transition: color 0.15s, background 0.15s;
}
.login-close:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.login-close svg { width: 16px; height: 16px; }
.login-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
  color: var(--accent, #D4AF37);
}
.login-icon svg { width: 22px; height: 22px; }
.login-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.login-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1.3rem;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.login-input:focus { border-color: var(--accent, #D4AF37); }
.login-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.login-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
.login-success {
  display: flex;
  gap: 0.75rem;
  text-align: left;
  padding: 0.9rem 1rem;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 10px;
  color: #4ade80;
}
.login-success[hidden],
.login-error[hidden] { display: none; }
.login-success svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.login-success-main {
  color: #4ade80;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.login-success-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.4;
}
.login-error {
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 85, 85, 0.08);
  border: 1px solid rgba(255, 85, 85, 0.25);
  border-radius: 8px;
  color: #ff5555;
  font-size: 0.85rem;
  text-align: left;
}
.login-foot {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}
.login-foot a {
  color: var(--accent, #D4AF37);
  text-decoration: none;
  font-weight: 600;
}
.login-foot a:hover { text-decoration: underline; }

/* ============ DASHBOARD CLIENT (Mon espace) ============ */
.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0.4rem;
  color: #fff;
}
.dash-sub {
  color: var(--text-mute, rgba(255,255,255,0.55));
  font-size: 0.95rem;
  margin: 0;
}
.dash-sub strong { color: var(--accent, #D4AF37); font-weight: 600; }
.dash-logout {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s, border-color 0.15s;
}
.dash-logout:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

.dash-card {
  background: var(--bg-elev, rgba(255,255,255,0.025));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.3rem;
  margin-bottom: 1.2rem;
}
.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.dash-card-title {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}
.dash-card-sub {
  margin: 0;
  color: var(--text-mute, rgba(255,255,255,0.5));
  font-size: 0.88rem;
}
.dash-loader-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.dash-loader-ver {
  color: var(--accent, #D4AF37);
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 6px;
}
.dash-loader-steps {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
}
.dash-loader-steps strong { color: var(--accent, #D4AF37); margin-right: 0.4rem; }
.dash-loader-steps code {
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 0.82rem;
  color: #fff;
}

.dash-licenses {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dash-license {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.dash-license-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dash-license-name {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.dash-license-meta {
  color: var(--text-mute, rgba(255,255,255,0.5));
  font-size: 0.8rem;
  margin-top: 2px;
}
.dash-license-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dash-license-status-ok {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}
.dash-license-key {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.dash-key {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px;
  color: var(--accent, #D4AF37);
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
  filter: blur(5px);
  transition: filter 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.dash-key.is-revealed {
  filter: none;
  user-select: all;
}
.dash-key-btn {
  all: unset;
  padding: 0 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.dash-key-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.dash-key-btn-primary {
  background: var(--accent, #D4AF37);
  border-color: var(--accent, #D4AF37);
  color: #000;
}
.dash-key-btn-primary:hover {
  background: var(--accent-strong, #e8c247);
  border-color: var(--accent-strong, #e8c247);
}
.dash-key-btn.is-copied {
  background: #4ade80;
  border-color: #4ade80;
  color: #000;
}

.dash-empty {
  padding: 2.5rem 1rem;
  text-align: center;
}
.dash-empty-icon {
  width: 40px;
  height: 40px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1rem;
}
.dash-empty-main {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.dash-empty-sub {
  color: var(--text-mute, rgba(255,255,255,0.5));
  font-size: 0.88rem;
}

.dash-help {
  text-align: center;
  color: var(--text-mute, rgba(255,255,255,0.4));
  font-size: 0.85rem;
  margin-top: 1.5rem;
}
.dash-help a { color: var(--accent, #D4AF37); text-decoration: none; }
.dash-help a:hover { text-decoration: underline; }

/* ============ PAGE GENERIC ============ */
.page {
  padding: 4rem 0;
  min-height: 60vh;
}
.page h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  margin: 0.45rem 0 0.75rem;
}
.page-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.page-sub {
  color: var(--text-mute);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.96rem;
}
.page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.legal-content h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  margin: 0 0 0.9rem;
  color: var(--text-mute);
  font-size: 0.94rem;
  line-height: 1.7;
}
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}
.legal-content strong { color: #fff; }

/* ============ FEEDBACK GRID & EXTRAS ============ */
.fb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1050px;
  margin: 2.5rem auto 0;
}
@media (max-width: 850px) {
  .fb-grid { grid-template-columns: 1fr; }
}
.fb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.fb-reply {
  padding: 0.7rem 0.85rem;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
  font-size: 0.84rem;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fb-reply strong { color: var(--accent); font-size: 0.78rem; }
.fb-more {
  text-align: center;
  margin-top: 2.25rem;
}

/* ============ DASHBOARD TABS ============ */
.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dash-tab {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mute);
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.dash-tab.is-active {
  background: var(--accent);
  color: #000;
}
.dash-license-link {
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dash-license-link:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  transform: translateY(-1px);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
::selection { background: var(--accent); color: #000; }

/* ============ ESP EDITOR OVERLAY ============ */
.esp-editor {
  position: absolute;
  inset: 0;
  background: #0a0a0c;
  border-radius: 0 24px 24px 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}
.esp-editor.is-open { opacity: 1; transform: scale(1); }
.esp-editor[hidden] { display: none; }

.esp-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #0e0e10;
  flex-shrink: 0;
}
.esp-editor-title { display: flex; align-items: baseline; gap: 0.65rem; min-width: 0; }
.esp-editor-title strong { color: #fff; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.esp-editor-sub { color: rgba(255,255,255,0.42); font-size: 0.78rem; }
.esp-editor-actions { display: flex; align-items: center; gap: 0.5rem; }
.esp-editor-reinit {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.esp-editor-reinit:hover { color: #fff; background: rgba(255,255,255,0.05); }
.esp-editor-close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  display: inline-flex;
  transition: color 0.15s, background 0.15s;
}
.esp-editor-close:hover { color: #fff; background: rgba(255,255,255,0.05); }
.esp-editor-close svg { width: 18px; height: 18px; }

.esp-editor-body {
  display: grid;
  grid-template-columns: 1fr 310px;
  flex: 1;
  min-height: 0;
}
.esp-editor-preview {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  min-width: 0;
}
.esp-canvas {
  position: relative;
  flex: 1;
  background: #050506;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  overflow: hidden;
  min-height: 320px;
}
.esp-silhouette {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95px;
  height: auto;
  opacity: 1;
  pointer-events: none;
}
.esp-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95px;
  height: 180px;
  pointer-events: none;
}
.esp-elt-tabs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.esp-elt-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.esp-elt-tab:hover { color: #fff; border-color: rgba(255,255,255,0.15); }
.esp-elt-tab.is-active {
  background: #1a1a1d;
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}

/* Right panel */
.esp-editor-panel {
  background: #09090b;
  border-left: 1px solid rgba(255,255,255,0.05);
  padding: 0.85rem 1rem;
  overflow-y: auto;
  min-width: 0;
}
.esp-editor-panel::-webkit-scrollbar { width: 5px; }
.esp-editor-panel::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 999px; }
.esp-section { margin-bottom: 1rem; }
.esp-section-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.72);
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212,175,55,0.35);
  position: relative;
}
.esp-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 24px;
  height: 2px;
  background: var(--accent, #D4AF37);
}
.esp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  min-height: 32px;
  gap: 0.5rem;
}
.esp-row-label {
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
}
.esp-row-val {
  color: var(--accent, #D4AF37);
  font-size: 0.82rem;
  font-weight: 600;
}
.esp-row .menu-slider { margin-top: 0; max-width: 170px; }
.esp-row .menu-slider input { width: 44px; font-size: 0.72rem; padding: 2px 4px; }

/* Position tabs (Haut/Gauche/Bas/Droite) */
.esp-pos-tabs {
  display: flex;
  gap: 0.3rem;
  margin: 0.5rem 0 0.6rem;
}
.esp-pos-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  padding: 0.4rem 0;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.esp-pos-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.esp-pos-tab.is-active {
  background: var(--accent, #D4AF37);
  color: #000;
  font-weight: 600;
}

/* Slots : empilent les éléments proprement autour du personnage */
.esp-slot {
  position: absolute;
  display: flex;
  pointer-events: none;
}
.esp-slot-haut {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-bottom: 6px;
  min-width: 70px;
}
.esp-slot-bas {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-top: 6px;
  min-width: 70px;
}
.esp-slot-gauche {
  right: 100%;
  top: 0; bottom: 0;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 3px;
  padding-right: 6px;
}
.esp-slot-droite {
  left: 100%;
  top: 0; bottom: 0;
  flex-direction: row;
  align-items: stretch;
  gap: 3px;
  padding-left: 6px;
}

/* Preview elements */
.esp-elt {
  position: relative;
  pointer-events: none;
}
.esp-elt--bar {
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
}
.esp-elt--bar .esp-bar-fill {
  display: block;
  width: 70%;
  height: 100%;
  opacity: 0.85;
  transition: filter 0.15s, opacity 0.15s;
}
.esp-elt--bar.is-full .esp-bar-fill {
  width: 100%;
  opacity: 1;
  filter: brightness(1.25) saturate(1.35) drop-shadow(0 0 2px currentColor);
}
/* Bars horizontales (Haut / Bas) */
.esp-elt--bar.pos-haut, .esp-elt--bar.pos-bas {
  width: 70px;
}
/* Bars verticales (Gauche / Droite) */
.esp-elt--bar.pos-gauche, .esp-elt--bar.pos-droite {
  height: 100%;
}
.esp-elt--bar.pos-gauche .esp-bar-fill,
.esp-elt--bar.pos-droite .esp-bar-fill {
  width: 100%; height: 70%; margin-top: 30%;
}
.esp-elt--bar.is-full.pos-gauche .esp-bar-fill,
.esp-elt--bar.is-full.pos-droite .esp-bar-fill {
  height: 100%; margin-top: 0;
}
.esp-pv {
  position: absolute;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.95);
  pointer-events: none;
  z-index: 2;
}
.esp-elt--bar.pos-haut .esp-pv,
.esp-elt--bar.pos-bas .esp-pv { right: -16px; top: 50%; transform: translateY(-50%); }
.esp-elt--bar.pos-gauche .esp-pv { left: -16px; top: 50%; transform: translateY(-50%); }
.esp-elt--bar.pos-droite .esp-pv { right: -16px; top: 50%; transform: translateY(-50%); }

.esp-elt--text {
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  padding: 1px 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* SVG commun (boîte, squelette) */
.esp-box-svg,
.esp-sq {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
/* Lignes de visée : trait vertical en bas du slot bas */
.esp-line {
  width: 1px;
  height: 50px;
  margin-top: 6px;
  pointer-events: none;
}

/* Mobile */
@media (max-width: 760px) {
  .esp-editor-body { grid-template-columns: 1fr; }
  .esp-editor-panel { max-height: 50%; border-left: 0; border-top: 1px solid rgba(255,255,255,0.05); }
}

/* icônes officielles GTA V dans « Donner arme » */
.arme-item-img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.25) contrast(1.05); }
.arme-item-icon-wrap { width: 74px !important; height: 36px !important; padding: 3px 6px; box-sizing: border-box; }
.arme-cat-img { display: block; width: 46px; height: 22px; object-fit: contain; filter: grayscale(1) brightness(1.2); opacity: .85; transition: opacity .15s, filter .15s; }
.arme-cat:hover .arme-cat-img, .arme-cat.is-active .arme-cat-img { opacity: 1; filter: grayscale(1) brightness(1.5); }

/* vraies photos d'artistes et pochettes d'albums (Musique) */
.music-artist-pic.has-img, .music-album-art.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; color: transparent; }

/* ===== Musique : page album façon Spotify ===== */
.music-album.is-clickable { cursor: pointer; border-radius: 8px; padding: .45rem; margin: -.45rem; transition: background .15s; }
.music-album.is-clickable:hover { background: rgba(255,255,255,.05); }
.mz-album { position: relative; margin: -1rem -1.25rem 0; padding: 1rem 1.25rem 1rem; isolation: isolate; }
.mz-album::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 300px; z-index: -1; background-image: var(--mz-cover); background-size: cover; background-position: center; filter: blur(60px) saturate(1.4); opacity: .45; }
.mz-album::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 300px; z-index: -1; background: linear-gradient(180deg, rgba(13,13,15,.2), #0d0d0f); }
.mz-back { all: unset; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: .75rem; }
.mz-back:hover { background: rgba(0,0,0,.8); }
.mz-back svg { width: 16px; height: 16px; }
.mz-head { display: flex; align-items: flex-end; gap: 1.1rem; margin-bottom: 1.1rem; }
.mz-cover { width: 136px; height: 136px; flex-shrink: 0; border-radius: 6px; background-size: cover; background-position: center; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.mz-meta { min-width: 0; }
.mz-kind { font-size: .72rem; font-weight: 600; color: #fff; }
.mz-title { margin: .2rem 0 .55rem; font-size: 2.1rem; line-height: 1.05; font-weight: 900; letter-spacing: -.03em; color: #fff; word-break: break-word; }
.mz-line { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .76rem; color: rgba(255,255,255,.7); }
.mz-line b { color: #fff; font-weight: 700; }
.mz-av { width: 22px; height: 22px; border-radius: 50%; background-size: cover; background-position: center; }
.mz-actions { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 .9rem; }
.mz-bigplay { all: unset; width: 48px; height: 48px; border-radius: 50%; background: var(--accent, #D4AF37); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .12s, filter .12s; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.mz-bigplay:hover { transform: scale(1.05); filter: brightness(1.08); }
.mz-bigplay svg { width: 20px; height: 20px; }
.mz-ico { all: unset; color: rgba(255,255,255,.6); cursor: pointer; display: inline-flex; }
.mz-ico:hover { color: #fff; }
.mz-ico svg { width: 22px; height: 22px; }
.mz-ico.is-on { color: var(--accent, #D4AF37); }
.mz-like.is-on svg { fill: currentColor; }
.mz-list { display: flex; flex-direction: column; }
.mz-row { display: grid; grid-template-columns: 28px 1fr 50px; align-items: center; gap: .75rem; padding: .4rem .5rem; border-radius: 5px; cursor: pointer; }
.mz-row:hover { background: rgba(255,255,255,.06); }
.mz-row.mz-hd { cursor: default; font-size: .7rem; color: rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; margin-bottom: .35rem; padding-bottom: .5rem; }
.mz-row.mz-hd:hover { background: none; }
.mz-row.mz-hd svg { width: 14px; height: 14px; }
.mz-num { position: relative; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); height: 18px; display: flex; align-items: center; justify-content: center; }
.mz-num b { font-weight: 400; }
.mz-rowplay, .mz-eq { display: none; }
.mz-rowplay { width: 13px; height: 13px; color: #fff; }
.mz-row:hover .mz-num b { display: none; }
.mz-row:hover .mz-rowplay { display: block; }
.mz-row.is-current .mz-num b { color: var(--accent, #D4AF37); }
.mz-row.is-playing .mz-num b, .mz-row.is-playing:hover .mz-rowplay { display: none; }
.mz-row.is-playing .mz-eq { display: flex; }
.mz-eq { align-items: flex-end; gap: 2px; height: 12px; }
.mz-eq em { width: 3px; background: var(--accent, #D4AF37); animation: mzEq .9s ease-in-out infinite; }
.mz-eq em:nth-child(2) { animation-delay: .2s; } .mz-eq em:nth-child(3) { animation-delay: .4s; }
@keyframes mzEq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.mz-tt { min-width: 0; display: flex; flex-direction: column; }
.mz-name { font-size: .86rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-row.is-current .mz-name { color: var(--accent, #D4AF37); }
.mz-by { font-size: .74rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: .35rem; }
.mz-e { font-size: .58rem; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 2px; background: rgba(255,255,255,.6); color: #0d0d0f; }
.mz-dur { text-align: right; font-size: .8rem; color: rgba(255,255,255,.55); display: flex; justify-content: flex-end; }