/* menu.css - Styles pour le menu hamburger */

/* Conteneur du menu */
.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    width: 70px;
    background: #2c3e50;
}

/* Bouton hamburger */
.hamburger-menu {
    position: fixed;
    top: 24px;
    left: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    background-color: white;
}

/* Transformation du hamburger en X lorsque le menu est ouvert */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Barre latérale */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 250px;
    height: 100%;
    background-color: #2c3e50;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

/* En-tête de la barre latérale */
.sidebar-header {
    padding: 20px;
    border-bottom: 0px solid rgba(255, 255, 255, .5);
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

/* Éléments du menu */
.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    padding: 0;
}

.menu-items li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-items li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

.menu-items li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Contenu principal - ajustement pour le menu */
.main-content {
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    padding: 20px;
    padding-top: 10px;
    margin-left: 60px;
}

.main-content.shifted {
    margin-left: 250px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.content-wrapper2 {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content.shifted {
        margin-left: 0;
    }
    
    .main-content {
        padding: 15px;
        padding-top: 50px;
    }
    
    .hamburger-menu {
        top: 15px;
        left: 15px;
    }
}

/* Overlay pour fermer le menu en cliquant à l'extérieur */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

.titre-hamburger {
    color: white;; /* rouge */
}

.hamburger-menu.active .bar {
    background-color: white; /* quand actif */
}

.logo-wrapper {
    display: inline-block;
    background-color: white; /* fond blanc autour du logo */
    padding: 2px 4px;         /* espace intérieur */
    border-radius: 4px;       /* coins arrondis (optionnel) */
    margin-left: 8px;
    vertical-align: middle;
}

.logo-mini {
    height: 20px; /* ajuste selon ta préférence */
    margin-left: 8px;
    vertical-align: middle;
}

.disabled-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none;
    color: #6c757d;
}

.menu-separator2 {
    border-top: 5px solid rgba(255, 255, 255, .5);
    margin: 8px 0;
    list-style: none;
}

.menu-separator2 {
    height: 10px; /* hauteur totale ajustable */
    background: linear-gradient(
        to bottom,
        black 0px,
        black 1px,
        transparent 1px,
        transparent 5px,
        white 5px,
        white 6px,
        transparent 6px
    );
}

.menu-separator {   
    /* background: linear-gradient(to bottom, black 0px, black 1px, transparent 1px, transparent 5px, white 5px, white 6px, transparent 6px); */
    background: #f4f4f4;
    height: 2px;
}

/* logo bas hamburger */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.sidebarc {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}


.sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 20px; /* espace pour ne pas cacher le logo */
}

.sidebar-content2 {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    margin-top: 112px;
}

.sidebar-footer {
    text-align: center;
    padding: 10px;
}

.sidebar-footer2 {
    margin-top: auto; 
    text-align: center;
    padding: 10px;
}

.sidebar-logo {
    max-width: 80px;
    opacity: 0.8;
}