/* Page responsive — styles personnalisés */

:root {
  --sidebar-width: 240px;
  --topbar-height: 56px;
}

body {
  padding-top: var(--topbar-height);
  min-height: 100vh;
}

/* Barre du haut */
.topbar {
  min-height: var(--topbar-height);
  z-index: 1030;
}

/* Menu à gauche (sidebar) */
.sidebar {
  width: 100%;
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  min-height: calc(100vh - var(--topbar-height));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar .nav-link {
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.sidebar .nav-link:hover {
  background-color: rgba(13, 110, 253, 0.08);
}

.sidebar .nav-link.active {
  background-color: var(--bs-primary);
  color: #fff !important;
}

/* Mobile : menu repliable */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    z-index: 1020;
    max-width: var(--sidebar-width);
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.show {
    transform: translateX(0);
    box-shadow: 0.25rem 0 0.5rem rgba(0, 0, 0, 0.15);
  }

  .sidebar-backdrop {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1015;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
  }

  .topbar {
    position: sticky;
    top: 0;
  }

  .sidebar {
    position: sticky;
    top: var(--topbar-height);
    min-height: auto;
    max-height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
  }
}

/* Contenu principal */
main {
  min-width: 0;
}

/* Dropdown dans la sidebar */
.sidebar .dropdown-menu {
  position: static !important;
  transform: none !important;
  border: 0;
  box-shadow: none;
  padding-left: 0.75rem;
}

.sidebar .dropdown-item {
  border-radius: 0.375rem;
}

/* Bloc GoZmoke : fond fluo, texte très contrasté pour lisibilité */
.gozmoke-box {
  background-color: #b8fff9 !important;
  color: #0a2e32 !important;
  border: 1px solid #00c7b7;
  padding: 1.25rem 1.5rem !important;
}

.gozmoke-box .h6,
.gozmoke-box h3 {
  color: #0a2e32 !important;
  font-weight: 600;
}

.gozmoke-box p,
.gozmoke-box .small {
  color: #0a2e32 !important;
}

.gozmoke-box .btn-primary {
  background-color: #00c7b7 !important;
  border-color: #00c7b7 !important;
  color: #fff !important;
}
