/* ════════════════════════════════════════════════════════════════
   SGC COMMAND CENTER — Hero card layout for Overview
   Grid 2 cols : planète 3D (gauche, ~360px) + info+kpis+actions (droite, 1fr)
   ════════════════════════════════════════════════════════════════ */

.ov-cmdcenter {
  display: grid;
  grid-template-columns: 380px 1fr;
  /* 22/05/2026 — sans grid-template-rows, la row prenait la taille de son
     contenu (info card avec KPIs + doctrine + monument → 710px) et la planète
     3D héritait de cette hauteur, ce qui rendait l'aspect du canvas en portrait
     extrême (379×710) et la sphère projetée beaucoup trop grosse, débordant
     le conteneur. On fige la row à 1fr (= hauteur explicite du conteneur). */
  grid-template-rows: 1fr;
  gap: 0;
  height: 320px;
  margin: 12px 0 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius:var(--radius-lg);
  background:
    linear-gradient(135deg,
      rgba(var(--accent-rgb), 0.12) 0%,
      rgba(8, 12, 22, 0.65) 35%,
      rgba(0, 0, 0, 0.78) 65%,
      rgba(var(--accent-rgb), 0.06) 100%);
  box-shadow:
    0 0 32px rgba(var(--accent-rgb), 0.12) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 32px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
}

/* Subtle scanline pattern over the whole card */
.ov-cmdcenter::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent, transparent 3px,
    rgba(var(--accent-rgb), 0.012) 3px,
    rgba(var(--accent-rgb), 0.012) 4px);
  pointer-events: none;
  z-index: 1;
}
/* Tech corner brackets */
.ov-cmdcenter::before {
  content: '';
  position: absolute; inset: 6px;
  border-image: linear-gradient(135deg,
    rgba(var(--accent-rgb), 0.6) 0%,
    rgba(var(--accent-rgb), 0) 18%,
    rgba(var(--accent-rgb), 0) 82%,
    rgba(var(--accent-rgb), 0.6) 100%) 1;
  border: 1px solid;
  border-radius:var(--radius);
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}
/* Animated accent pulse on top edge */
.ov-cmdcenter > .cmdc-pulse {
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(var(--accent-rgb), 0.85) 50%, transparent 100%);
  z-index: 3;
  animation: cmdcPulse 3.2s ease-in-out infinite;
}
@keyframes cmdcPulse {
  0%, 100% { opacity: 0.4; transform: scaleX(0.6); }
  50%      { opacity: 1;   transform: scaleX(1); }
}

