/* ============================================================
   WAHOUZ — HEADER / TOPBAR / NAV / MEGA-MENUS
   Fichier : wahouz-header.css
   ============================================================ */

/* ==================== VARIABLES ==================== */
:root {
    --wahouz-bleu-vert: #269cac;
    --wahouz-bleu-vert-light: #3dbdcd;
    --wahouz-bleu-vert-dark: #1d7a87;
    --wahouz-jaune-ocre: #d8af55;
    --wahouz-gris-moyen: #5f5f5d;
    --wahouz-gris-soutenu: #4d4c4c;
    --wahouz-gris-clair: #dbd8d6;
    --wahouz-noir-pur: #120F0C;
    --wahouz-white: #FFFFFF;
    --wahouz-offwhite: #F8F8F8;
    --font-main: 'Roboto', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 172px; /* topbar 42 + main 80 + nav 50 */
}

/* ==================== 0. MASQUER LA TOPBAR STOREFRONT ==================== */
#topbar,
.site-topbar,
.storefront-sticky-add-to-cart {
    display: none !important;
}

/* ==================== 1. TOPBAR (banderole) ==================== */
.topbar {
    background: var(--wahouz-noir-pur);
    color: var(--wahouz-white);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 13px;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1001;
    animation: fadeInDown 0.3s ease;
}

.topbar-promos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-promo-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    line-height: 1;
}

.topbar-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--wahouz-bleu-vert);
    stroke: var(--wahouz-bleu-vert);
}

.topbar-promo-item span.text {
    display: inline;
    line-height: 1;
    vertical-align: middle;
    word-spacing: normal;
}

.topbar-promo-item a {
    color: var(--wahouz-bleu-vert);
    font-weight: 500;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.topbar-promo-item a:hover { color: var(--wahouz-bleu-vert-light); }

.topbar-separator {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.2);
}

.topbar-contact {
    background: var(--wahouz-bleu-vert);
    color: var(--wahouz-white);
    padding: 0 36px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    overflow: hidden;
}

.topbar-contact:hover {
    background: linear-gradient(to right, var(--wahouz-bleu-vert-light), var(--wahouz-bleu-vert-dark));
}

.topbar-contact svg {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ==================== 2. HEADER MAIN ==================== */
.header-main {
    background: var(--wahouz-white);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    border-bottom: 1px solid var(--wahouz-gris-clair);
    position: relative;
    z-index: 1000;
    animation: fadeInDown 0.3s ease 0.05s both;
}

.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 75px;
    width: auto;
    display: block;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 560px;
    margin: 0 40px;
    display: flex;
    height: 44px;
}

/* WooCommerce wraps search in a <form> — make it fill the container */
.header-search form,
.header-search .woocommerce-product-search {
    display: flex !important;
    flex: 1 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.header-search input,
.header-search input[type="search"],
.header-search .woocommerce-product-search .search-field {
    flex: 1 !important;
    height: 100% !important;
    width: auto !important;
    min-width: 0 !important;
    border: 2px solid var(--wahouz-gris-clair) !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 0 18px !important;
    font-family: var(--font-main) !important;
    font-size: 14px !important;
    color: var(--wahouz-noir-pur) !important;
    background: var(--wahouz-white) !important;
    transition: border-color var(--transition-fast);
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.header-search input::placeholder,
.header-search .search-field::placeholder {
    color: var(--wahouz-gris-moyen);
    font-size: 13px;
}

.header-search input:focus,
.header-search .search-field:focus {
    border-color: var(--wahouz-bleu-vert) !important;
}

.header-search-btn,
.header-search button[type="submit"],
.header-search .woocommerce-product-search button {
    height: 100% !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    border: none !important;
    background: var(--wahouz-bleu-vert) !important;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background var(--transition-fast);
    flex-shrink: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Icone loupe en CSS pour le bouton WooCommerce (qui n'a pas de SVG) */
.header-search button[type="submit"]::after,
.header-search .woocommerce-product-search button::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.header-search-btn:hover,
.header-search button[type="submit"]:hover,
.header-search .woocommerce-product-search button:hover {
    background: var(--wahouz-bleu-vert-dark) !important;
}

.header-search-btn svg {
    width: 20px;
    height: 20px;
    color: var(--wahouz-white);
}

/* Actions (Compte, Panier) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
}

.header-action:hover { color: var(--wahouz-bleu-vert); }

.header-action-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-action-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--wahouz-gris-soutenu);
    transition: stroke var(--transition-fast);
}

.header-action:hover .header-action-icon svg { stroke: var(--wahouz-bleu-vert); }

.header-action-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wahouz-gris-soutenu);
    transition: color var(--transition-fast);
    text-align: center;
}

.header-action:hover .header-action-label { color: var(--wahouz-bleu-vert); }

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--wahouz-bleu-vert);
    color: var(--wahouz-white);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--wahouz-bleu-vert);
    color: var(--wahouz-white);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-count[data-count="0"] {
    display: none;
}


/* ==================== 3. NAVIGATION ==================== */
.nav-main {
    background: var(--wahouz-noir-pur);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 999;
    animation: fadeInDown 0.3s ease 0.1s both;
}

.nav-list {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--wahouz-white);
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    background: linear-gradient(to right, var(--wahouz-bleu-vert-light), var(--wahouz-bleu-vert-dark));
    color: var(--wahouz-white);
}

/* Burger mobile (hidden desktop) */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--wahouz-noir-pur);
    transition: all var(--transition-smooth);
}

.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ==================== 4. MEGA MENU BASE ==================== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--wahouz-noir-pur);
    padding: 32px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth), transform var(--transition-smooth);
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border-top: 3px solid var(--wahouz-bleu-vert);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Grid layout mega menu */
.mega-menu-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.mega-menu-grid .mega-menu-category { flex: 1; min-width: 0; }
.mega-menu-grid .mega-menu-image { width: 280px; flex-shrink: 0; }

