/* ==========================================================================
   BerioTopo - Modern Responsive Navbar CSS
   ========================================================================== */

/* Variables CSS pour faciliter la maintenance */
:root {
    --navbar-bg: #ffffff;
    --navbar-text: #333333;
    --navbar-hover: #A0723C;
    --navbar-border: #e5e5e5;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --navbar-height: 60px;
    --mega-menu-width: 1200px;
}

/* Reset et base */
.beriotopo-navbar * {
    box-sizing: border-box;
}

/* Container principal de la navbar */
.beriotopo-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 1000;
    padding: 0;
    min-height: var(--navbar-height);
}

.navbar-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding: 0 20px;
}

/* ==========================================================================
   Navigation Horizontale avec Scroll (Desktop)
   ========================================================================== */

.horizontal-nav {
    display: flex;
    align-items: center;
    position: relative;
    height: var(--navbar-height);
}

/* Flèches de navigation */
.nav-arrow {
    background: linear-gradient(45deg, var(--navbar-hover), #8A5F2F);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.nav-arrow:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.nav-arrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.nav-arrow-left::before {
    transform: rotate(-135deg);
}

.nav-arrow-right::before {
    transform: rotate(45deg);
}

/* Container de scroll */
.nav-scroll-container {
    flex: 1;
    overflow: hidden;
    margin: 0 15px;
    position: relative;
}

.nav-scroll-content {
    display: flex;
    transition: transform var(--transition-medium);
    min-height: var(--navbar-height);
}

/* Items de navigation */
.horizontal-nav-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: 100%;
}

.mega-menu-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin: 0;
}

.mega-menu-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 15px;
    color: var(--navbar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-fast);
    position: relative;
    /* height: var(--navbar-height); */
    white-space: nowrap;
    border-radius: 5px;
    margin: 0 2px;
}

.nav-link:hover {
    /* Souliggné et outline */
    color: var(--navbar-hover);
    text-underline-offset: 2px;
}

/* Indicateur actif */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--navbar-hover);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   Mega Menu (Desktop) - Design Sombre et Moderne
   ========================================================================== */

.mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    pointer-events: none;
}

/* Desktop version with dropdown style */
@media (min-width: 992px) {
    .mega-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: auto;
        bottom: auto;
        width: 900px;
        max-width: 90vw;
        height: auto;
        transform: none;
        z-index: 10000;
        /* Position will be set by JavaScript */
        /* Fixed position prevents scrolling with page */
    }
    
    .mega-menu.show {
        transform: translateX(0) translateY(0);
    }
    
    .mega-menu-backdrop {
        display: none;
    }
    
    .mega-menu-content {
        position: static;
        transform: none;
        background: white !important;
        border-radius: 15px;
        width: auto;
        max-width: none;
        max-height: 70vh;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--navbar-hover);
    }
    
    /* Toutes les positions sont gérées par JavaScript */
    
    /* Force white background on all mega menu elements */
    .mega-menu-grid,
    .mega-menu-column,
    .mega-menu-items,
    .mega-menu-item {
        background: white !important;
    }
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mega-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mega-menu-content {
    position: absolute;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 90vw;
    max-height: 85vh;
    width: 900px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: white;
    border-bottom: 2px solid var(--navbar-hover);
    position: relative;
    overflow: hidden;
}

.mega-menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.mega-menu-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--navbar-hover);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.mega-menu-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mega-menu-close {
    background: white;
    border: 2px solid var(--navbar-hover);
    color: var(--navbar-hover);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.mega-menu-close:hover {
    background: var(--navbar-hover);
    color: white;
    transform: scale(1.1);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    max-height: 450px;
    overflow-y: auto;
    background: white;
}

.mega-menu-column {
    padding: 25px 30px;
    /* border-right: 2px solid var(--navbar-hover); */
    background: white;
}

.mega-menu-column:last-child {
    border-right: none;
}

.mega-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
}

.mega-menu-item {
    margin-bottom: -1px;
    background: white;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition-fast);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.mega-menu-link:hover {
    background: var(--navbar-hover);
    border-color: var(--navbar-hover);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(160, 114, 60, 0.2);
}

.mega-menu-link-icon {
    margin-right: 10px;
    opacity: 0.7;
    transition: var(--transition-fast);
    font-weight: 600;
}

.mega-menu-link:hover .mega-menu-link-icon {
    opacity: 1;
    transform: translateX(2px);
}

.mega-menu-footer {
    padding: 20px 30px;
    background: white;
    border-top: 2px solid var(--navbar-hover);
    text-align: center;
}