/* ── LEFT — Planet 3D area ───────────────────────────────── */
.cmdc-planet {
  position: relative;
  height: 100%;
  /* min-height: 0 indispensable : par défaut un item de grille a une taille
     minimum = min-content, ce qui empêche le track 1fr de la contraindre
     en hauteur. Sans ça, le canvas 3D fait toujours 710px de haut. */
  min-height: 0;
  background: radial-gradient(ellipse at center,
    rgba(8, 12, 22, 0.10) 0%,
    rgba(0, 0, 0, 0.45) 100%);
  border-right: 1px solid rgba(var(--accent-rgb), 0.22);
  overflow: hidden;
}
/* Subtle starfield pattern behind the 3D planet */
.cmdc-planet::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.2px 1.2px at 48% 8%,  rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 62% 84%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 78% 38%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 92% 62%, rgba(var(--accent-rgb), 0.4), transparent),
    radial-gradient(1.4px 1.4px at 18% 56%, rgba(var(--accent-rgb), 0.3), transparent);
  z-index: 1;
  animation: cmdcStarTwinkle 6s ease-in-out infinite;
}
@keyframes cmdcStarTwinkle {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.cmdc-planet3d-host {
  position: absolute; inset: 0;
  z-index: 2;
}
.cmdc-planet-overlay {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 70%, rgba(0,0,0,0.18) 100%);
}
/* Corner tech brackets dans la zone planète */
.cmdc-planet .cmdc-corner {
  position: absolute; width: 18px; height: 18px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.7);
  z-index: 4;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.5));
}
.cmdc-planet .cmdc-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.cmdc-planet .cmdc-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.cmdc-planet .cmdc-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.cmdc-planet .cmdc-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
/* Status badge en haut à gauche de la zone planète */
.cmdc-planet-status {
  position: absolute; top: 14px; left: 36px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius:var(--radius-lg);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  font-family:var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--textbright);
  text-transform: uppercase;
}
.cmdc-planet-status.shield  { border-color: rgba(106, 217, 255, 0.7); color: #6ad9ff; }
.cmdc-planet-status.threat  { border-color: rgba(255, 110, 110, 0.7); color: #ff8a6a; }
.cmdc-planet-status.protect { border-color: rgba(108, 255, 170, 0.7); color: #6cffaa; }
.cmdc-planet-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: cmdcStatusBlink 1.6s ease-in-out infinite;
}
@keyframes cmdcStatusBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
/* Coords floating sur la planète, en bas */
.cmdc-planet-coords-float {
  position: absolute; bottom: 14px; left: 36px; right: 36px; z-index: 5;
  font-family:var(--font-mono);
  font-size:var(--fs-xs);
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 6px rgba(0, 0, 0, 1);
  display: flex; justify-content: space-between; align-items: center;
}
.cmdc-planet-coords-float .cpcf-biome {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(var(--accent-rgb), 0.85);
}

/* ── RIGHT — Info + KPIs + Actions ───────────────────────── */
.cmdc-info {
  display: flex;
  flex-direction: column;
  padding: 22px 26px;
  gap: 18px;
  position: relative;
  z-index: 2;
  /* min-height: 0 + overflow:auto pour que la row 1fr du grid parent garde
     sa hauteur de 320px même si KPIs+doctrine+monument dépassent. */
  min-height: 0;
  overflow: auto;
}

.cmdc-header {
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
  padding-bottom: 12px;
}
.cmdc-eyebrow {
  font-family:var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(var(--accent-rgb), 0.85);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cmdc-title {
  font-family:var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--textbright);
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  margin-bottom: 4px;
}
.cmdc-coords {
  font-family:var(--font-mono);
  font-size:var(--fs-base);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1.5px;
}

/* KPI grid */
.cmdc-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  flex: 1;
  align-content: start;
}
.cmdc-kpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cmdc-kpi-clickable { cursor: pointer; }
.cmdc-kpi-clickable:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.07);
}
.cmdc-kpi-lbl {
  /* O2 audit UI/UX 27/05 — labels passes 9px+0.45 alpha (illisibles) a 11px+0.72
     pour ameliorer lisibilite. Ratio val/lbl reste 18/11 (correct visual hierarchy). */
  font-family:var(--font-display);
  font-size:var(--fs-xs);
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px;
  min-width: 0;
}
/* Label long « Spécialisation » : police réduite + retour à la ligne autorisé, scopé
   à CE chip uniquement (les autres labels gardent 11px), pour l'afficher EN ENTIER
   sans déborder de la case ni tronquer en « Spécialisa ». (13/06/2026) */