.mega-menu-category {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-menu-category-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--wahouz-white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-category-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--wahouz-bleu-vert);
    flex-shrink: 0;
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mega-menu-link {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    padding: 7px 0 7px 14px;
    transition: all var(--transition-fast);
    position: relative;
}

.mega-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--wahouz-bleu-vert);
    transition: width var(--transition-fast);
}

.mega-menu-link:hover { color: var(--wahouz-white); padding-left: 22px; }
.mega-menu-link:hover::before { width: 12px; }

/* Image dans mega-menu */
.mega-menu-image {
    overflow: hidden;
    background: var(--wahouz-gris-soutenu);
    min-height: 200px;
    position: relative;
}

/* Variante sans fond, image qui dépasse */
.mega-menu-image--overflow {
    background: none;
    overflow: visible;
}

.mega-menu-image--overflow img {
    object-fit: contain;
    height: auto;
    max-height: none;
    margin-top: -20px;
}

.mega-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mega-menu-image:hover img {
    transform: scale(1.06);
}


/* ==================== 5. MEGA-MENU : CARRELAGES ==================== */
.mega-menu-carrelages {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 560px;
}

.mega-menu-carrelages-titles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-bottom: 12px;
}

.mega-menu-carrelage-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--wahouz-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-carrelage-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--wahouz-bleu-vert);
    flex-shrink: 0;
}

.mega-menu-carrelages-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mega-menu-carrelage-img-link {
    display: block;
    overflow: hidden;
    cursor: pointer;
    height: 160px;
    position: relative;
}

.mega-menu-carrelage-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}

.mega-menu-carrelage-img-link:hover img {
    transform: scale(1.12);
    filter: brightness(0.5);
}

/* Overlay "Découvrir" au hover */
.mega-menu-carrelage-img-link::after {
    content: 'Découvrir';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--wahouz-white);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.mega-menu-carrelage-img-link:hover::after {
    opacity: 1;
}

.mega-menu-carrelages-promo {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 14px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--wahouz-white);
    margin-top: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mega-menu-carrelages-promo:hover {
    background: var(--wahouz-bleu-vert);
    border-color: var(--wahouz-bleu-vert);
}


/* ==================== 6. MEGA-MENU : LIVRAISON ==================== */
.mega-menu-livraison {
    display: flex;
    align-items: center;
    gap: 40px;
    min-width: 520px;
}

.mega-menu-livraison-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.mega-menu-livraison-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--wahouz-white);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mega-menu-livraison-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--wahouz-bleu-vert);
}

.mega-menu-livraison-detail {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.mega-menu-livraison-detail .highlight {
    color: var(--wahouz-bleu-vert);
    font-weight: 700;
}

.mega-menu-livraison-btn {
    display: block;
    padding: 14px 40px;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--wahouz-white);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-align: center;
    margin-top: 8px;
}

.mega-menu-livraison-btn:hover {
    background: var(--wahouz-bleu-vert);
    border-color: var(--wahouz-bleu-vert);
}

.mega-menu-livraison-img {
    width: 250px;
    flex-shrink: 0;
    overflow: hidden;
}