.mega-menu-view-all {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--navbar-hover), #8A5F2F);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(160, 114, 60, 0.3);
}

.mega-menu-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(160, 114, 60, 0.4);
    color: white;
}

/* ==========================================================================
   Menu Mobile (Hamburger)
   ========================================================================== */

.mobile-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: var(--navbar-height);
    width: 100%;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-border);
}

.mobile-logo {
    flex: 1;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navbar-text);
    display: block;
}

/* Bouton hamburger animé */
.hamburger-menu {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--navbar-text);
    margin: 3px 0;
    transition: var(--transition-medium);
    border-radius: 2px;
}

/* Animation hamburger -> X */
.hamburger-menu.active .hamburger-line {
    display: none;
}

/* Menu mobile overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Panel mobile */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    z-index: 999;
    transition: var(--transition-medium);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-menu-panel.show {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--navbar-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--navbar-text);
}

/* Navigation mobile */
.mobile-nav-items {
    padding: 20px 0;
    display: block;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-fast);
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: var(--navbar-hover);
    color: white;
    transform: translateX(5px);
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.mobile-submenu-toggle:hover {
    background: rgba(160, 114, 60, 0.1);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
    background: rgba(0, 0, 0, 0.02);
}

.mobile-submenu.show {
    max-height: 1000px; /* Valeur arbitraire suffisamment grande */
}

.mobile-submenu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-submenu-link {
    display: block;
    padding: 12px 40px;
    color: var(--navbar-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.mobile-submenu-link:hover {
    background: rgba(160, 114, 60, 0.05);
    color: var(--navbar-hover);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Desktop */
@media (min-width: 992px) {
    .horizontal-nav {
        display: flex;
    }
    
    .mobile-nav,
    .mobile-menu-overlay,
    .mobile-menu-panel,
    .mobile-category-popup {
        display: none !important;
    }
}

/* Tablet & Mobile */
@media (max-width: 991px) {
    .horizontal-nav,
    .horizontal-nav-content,
    .nav-scroll-container,
    .nav-scroll-content,
    .mega-menu-nav,
    .nav-arrow {
        display: none !important;
    }
    
    .mobile-nav {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        height: var(--navbar-height);
    }
    
    .mobile-nav-items,
    .mobile-nav-list,
    .mobile-nav-item {
        display: block !important;
    }
    
    /* Ensure mega menus are hidden on mobile */
    .mega-menu {
        display: none !important;
    }
}

/* Mobile uniquement */
@media (max-width: 576px) {
    .mobile-menu-panel {
        width: 100%;
        max-width: none;
    }
    
    .nav-link {
        padding: 15px 16px;
        font-size: 13px;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}

/* ==========================================================================
   Animations et États
   ========================================================================== */

/* Animation de chargement */
.navbar-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth scroll pour navigation horizontale */
.nav-scroll-content.smooth-scroll {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* États de focus pour l'accessibilité */
.nav-link:focus,
.mobile-nav-link:focus,
.hamburger-menu:focus {
    color: var(--navbar-hover);
    /* outline: 2px solid var(--navbar-hover);
    outline-offset: 2px; */
    text-decoration: underline;
    text-decoration-color: var(--navbar-hover);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --navbar-border: #000;
        --navbar-text: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   Améliorations et Styles Supplémentaires
   ========================================================================== */

/* Indicateur de mega menu */
.mega-menu-indicator {
    font-size: 8px;
    margin-left: 8px;
    transition: var(--transition-fast);
    opacity: 0.7;
}

.mega-menu-indicator svg {
    width: 10px;
    height: 6px;
}

.mega-menu-trigger:hover .mega-menu-indicator,
.mega-menu-trigger[aria-expanded="true"] .mega-menu-indicator {
    transform: rotate(180deg);
}

/* Container CTA navbar */
.navbar-cta-container {
    position: absolute;
    top: 100%;
    right: 20px;
    z-index: 900;
    padding: 10px 0;
}

.navbar-cta {
    background: var(--navbar-hover) !important;
    border-color: var(--navbar-hover) !important;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition-fast);
    text-decoration: none;
    color: white !important;
}

.navbar-cta:hover {
    background: #8A5F2F !important;
    border-color: #8A5F2F !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile navigation list */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
}

.mobile-category-trigger {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-text {
    flex: 1;
}

/* Titre du menu mobile */
.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navbar-text);
    margin: 0;
}

/* Animation de chargement de la navbar */
.navbar-loaded {
    animation: navbarSlideIn 0.5s ease-out;
}

@keyframes navbarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les éléments en vue */
.nav-link.in-view {
    position: relative;
}

.nav-link.in-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(160, 114, 60, 0.1);
    border-radius: 4px;
    z-index: -1;
}

/* Amélioration de la scrollbar pour WebKit */
.nav-scroll-container::-webkit-scrollbar,
.mega-menu-content::-webkit-scrollbar,
.mobile-menu-panel::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.nav-scroll-container::-webkit-scrollbar-track,
.mega-menu-content::-webkit-scrollbar-track,
.mobile-menu-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.nav-scroll-container::-webkit-scrollbar-thumb,
.mega-menu-content::-webkit-scrollbar-thumb,
.mobile-menu-panel::-webkit-scrollbar-thumb {
    background: var(--navbar-hover);
    border-radius: 3px;
}

.nav-scroll-container::-webkit-scrollbar-thumb:hover,
.mega-menu-content::-webkit-scrollbar-thumb:hover,
.mobile-menu-panel::-webkit-scrollbar-thumb:hover {
    background: #8A5F2F;
}

/* Styles pour la compatibilité avec l'ancien système */
.beriotopo-navbar .navbar-nav.ml-auto {
    margin-left: auto !important;
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    :root {
        --navbar-bg: #1a1a1a;
        --navbar-text: #e0e0e0;
        --navbar-border: #333;
    }
    
    .mobile-menu-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
} */

/* ==========================================================================
   Mobile Category Popup avec Swipe
   ========================================================================== */

.mobile-category-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    pointer-events: none;
}

.mobile-category-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-popup-container {
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-medium);
    border: 2px solid var(--navbar-hover);
}

.mobile-category-popup.show .mobile-popup-container {
    transform: translateY(0) scale(1);
}

.mobile-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: white;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--navbar-hover);
}

