/* Navbar CSS - Jardin du Paradis */

/* Utilitaires */
.mobile-only {
    display: none !important;
}

@media (max-width: 800px) {
    .mobile-only {
        display: block !important;
    }
}

/* Announcement Bar */
.announcement-bar {
    background-color: #FFD166; /* Couleur festive jaune dorée */
    color: #333;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    position: relative;
    width: 100%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    transform: translateZ(0);
    letter-spacing: 0.5px;
}

.announcement-bar p {
    margin: 0;
    animation: fadeSlide 0.5s ease-in-out;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

/* Main Navigation */
.premium-nav {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    z-index: 100;
    width: 100%;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(238, 238, 238, 0.7);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

/* Brand */
.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    margin-right: 30px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333; /* Couleur noir élégant */
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

/* Nav Center Menu */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.menu-item a:hover {
    color: #FFD166; /* Couleur jaune dorée au survol */
}

.link-text {
    position: relative;
    z-index: 2;
}

.link-decoration {
    position: absolute;
    bottom: 5px;
    height: 2px;
    width: 0;
    background-color: #FFD166;
    transition: width 0.3s ease;
}

.menu-item:hover .link-decoration,
.menu-item.active .link-decoration {
    width: 80%;
}

.menu-item.active a {
    color: #333;
    font-weight: 600;
}

/* Actions Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: rgba(255, 209, 102, 0.15);
    color: #333;
}

.action-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.btn-text {
    margin-left: 8px;
    font-weight: 500;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FFD166;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 2000;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .nav-container {
        height: 70px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .menu-item a {
        padding: 10px 10px;
    }
}

@media (max-width: 800px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s;
        z-index: 2100;
        position: relative;
    }
    
    body.menu-open .mobile-menu-toggle {
        display: none;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-center {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 3000;
        padding-top: 20px;
        overflow-y: auto;
    }
    
    /* Bouton de fermeture du menu mobile */
    .mobile-close-btn {
        display: none; /* Masqué par défaut */
        background: none;
        border: none;
        color: #333;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 2100;
        padding: 8px;
    }
    
    .mobile-close-btn svg {
        width: 24px;
        height: 24px;
        stroke-width: 2px;
    }
    
    /* Montrer le bouton de fermeture uniquement en version mobile */
    @media (max-width: 800px) {
        .mobile-close-btn {
            display: block;
        }
        
        .nav-center {
            padding-top: 60px;
        }
    }
    
    /* Cacher explicitement le bouton de fermeture en version desktop */
    @media (min-width: 801px) {
        .mobile-close-btn {
            display: none !important;
        }
    }
    
    .nav-center.active {
        left: 0;
        animation: slideIn 0.3s forwards;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .menu-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .menu-item a {
        padding: 15px 20px;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        position: relative;
        z-index: 2050;
        pointer-events: auto;
    }
    
    .menu-item a:before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        background-color: #FFD166;
        border-radius: 50%;
        margin-right: 8px;
        opacity: 0;
        transition: opacity 0.2s;
    }
    
    .menu-item.active a:before, 
    .menu-item a:hover:before {
        opacity: 1;
    }
    
    .link-decoration {
        display: none;
    }
    
    /* Ajout d'icônes en version mobile */
    .menu-item a svg {
        stroke: #FFD166;
        width: 18px;
        height: 18px;
        stroke-width: 2px;
        margin-right: 6px;
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1500;
        opacity: 0;
        transition: opacity 0.3s;
    }
    

    .brand {
        margin-right: auto;
        margin-left: 15px;
    }
    
    .action-btn .btn-text {
        display: none;
    }
    
    /* Header effet sticky avec couleur de fond */
    .premium-nav.scrolled {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Animation for mobile menu */
@keyframes slideIn {
    from { left: -280px; }
    to { left: 0; }
}

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