/* Mobile Mega Menu Styles - Style comme l'image */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100;200;300;400;500;600;700;800;900&display=swap');

.mobile-mega-menu-user-info {
    background: #F0F8FA;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Lexend Deca', sans-serif;
}

.mobile-mega-menu-greeting {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 6px;
    display: block;
    line-height: 1.2;
    font-family: 'Lexend Deca', sans-serif;
}

.mobile-mega-menu-link-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mobile-mega-menu-user-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-mega-menu-user-icon svg {
    width: 100%;
    height: 100%;
}

.mobile-mega-menu-username {
    font-size: 16px;
    text-decoration: underline;
    color: #000;
    font-weight: normal;
    font-family: 'Lexend Deca', sans-serif;
}

.mobile-mega-menu-link {
    font-size: 16px;
    color: #000;
    text-decoration: underline!important;
    font-weight: normal;
    transition: color 0.3s ease;
    font-family: 'Lexend Deca', sans-serif;
}

.mobile-mega-menu-link:hover {
    color: #007bff;
}


/* ===== MOBILE MEGA MENU WIDGET STYLES ===== */

/* Widget principal */
.mobile-mega-menu-widget {
    width: 100%;
    max-width: 100%;
}

/* Bouton principal */
.mobile-mega-menu-trigger {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-mega-menu-trigger:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mobile-mega-menu-trigger-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-mega-menu-trigger-text-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mobile-mega-menu-trigger-text {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    font-family: 'Lexend Deca', sans-serif;
    margin: 0 0 4px 0;
}

.mobile-mega-menu-trigger-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    line-height: 1.3;
}

.mobile-mega-menu-trigger-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.mobile-mega-menu-trigger-arrow svg {
    width: 100%;
    height: 100%;
}

/* Conteneur des catégories */
.mobile-mega-menu-categories {
    display: none;
    margin-top: 10px;
}

.mobile-mega-menu-categories.show {
    display: block;
}

/* Éléments de catégorie */
.mobile-mega-menu-category-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Effets hover uniquement sur desktop */
@media (hover: hover) and (pointer: fine) {
    .mobile-mega-menu-category-item:hover {
        background: #f8f9fa;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }
}

/* Désactiver les effets hover sur mobile */
.mobile-mega-menu-category-item.no-hover {
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Style pour le lien "Voir tout" */
.mobile-mega-menu-see-all {
    background: linear-gradient(to right, #ffffff, #f8f9fa) !important;
    border: 1px solid #e9ecef;
    margin-top: 8px;
}

.mobile-mega-menu-see-all .mobile-mega-menu-category-title {
    color: #000;
    font-weight: 500;
}

.mobile-mega-menu-see-all .mobile-mega-menu-category-subtitle {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.mobile-mega-menu-category-thumbnail {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.mobile-mega-menu-category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-mega-menu-category-content {
    flex: 1;
}

.mobile-mega-menu-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    font-family: 'Lexend Deca', sans-serif;
}

.mobile-mega-menu-category-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    line-height: 1.3;
}

.mobile-mega-menu-category-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.mobile-mega-menu-category-arrow svg {
    width: 100%;
    height: 100%;
}

/* Header de navigation */
.mobile-mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    order: -1; /* Placer le header en premier */
}

.mobile-mega-menu-back-button {
    background: #D9D9D9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-mega-menu-back-button:hover {
    background: #c0c0c0;
    transform: scale(1.05);
}

.mobile-mega-menu-back-button svg {
    width: 20px;
    height: 20px;
}

.mobile-mega-menu-current-category {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    font-family: 'Lexend Deca', sans-serif;
    text-align: right;
    flex: 1;
    margin: 0 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-mega-menu-user-info {
        padding: 16px;
        max-width: 100%;
    }
    
    .mobile-mega-menu-greeting {
        font-size: 20px;
    }
    
    .mobile-mega-menu-username,
    .mobile-mega-menu-link {
        font-size: 14px;
    }

    .mobile-mega-menu-trigger {
        padding: 18px 16px;
    }

    .mobile-mega-menu-trigger-text {
        font-size: 15px;
    }

    .mobile-mega-menu-category-item {
        padding: 12px 14px;
    }

    .mobile-mega-menu-category-thumbnail {
        width: 50px;
        height: 50px;
    }

    .mobile-mega-menu-category-title {
        font-size: 14px;
    }

    .mobile-mega-menu-category-subtitle {
        font-size: 12px;
    }
}