/* ==========================================================================
   style-header.css
   BARRE DE NAVIGATION UNIFIÉE - Chemins du Bois
   
   MODIFICATION : Harmonisation de l'icône panier (Section 5)
   ========================================================================== */

/* =========================================================
   1. HEADER FIXE GLOBAL
   ========================================================= */

.main-header {
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10000 !important;

    background-color: rgba(17, 17, 17, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;

    height: 80px !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    padding: 0 40px !important;
    box-sizing: border-box !important;
}

/* =========================================================
   2. STRUCTURE GAUCHE / DROITE
   ========================================================= */

.header-left,
.header-right {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
}

.header-right {
    justify-content: flex-end !important;
    gap: 18px !important;
}

/* =========================================================
   3. LOGO CENTRÉ
   ========================================================= */

.header-center {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    z-index: 10001;
}

.site-logo {
    height: 50px !important;
    width: auto !important;

    filter: brightness(0) invert(0.9) !important;

    transition: transform 0.3s ease !important;
}

.header-center:hover .site-logo {
    transform: scale(1.06) !important;
}

/* =========================================================
   4. BURGER MENU
   ========================================================= */

.menu-toggle {
    background: none !important;
    border: none !important;
    cursor: pointer !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    color: #ffffff !important;
    padding: 0 !important;
}

.hamburger .line {
    width: 24px;
    height: 1.5px;
    background-color: #ffffff !important;
    display: block;
    margin: 5px 0;
}

.menu-label {
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 2px !important;
    color: #ffffff !important;
}

/* =========================================================
   5. ICÔNES DROITE (PANIER / COMPTE)
   ========================================================= */

.header-right .icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Coins légèrement plus arrondis pour l'élégance */

    /* ÉTAT NORMAL : Fond très discret pour ne pas alourdir le header sombre */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ICÔNE PAR DÉFAUT : Blanche/Invert pour matcher le logo et le texte */
.header-right .icon-btn svg {
    stroke: #E9ECEF !important; /* Gris très clair/blanc */
    stroke-width: 1.2px !important; /* Trait fin type artisanat de luxe */
    fill: none !important;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* HOVER : Mise en avant douce */
.header-right .icon-btn:hover {
    background: rgba(255, 255, 255, 0.12); /* Fond plus marqué au survol */
    border-color: rgba(255, 255, 255, 0.2);
}

.header-right .icon-btn:hover svg {
    stroke: #ffffff !important; /* Blanc pur au survol */
    transform: translateY(-1px); /* Petit effet de levier */
}

/* Badge de quantité panier (si présent) */
.cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffffff; /* Point blanc minimaliste */
    color: #111111;
    font-size: 9px;
    font-weight: bold;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clic feedback */
.header-right .icon-btn:active {
    transform: scale(0.94);
}

/* =========================================================
   6. MENU LATÉRAL (OVERLAY)
   ========================================================= */

#side-menu.overlay-menu {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;

    width: 300px !important;
    height: 100vh !important;

    background-color: #111111 !important;

    z-index: 10002 !important;

    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1) !important;

    padding: 80px 40px !important;

    box-shadow: 10px 0 30px rgba(0,0,0,0.5) !important;

    display: flex !important;
    flex-direction: column !important;

    box-sizing: border-box !important;
}

#side-menu.active {
    left: 0 !important;
}

.close-btn {
    position: absolute !important;
    top: 30px !important;
    right: 30px !important;

    background: none !important;
    border: none !important;

    color: #ffffff !important;
    font-size: 2.5rem !important;

    cursor: pointer !important;
    line-height: 1 !important;
}

/* =========================================================
   7. NAVIGATION
   ========================================================= */

.overlay-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
}

.overlay-nav a,
.menu-parent {
    color: #ffffff !important;
    text-decoration: none !important;

    font-family: 'Montserrat', sans-serif !important;

    font-size: 1.1rem !important;
    letter-spacing: 4px !important;
    font-weight: 300 !important;

    text-transform: uppercase;

    transition: 0.3s ease !important;
    cursor: pointer;
}

.nav-item-dropdown {
    display: flex !important;
    flex-direction: column !important;
}

.submenu {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;

    padding-top: 20px !important;
    padding-left: 15px !important;
}

.submenu a {
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
    opacity: 0.7 !important;
}

.submenu a:hover {
    opacity: 1 !important;
}

/* =========================================================
   ANCHORS FIX (HEADER FIXE)
   ========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; 
}

#contact-anchor {
    scroll-margin-top: 90px;
}

/* =========================================================
   8. RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .main-header {
        padding: 0 15px !important;
        height: 70px !important;
    }

    .site-logo {
        height: 32px !important;
    }

    .menu-label {
        display: none !important;
    }

    #side-menu.overlay-menu {
        width: 100% !important;
    }

    .header-right {
        gap: 8px !important;
    }

    .header-right .icon-btn {
        width: 38px;
        height: 38px;
    }
}