/* ====================================================
   MENU 2 NIVEAUX - VERSION SIMPLE
   ==================================================== */

/* BAR CACHÉE */
#bar {
    display: none;
}

/* MENU PRINCIPAL */
#menu {
    background: var(--main-color, grey);
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#menu button {
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 30%;
    cursor: pointer;
    transition: all 0.2s;
}

#menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}

#menu button.active {
    color: var(--button, deeppink);
}

/* Bouton retour */
#backback {
    padding: 5px;
}

#backback img {
    height: 20px;
    vertical-align: middle;
}

/* Séparateurs dans le menu */
#menu > span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* ========================================
   OVERLAY MENU "PLUS"
   ======================================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.menu-overlay.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-overlay-content {
    background: var(--main-dark-grey, #343a40);
    border-radius: 12px;
    padding: 30px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.overlay-title {
    color: var(--button, deeppink);
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.menu-overlay-content button,
.menu-overlay-content form button {
    display: block;
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--medium-grey, #4e4e4e);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.menu-overlay-content button:hover,
.menu-overlay-content form button:hover {
    background: #5a5a5a;
    transform: translateX(5px);
}

.menu-overlay-content button:active,
.menu-overlay-content form button:active {
    transform: scale(0.95);
}

.close-overlay {
    background: #5a5a5a !important;
    color: #aaa !important;
    margin-top: 10px;
    text-align: center !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 400px) {
    #menu button {
        font-size: 13px;
        padding: 6px 8px;
    }
}

@media (max-width: 360px) {
    #menu button {
        font-size: 12px;
        padding: 5px 6px;
    }
}