.mobile-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.mobile-popup-back,
.mobile-popup-close {
    background: white;
    border: 2px solid var(--navbar-hover);
    color: var(--navbar-hover);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: 18px;
}

.mobile-popup-back:hover,
.mobile-popup-close:hover {
    background: var(--navbar-hover);
    color: white;
    transform: scale(1.1);
}

.mobile-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navbar-hover);
    margin: 0;
    position: relative;
    z-index: 1;
}

.mobile-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-popup-main {
    padding: 30px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-category-image {
    margin-bottom: 20px;
}

.mobile-category-icon {
    font-size: 64px;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.mobile-category-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.mobile-category-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.mobile-category-items {
    flex: 1;
    padding: 20px 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-content: start;
}

.mobile-category-item {
    background: white;
    border: 2px solid var(--navbar-hover);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.mobile-category-item:hover {
    background: var(--navbar-hover);
    border-color: var(--navbar-hover);
}

.mobile-category-item:hover .mobile-category-item-link {
    color: white;
}

.mobile-category-item-link {
    color: #333;
    text-decoration: none;
    display: block;
    transition: var(--transition-fast);
}

.mobile-category-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.mobile-popup-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: white;
    border-top: 2px solid var(--navbar-hover);
}

.mobile-popup-nav {
    background: white;
    border: 2px solid var(--navbar-hover);
    color: var(--navbar-hover);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-popup-nav:hover {
    background: var(--navbar-hover);
    color: white;
    transform: scale(1.1);
}

.mobile-popup-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.mobile-popup-indicators {
    display: flex;
    gap: 8px;
}

.mobile-popup-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition-fast);
    cursor: pointer;
}

.mobile-popup-indicator.active {
    background: var(--navbar-hover);
    transform: scale(1.2);
}

/* Animation de swipe - DÉSACTIVÉE */
.mobile-popup-container.swiping {
    transition: none;
    /* Animation disabled */
}

.mobile-popup-container.swipe-left,
.mobile-popup-container.swipe-right {
    /* Animation disabled */
    transform: none;
}

/* Support pour les motions réduites */
@media (prefers-reduced-motion: reduce) {
    .mega-menu-indicator,
    .nav-link::after,
    .mega-menu-link::before,
    .hamburger-line,
    .mobile-popup-container,
    .mobile-category-item {
        transition: none !important;
    }
    
    .navbar-loaded {
        animation: none;
    }
}

/* Classes d'état */
.is-hidden { display: none !important; }
.is-visible { display: block !important; }
.is-active { color: var(--navbar-hover) !important; }

/* Print styles */
@media print {
    .beriotopo-navbar {
        display: none !important;
    }
}
