/* =====================================================
   NEXUS COMMANDEMENT v4.0.0
   Mode accessibilité malvoyant — grande police, fort contraste
   Desktop · Tablette · Mobile
   ===================================================== */

/* ── Variables globales ── */
:root {
  --nx-bg:       #04111f;
  --nx-bg2:      #071828;
  --nx-bg3:      #0c2240;
  --nx-bg4:      #0a1e38;
  --nx-border:   #1a3d6e;
  --nx-border2:  #2a5590;
  --nx-blue:     #44DDFF;
  --nx-blue2:    #0099cc;
  --nx-green:    #00FF88;
  --nx-red:      #FF3300;
  --nx-orange:   #FF8800;
  --nx-yellow:   #FFCC00;
  --nx-white:    #eaf4ff;
  --nx-grey:     #9abfd8;
  --nx-muted:    #4a7090;
  --nx-gold:     #FFD700;   /* v1.4.9 : utilisée par Conseil + Surplus, manquait */
  --nx-text:     #cce4ff;   /* v1.4.9 : utilisée par Conseil, manquait */
  /* Tailles accessibilité */
  --nx-font-xs:  14px;
  --nx-font-sm:  16px;
  --nx-font-md:  18px;
  --nx-font-lg:  22px;
  --nx-font-xl:  26px;
  --nx-font-xxl: 32px;
  /* Layout */
  --nx-header-h: 68px;
  --nx-nav-h:    60px;
}

/* ── Reset ── */
#nexus-app *, #nexus-login-wrap * {
  box-sizing: border-box !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
}

/* ══════════════════════════════════════════════════════
   MASQUAGE THÈME WP + PLEIN ÉCRAN
   ══════════════════════════════════════════════════════ */
body.nexus-active .site-header,body.nexus-active header.site-header,
body.nexus-active #masthead,body.nexus-active #header,body.nexus-active .header-area,
body.nexus-active .site-footer,body.nexus-active footer,body.nexus-active #footer,
body.nexus-active .entry-header,body.nexus-active .entry-title,body.nexus-active h1.entry-title,
body.nexus-active .page-title,body.nexus-active .breadcrumb,body.nexus-active #secondary,
body.nexus-active .widget-area,body.nexus-active .sidebar,body.nexus-active .page-header,
body.nexus-active .elementor-location-header,body.nexus-active .elementor-location-footer,
body.nexus-active .post-navigation,body.nexus-active .comments-area { display: none !important; }

body.nexus-active, html.nexus-html { overflow: hidden !important; background: var(--nx-bg) !important; }
body.nexus-active .site-main,body.nexus-active main,body.nexus-active .entry-content,
body.nexus-active article,body.nexus-active .container,body.nexus-active #content,
body.nexus-active #page,body.nexus-active #primary,body.nexus-active .site-content {
  margin: 0 !important; padding: 0 !important; max-width: none !important;
  width: 100% !important; background: transparent !important;
}

/* ── Barre admin WP ── */
body.admin-bar #nexus-app,
body.admin-bar #nexus-login-wrap { top: 32px !important; height: calc(100% - 32px) !important; }
@media screen and (max-width: 782px) {
  body.admin-bar #nexus-app,
  body.admin-bar #nexus-login-wrap { top: 46px !important; height: calc(100% - 46px) !important; }
}

/* ══════════════════════════════════════════════════════
   LOGIN — plein écran
   ══════════════════════════════════════════════════════ */
