/* RESET TOTAL - FORCER LE POSITIONNEMENT NORMAL */
#gg-menu-positioned {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    overflow: visible !important;
    display: block !important;
    height: auto !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1 !important;
}

#gg-menu-positioned.gg-menu--sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

/* FORCER LE BODY À NE PAS ÊTRE MODIFIÉ */
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    position: static !important;
}

/* FORCER LE MENU À ÊTRE UN BLOC NORMAL */
.gg-menu-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    overflow: visible !important;
}

/* TOUT EST STATIQUE - PAS DE STICKY */
.gg-menu-sticky {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
    background: #fff !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* PAS DE PADDING AU BODY */
body.gg-menu-is-sticky {
    padding-top: 0 !important;
}

body.gg-menu-active {
    padding-top: 0 !important;
}

/* Styles normaux du menu */
.gg-menu {
    width: 100%;
    height: auto;
    overflow: visible;
    position: static;
    display: block;
}

.gg-menu__nav {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.gg-menu__scroller {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    max-height: 220px;
    gap: 28px;
    padding: 10px 20px;
    padding-left: 12px;
    overflow-x: auto;
    overflow-y: auto;
    white-space: nowrap;
    scroll-snap-type: x proximity;
    scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
}

.gg-menu__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f58220;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gg-menu__arrow:hover {
    background: #d96b00;
}

.gg-menu__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gg-menu__scroller::-webkit-scrollbar {
    display: none;
}

.gg-menu__item {
    scroll-snap-align: start;
    min-height: 92px;
}

.gg-menu__item:first-child {
    margin-left: 4px;
}

.gg-menu__item.is-home {
    margin-left: 0;
    padding-left: 8px;
    scroll-margin-left: 16px;
}

.gg-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #26363e;
    min-width: 80px;
    padding: 10px 5px;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.gg-menu__item:hover {
    color: #f58220;
    border-bottom-color: #f58220;
    transform: translateY(-2px);
}

.gg-menu__item.is-active {
    color: #f58220;
    border-bottom-color: #f58220;
    font-weight: 600;
}

/* Message de livraison */
.gg-delivery-integrated {
    text-align: center;
    padding: 8px 15px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(90deg, #4CAF50 0%, #2E7D32 100%);
    margin-top: 5px;
    order: 9999;
    overflow: visible;
}

.gg-menu img,
.gg-menu__icon img,
.gg-menu__item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gg-delivery-integrated a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.gg-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
}

.gg-menu__label {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TOUTES LES MEDIA QUERIES AVEC POSITION STATIC */
@media (max-width: 768px) {
    #gg-menu-positioned {
        position: static !important;
        overflow: visible !important;
    }
    
    .gg-menu-wrap {
        position: static !important;
        overflow: visible !important;
    }
    
    .gg-menu-sticky {
        position: static !important;
    }
    
    .gg-menu__nav {
        gap: 6px;
        overflow: visible !important;
    }

    .gg-menu__arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .gg-menu__scroller {
        padding: 10px 8px 10px 24px;
        gap: 16px;
        scroll-padding-left: 24px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
    }

    .gg-menu__item {
        min-width: 72px;
        padding: 8px 4px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gg-menu__item:first-child,
    .gg-menu__item.is-home {
        margin-left: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        scroll-margin-left: 24px !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    body.gg-menu-is-sticky {
        padding-top: 0 !important;
    }
}

/* SUPPRIMER TOUTES LES CLASSES DYNAMIQUES */
body[class*="sticky"] {
    padding-top: 0 !important;
}

body[class*="menu"] {
    padding-top: 0 !important;
}

/* FORCER LE CONTENU À ÊTRE VISIBLE */
.main-content, 
.site-content, 
#content, 
.entry-content,
.entry-header,
.page-header {
    position: static !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
    top: auto !important;
}

/* PAS DE MARGES NÉGATIVES */
* {
    margin-top: 0 !important;
}

/* PAS DE TRANSFORMATIONS */
* {
    transform: none !important;
}

/* PAS DE POSITION ABSOLUTE/FIXED */
*:not(#gg-menu-positioned):not(.gg-menu-wrap) {
    position: static !important;
}