.mega-menu-livraison-img img {
    width: 100%;
    height: auto;
    display: block;
}


/* ==================== 7. ANIMATIONS ==================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==================== 8. RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .topbar {
        padding: 0;
        font-size: 12px;
    }
    .topbar-promos { gap: 12px; }
    .topbar-contact { padding: 0 20px; font-size: 12px; }
    
    .header-main { padding: 0 20px; height: 70px; }
    .header-logo img { height: 60px; }
    .header-search { margin: 0 20px; max-width: 400px; }
    
    .nav-link { padding: 0 18px; font-size: 13px; }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --header-height: 60px; }

    /* Empêcher tout scroll horizontal sur mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Topbar : on affiche juste la promo livraison */
    .topbar {
        height: 36px;
        padding: 0;
        justify-content: center;
    }
    .topbar-promos {
        display: flex;
        gap: 0;
    }
    /* Cacher VIP10 et Paiement en mobile, garder que Livraison */
    .topbar-promo-item { display: none; }
    .topbar-promo-item:first-child {
        display: inline-flex;
        font-size: 12px;
    }
    .topbar-separator { display: none; }
    .topbar-contact { display: none; }

    /* Header main : logo + burger */
    .header-main {
        height: 60px;
        padding: 0 16px;
    }
    .header-logo img { height: 50px; }
    .header-search { display: none; }
    .header-actions { display: none; }
    .nav-burger { display: flex; }

    /* Nav : drawer mobile */
    .nav-main {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 148px; /* topbar 36 + header 60 + search ~52 */
        transition: left var(--transition-smooth);
        box-shadow: none;
        overflow-y: auto;
    }

    .nav-main.open { left: 0; }

    /* Cacher le menu desktop en mobile */
    .nav-list--desktop {
        display: none;
    }

    /* ===== MENU MOBILE SIMPLIFIE ===== */
    .mobile-nav {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 70px);
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 16px 24px;
        font-family: var(--font-main);
        font-size: 15px;
        font-weight: 500;
        color: var(--wahouz-white);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        background: none;
        border: none;
        cursor: pointer;
        transition: background var(--transition-fast);
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        background: rgba(255,255,255,0.05);
    }

    .mobile-nav-chevron {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        transition: transform var(--transition-smooth);
        opacity: 0.5;
    }

    .mobile-nav-item.open .mobile-nav-chevron {
        transform: rotate(180deg);
        opacity: 1;
    }

    /* Sous-menu accordion */
    .mobile-nav-sub {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        background: rgba(255,255,255,0.03);
    }

    .mobile-nav-item.open .mobile-nav-sub {
        max-height: 500px;
    }

    .mobile-nav-sub a {
        display: block;
        padding: 12px 24px;
        font-size: 14px;
        color: rgba(255,255,255,0.7);
        text-align: center;
        transition: all var(--transition-fast);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .mobile-nav-sub a:last-child {
        border-bottom: none;
    }

    .mobile-nav-sub a:hover,
    .mobile-nav-sub a:active {
        color: var(--wahouz-white);
        background: rgba(255,255,255,0.05);
    }

    /* Bouton Contact pleine largeur */
    .mobile-nav-contact {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 18px 24px;
        margin: 8px 16px;
        background: var(--wahouz-bleu-vert);
        color: var(--wahouz-white);
        font-family: var(--font-main);
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        border-radius: 0;
        transition: background var(--transition-fast);
    }

    .mobile-nav-contact:hover {
        background: linear-gradient(to right, var(--wahouz-bleu-vert-light), var(--wahouz-bleu-vert-dark));
    }

    .mobile-nav-contact svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Mobile search bar under header */
    .mobile-search {
        padding: 8px 16px 12px;
        background: var(--wahouz-white);
        border-bottom: 1px solid var(--wahouz-gris-clair);
    }
    .mobile-search form {
        display: flex;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .mobile-search input,
    .mobile-search input[type="search"] {
        flex: 1;
        height: 40px;
        border: 2px solid var(--wahouz-gris-clair);
        border-right: none;
        border-radius: 0;
        padding: 0 14px;
        font-family: var(--font-main);
        font-size: 14px;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
        background: var(--wahouz-white);
    }
    .mobile-search input:focus { border-color: var(--wahouz-bleu-vert); }
    .mobile-search button[type="submit"] {
        width: 44px;
        min-width: 44px;
        height: 40px;
        background: var(--wahouz-bleu-vert);
        border: none;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }
    .mobile-search button svg { width: 18px; height: 18px; color: var(--wahouz-white); }

    /* Mobile actions (compte + panier) */
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .mobile-actions .header-action {
        flex-direction: row;
        gap: 0;
    }
    .mobile-actions .header-action-label { display: none; }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    .nav-overlay.active { display: block; }
}

/* Desktop : cacher éléments mobile */
@media (min-width: 769px) {
    .mobile-search { display: none; }
    .mobile-actions { display: none; }
    .mobile-nav { display: none; }
    .nav-overlay { display: none; }
}


/* ==================== YITH WISHLIST : Bouton coeur sur cards produit ==================== */
/* Le wrapper YITH remplace le custom .wishlist-btn */
.wishlist-btn-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.wishlist-btn-wrap .yith-wcwl-add-to-wishlist {
    margin: 0 !important;
    padding: 0 !important;
}

/* Transformer le lien YITH "Ajouter" en bouton coeur rond */
.wishlist-btn-wrap .yith-wcwl-add-button a,
.wishlist-btn-wrap .yith-wcwl-add-to-wishlist a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
    border: none !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
    overflow: hidden;
}