#nexus-login-wrap {
  position: fixed !important;
  inset: 0 !important; top: 0 !important;
  z-index: 99990 !important;
  background: radial-gradient(ellipse at 60% 40%, #071828 0%, #020c18 70%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  overflow-y: auto !important;
}
#nexus-login-wrap .nexus-login-box {
  background: var(--nx-bg) !important;
  border: 2px solid var(--nx-border2) !important;
  border-radius: 16px !important;
  padding: 40px 36px !important;
  width: 100% !important;
  max-width: 500px !important;
  text-align: center !important;
  box-shadow: 0 0 80px rgba(68,221,255,.12) !important;
}
#nexus-login-wrap .nexus-login-logo {
  font-size: var(--nx-font-xl) !important;
  font-weight: 900 !important;
  color: var(--nx-blue) !important;
  letter-spacing: 2px !important;
  margin-bottom: 6px !important;
}
#nexus-login-wrap .nexus-login-sub {
  font-size: var(--nx-font-sm) !important;
  color: var(--nx-grey) !important;
  margin-bottom: 28px !important;
}
#nexus-login-wrap .nexus-tabs {
  display: flex !important;
  gap: 6px !important;
  background: #020c18 !important;
  border-radius: 10px !important;
  padding: 5px !important;
  margin-bottom: 24px !important;
}
#nexus-login-wrap .nexus-tab {
  flex: 1 !important;
  background: none !important;
  border: none !important;
  color: var(--nx-grey) !important;
  padding: 12px !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  font-size: var(--nx-font-md) !important;
  font-weight: 700 !important;
  transition: .2s !important;
}
#nexus-login-wrap .nexus-tab.actif,
#nexus-login-wrap .nexus-tab:hover {
  background: var(--nx-bg3) !important;
  color: var(--nx-blue) !important;
  border-bottom: 2px solid var(--nx-blue) !important;
}
#nexus-login-wrap .nexus-tab-content { display: none !important; }
#nexus-login-wrap .nexus-tab-content.actif { display: block !important; }
#nexus-login-wrap .nexus-field {
  margin-bottom: 18px !important;
  text-align: left !important;
}
#nexus-login-wrap .nexus-field label {
  display: block !important;
  font-size: var(--nx-font-sm) !important;
  color: var(--nx-grey) !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  font-weight: 700 !important;
}
#nexus-login-wrap .nexus-field small {
  font-size: var(--nx-font-xs) !important;
  color: #5a7a9a !important;
  font-weight: 400 !important;
}
#nexus-login-wrap input[type="text"],
#nexus-login-wrap input[type="email"],
#nexus-login-wrap input[type="password"] {
  display: block !important;
  width: 100% !important;
  background: #020c18 !important;
  border: 2px solid var(--nx-border) !important;
  color: var(--nx-white) !important;
  padding: 14px 46px 14px 16px !important;
  border-radius: 8px !important;
  font-size: var(--nx-font-md) !important;
  outline: none !important;
  transition: border-color .2s !important;
}
#nexus-login-wrap input:focus {
  border-color: var(--nx-blue) !important;
  box-shadow: 0 0 0 3px rgba(68,221,255,.18) !important;
}
#nexus-login-wrap .nexus-pwd-wrap { position: relative !important; }
#nexus-login-wrap .nexus-eye {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: var(--nx-grey) !important;
  font-size: 20px !important;
  padding: 0 !important;
  z-index: 2 !important;
}
#nexus-login-wrap .nexus-eye:hover { color: var(--nx-blue) !important; }
#nexus-login-wrap .nexus-forgot {
  display: block !important;
  text-align: right !important;
  font-size: var(--nx-font-xs) !important;
  color: var(--nx-blue) !important;
  opacity: .8 !important;
  margin-top: 8px !important;
  cursor: pointer !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-weight: 600 !important;
}
#nexus-login-wrap .nexus-forgot:hover { opacity: 1 !important; text-decoration: underline !important; }
#nexus-login-wrap .nexus-back {
  background: none !important;
  border: none !important;
  color: var(--nx-blue) !important;
  font-size: var(--nx-font-sm) !important;
  cursor: pointer !important;
  opacity: .8 !important;
  margin-bottom: 18px !important;
  padding: 0 !important;
  display: block !important;
}
#nexus-login-wrap .nexus-btn-primary {
  display: block !important;
  width: 100% !important;
  background: linear-gradient(135deg, #c0392b, #7a1008) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 24px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: var(--nx-font-md) !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  margin-top: 12px !important;
  transition: .2s !important;
  text-transform: uppercase !important;
}
#nexus-login-wrap .nexus-btn-primary:hover {
  background: linear-gradient(135deg, #e74c3c, #a01010) !important;
  box-shadow: 0 0 24px rgba(231,76,60,.4) !important;
}
#nexus-login-wrap .nexus-btn-primary:disabled { opacity: .4 !important; cursor: not-allowed !important; }
#nexus-login-wrap .nexus-msg {
  padding: 14px 16px !important;
  border-radius: 8px !important;
  font-size: var(--nx-font-sm) !important;
  margin-bottom: 16px !important;
  text-align: left !important;
  display: none !important;
  line-height: 1.5 !important;
}
#nexus-login-wrap .nexus-msg.err {
  display: block !important;
  background: #2a0500 !important;
  border: 1px solid var(--nx-red) !important;
  color: #ffaa90 !important;
}
#nexus-login-wrap .nexus-msg.ok {
  display: block !important;
  background: #002a12 !important;
  border: 1px solid var(--nx-green) !important;
  color: #70ffb8 !important;
}

/* ══════════════════════════════════════════════════════
   APP — STRUCTURE PLEIN ÉCRAN
   ══════════════════════════════════════════════════════ */
#nexus-app {
  position: fixed !important;
  inset: 0 !important; top: 0 !important;
  z-index: 99990 !important;
  background: var(--nx-bg) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: none !important;
  border-radius: 0 !important;
}

/* ── HEADER ── */
#nexus-app .nexus-header {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: linear-gradient(180deg, #020f20 0%, #04111f 100%) !important;
  border-bottom: 3px solid var(--nx-blue) !important;
  padding: 0 24px !important;
  height: var(--nx-header-h) !important;
  min-height: var(--nx-header-h) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,.5) !important;
  overflow: hidden !important;
}
#nexus-app .nexus-header-logo {
  font-size: var(--nx-font-lg) !important;
  font-weight: 900 !important;
  color: var(--nx-blue) !important;
  letter-spacing: 2px !important;
  flex: 1 !important;
  white-space: nowrap !important;
  text-shadow: 0 0 20px rgba(68,221,255,.35) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#nexus-app .nexus-header-user {
  font-size: var(--nx-font-md) !important;
  color: var(--nx-grey) !important;
  white-space: nowrap !important;
}
#nexus-app .nexus-header-user strong {
  color: var(--nx-green) !important;
  font-weight: 900 !important;
  font-size: var(--nx-font-md) !important;
}
#nexus-app .nexus-save-status {
  font-size: var(--nx-font-sm) !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.nexus-save-pending { color: var(--nx-yellow) !important; background: #1a1400 !important; }
.nexus-save-ok      { color: var(--nx-green)  !important; background: #002a10 !important; }
.nexus-save-err     { color: #ff9080          !important; background: #2a0500 !important; }
#nexus-app .nexus-header-btns {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}
#nexus-app .nexus-btn-sm {
  background: var(--nx-bg3) !important;
  color: var(--nx-white) !important;
  border: 2px solid var(--nx-border2) !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: var(--nx-font-sm) !important;
  font-weight: 700 !important;
  transition: .2s !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  min-height: 42px !important;
}
#nexus-app .nexus-btn-sm:hover {
  border-color: var(--nx-blue) !important;
  color: var(--nx-blue) !important;
  box-shadow: 0 0 12px rgba(68,221,255,.2) !important;
}
#nexus-app .nexus-btn-save {
  background: linear-gradient(135deg, #003a1a, #005a28) !important;
  color: var(--nx-green) !important;
  border-color: #007733 !important;
}
#nexus-app .nexus-btn-save:hover {
  border-color: var(--nx-green) !important;
  box-shadow: 0 0 14px rgba(0,255,136,.25) !important;
}
#nexus-app .nexus-btn-save:disabled { opacity: .45 !important; cursor: not-allowed !important; }
#nexus-app .nexus-btn-reset {
  background: #1a0600 !important;
  color: #ffaa66 !important;
  border-color: #663300 !important;
}
#nexus-app .nexus-btn-reset:hover {
  border-color: var(--nx-red) !important;
  color: #ff8844 !important;
}

