/* ARES Outils V4.5 — Nexus intégré 7.4C */

/* Désactiver uniquement le plein écran du Nexus intégré */
.ares-v45-workspace > #ares-nexus.ares-v45-embedded {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;

  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 12px 0 0;
  padding: 0;

  background: transparent;
  overflow: visible;
  box-sizing: border-box;
}

/* Préserver la visibilité exclusive des moteurs */
.ares-v45-workspace > #ares-nexus.ares-v45-embedded[hidden] {
  display: none !important;
}

/* Adapter le panneau principal */
.ares-v45-workspace > #ares-nexus.ares-v45-embedded
.nexus-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  height: auto;
  max-height: none;

  margin: 0;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: visible;
}

/* Masquer uniquement l'en-tête natif en mode intégré */
.ares-v45-workspace > #ares-nexus.ares-v45-embedded
.nexus-head {
  display: none !important;
}

/* Préserver les outils et formulaires Nexus */
.ares-v45-workspace > #ares-nexus.ares-v45-embedded
.nexus-content {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Adaptation mobile */
@media (max-width: 760px) {
  .ares-v45-workspace > #ares-nexus.ares-v45-embedded {
    margin-top: 8px;
  }

  .ares-v45-workspace > #ares-nexus.ares-v45-embedded
  .nexus-shell {
    height: auto;
    border-radius: 10px;
  }
}
