/* ═══════════════════════════════════════════════════════
   SEN CAFÉ TOUBA — CSS PERSONNALISÉ v4 (nettoyé)
   Polices premium en tête OBLIGATOIRE
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Playfair+Display:wght@700&display=swap');


/* ═══════════════════════════════════════════════════════
   PANNEAU DE RÉGLAGE — modifie uniquement ces valeurs
   ═══════════════════════════════════════════════════════ */
:root {
    --cat-largeur: 1140px;   /* largeur du bandeau catégorie */
    --cat-hauteur: 320px;    /* hauteur du bandeau catégorie */
    --cat-titre-bas: 30px;   /* distance du titre depuis le bas */
    --prod-largeur: 300px;   /* largeur d'une carte produit */
}


/* ---------- 1. FOND BLANC GLOBAL ---------- */
html,
body,
body.custom-background,
#page,
.site,
.site-content,
#content,
.content-area,
main,
.site-main {
    background-image: none !important;
    background-color: #ffffff !important;
}

html,
body {
    overflow-x: hidden;
}


/* ---------- 2. HEADER + SLIDER BANNIÈRE ---------- */
#header,
.main-header,
.site-header,
.headerbox,
header.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    overflow: hidden;
    min-height: 180px !important;
    padding: 18px 30px !important;
    background-color: #241a12 !important;
    background-image: none !important;
}

#header::after,
.main-header::after,
.site-header::after,
.headerbox::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    animation: cafeSlider 18s infinite ease-in-out;
}

@keyframes cafeSlider {
    0%, 45% {
        background-image: url('https://sencafetouba.fr/wp-content/uploads/2026/04/im-bann-1-1.webp');
        opacity: 1;
    }
    50%, 95% {
        background-image: url('https://sencafetouba.fr/wp-content/uploads/2026/04/im1.webp');
        opacity: 1;
    }
    100% {
        background-image: url('https://sencafetouba.fr/wp-content/uploads/2026/04/im-bann-1-1.webp');
        opacity: 1;
    }
}

#header::before,
.main-header::before,
.site-header::before,
.headerbox::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(25, 14, 8, 0.72) 0%,
        rgba(25, 14, 8, 0.55) 55%,
        rgba(25, 14, 8, 0.78) 100%
    );
}

#header > *,
.main-header > *,
.site-header > *,
.headerbox > * {
    position: relative;
    z-index: 2;
}

/* menu horizontal */
.main-navigation ul,
.site-header nav ul,
header nav ul {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a,
.site-header nav a,
header nav a {
    color: #f8f4ef !important;
    font-size: 12.5px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.site-header nav a:hover,
header nav a:hover {
    color: #d4b06a !important;
    border-bottom-color: #d4b06a;
}

header nav a[href*="remboursement"],
header nav a[href*="retours"] {
    display: none !important;
}

header input[type="search"] {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    padding: 9px 14px !important;
    border-radius: 4px;
}

.cart-contents,
.header-cart {
    color: #d4b06a !important;
}


/* ---------- 3. TITRE DU SITE PREMIUM ---------- */
.site-title,
.site-title a,
.site-branding .site-title a,
h1.site-title a {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55) !important;
    line-height: 1.2 !important;
}


/* ---------- 4. ICÔNES SOCIALES (WPCode) ---------- */
.touba-socials-fixed {
    position: fixed !important;
    top: 12px;
    right: 16px;
    z-index: 100000;
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(20, 12, 7, 0.55);
    border-radius: 30px;
    backdrop-filter: blur(6px);
}

.touba-socials-fixed a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    transition: all 0.25s ease;
}

.touba-socials-fixed a:hover {
    color: #d4b06a;
    transform: translateY(-2px);
}

.touba-socials-fixed svg {
    width: 19px;
    height: 19px;
}

body.admin-bar .touba-socials-fixed {
    top: 44px;
}


/* ---------- 5. TITRE DE PAGE "BOUTIQUE" ---------- */
.woocommerce-products-header,
.page-header,
.entry-header,
.post-type-archive-product .page-header,
.post-type-archive-product .entry-header {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 45px 20px 10px !important;
    margin: 0 !important;
    text-align: center !important;
}

.woocommerce-products-header__title,
.post-type-archive-product h1,
.post-type-archive-product .page-title,
.tax-product_cat h1.page-title {
    display: inline-block !important;
    background: none !important;
    color: #2b1a12 !important;
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    text-shadow: none !important;
    padding: 0 0 14px !important;
    margin: 0 auto !important;
    position: relative;
}