/* ── NAV ONGLETS ── */
#nexus-app .nexus-nav {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  background: #030e1c !important;
  padding: 6px 12px !important;
  border-bottom: 1px solid var(--nx-border) !important;
  overflow: visible !important;
}
#nexus-app .nexus-nav::-webkit-scrollbar { display: none !important; }
#nexus-app .nt {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border) !important;
  color: var(--nx-grey) !important;
  padding: 8px 13px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: all .15s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  height: 40px !important;
}
#nexus-app .nt:hover {
  background: var(--nx-bg3) !important;
  color: var(--nx-white) !important;
  border-color: var(--nx-border2) !important;
}
#nexus-app .nt.active {
  background: var(--nx-bg3) !important;
  color: var(--nx-blue) !important;
  border-color: var(--nx-blue) !important;
  border-bottom-width: 3px !important;
  box-shadow: 0 0 14px rgba(68,221,255,.2) !important;
  font-size: 14px !important;
}

/* ── CONTENU SCROLLABLE ── */
#nexus-content {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 24px 28px !important;
  background: var(--nx-bg) !important;
  color: var(--nx-white) !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--nx-border2) transparent !important;
}
#nexus-content::-webkit-scrollbar { width: 8px !important; }
#nexus-content::-webkit-scrollbar-thumb { background: var(--nx-border2) !important; border-radius: 4px !important; }
#nexus-content::-webkit-scrollbar-track { background: transparent !important; }

#nexus-content .nexus-section { margin-bottom: 36px !important; }
#nexus-content .nexus-section-title {
  font-size: var(--nx-font-md) !important;
  font-weight: 900 !important;
  color: var(--nx-blue) !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  border-bottom: 2px solid var(--nx-border) !important;
  padding-bottom: 12px !important;
  margin-bottom: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* ── GRILLE CARTES ── */
#nexus-content .nexus-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
}
#nexus-content .nc {
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border) !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  transition: all .18s ease !important;
  position: relative !important;
  overflow: hidden !important;
}
#nexus-content .nc.ok::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--nx-blue2), transparent) !important;
}
#nexus-content .nc.ok:hover {
  border-color: var(--nx-border2) !important;
  background: var(--nx-bg4) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.5) !important;
  transform: translateY(-2px) !important;
}
#nexus-content .nc.locked {
  opacity: .45 !important;
  border-color: #0e1e30 !important;
  background: #040e1a !important;
}
#nexus-content .nc.locked::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 3px !important;
  background: rgba(255,51,0,.3) !important;
}
#nexus-content .nc-name {
  font-size: var(--nx-font-md) !important;
  font-weight: 800 !important;
  color: var(--nx-white) !important;
  margin-bottom: 10px !important;
  line-height: 1.3 !important;
}
#nexus-content .nc.locked .nc-name { color: var(--nx-muted) !important; }
#nexus-content .nc-req {
  font-size: var(--nx-font-sm) !important;
  color: #ff8870 !important;
  margin-bottom: 12px !important;
  line-height: 1.7 !important;
}
#nexus-content .nc.ok .nc-req { color: #44ee88 !important; }
#nexus-content .nc-lvl {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 4px !important;
}
#nexus-content .nc-lvl label {
  font-size: var(--nx-font-xs) !important;
  color: var(--nx-blue) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}
#nexus-content .nc-lvl input[type="number"] {
  background: #020c18 !important;
  border: 2px solid var(--nx-border2) !important;
  color: var(--nx-blue) !important;
  width: 84px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-size: var(--nx-font-lg) !important;
  font-weight: 900 !important;
  text-align: center !important;
  outline: none !important;
  transition: border-color .2s !important;
}
#nexus-content .nc-lvl input[type="number"]:focus {
  border-color: var(--nx-blue) !important;
  box-shadow: 0 0 0 3px rgba(68,221,255,.18) !important;
}
#nexus-content .nc-lvl input[type="number"]:disabled {
  color: var(--nx-muted) !important;
  border-color: #0e1e30 !important;
}

/* ── BADGES ── */
.badge-ok     { color: var(--nx-green) !important; font-size: var(--nx-font-sm) !important; font-weight: 700 !important; }
.badge-locked { color: #ff8866 !important; font-size: var(--nx-font-sm) !important; font-weight: 700 !important; }

/* ── RESSOURCES ── */
#nexus-content .nexus-res-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}
#nexus-content .res-card {
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border) !important;
  border-radius: 12px !important;
  padding: 20px 16px !important;
  text-align: center !important;
  transition: border-color .2s !important;
}
#nexus-content .res-card:hover { border-color: var(--nx-border2) !important; }
#nexus-content .res-card label {
  display: block !important;
  font-size: var(--nx-font-sm) !important;
  color: var(--nx-grey) !important;
  margin-bottom: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}
#nexus-content .res-card input[type="number"] {
  background: #020c18 !important;
  border: 2px solid var(--nx-border2) !important;
  color: var(--nx-blue) !important;
  width: 100% !important;
  padding: 10px !important;
  border-radius: 8px !important;
  font-size: var(--nx-font-lg) !important;
  font-weight: 900 !important;
  text-align: center !important;
  outline: none !important;
}
#nexus-content .res-card input[type="number"]:focus { border-color: var(--nx-blue) !important; }