#cockpitDocFocusKpi .cmdc-kpi-lbl {
  font-size: 9px; letter-spacing: 0.2px;
  white-space: normal; overflow-wrap: anywhere; line-height: 1.15;
}
.cmdc-kpi-val {
  font-family:var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--textbright);
  letter-spacing: 1px;
  line-height: 1;
}
.cmdc-kpi-val.cmdc-kpi-acc { color: var(--accent); }
.cmdc-kpi-val.cmdc-kpi-atk { color: #ff8a6a; }
.cmdc-kpi-val.cmdc-kpi-def { color: #6ad9ff; }
.cmdc-kpi-val.cmdc-kpi-warn { color: var(--warn); }
.cmdc-kpi-val.cmdc-kpi-success { color: var(--success); }
.cmdc-kpi-val.cmdc-kpi-dim { color: var(--textsoft); opacity: 0.55; }
.cmdc-kpi-val .cmdc-rank-num { color: var(--gold); font-size:var(--fs-md); margin-right: 5px; }
.cmdc-kpi-val .cmdc-rank-pts { color: var(--textbright); font-size:var(--fs-base); opacity: 0.85; }

/* ══ Hero card — Power duel ATTAQUE/DÉFENSE (passe bolder 28/06) ══
   Les deux chiffres qui définissent une planète dans un jeu de guerre passent en paire
   DOMINANTE ; les autres KPI deviennent un bandeau secondaire compact. Le gap de
   .cmdc-info passe de 18→6px (blanc gaspillé) pour que le duel + le bandeau + les boutons
   d'action tiennent dans les 320px fixes de la carte sans rien rogner. */
/* Gap resserré (18→3px) + paddings compacts : font tenir duel + bandeau + bonus Cité +
   boutons dans les 320px fixes, MÊME au pire cas (bonus de Cité visibles = +34px). */
.ov-cmdcenter .cmdc-info { gap: 3px; padding: 11px 26px; }
.ov-cmdcenter .cmdc-actions .cmdc-action { padding-top: 7px; padding-bottom: 7px; }
.cmdc-power { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 1px; }
.cmdc-power-cell {
  position: relative; display: flex; flex-direction: row;
  align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 13px; border-radius: 7px; overflow: hidden;
  border: 1px solid; transition: border-color 0.15s ease, background 0.15s ease;
}
.cmdc-power-cell .cmdc-kpi-lbl { font-size: 9px; letter-spacing: 1.2px; opacity: 0.85; flex-shrink: 0; }
/* Spécificité (0,4,0) pour battre les règles décor .cmdc-kpi-val.cmdc-kpi-atk (21px) plus bas. */
.cmdc-power-cell.atk .cmdc-kpi-val.cmdc-kpi-atk,
.cmdc-power-cell.def .cmdc-kpi-val.cmdc-kpi-def {
  font-size: 23px; letter-spacing: 0.5px; line-height: 1; text-shadow: 0 0 14px currentColor;
}
.cmdc-power-cell.atk { background: linear-gradient(135deg, rgba(255,90,60,0.15), rgba(255,90,60,0.03)); border-color: rgba(255,138,106,0.38); }
.cmdc-power-cell.def { background: linear-gradient(135deg, rgba(60,180,255,0.15), rgba(60,180,255,0.03)); border-color: rgba(106,217,255,0.38); }
.cmdc-power-cell.atk:hover { border-color: rgba(255,138,106,0.7); background: linear-gradient(135deg, rgba(255,90,60,0.22), rgba(255,90,60,0.05)); }
.cmdc-power-cell.def:hover { border-color: rgba(106,217,255,0.7); background: linear-gradient(135deg, rgba(60,180,255,0.22), rgba(60,180,255,0.05)); }
/* Bandeau secondaire compact (KPI restants en ligne label · valeur) */
.cmdc-kpis.cmdc-kpis-sec { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 5px; margin-bottom: 2px; }
.cmdc-kpis-sec .cmdc-kpi { padding: 2px 8px; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; }
.cmdc-kpis-sec .cmdc-kpi-lbl { font-size: 9px; letter-spacing: 0.4px; white-space: nowrap; }
.cmdc-kpis-sec .cmdc-kpi-val { font-size: 13px; }

/* Action buttons */
.cmdc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}
.cmdc-action {
  flex: 1;
  min-width: 90px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.40);
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--textbright);
  font-family:var(--font-body);
  font-size:var(--fs-base);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cmdc-action:hover {
  background: rgba(var(--accent-rgb), 0.20);
  border-color: rgba(var(--accent-rgb), 0.75);
  transform: translateY(-1px);
}
.cmdc-action:active { transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* Power duel (28/06) : la carte fixe 280px clippait le duel + bonus de Cité sur tablette.
     On la laisse GRANDIR au contenu (comme le phone ≤800px en height:auto) → plus de clip. */
  .ov-cmdcenter { grid-template-columns: 280px 1fr; height: auto; min-height: 280px; }
  .cmdc-info { padding: 16px 20px; gap: 12px; }
  .cmdc-title { font-size:var(--fs-2xl); }
}
@media (max-width: 800px) {
  .ov-cmdcenter {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
    height: auto;
  }
  .cmdc-planet {
    border-right: none;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.20);
  }
  .cmdc-info { padding: 14px 16px; }
  /* Power duel : annuler le padding desktop large (26px) + remettre le bandeau en 2 col. */
  .ov-cmdcenter .cmdc-info { padding: 13px 16px; }
  .cmdc-kpis.cmdc-kpis-sec { grid-template-columns: repeat(2, 1fr); }
  .cmdc-title { font-size: 18px; }
  .cmdc-kpis { grid-template-columns: repeat(2, 1fr); }
  .cmdc-action { min-width: 80px; font-size:var(--fs-xs); padding: 7px 8px; }
}
@media (max-width: 480px) {
  .ov-cmdcenter { grid-template-rows: 180px 1fr; }
  .cmdc-actions .cmdc-action { flex: 1 1 calc(50% - 4px); }
}