/* Icône coeur via SVG inline ou pseudo-element */
.wishlist-btn-wrap .yith-wcwl-add-button a::before,
.wishlist-btn-wrap .yith-wcwl-add-to-wishlist a::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5f5d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Hover : coeur rouge */
.wishlist-btn-wrap .yith-wcwl-add-button a:hover::before,
.wishlist-btn-wrap .yith-wcwl-add-to-wishlist a:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e74c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
}

.wishlist-btn-wrap .yith-wcwl-add-button a:hover,
.wishlist-btn-wrap .yith-wcwl-add-to-wishlist a:hover {
    transform: scale(1.1);
}

/* État "Déjà dans la wishlist" (browse/added) : coeur rempli rouge */
.wishlist-btn-wrap .yith-wcwl-wishlistaddedbrowse a::before,
.wishlist-btn-wrap .yith-wcwl-wishlistexistsbrowse a::before,
.wishlist-btn-wrap .delete_item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e74c3c' stroke='%23e74c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Cacher le texte "Ajouter à la liste", "Parcourir", loader, etc */
.wishlist-btn-wrap .yith-wcwl-add-to-wishlist .yith-wcwl-icon,
.wishlist-btn-wrap .yith-wcwl-add-to-wishlist .feedback,
.wishlist-btn-wrap .yith-wcwl-add-to-wishlist img.ajax-loading {
    display: none !important;
}

/* Masquer l'ancien bouton custom s'il apparaît encore à côté du YITH */
.wishlist-btn-wrap + .wishlist-btn {
    display: none !important;
}


/* ============================================================
   FOOTER (global — chargé sur toutes les pages)
   ============================================================ */
.site-footer {
    background: var(--wahouz-noir-pur, #120F0C);
}

.footer-main {
    padding: 60px 40px 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 48px;
}

.footer-col-title {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: var(--wahouz-bleu-vert, #269cac);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--wahouz-bleu-vert, #269cac);
    stroke: var(--wahouz-bleu-vert, #269cac);
    margin-top: 2px;
}

.footer-contact-item span,
.footer-contact-item a {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-social {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.footer-social svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
    fill: rgba(255, 255, 255, 0.6);
    stroke: rgba(255, 255, 255, 0.6);
}

.footer-social:hover {
    border-color: var(--wahouz-bleu-vert, #269cac);
    background: var(--wahouz-bleu-vert, #269cac);
}

.footer-social:hover svg {
    color: #fff;
    fill: #fff;
    stroke: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: #fff;
}

.footer-bonasavoir {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-bonasavoir-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-bonasavoir-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.footer-bonasavoir-icon svg {
    width: 20px;
    height: 20px;
    color: var(--wahouz-bleu-vert, #269cac);
    stroke: var(--wahouz-bleu-vert, #269cac);
}

.footer-bonasavoir-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-bonasavoir-label {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.footer-bonasavoir-desc {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 40px;
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--wahouz-bleu-vert, #269cac);
    color: #fff;
    border: 2px solid var(--wahouz-bleu-vert, #269cac);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.footer-contact-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-contact-cta:hover {
    background: transparent;
    color: var(--wahouz-bleu-vert, #269cac);
}

/* --- Footer responsive tablet --- */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* --- Footer responsive mobile --- */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 16px 32px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-contact-items {
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-bonasavoir-item {
        justify-content: center;
    }

    .footer-contact-cta {
        align-self: center;
    }

    .footer-bottom {
        padding: 16px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}