/* ── PROGRESSION ── */
#nexus-content .phase-box {
  background: linear-gradient(135deg, #050f22, #0c1e3a) !important;
  border: 2px solid var(--nx-blue2) !important;
  border-radius: 14px !important;
  padding: 24px 30px !important;
  margin-bottom: 24px !important;
  text-align: center !important;
  box-shadow: 0 0 40px rgba(0,153,204,.14) !important;
}
#nexus-content .phase-label {
  font-size: var(--nx-font-xl) !important;
  font-weight: 900 !important;
  color: var(--nx-blue) !important;
  margin-bottom: 8px !important;
  letter-spacing: 1px !important;
}
#nexus-content .phase-desc {
  font-size: var(--nx-font-md) !important;
  color: var(--nx-grey) !important;
  line-height: 1.6 !important;
}

/* ── ANALYSE ── */
#nexus-content .rec {
  background: var(--nx-bg2) !important;
  border: 1px solid var(--nx-border) !important;
  border-left: 5px solid #1a3a6a !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 18px 22px !important;
  margin-bottom: 12px !important;
}
#nexus-content .rec.crit { border-left-color: var(--nx-red)    !important; }
#nexus-content .rec.high { border-left-color: var(--nx-orange) !important; }
#nexus-content .rec.med  { border-left-color: var(--nx-blue2)  !important; }
#nexus-content .rec.low  { border-left-color: var(--nx-green)  !important; }
#nexus-content .rec-prio {
  font-size: var(--nx-font-xs) !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  padding: 4px 12px !important;
  border-radius: 5px !important;
  margin-right: 8px !important;
}
.prio-crit { background: var(--nx-red)    !important; color: #fff !important; }
.prio-high { background: var(--nx-orange) !important; color: #000 !important; }
.prio-med  { background: var(--nx-blue2)  !important; color: #fff !important; }
.prio-low  { background: var(--nx-green)  !important; color: #000 !important; }
#nexus-content .rec-action {
  font-size: var(--nx-font-lg) !important;
  font-weight: 800 !important;
  color: var(--nx-white) !important;
  margin: 10px 0 6px !important;
}
#nexus-content .rec-raison {
  font-size: var(--nx-font-md) !important;
  color: var(--nx-grey) !important;
  line-height: 1.6 !important;
}

/* ══════════════════════════════════════════════════════
   ONGLET PROGRESSION — ASSISTANT STRATÉGIQUE
   ══════════════════════════════════════════════════════ */
.prog-score-wrap {
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border2) !important;
  border-radius: 12px !important;
  padding: 18px 24px !important;
  margin-bottom: 22px !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}
.prog-score-label {
  font-size: var(--nx-font-sm) !important;
  color: var(--nx-grey) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
}
.prog-score-bar-wrap {
  flex: 1 !important;
  background: #020c18 !important;
  border-radius: 8px !important;
  height: 16px !important;
  overflow: hidden !important;
  min-width: 100px !important;
}
.prog-score-bar {
  height: 100% !important;
  border-radius: 8px !important;
  background: linear-gradient(90deg, var(--nx-blue2), var(--nx-blue)) !important;
  transition: width .5s ease !important;
}
.prog-score-pct {
  font-size: var(--nx-font-lg) !important;
  font-weight: 900 !important;
  color: var(--nx-blue) !important;
  white-space: nowrap !important;
}
.prog-alert {
  background: #1a0800 !important;
  border: 1px solid var(--nx-red) !important;
  border-left: 5px solid var(--nx-red) !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 14px 20px !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: var(--nx-font-md) !important;
  color: #ffbbaa !important;
  line-height: 1.6 !important;
}
.prog-alert-icon { font-size: 22px !important; flex-shrink: 0 !important; margin-top: 2px !important; }
.prog-alert.warn { background: #130a00 !important; border-color: var(--nx-orange) !important; color: #ffd088 !important; }
.prog-alert.tip  { background: #001a08 !important; border-color: var(--nx-green)  !important; color: #90ffcc !important; }

.prog-action-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}
.prog-action-card {
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border) !important;
  border-top: 3px solid var(--nx-green) !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  transition: all .15s !important;
}
.prog-action-card:hover { background: var(--nx-bg4) !important; transform: translateY(-2px) !important; }
.prog-action-name { font-size: var(--nx-font-md) !important; font-weight: 800 !important; color: var(--nx-white) !important; margin-bottom: 5px !important; }
.prog-action-cat  { font-size: var(--nx-font-xs) !important; color: var(--nx-grey) !important; text-transform: uppercase !important; }
.prog-action-type { font-size: var(--nx-font-xs) !important; font-weight: 700 !important; margin-top: 6px !important; }
.cat-bat  { color: #55bbff !important; }
.cat-rech { color: #dd99ff !important; }

.prog-near-card {
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border) !important;
  border-top: 3px solid var(--nx-orange) !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  margin-bottom: 10px !important;
}
.prog-near-name { font-size: var(--nx-font-md) !important; font-weight: 800 !important; color: var(--nx-white) !important; margin-bottom: 8px !important; }
.prog-near-miss { font-size: var(--nx-font-sm) !important; color: #ffcc88 !important; line-height: 1.7 !important; }
.prog-near-gap {
  display: inline-block !important;
  background: #1a0800 !important;
  border: 1px solid var(--nx-orange) !important;
  color: var(--nx-orange) !important;
  font-size: var(--nx-font-xs) !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 5px !important;
  margin-right: 6px !important;
}
.prog-domain-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 12px !important;
}
.prog-domain-card {
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border) !important;
  border-radius: 10px !important;
  padding: 16px 18px !important;
  text-align: center !important;
}
.prog-domain-icon  { font-size: 26px !important; margin-bottom: 8px !important; }
.prog-domain-name  { font-size: var(--nx-font-sm) !important; color: var(--nx-grey) !important; font-weight: 700 !important; text-transform: uppercase !important; margin-bottom: 10px !important; }
.prog-domain-bar-wrap { background: #020c18 !important; border-radius: 5px !important; height: 10px !important; overflow: hidden !important; margin-bottom: 6px !important; }
.prog-domain-bar   { height: 100% !important; border-radius: 5px !important; transition: width .4s ease !important; }
.prog-domain-pct   { font-size: var(--nx-font-md) !important; font-weight: 900 !important; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE (601–1024px)
   ══════════════════════════════════════════════════════ */
@media (min-width: 601px) and (max-width: 1024px) {
  :root {
    --nx-font-xs:  13px;
    --nx-font-sm:  15px;
    --nx-font-md:  17px;
    --nx-font-lg:  20px;
    --nx-font-xl:  24px;
    --nx-font-xxl: 28px;
    --nx-header-h: 62px;
    --nx-nav-h:    54px;
  }
  #nexus-content { padding: 18px 20px !important; }
  #nexus-content .nexus-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; }
  .prog-action-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }
  .prog-domain-grid { grid-template-columns: repeat(3, 1fr) !important; }
  /* Tablette : emoji seul, texte masqué pour éviter le débordement à 9 onglets */
  #nexus-app .nt { font-size: 20px !important; padding: 8px 10px !important; height: 44px !important; justify-content: center !important; }
  #nexus-app .nt.active { font-size: 20px !important; }
  #nexus-app .nt-label { display: none !important; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE uniquement (601–1024px)
   9 onglets : emoji seul, labels masqués
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 601px) {
  #nexus-app .nt-label { display: none !important; }
  #nexus-app .nexus-nav { flex-wrap: wrap !important; gap: 3px !important; }
  #nexus-app .nt {
    font-size: 18px !important;
    padding: 6px 10px !important;
    gap: 0 !important;
    justify-content: center !important;
    height: 38px !important;
  }
  #nexus-app .nt.active { font-size: 18px !important; }
}

/* ══════════════════════════════════════════════════════
   DESKTOP (> 1024px) — emoji + label toujours visibles
   Padding compact pour tenir les 9 onglets
   ══════════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  #nexus-app .nt-label { display: inline !important; }
  #nexus-app .nexus-nav { gap: 3px !important; padding: 6px 10px !important; flex-wrap: wrap !important; }
  #nexus-app .nt { padding: 5px 10px !important; font-size: 12px !important; gap: 4px !important; height: 34px !important; }
  #nexus-app .nt.active { font-size: 12px !important; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (jusqu'à 600px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root {
    --nx-font-xs:  13px;
    --nx-font-sm:  15px;
    --nx-font-md:  16px;
    --nx-font-lg:  19px;
    --nx-font-xl:  22px;
    --nx-font-xxl: 26px;
    --nx-header-h: auto;
    --nx-nav-h:    auto;
  }

  /* ── HEADER : 2 lignes propres ── */
  #nexus-app .nexus-header {
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 8px 12px !important;
    gap: 4px 8px !important;
  }
  #nexus-app .nexus-header-logo {
    font-size: 14px !important;
    letter-spacing: 0 !important;
    flex: 1 1 auto !important;
    order: 1 !important;
  }
  #nexus-app .nexus-header-user {
    font-size: 13px !important;
    order: 2 !important;
    flex: 0 1 auto !important;
  }
  #nexus-app .nexus-save-status {
    font-size: 12px !important;
    order: 3 !important;
    flex: 0 1 auto !important;
  }
  #nexus-app .nexus-header-btns {
    order: 4 !important;
    flex: 1 1 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    padding-top: 4px !important;
  }
  /* Sur mobile : boutons = icône seule, texte masqué */
  #nexus-app .nexus-btn-sm {
    font-size: 18px !important;
    padding: 7px 10px !important;
    min-height: 36px !important;
    min-width: 36px !important;
  }
  .btn-label { display: none !important; }

  /* ── NAV ONGLETS : grille 5+4 sur mobile ── */
  #nexus-app .nexus-nav {
    padding: 6px 8px !important;
    gap: 5px !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    flex-wrap: unset !important;
  }
  #nexus-app .nt {
    flex: unset !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    font-size: 22px !important;
    padding: 8px 4px !important;
    height: auto !important;
    min-height: 56px !important;
    min-width: 0 !important;
    width: auto !important;
    border-radius: 8px !important;
    white-space: normal !important;
    text-align: center !important;
  }
  #nexus-app .nt.active { font-size: 22px !important; }
  /* Label court sous l'emoji */
  #nexus-app .nt .nt-label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    opacity: 0.85 !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  #nexus-app .nt.active .nt-label { opacity: 1 !important; }

  /* ── CONTENU ── */
  #nexus-content { padding: 12px 10px !important; }
  #nexus-content .nexus-grid { grid-template-columns: 1fr !important; }
  #nexus-content .nexus-res-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #nexus-content .nc { padding: 12px 14px !important; }
  #nexus-content .nc-name { font-size: 15px !important; }
  #nexus-content .nc-req  { font-size: 13px !important; }
  #nexus-content .nexus-section-title { font-size: 14px !important; }
  #nexus-content .rec-action { font-size: 16px !important; }
  #nexus-content .rec-raison { font-size: 14px !important; }

  /* ── PROGRESSION ── */
  .prog-action-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .prog-domain-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .prog-score-wrap  { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  .phase-label { font-size: 18px !important; }
  .phase-desc  { font-size: 14px !important; }

  /* ── LOGIN ── */
  #nexus-login-wrap { padding: 16px !important; align-items: flex-start !important; padding-top: 24px !important; }
  #nexus-login-wrap .nexus-login-box { padding: 24px 18px !important; }
}