/* ══════════════════════════════════════════════════════════════════
   COMMAND HERO — fusion 2.5D (rework artistique)
   Backdrop faction désaturé + parallaxe souris + poussière d'étoiles
   + emblème/tagline dans le header. Vars --ccpx/--ccpy (défaut 0) pilotées
   par JS (sgc-overview-command-center.js, garde reduced-motion/lowfx/mobile).
   ══════════════════════════════════════════════════════════════════ */
.ov-cmdcenter { --ccpx: 0; --ccpy: 0; }

/* Backdrop : l'illustration de faction, désaturée + assombrie, devient le décor
   ambiant de la scène (au lieu d'un bloc concurrent). Couche la plus lointaine. */
.cmdc-backdrop {
  position: absolute; inset: -6%;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.66) brightness(0.62) contrast(1.04);
  opacity: 0.74;
  transform: translate3d(calc(var(--ccpx) * -18px), calc(var(--ccpy) * -18px), 0) scale(1.10);
  transition: transform 0.28s cubic-bezier(0.2,0.7,0.3,1);
  will-change: transform;
  pointer-events: none;
}
/* Voile dégradé : garde le côté droit (infos/stats) lisible, laisse l'ambiance
   faction respirer côté gauche (planète). */
.cmdc-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,8,16,0.10) 0%, rgba(4,8,16,0.40) 46%, rgba(4,8,16,0.82) 100%),
    radial-gradient(130% 95% at 20% 45%, transparent 0%, rgba(4,8,16,0.42) 82%);
}

/* Poussière d'étoiles : couche intermédiaire, parallaxe opposée + scintillement. */
.cmdc-dust {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 30%, rgba(255,255,255,0.55) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 72% 22%, rgba(180,220,255,0.5) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 54% 68%, rgba(255,255,255,0.45) 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 88% 58%, rgba(200,230,255,0.45) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 33% 82%, rgba(255,255,255,0.4) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 9% 64%, rgba(180,220,255,0.4) 50%, transparent 52%);
  transform: translate3d(calc(var(--ccpx) * -9px), calc(var(--ccpy) * -9px), 0);
  transition: transform 0.28s cubic-bezier(0.2,0.7,0.3,1);
  animation: cmdcDustTwinkle 4.6s ease-in-out infinite;
}
@keyframes cmdcDustTwinkle { 0%,100% { opacity: 0.55; } 50% { opacity: 0.9; } }

/* Le contenu (planète 3D + infos) passe au-dessus du décor. */
.ov-cmdcenter > .cmdc-planet,
.ov-cmdcenter > .cmdc-info { position: relative; z-index: 4; }

/* Emblème de faction dans le header + tagline. */
.cmdc-header { display: flex; align-items: flex-start; gap: 12px; }
.cmdc-emblem {
  width: 46px; height: 46px; flex: 0 0 auto; margin-top: 2px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.55));
  transform: translate3d(calc(var(--ccpx) * 6px), calc(var(--ccpy) * 6px), 0);
  transition: transform 0.28s cubic-bezier(0.2,0.7,0.3,1);
}
.cmdc-header-txt { min-width: 0; }
.cmdc-tagline {
  margin-top: 3px;
  font-family: 'Rajdhani', sans-serif;
  font-size:var(--fs-sm); font-style: italic; letter-spacing: 0.3px;
  color: rgba(var(--accent-rgb), 0.85);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.25);
}

/* Stats-puissance un peu plus dramatiques (atk rouge / def bleu) déjà gérées par
   .cmdc-kpi-atk/.cmdc-kpi-def ; on renforce juste la lisibilité sur le décor. */
.cmdc-kpi { backdrop-filter: blur(2px); background: rgba(6,12,22,0.45); }

/* ── A11Y / perf : pas de parallaxe ni de scintillement sous reduced-motion /
   lowfx. État de repos = scène centrée et visible (vars à 0, opacités pleines). ── */
