.menu-compact {
    width: 50px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 5px 0px;
    margin: 15px;
    position: fixed;
    left: 0;
    top: 55.55%;
    transform: translateY(-50%);
    z-index: 999;
}

.menu-compact .menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-compact .menu-items li {
    margin: 0;
    text-align: center;
}

.menu-compact .menu-items a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    position: relative;
}

.menu-compact .menu-items a:hover {
    background: #f5f6fa;
    transform: scale(1.1);
}

.menu-compact .menu-items a i {
    font-size: 20px;
    color: #3498db;
}

.menu-compact .menu-items .deconnexion {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.menu-compact .menu-items .deconnexion a i {
    color: #e74c3c;
}

.menu-compact .menu-items a.active {
    background: rgba(52, 152, 219, 0.2); /* Couleur par défaut avec transparence */
}

.menu-compact .menu-items a.active i {
    color: #007bff; /* Bleu, à adapter selon ta charte */
}

/* Styles spécifiques pour chaque icône active */
.menu-compact .menu-items a.active[href="/index"] {
    background: rgba(49, 58, 66, 0.2); /* Couleur de l'icône Accueil */
}

.menu-compact .menu-items a.active[href="/index"] i {
    color: #313A42;
}

.menu-compact .menu-items a.active[href="/saisieproduction"] {
    background: rgba(60, 134, 255, 0.2); /* Couleur de l'icône Agrégation */
}

.menu-compact .menu-items a.active[href="/saisieproduction"] i {
    color: #3C86FF;
}

.menu-compact .menu-items a.active[href="/crm"] {
    background: rgba(255, 191, 12, 0.2); /* Couleur de l'icône CRM */
}

.menu-compact .menu-items a.active[href="/crm"] i {
    color: #ffbf0c;
}

.menu-compact .menu-items a.active[href="/agenda"] {
    background: rgba(131, 56, 236, 0.2); /* Couleur de l'icône Agenda */
}

.menu-compact .menu-items a.active[href="/agenda"] i {
    color: #8338EC;
}

.menu-compact .menu-items a.active[href="/contact"] {
    background: rgba(251, 87, 8, 0.2); /* Couleur de l'icône Contact */
}

.menu-compact .menu-items a.active[href="/contact"] i {
    color: #FB5708;
}

/* Tooltip au survol */
.menu-compact .menu-items a::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    background: #34495e;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
}

.menu-compact .menu-items a:hover::after {
    opacity: 1;
    visibility: visible;
}

.menu-items .separator {
    height: 1px;
    background-color: rgba(132, 129, 129, 0.2);
    margin: 10px 0;
    list-style: none;
}


/* Responsive */
@media (max-width: 768px) {
    .menu-compact {
        width: 100%;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        transform: none;
        margin: 0;
        border-radius: 10px 10px 0 0;
        padding: 10px;
    }
    
    .menu-compact .menu-items {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .menu-compact .menu-items .deconnexion {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .menu-compact .menu-items a::after {
        display: none;
    }

    #main-content {
        margin-left: 0;
        margin-bottom: 70px;
    }
} 