/* ══════════════════════════════════════════════════════
   TRÈS PETIT ÉCRAN (< 360px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  #nexus-app .nexus-header-logo { font-size: 12px !important; }
  #nexus-app .nt {
    font-size: 17px !important;
    padding: 5px 2px 4px !important;
    min-height: 46px !important;
  }
  #nexus-app .nt .nt-label { font-size: 8px !important; max-width: 46px !important; }
  #nexus-app .nexus-btn-sm { font-size: 16px !important; padding: 6px 8px !important; }
}

/* Plein écran sur toutes tailles — aucune limite de largeur */

/* ══════════════════════════════════════════════════════
   ONGLET COLONIES — v5.0.0
   ══════════════════════════════════════════════════════ */

/* ── Bandeau empire ── */
.col-empire-banner {
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border2) !important;
  border-left: 5px solid var(--nx-blue) !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 18px 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}
.col-empire-info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 !important;
}
.col-empire-count {
  font-size: var(--nx-font-xl) !important;
  font-weight: 900 !important;
  color: var(--nx-blue) !important;
  white-space: nowrap !important;
}
.col-empire-label {
  font-size: var(--nx-font-sm) !important;
  color: var(--nx-grey) !important;
  line-height: 1.5 !important;
}
.col-empire-btn {
  background: var(--nx-bg3) !important;
  border: 2px solid var(--nx-border2) !important;
  color: var(--nx-blue) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-size: var(--nx-font-sm) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all .15s !important;
}
.col-empire-btn:hover {
  border-color: var(--nx-blue) !important;
  box-shadow: 0 0 12px rgba(68,221,255,.2) !important;
}

