/* =====================================================
   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;
  /* 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;
  gap: 6px !important;
  background: #030e1c !important;
  padding: 10px 18px !important;
  border-bottom: 1px solid var(--nx-border) !important;
  min-height: var(--nx-nav-h) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
}
#nexus-app .nexus-nav::-webkit-scrollbar { display: none !important; }
#nexus-app .nt {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: var(--nx-bg2) !important;
  border: 2px solid var(--nx-border) !important;
  color: var(--nx-grey) !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: var(--nx-font-sm) !important;
  font-weight: 700 !important;
  transition: all .15s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  height: 44px !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: var(--nx-font-md) !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 : onglets compacts mais texte visible */
  #nexus-app .nt { font-size: 13px !important; padding: 8px 14px !important; }
  #nexus-app .nt.active { font-size: 14px !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 : emoji seul sur mobile ── */
  #nexus-app .nexus-nav {
    padding: 6px 8px !important;
    gap: 4px !important;
    justify-content: space-between !important;
    min-height: 0 !important;
  }
  #nexus-app .nt {
    flex: 1 1 0 !important;
    font-size: 20px !important;
    padding: 8px 4px !important;
    height: 42px !important;
    min-width: 0 !important;
    justify-content: center !important;
    border-radius: 6px !important;
  }
  #nexus-app .nt.active { font-size: 20px !important; }
  /* Masquer le texte, garder l'emoji */
  #nexus-app .nt .nt-label { display: none !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: 6px 2px !important; height: 38px !important; }
  #nexus-app .nexus-btn-sm { font-size: 16px !important; padding: 6px 8px !important; }
}

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