@media (prefers-reduced-motion: reduce) {
  .cmdc-backdrop, .cmdc-dust, .cmdc-emblem { transition: none; transform: none; }
  .cmdc-dust { animation: none; opacity: 0.7; }
}
body.lowfx .cmdc-dust, body.perf-medium .cmdc-dust, body.no-anim .cmdc-dust { animation: none; opacity: 0.7; }
body.lowfx .cmdc-backdrop, body.perf-medium .cmdc-backdrop { transform: scale(1.10); }

/* Halo de faction qui respire derrière la planète 3D (effet « réacteur » du pont
   de commandement). z-index 1 = sous le canvas 3D (z2) → le halo nimbe la sphère. */
.cmdc-planet::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 47%,
    rgba(var(--accent-rgb), 0.34) 0%,
    rgba(var(--accent-rgb), 0.12) 30%,
    transparent 58%);
  animation: cmdcHaloPulse 5.5s ease-in-out infinite;
}
@keyframes cmdcHaloPulse { 0%, 100% { opacity: 0.72; } 50% { opacity: 1; } }

/* Stats-puissance « trophées » : atk/def plus grandes + halo coloré. */
.cmdc-kpi-val.cmdc-kpi-atk { font-size: 21px; text-shadow: 0 0 14px rgba(255, 138, 106, 0.45); }
.cmdc-kpi-val.cmdc-kpi-def { font-size: 21px; text-shadow: 0 0 14px rgba(106, 217, 255, 0.45); }

@media (prefers-reduced-motion: reduce) {
  .cmdc-planet::after { animation: none; opacity: 0.8; }
}
body.lowfx .cmdc-planet::after, body.perf-medium .cmdc-planet::after, body.no-anim .cmdc-planet::after { animation: none; opacity: 0.8; }

/* ── Dédoublonnage du rail droit sur la Vue d'ensemble ──────────────────────
   Le Command Hero affiche déjà la planète en grand. On masque donc le rendu
   planète redondant du rail (#rpHeroBanner) UNIQUEMENT sur l'Overview. Le rail
   conserve son rôle de navigateur : sélecteur de planète, statut bouclier,
   production en cours, ressources. Sur Infra (et ailleurs), le banner reste.
   Scope via body[data-section] (posé par navSection, sgc-navigation.js). */
body[data-section="overview"] #rpHeroBanner { display: none; }
/* Petit raccord : sans le banner, on resserre le haut du panneau planète. */
body[data-section="overview"] #rpPlanetView .rp-back-btn { margin-bottom: 6px; }

/* ── Header de section « terminal de commandement » (Vue d'ensemble + Infra) ──
   Encadre le titre centré de lignes HUD lumineuses qui s'estompent vers le
   texte. Scopé overview + infra pour ne pas toucher les autres sections. */
body[data-section="overview"] .sec-hdr-title,
body[data-section="infra"] .sec-hdr-title {
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
body[data-section="overview"] .sec-hdr-title::before,
body[data-section="overview"] .sec-hdr-title::after,
body[data-section="infra"] .sec-hdr-title::before,
body[data-section="infra"] .sec-hdr-title::after {
  content: ''; flex: 0 0 auto; width: 90px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.85));
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.45);
}
body[data-section="overview"] .sec-hdr-title::after,
body[data-section="infra"] .sec-hdr-title::after {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.85), transparent);
}
/* Trop étroit → on retire les lignes pour éviter de tasser le titre. */
@media (max-width: 1000px) {
  body[data-section="overview"] .sec-hdr-title::before,
  body[data-section="overview"] .sec-hdr-title::after,
  body[data-section="infra"] .sec-hdr-title::before,
  body[data-section="infra"] .sec-hdr-title::after { display: none; }
}

/* ── Dédoublonnage production sur Infrastructure ────────────────────────────
   Le panneau « Production » central (renderProductionCenter) est COMPLET
   (bâtiments + recherche + unités). Le « Production en cours » du rail droit
   en est une version condensée redondante → on le masque UNIQUEMENT sur Infra.
   (Sur l'Overview, le rail reste la seule vue prod → conservé.) */
body[data-section="infra"] #rpProdSection { display: none; }