/* ── Carte colonie ── */
.col-card {
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border) !important;
  border-radius: 12px !important;
  margin-bottom: 14px !important;
  overflow: hidden !important;
  transition: border-color .2s !important;
}
.col-card:hover { border-color: var(--nx-border2) !important; }

.col-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 18px 22px !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: background .15s !important;
}
.col-card-header:hover { background: var(--nx-bg4) !important; }

.col-card-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: var(--nx-bg3) !important;
  border: 2px solid var(--nx-border2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: var(--nx-font-lg) !important;
  font-weight: 900 !important;
  color: var(--nx-blue) !important;
  flex-shrink: 0 !important;
}

.col-card-info {
  flex: 1 !important;
  min-width: 0 !important;
}
.col-card-name {
  font-size: var(--nx-font-md) !important;
  font-weight: 800 !important;
  color: var(--nx-white) !important;
  margin-bottom: 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.col-card-prog {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.col-prog-bar-bg {
  flex: 1 !important;
  background: #020c18 !important;
  border-radius: 5px !important;
  height: 8px !important;
  overflow: hidden !important;
  min-width: 80px !important;
}
.col-prog-bar-fill {
  height: 100% !important;
  border-radius: 5px !important;
  transition: width .4s ease !important;
}
.col-prog-pct {
  font-size: var(--nx-font-xs) !important;
  color: var(--nx-grey) !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.col-card-actions {
  display: flex !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}
.col-btn-icon {
  background: var(--nx-bg3) !important;
  border: 2px solid var(--nx-border) !important;
  color: var(--nx-grey) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 17px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all .15s !important;
}
.col-btn-icon:hover {
  border-color: var(--nx-blue) !important;
  color: var(--nx-blue) !important;
}
.col-btn-del:hover {
  border-color: var(--nx-red) !important;
  color: var(--nx-red) !important;
  background: #1a0600 !important;
}

.col-toggle {
  color: var(--nx-muted) !important;
  font-size: var(--nx-font-md) !important;
  flex-shrink: 0 !important;
}

/* ── Corps étendu ── */
.col-card-body {
  border-top: 2px solid var(--nx-border) !important;
  padding: 22px 22px 26px !important;
  background: #040f1e !important;
}

.col-sub-title {
  font-size: var(--nx-font-sm) !important;
  font-weight: 900 !important;
  color: var(--nx-blue) !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  border-bottom: 1px solid var(--nx-border) !important;
  padding-bottom: 8px !important;
  margin: 20px 0 14px !important;
}
.col-sub-title:first-child { margin-top: 0 !important; }

/* Grille ressources colonie */
.col-res-grid {
  margin-bottom: 0 !important;
}

/* Grille bâtiments colonie */
.col-bat-grid {
  margin-bottom: 0 !important;
}

/* Notes colonie */
.col-notes {
  width: 100% !important;
  background: #020c18 !important;
  border: 2px solid var(--nx-border2) !important;
  color: var(--nx-white) !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  font-size: var(--nx-font-sm) !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  resize: vertical !important;
  min-height: 80px !important;
  outline: none !important;
  transition: border-color .2s !important;
  line-height: 1.6 !important;
}
.col-notes:focus {
  border-color: var(--nx-blue) !important;
  box-shadow: 0 0 0 3px rgba(68,221,255,.12) !important;
}
.col-notes::placeholder { color: var(--nx-muted) !important; }

/* ── Message vide ── */
.col-empty {
  background: var(--nx-bg2) !important;
  border: 2px dashed var(--nx-border2) !important;
  border-radius: 12px !important;
  padding: 30px 24px !important;
  text-align: center !important;
  color: var(--nx-grey) !important;
  font-size: var(--nx-font-md) !important;
  margin-bottom: 16px !important;
}

/* ── Bouton Ajouter ── */
.col-add-btn {
  width: 100% !important;
  background: transparent !important;
  border: 2px dashed var(--nx-border2) !important;
  color: var(--nx-grey) !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  font-size: var(--nx-font-md) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all .2s !important;
  display: block !important;
}
.col-add-btn:hover {
  border-color: var(--nx-blue) !important;
  color: var(--nx-blue) !important;
  background: #020c18 !important;
}

/* ── Modal colonies ── */
.col-modal-box {
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border2) !important;
  border-top: 4px solid var(--nx-blue) !important;
  border-radius: 14px !important;
  padding: 32px 36px !important;
  width: 100% !important;
  max-width: 440px !important;
  box-shadow: 0 0 60px rgba(0,0,0,.7) !important;
}
.col-modal-title {
  font-size: var(--nx-font-lg) !important;
  font-weight: 900 !important;
  color: var(--nx-blue) !important;
  margin-bottom: 20px !important;
  letter-spacing: 1px !important;
}
.col-modal-input {
  display: block !important;
  width: 100% !important;
  background: #020c18 !important;
  border: 2px solid var(--nx-border2) !important;
  color: var(--nx-white) !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  font-size: var(--nx-font-md) !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  outline: none !important;
  margin-bottom: 20px !important;
  transition: border-color .2s !important;
}
.col-modal-input:focus {
  border-color: var(--nx-blue) !important;
  box-shadow: 0 0 0 3px rgba(68,221,255,.18) !important;
}
.col-modal-input::placeholder { color: var(--nx-muted) !important; }
.col-modal-actions {
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
}
.col-modal-cancel {
  background: var(--nx-bg3) !important;
  border: 2px solid var(--nx-border2) !important;
  color: var(--nx-grey) !important;
  padding: 12px 22px !important;
  border-radius: 8px !important;
  font-size: var(--nx-font-sm) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all .15s !important;
}
.col-modal-cancel:hover {
  color: var(--nx-white) !important;
  border-color: var(--nx-grey) !important;
}
.col-modal-confirm {
  background: linear-gradient(135deg, #003a1a, #005a28) !important;
  border: 2px solid #007733 !important;
  color: var(--nx-green) !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  font-size: var(--nx-font-sm) !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  letter-spacing: .5px !important;
  transition: all .15s !important;
}
.col-modal-confirm:hover {
  border-color: var(--nx-green) !important;
  box-shadow: 0 0 14px rgba(0,255,136,.25) !important;
}

/* ── Responsive colonies ── */
@media (max-width: 600px) {
  .col-card-header { padding: 14px 12px !important; gap: 10px !important; }
  .col-card-icon   { width: 38px !important; height: 38px !important; font-size: 15px !important; }
  .col-card-body   { padding: 14px 10px 18px !important; }
  .col-modal-box   { padding: 22px 18px !important; max-width: 95vw !important; }
  .col-empire-banner { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .col-add-btn     { font-size: var(--nx-font-sm) !important; padding: 14px 16px !important; }
}

/* ════════════════════════════════════════════════════════════
   🌐 COLO SGU — Colonies d'Alliance v1.4.3
   Préfixe : .csg-*  (aucun impact sur les autres onglets)
════════════════════════════════════════════════════════════ */

/* ── Chargement ── */
.csg-loading {
  text-align: center;
  color: var(--nx-grey);
  padding: 32px;
  font-size: var(--nx-font-md);
}

.csg-empty {
  text-align: center;
  color: var(--nx-grey);
  padding: 24px 16px;
  font-size: var(--nx-font-sm);
  font-style: italic;
}

/* ── En-tête section ── */
.csg-btn-add {
  float: right;
  background: rgba(68,221,255,0.12);
  border: 1px solid rgba(68,221,255,0.35);
  border-radius: 6px;
  color: var(--nx-blue2);
  padding: 5px 12px;
  font-size: var(--nx-font-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.csg-btn-add:hover { background: rgba(68,221,255,0.22); }

.csg-gal-count {
  margin-left: 10px;
  font-size: var(--nx-font-sm);
  color: var(--nx-grey);
  font-weight: 400;
}

/* ── Carte colonie ── */
.csg-card {
  background: rgba(10,22,50,.85);
  border: 1px solid rgba(68,221,255,0.15);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.csg-card:hover { border-color: rgba(68,221,255,0.3); }

.csg-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}

.csg-card-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.csg-card-info {
  flex: 1;
  min-width: 0;
}

.csg-card-name {
  font-size: var(--nx-font-md);
  font-weight: 700;
  color: var(--nx-blue2);
}

.csg-card-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.csg-badge {
  font-size: var(--nx-font-xs);
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  color: var(--nx-text);
}
.csg-coords { background: rgba(68,221,255,0.1); color: var(--nx-blue2); }
.csg-gest   { background: rgba(100,255,150,0.1); color: var(--nx-green); }

.csg-cap-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 6px;
}

.csg-cap-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255,200,80,0.12);
  color: #FFD447;
  border: 1px solid rgba(255,200,80,0.2);
}

.csg-toggle {
  color: var(--nx-grey);
  font-size: var(--nx-font-sm);
  flex-shrink: 0;
}

/* Actions admin */
.csg-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.csg-btn-icon {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--nx-text);
  padding: 5px 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.csg-btn-icon:hover { background: rgba(68,221,255,0.15); }
.csg-btn-del:hover  { background: rgba(255,60,60,0.2); border-color: rgba(255,60,60,0.4); }

/* ── Corps carte ── */
.csg-card-body {
  padding: 14px 16px;
  border-top: 1px solid rgba(68,221,255,0.1);
}

.csg-sub-title {
  font-size: var(--nx-font-sm);
  font-weight: 700;
  color: var(--nx-blue2);
  margin: 14px 0 8px;
  letter-spacing: 0.3px;
}
.csg-sub-title:first-child { margin-top: 0; }

/* Technos */
.csg-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}

.csg-tech-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 6px 10px;
}

.csg-tech-name { font-size: var(--nx-font-xs); color: var(--nx-text); }
.csg-tech-val  { font-size: var(--nx-font-sm); font-weight: 700; color: var(--nx-gold); }

/* Capacités */
.csg-cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}

