/* Wrapper */
.hypervision-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

/* Sidebar */
.hypervision-menu {
    width: 250px;
    background-color: #3B3D3C; !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    transition: all 0.3s ease;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}
.hypervision-wrapper .hypervision-menu {
    background-color: #3B3D3C !important;
}

/* Collapsed sidebar */
.hypervision-menu.collapsed {
    width: 60px;
}
.hypervision-menu.collapsed .label {
    display: none;
}

/* Logo + toggle */
.hypervision-menu .logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

#toggleSidebar {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

/* Nav links */
.hypervision-menu nav a {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.hypervision-menu nav a:hover {
    background-color: #374151;
    color: #fff;
    transform: translateX(5px);
}

.hypervision-menu nav a.active {
    background-color: #2563eb;
    color: #fff;
}

.hypervision-menu nav .icon {
    margin-right: 10px;
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

/* Logout */
.hypervision-menu .logout {
    text-align: center;
    margin-top: 20px;
}
.hypervision-menu .logout a {
    display: inline-block;
    background-color: #ef4444;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.hypervision-menu .logout a:hover {
    background-color: #dc2626;
}

/* Content */
.hypervision-content {
    flex: 1;
    margin-left: 250px; /* largeur sidebar */
    padding: 30px;
    background-color: #f9fafb;
    transition: margin-left 0.3s ease;
}

/* Adjust margin when collapsed */
.hypervision-menu.collapsed + .hypervision-content {
    margin-left: 60px;
}

.logo h2 {
    font-size: 1.2rem;   /* avant sûrement 1.5–2rem */
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
}

nav .icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280; /* gris moderne */
}

nav a.active .icon,
nav a:hover .icon {
    color: #2563eb; /* bleu accent */
}

/* Res*
