/* Styles extraits du template source — bloc 1. */
.hanout-top-bar {
    background: #111111 !important;
    color: #e2e2e2 !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    padding: 2px 0 !important;
    line-height: 1.2 !important;
    border-bottom: 1px solid #222 !important;
}

.hanout-top-bar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left a {
    color: #e2e2e2;
    text-decoration: none;
}

.hanout-site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8e3d8;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.hanout-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hanout-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hanout-logo-artisan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--msp-secondary, #2d5a27) 0%, var(--msp-accent, #c89b3c) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    white-space: nowrap !important;
    text-decoration: none;
}

.hanout-mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none; 
    flex-direction: column;
    gap: 4px;
    padding: 2px;
}

.hanout-mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--msp-primary, #153b27);
    border-radius: 2px;
}

.hanout-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.hanout-main-nav ul li a {
    text-decoration: none;
    color: #243128;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.hanout-main-nav ul li a:hover {
    color: var(--msp-accent, #c89b3c);
}

.hanout-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hanout-lang-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #243128;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 16px;
    border: 1px solid #e8e3d8;
}

.lang-menu-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e8e3d8;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    min-width: 120px;
    z-index: 1000;
    padding: 5px 0;
    margin-top: 5px;
}

.hanout-lang-dropdown:hover .lang-menu-list {
    display: flex;
}

.lang-menu-list .lang-item {
    padding: 6px 10px;
    font-size: 12px;
    color: var(--msp-primary, #153b27);
    text-decoration: none;
    display: block;
}

.lang-menu-list .lang-item:hover {
    background: #f6edda;
    color: var(--msp-accent, #c89b3c);
}

.header-action-icon {
    position: relative;
    color: var(--msp-primary, #153b27);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #ffffff;
    border: 1px solid #e8e3d8;
    border-radius: 50%;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #137333;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hanout-account-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--msp-primary, #153b27);
    font-size: 11px;
    font-weight: 600;
    background: #f4efe6;
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid #e8e3d8;
}

/* Bouton WhatsApp mobile masqué par défaut sur PC */
.hanout-mobile-whatsapp {
    display: none !important;
}

.hanout-mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 30, 22, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hanout-mobile-menu-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.hanout-menu-modal-content {
    background: #ffffff;
    width: 270px;
    height: 100%;
    padding: 20px;
    box-shadow: 5px 0 25px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: relative;
}

.hanout-mobile-menu-modal.is-open .hanout-menu-modal-content {
    transform: translateX(0);
}

.hanout-close-menu {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--msp-primary, #153b27);
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
}

.hanout-menu-modal-content h3 {
    font-size: 17px;
    color: var(--msp-primary, #153b27);
    margin-bottom: 20px;
    border-bottom: 2px solid #e8e3d8;
    padding-bottom: 8px;
}

.hanout-menu-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hanout-menu-modal-content ul li {
    margin-bottom: 12px;
}

.hanout-menu-modal-content ul li a {
    text-decoration: none;
    color: var(--msp-primary, #153b27);
    font-size: 15px;
    font-weight: 700;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
}

.hanout-menu-modal-content ul li a:hover {
    background: #f6edda;
    color: var(--msp-accent, #c89b3c);
}

@media (max-width: 900px) {
    .hanout-top-bar {
        display: none; 
    }
    .hanout-main-nav {
        display: none !important;
    }
    .hanout-mobile-menu-toggle {
        display: flex !important;
    }
    .hanout-desktop-cart {
        display: none !important; /* Masque le panier dans le header sur mobile */
    }
    .hanout-desktop-account {
        display: none !important; /* Masque l'espace client sur mobile */
    }
    .hanout-mobile-whatsapp {
        display: flex !important; /* Affiche le bouton WhatsApp à sa place sur mobile */
        background: #f0fdf4 !important;
        border: 1px solid #25D366 !important;
    }
    .hanout-logo-artisan {
        font-size: 17px !important;
    }
}

/* Attributs style convertis en classes CSS durant la refactorisation. */
.msp-inline-header-01 { text-decoration: none; }