.csg-cap-item {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: var(--nx-font-xs);
  border: 1px solid rgba(255,255,255,0.07);
}
.csg-cap-item.active   { background: rgba(0,200,100,0.1); border-color: rgba(0,200,100,0.25); color: var(--nx-green); }
.csg-cap-item.inactive { background: rgba(255,255,255,0.03); color: var(--nx-grey); }

/* Bonus Uranos */
.csg-bonus-list { display: flex; flex-direction: column; gap: 4px; }
.csg-bonus-item {
  font-size: var(--nx-font-sm);
  color: #FFD447;
  padding: 4px 8px;
  background: rgba(255,200,80,0.07);
  border-radius: 5px;
}

/* Notes */
.csg-notes {
  font-size: var(--nx-font-sm);
  color: var(--nx-text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 10px 12px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.csg-updated {
  font-size: 11px;
  color: var(--nx-grey);
  margin-top: 10px;
  text-align: right;
}

/* ── Formulaire ── */
.csg-form-box {
  background: rgba(5,15,35,0.9);
  border: 1px solid rgba(68,221,255,0.3);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.csg-form-title {
  font-size: var(--nx-font-md);
  font-weight: 700;
  color: var(--nx-blue2);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(68,221,255,0.15);
}

.csg-form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  margin-bottom: 12px;
}

.csg-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.csg-form-field label {
  font-size: var(--nx-font-xs);
  color: var(--nx-grey);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.csg-form-field input,
.csg-form-notes {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(68,221,255,0.2);
  border-radius: 6px;
  color: var(--nx-text);
  padding: 7px 10px;
  font-size: var(--nx-font-sm);
  font-family: inherit;
}
.csg-form-field input:focus,
.csg-form-notes:focus {
  outline: none;
  border-color: rgba(68,221,255,0.5);
}
.csg-form-notes {
  width: 100%;
  min-height: 80px;
  resize: vertical;
}

.csg-form-section {
  font-size: var(--nx-font-sm);
  font-weight: 700;
  color: var(--nx-blue2);
  margin: 16px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(68,221,255,0.1);
}

/* Technos dans le formulaire */
.csg-tech-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.csg-tech-form-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 6px 10px;
}

.csg-tech-form-item label {
  flex: 1;
  font-size: var(--nx-font-xs);
  color: var(--nx-text);
}

.csg-tech-form-item input {
  width: 60px;
  text-align: center;
  padding: 4px 6px !important;
}

/* Capacités dans le formulaire */
.csg-cap-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  margin-bottom: 4px;
}

.csg-cap-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--nx-font-sm);
  cursor: pointer;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  transition: background 0.2s;
}
.csg-cap-check:hover { background: rgba(68,221,255,0.08); }