.woocommerce-products-header__title::after,
.post-type-archive-product h1::after,
.post-type-archive-product .page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b88a44, transparent);
}

.term-description,
.woocommerce-products-header .term-description {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 30px !important;
    color: #6b5347;
    font-size: 15px;
    line-height: 1.7;
}


/* ---------- 6. GRILLE ---------- */
.woocommerce-ordering,
.woocommerce-result-count {
    display: none !important;
}

.post-type-archive-product,
.tax-product_cat {
    min-height: auto !important;
}

ul.products {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1180px;
    margin: 20px auto 80px !important;
    padding: 0 20px !important;
    list-style: none;
}


/* ---------- 6a. CARTE PRODUIT (format carte nette) ---------- */
ul.products li.product {
    width: var(--prod-largeur) !important;
    max-width: var(--prod-largeur) !important;
    margin: 0 !important;
    padding: 0 0 18px !important;
    background: #ffffff;
    border: 1px solid #ece5df;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(43, 26, 18, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(43, 26, 18, 0.14);
}

/* image produit : taille naturelle, jamais étirée */
ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
    display: block;
    margin: 0 0 14px !important;
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2b1a12 !important;
    text-shadow: none !important;
    padding: 0 14px !important;
    margin-bottom: 8px !important;
}

ul.products li.product .price {
    color: #b88a44 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    display: block;
    margin-bottom: 12px;
}

ul.products li.product .button {
    background: #2b1a12 !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 10px 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

ul.products li.product .button:hover {
    background: #b88a44 !important;
}


/* ---------- 6b. TUILE CATÉGORIE (format bandeau large) ---------- */
ul.products li.product-category {
    position: relative !important;
    width: 100% !important;
    max-width: var(--cat-largeur) !important;
    border-radius: 12px;
    overflow: hidden;
}

ul.products li.product-category img {
    width: 100% !important;
    height: var(--cat-hauteur) !important;
    object-fit: cover !important;
    object-position: center 55% !important;
    display: block;
    margin: 0 !important;
}

/* titre catégorie centré, masque le compteur (2) */
ul.products li.product-category .woocommerce-loop-category__title .count,
.woocommerce-loop-category__title mark.count {
    display: none !important;
}

ul.products li.product-category .woocommerce-loop-category__title {
    position: absolute !important;
    bottom: var(--cat-titre-bas) !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 5 !important;

    width: auto !important;
    max-width: 70% !important;
    padding: 13px 26px !important;
    margin: 0 !important;

    background: rgba(30, 17, 10, 0.65) !important;
    backdrop-filter: blur(10px);
    border-radius: 8px !important;

    color: #ffffff !important;
    text-align: center !important;
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
}


/* ---------- 7. NETTOYAGE ---------- */
.related-posts,
.related-post,
.similar-posts,
.post-related,
#related_posts,
.jp-relatedposts,
.widget_search,
.widget_archive,
.widget_meta,
.widget_recent_entries,
.widget_categories,
#sidebar,
.sidebar,
.blog-sidebar,
.page-sidebar {
    display: none !important;
}


/* ---------- 8. FOOTER ---------- */
footer,
.site-footer,
#footer,
#colophon,
.footer-area,
.footer-wrapper,
.copyright-wrapper,
.copyright,
.site-info {
    background: transparent !important;
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

footer::before,
footer::after,
.site-footer::before,
.site-footer::after {
    display: none !important;
    content: none !important;
}

footer .widget,
footer aside,
.site-footer .widget,
#footer .widget {
    display: none !important;
}

.footer-navigation,
.footer-navigation *,
.touba-premium-footer {
    display: block !important;
    background: transparent !important;
    color: #2b1a12 !important;
}

.touba-premium-footer {
    text-align: center;
    padding: 60px 20px 50px;
    border-top: 1px solid #ece5df;
    text-shadow: none;
}

.touba-premium-footer h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    margin-bottom: 10px;
    color: #2b1a12;
}

.touba-premium-footer p {
    font-size: 15px;
    margin-bottom: 18px;
    color: #6b5347;
}

.touba-socials a {
    color: #2b1a12 !important;
    margin: 0 12px;
    text-decoration: none;
}

