<!-- ===== Fix global: fond & footer stick ===== -->
<style>
  :root { --bg-dark: #0b0f19; } /* même ton que le thème dark */

  html, body { height: 100%; background: var(--bg-dark); }
  body { margin: 0; overflow-x: hidden; }

  /* Structure Corona Admin */
  .container-scroller {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
  }
  .page-body-wrapper { flex: 1 0 auto; background: transparent; }
  .main-panel { display: flex; flex-direction: column; min-height: 0; }
  .content-wrapper { flex: 1 0 auto; background: transparent; }

  /* Footer collé au fond sans bordure/bloc clair */
  .footer {
    flex-shrink: 0;
    background: transparent !important;
    border: 0 !important;
    margin: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .footer .container, .footer .container-fluid { background: transparent !important; }

  /* Optionnel: harmonise le fond des zones clés pour éviter tout “break” clair */
  .horizontal-menu, .bottom-navbar, .navbar,
  .card, .table, .block, .modal-content {
    background-color: transparent;
  }

  /* Petits ajustements spacing (facultatif) */
  .grid-margin { margin-bottom: 1rem; }
  
  /* Hauteur pleine page */
  html, body { height: 100%; margin: 0; }

  /* Colonne globale */
  .container-scroller {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  /* Le header (top navbar + mega menu) ne se réduit pas */
  .horizontal-menu { flex-shrink: 0; }

  /* Zone centrale (occupe tout l'espace restant) */
  .page-body-wrapper {
    flex: 1 0 auto;
    display: flex;
  }

  /* Panneau principal en colonne */
  .main-panel {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0; /* évite les débords */
  }

  /* Contenu extensible pour pousser le footer */
  .content-wrapper {
    flex: 1 0 auto;
  }

  /* Footer collé au bas */
  .footer {
    margin-top: auto !important;
    background: transparent;
    border: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* (Optionnel) évite tout espace blanc parasite */
  body { background: #0b0f19; }
  .container-scroller, .page-body-wrapper, .main-panel, .content-wrapper { background: transparent; }
</style>