/* Bonus Uranos dans le formulaire */
.csg-bonus-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }

.csg-bonus-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.csg-bonus-row input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,200,80,0.2);
  border-radius: 6px;
  color: var(--nx-text);
  padding: 6px 10px;
  font-size: var(--nx-font-sm);
  font-family: inherit;
}

.csg-bonus-del {
  background: rgba(255,60,60,0.1);
  border: 1px solid rgba(255,60,60,0.2);
  border-radius: 5px;
  color: #ff6b6b;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 12px;
}

.csg-btn-bonus-add {
  background: rgba(255,200,80,0.1);
  border: 1px solid rgba(255,200,80,0.25);
  border-radius: 6px;
  color: #FFD447;
  padding: 6px 14px;
  font-size: var(--nx-font-sm);
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}
.csg-btn-bonus-add:hover { background: rgba(255,200,80,0.2); }

/* Actions formulaire */
.csg-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(68,221,255,0.1);
}

.csg-btn-cancel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--nx-grey);
  padding: 8px 18px;
  font-size: var(--nx-font-sm);
  cursor: pointer;
}
.csg-btn-cancel:hover { background: rgba(255,255,255,0.12); }

.csg-btn-save {
  background: linear-gradient(135deg, #1a6aad, #0d4a8a);
  border: 1px solid rgba(68,221,255,0.4);
  border-radius: 6px;
  color: #fff;
  padding: 8px 22px;
  font-size: var(--nx-font-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.csg-btn-save:hover { background: linear-gradient(135deg, #2080cc, #1a5aaa); }
.csg-btn-save:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Mobile ── */
@media screen and (max-width: 600px) {
  .csg-form-row { grid-template-columns: 1fr; }
  .csg-tech-form-grid { grid-template-columns: 1fr 1fr; }
  .csg-cap-form-grid  { grid-template-columns: 1fr; }
  .csg-tech-grid      { grid-template-columns: 1fr 1fr; }
  .csg-cap-grid       { grid-template-columns: 1fr; }
  .csg-cap-inline     { display: none; }
}

/* Bouton import Colo.SGU */
.csg-btn-import {
  background: linear-gradient(135deg, rgba(68,221,255,0.15), rgba(68,221,255,0.08));
  border: 1px solid rgba(68,221,255,0.4);
  border-radius: 8px;
  color: #44DDFF;
  padding: 10px 20px;
  font-size: var(--nx-font-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
  margin-top: 8px;
}
.csg-btn-import:hover { background: linear-gradient(135deg, rgba(68,221,255,0.25), rgba(68,221,255,0.15)); }
.csg-btn-import:disabled { opacity: 0.5; cursor: not-allowed; }

/* Bouton auto-fill ⚡ */
.csg-btn-autofill {
  background: rgba(255,200,80,0.12) !important;
  border-color: rgba(255,200,80,0.3) !important;
  color: #FFD447 !important;
}
.csg-btn-autofill:hover {
  background: rgba(255,200,80,0.25) !important;
}
