/* =========================================
   HEADER STYLE & MENU LATÉRAL
   ========================================= */
   header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    transition: padding 0.3s ease, top 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* LOGO */
.logo { z-index: 1002; position: relative; }
.logo img { height: 50px; width: auto; display: block; }

/* ZONE DROITE */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* PANIER */
.cart-icon-container {
    position: relative; color: #fff; display: flex; align-items: center;
    text-decoration: none; z-index: 1002; margin-right: 5px;
}
.cart-icon-container svg { width: 26px; height: 26px; stroke: #fff; transition: stroke 0.3s; }
.cart-icon-container:hover svg { stroke: #ddd; }
.cart-badge {
    position: absolute; top: -8px; right: -8px;
    background-color: #fff; color: #000;
    font-size: 0.7rem; font-weight: bold;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}

/* LANGUE */
.lang-select-container { z-index: 1002; position: relative; }
.lang-select-container select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; padding: 5px 8px; border-radius: 4px;
    font-family: 'Montserrat', sans-serif; font-weight: 600;
    cursor: pointer; text-transform: uppercase; outline: none;
}
.lang-select-container select option { background-color: #000; color: #fff; }

/* NAVIGATION DESKTOP */
.nav-desktop { display: flex; gap: 25px; }
.nav-desktop a {
    color: #fff; text-decoration: none; font-weight: 700; 
    text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
    transition: opacity 0.3s;
}
.nav-desktop a:hover { opacity: 0.8; }

/* BOUTON BURGER (3 lignes) */
.hamburger {
    display: none; /* Caché sur PC */
    background: none; border: none; cursor: pointer; padding: 0;
    flex-direction: column; gap: 5px; 
    z-index: 2002; /* Au-dessus du menu latéral */
    width: 30px;
}
.hamburger span {
    display: block; width: 100%; height: 3px; background-color: #fff;
    transition: all 0.3s ease; transform-origin: center;
}

/* Animation Croix Burger */
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- MENU LATÉRAL (DRAWER) --- */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px; /* Largeur fixe, ne prend pas tout l'écran */
    height: 100vh;
    background: #111;
    z-index: 2001;
    padding-top: 100px; /* Espace pour le header */
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    
    transform: translateX(100%); /* Caché à droite */
    transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.mobile-menu-drawer.active {
    transform: translateX(0); /* Visible */
}

.menu-content {
    display: flex; flex-direction: column;
}

.menu-content a {
    display: block; padding: 20px 30px;
    color: #fff; text-decoration: none; 
    font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}
.menu-content a:hover { background: rgba(255,255,255,0.05); }

/* --- OVERLAY --- */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* MEDIA QUERIES (Mobile < 900px) */
@media (max-width: 900px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    .header-right { gap: 15px; }
}

/* BANDE D'ANNONCE */
.announce-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 36px; z-index: 2000;
    background-color: rgba(201, 164, 115, 0.8);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    display: none; justify-content: center; align-items: center;
    font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

body.has-announce header { top: 36px; }