.touba-socials a:hover {
    color: #b88a44 !important;
}


/* ---------- 9. MENU MOBILE (plugin mobmenu) ---------- */
.mobmenu-left-panel,
.mobmenu-right-panel,
.mobmenu-content {
    background: linear-gradient(180deg, #2b1a12 0%, #1a0f0a 100%) !important;
}

.mobmenu-content li a,
.mobmenu-content .mobmenu-item a {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    padding: 16px 22px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s ease;
}

.mobmenu-content li a:hover,
.mobmenu-content .mobmenu-item a:hover {
    color: #d4b06a !important;
    background: rgba(255, 255, 255, 0.04) !important;
    padding-left: 28px !important;
}

.mobmenu-header-holder {
    background: rgba(30, 15, 10, 0.95) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobmenu-site-title,
.mob-menu-logo-holder {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.mobmenu .mob-menu-icon,
.mobmenu .mob-menu-icon::before,
.mobmenu .mob-menu-icon::after {
    background: #d4b06a !important;
}

.mobmenu-overlay {
    background: rgba(0, 0, 0, 0.45) !important;
}


/* ---------- 10. RESPONSIVE MOBILE (max 768px) ---------- */
@media screen and (max-width: 768px) {

    #header,
    .main-header,
    .site-header,
    .headerbox {
        min-height: 120px !important;
        padding: 12px 15px !important;
    }

    .site-title,
    .site-title a {
        font-size: 26px !important;
        letter-spacing: 1.5px !important;
    }

    .logo,
    .site-logo {
        transform: scale(0.9);
        transform-origin: center;
    }

    .main-navigation,
    .menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-navigation ul {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 8px 0;
    }

    .touba-socials-fixed {
        top: 8px;
        right: 8px;
        padding: 6px 9px;
    }
    .touba-socials-fixed a { width: 26px; height: 26px; }
    .touba-socials-fixed svg { width: 16px; height: 16px; }

    .woocommerce-products-header__title,
    .post-type-archive-product h1,
    .post-type-archive-product .page-title {
        font-size: 30px !important;
    }

    .woocommerce-products-header,
    .page-header,
    .entry-header {
        padding: 30px 15px 8px !important;
    }

    ul.products {
        gap: 20px;
        margin-bottom: 50px !important;
    }

    /* produits en pleine largeur sur mobile */
    ul.products li.product {
        width: 100% !important;
        max-width: 340px !important;
    }

    /* catégorie : bandeau plus court */
    ul.products li.product-category img {
        height: 200px !important;
    }

    ul.products li.product-category .woocommerce-loop-category__title {
        font-size: 18px !important;
        bottom: 14px !important;
        padding: 11px 16px !important;
        max-width: 85% !important;
    }
}
/* ═══════════════════════════════════════
   FIL D'ARIANE PREMIUM
   ═══════════════════════════════════════ */
.woocommerce-breadcrumb {
    max-width: 1180px !important;
    margin: 26px auto 0 !important;
    padding: 11px 22px !important;
    display: inline-flex !important;
    align-items: center;

    background: #faf7f3 !important;
    border: 1px solid #ece5df !important;
    border-radius: 30px !important;

    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 13px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #9a8578 !important;
    box-shadow: 0 3px 12px rgba(43, 26, 18, 0.05);
}

/* les liens (Accueil...) */
.woocommerce-breadcrumb a {
    color: #b88a44 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #2b1a12 !important;
}

/* le séparateur "/" remplacé par un point doré */
.woocommerce-breadcrumb {
    --wc-breadcrumb-sep: none;
}
.woocommerce-breadcrumb a::after {
    content: "•";
    margin: 0 4px 0 12px;
    color: #d4b06a !important;
    font-weight: 400;
}

/* la page actuelle (ACHETER EN LIGNE) */
.woocommerce-breadcrumb {
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .woocommerce-breadcrumb {
        margin: 16px 15px 0 !important;
        padding: 8px 16px !important;
        font-size: 11px !important;
    }
}
/* ===== MASQUER LE MENU NATIF DU THÈME (garde le hamburger mobmenu) ===== */
@media screen and (max-width: 1000px) {
    .col-lg-11 .toggle-nav.mobile-menu,
    .align-self-center > .toggle-nav.mobile-menu {
        display: none !important;
    }
}
.sct-rupture {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 9;
    background: #b02a2a;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}