/*
Theme Name:  Kadence Child — YLIHTAB CARE
Template:    kadence
Author:      CSW Solutions
Version:     1.5.0
*/

:root {
    --white:#FFFFFF; --sand:#E8DFD0; --clay:#9B7A52;
    --accent:#4A6045; --mid:#6B5740; --deep:#2C2417;
    --cream:#FFFFFF; --light:#FFFFFF;
}

/* Masquer header, footer et titre natifs Kadence */
.yc-has-chrome #masthead,
.yc-has-chrome .site-header,
.yc-has-chrome .kadence-sticky-header,
.yc-has-chrome .header-wrap,
.yc-has-chrome .wp-block-template-part[data-slug="header"],
.yc-has-chrome .kadence-header,
.yc-has-chrome .kadence-top-bar-wrap,
.yc-has-chrome .site-top-bar,
.yc-has-chrome #colophon,
.yc-has-chrome .site-footer,
.yc-has-chrome .entry-hero,
.yc-has-chrome .entry-header,
.yc-has-chrome .page-title,
.yc-has-chrome .page-hero-section,
.yc-has-chrome .entry-hero-container-inner {
    display:none !important;
}

/* Fond blanc unifié partout */
.yc-has-chrome,
.yc-has-chrome body,
.yc-has-chrome #wrapper,
.yc-has-chrome #page,
.yc-has-chrome .site,
.yc-has-chrome .site-container,
.yc-has-chrome #inner-wrap,
.yc-has-chrome .wp-site-blocks,
.yc-has-chrome .content-area,
.yc-has-chrome .content-container,
.yc-has-chrome .content-bg,
.yc-has-chrome #primary,
.yc-has-chrome main#main,
.yc-has-chrome .site-content,
.yc-has-chrome article,
.yc-has-chrome .entry,
.yc-has-chrome .single-content,
.yc-has-chrome .woocommerce,
.yc-has-chrome .woocommerce-page,
.yc-has-chrome .kadence-woo-cart-form-wrap,
.yc-has-chrome .cart-collaterals,
.yc-has-chrome .yc-nav,
.yc-has-chrome .yc-footer {
    background-color:#FFFFFF !important;
    background-image:none !important;
}
.yc-has-chrome,
.yc-has-chrome body,
.yc-has-chrome main#main,
.yc-has-chrome .site-content {
    padding-top:0 !important;
    margin-top:0 !important;
    overflow-x:hidden !important;
    max-width:100% !important;
}

/* Liens (survol vert, sans soulignement) */
.yc-has-chrome .yc-footer a,
.yc-has-chrome .yc-nav a,
.yc-has-chrome .entry-content a { text-decoration:none; }
.yc-has-chrome .yc-footer a:hover,
.yc-has-chrome .entry-content a:hover { color:var(--accent); }

/* Barre d'annonce (ou navbar) */
.yc-has-chrome .yc-topbar {
    position:fixed; top:0; left:0; right:0; width:100%;
    z-index:10000; background:var(--accent); color:#FFFFFF;
    text-align:center; font-size:11px; letter-spacing:0.1em;
    text-transform:uppercase; padding:0 24px;
    height:33px; display:flex; align-items:center; justify-content:center;
}
.yc-has-chrome .yc-topbar a { color:#FFFFFF; text-decoration:underline; text-underline-offset:2px; }

/* Navbar fixe */
.yc-has-chrome .yc-nav {
    position:fixed; top:33px; left:0; right:0; width:100%;
    z-index:9999; border-bottom:0.5px solid var(--sand);
    display:grid; grid-template-columns:1fr auto 1fr;
    align-items:center; padding:0 48px; height:78px;
    transition:padding 0.3s ease, box-shadow 0.3s ease;
}
.yc-has-chrome .yc-nav-logo { justify-self:start; }
.yc-has-chrome .yc-nav-logo,
.yc-has-chrome .yc-nav-links,
.yc-has-chrome .yc-nav-actions { display:flex; align-items:center; height:100%; margin:0; }
.yc-has-chrome .yc-nav-links { justify-content:center; }
.yc-has-chrome .yc-nav-links li { display:flex; align-items:center; margin:0; padding:0; }
.yc-has-chrome .yc-nav-links a { line-height:1; }
.yc-has-chrome .yc-nav-logo img { height:48px; width:auto; display:block; transition:max-height 0.3s ease; }
.yc-has-chrome .yc-nav-links { display:flex; gap:42px; align-items:center; justify-self:center; list-style:none; }
.yc-has-chrome .yc-nav-links a {
    font-size:14px; font-weight:500; letter-spacing:0.10em;
    text-transform:uppercase; color:var(--mid); transition:color 0.2s;
}
.yc-has-chrome .yc-nav-links a:hover { color:var(--accent); }
.yc-has-chrome .yc-nav-actions { justify-self:end; display:flex; align-items:center; gap:8px; }
.yc-has-chrome .yc-nav-cart { display:flex; align-items:center; position:relative; color:var(--mid); cursor:pointer; transition:color 0.2s; margin-left:8px; }
.yc-has-chrome .yc-nav-cart:hover { color:var(--accent); }
.yc-has-chrome .yc-nav-cart svg { width:26px; height:26px; stroke:currentColor; fill:none; stroke-width:1.4; }
.yc-has-chrome .yc-cart-count {
    position:absolute; top:-7px; right:-9px; background:var(--accent);
    color:#FFFFFF; font-size:9px; font-weight:500; width:16px; height:16px;
    border-radius:50%; display:none; align-items:center; justify-content:center;
}
.yc-has-chrome .yc-nav-burger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:4px; }
.yc-has-chrome .yc-nav-burger span { display:block; width:24px; height:1.5px; background:var(--deep); transition:all 0.3s; }
.yc-has-chrome .yc-nav.scrolled { padding-top:0 !important; padding-bottom:0 !important; box-shadow:0 2px 20px rgba(0,0,0,0.08) !important; }
.yc-has-chrome .yc-nav.scrolled .yc-nav-logo img { max-height:38px !important; }

/* Header collé à la Navbar) */
.yc-has-chrome:not(.page-id-1412):not(.page-id-1678) .content-wrap { padding-top:131px !important; }
.yc-has-chrome.woocommerce-cart .content-wrap,
.yc-has-chrome.woocommerce-account .content-wrap,
.yc-has-chrome.woocommerce-page .content-wrap { padding-top:131px !important; }
.page-id-1412 .yc-wrap { padding-top:111px; }
.page-id-1678 .yc-product { padding-top:111px; }

/* Footer */
.yc-has-chrome .yc-footer { border-top:0.5px solid var(--sand); padding:56px 64px 32px; width:100%; box-sizing:border-box; }
.yc-has-chrome .yc-footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:48px; max-width:1200px; margin:0 auto 40px; }
.yc-has-chrome .yc-footer-brand { font-family:'Cormorant Garamond', serif; }
.yc-has-chrome .yc-footer-brand img { height:52px; width:auto; display:block; margin-bottom:16px; }
.yc-has-chrome .yc-footer-tagline { font-size:13px; color:var(--mid); line-height:1.7; letter-spacing:0.03em; max-width:240px; }
.yc-has-chrome .yc-footer-col h4 { font-family:'Cormorant Garamond', serif; font-size:15px; font-weight:500; letter-spacing:0.14em; text-transform:uppercase; color:var(--clay); margin-bottom:18px; }
.yc-has-chrome .yc-footer-col ul { list-style:none; display:flex; flex-direction:column; gap:11px; margin:0; padding:0; }
.yc-has-chrome .yc-footer-col a { font-size:13px; letter-spacing:0.03em; color:var(--mid); transition:color 0.2s, padding-left 0.2s; }
.yc-has-chrome .yc-footer-col a:hover { color:var(--accent); padding-left:3px; }
.yc-has-chrome .yc-footer-bottom { border-top:0.5px solid var(--sand); padding-top:24px; max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.yc-has-chrome .yc-footer-copy { font-size:11px; letter-spacing:0.06em; color:var(--mid); flex:1; text-align:left; }
.yc-has-chrome .yc-footer-credit { font-size:11px; letter-spacing:0.06em; color:var(--mid); flex:1; text-align:center; }
.yc-has-chrome .yc-footer-credit a { color:var(--clay); text-decoration:none; transition:color 0.2s; }
.yc-has-chrome .yc-footer-credit a:hover { color:var(--accent); }
.yc-has-chrome .yc-footer-madein { font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--clay); flex:1; text-align:right; }

/* Pleine largeur accueil (1412) + produit (1678) */
.page-id-1412 .site-container, .page-id-1412 .content-container, .page-id-1412 .content-area,
.page-id-1412 .content-wrap, .page-id-1412 .entry-content-wrap, .page-id-1412 .entry-content,
.page-id-1412 .entry-content.single-content, .page-id-1412 .content-width, .page-id-1412 #primary, .page-id-1412 #main,
.page-id-1678 .site-container, .page-id-1678 .content-container, .page-id-1678 .content-area,
.page-id-1678 .content-wrap, .page-id-1678 .entry-content-wrap, .page-id-1678 .entry-content,
.page-id-1678 .entry-content.single-content, .page-id-1678 .content-width, .page-id-1678 #primary, .page-id-1678 #main {
    max-width:100% !important; width:100% !important;
    padding-left:0 !important; padding-right:0 !important;
    margin-left:0 !important; margin-right:0 !important;
}

/* Boutons — survol : fond deep→vert, texte blanc figé */
.btn-hero, .btn-woo, .btn-primary,
.yc-has-chrome .woocommerce button.button,
.yc-has-chrome .woocommerce input.button,
.yc-has-chrome .woocommerce a.button,
.yc-has-chrome .woocommerce .actions .button {
    background:var(--deep); color:#FFFFFF !important; transition:background 0.25s !important;
}
.btn-hero:hover, .btn-woo:hover, .btn-primary:hover,
.yc-has-chrome .woocommerce button.button:hover,
.yc-has-chrome .woocommerce input.button:hover,
.yc-has-chrome .woocommerce a.button:hover,
.yc-has-chrome .woocommerce .actions .button:hover {
    background:var(--accent) !important; color:#FFFFFF !important;
}
.btn-hero { background:var(--accent); }
.btn-hero:hover { background:#3B4D37 !important; }
.btn-outline { background:transparent; color:var(--deep) !important; border:0.5px solid var(--deep); transition:background 0.25s, color 0.25s !important; }
.btn-outline:hover { background:var(--deep) !important; color:#FFFFFF !important; }

/* Page crème : bouton achat + accordéon */
.yc-buy { background:var(--accent) !important; color:#FFFFFF !important; transition:background 0.25s !important; }
.yc-buy:hover { background:var(--deep) !important; color:#FFFFFF !important; }
.yc-accordion-head:hover,
.yc-accordion-head:focus,
.yc-accordion-head:active { background:none !important; background-color:transparent !important; box-shadow:none !important; outline:none !important; color:var(--deep) !important; }
.yc-accordion-head:hover { color:var(--clay) !important; }

/* Panier : champ promo + boutons contenus (sans casser le tableau) */
.yc-has-chrome .woocommerce .coupon input[type="text"] { padding:15px 16px !important; border:0.5px solid var(--sand) !important; font-family:'Jost', sans-serif !important; }
.yc-has-chrome .woocommerce table.cart td.actions { text-align:left !important; white-space:normal !important; }
.yc-has-chrome .woocommerce table.cart td.actions .coupon { display:inline-flex; gap:8px; vertical-align:middle; margin:0 0 14px 0 !important; }
.yc-has-chrome .woocommerce table.cart td.actions button,
.yc-has-chrome .woocommerce table.cart td.actions input.button {
    width:auto !important; min-width:0 !important; white-space:nowrap !important;
    display:inline-block !important; vertical-align:middle;
    padding:15px 24px !important; line-height:1.2 !important; height:auto !important;
    float:none !important; margin:0 !important;
}
.yc-has-chrome .woocommerce table.cart td.actions button[name="update_cart"],
.yc-has-chrome .woocommerce table.cart td.actions input[name="update_cart"] { display:block !important; margin-top:12px !important; }

/* Mobile */
@media (max-width:900px) {
    .yc-has-chrome .yc-nav { padding:0 24px; grid-template-columns:auto 1fr auto; }
    .yc-has-chrome .yc-nav-links {
        display:none; position:fixed; top:111px; left:0; right:0;
        flex-direction:column; align-items:stretch; height:auto;
        background:#FFFFFF; border-top:0.5px solid var(--sand);
        border-bottom:0.5px solid var(--sand);
        box-shadow:0 12px 24px rgba(0,0,0,0.06);
        padding:8px 0; gap:0; z-index:9998; margin:0;
    }
    .yc-has-chrome .yc-nav-links.open { display:flex; }
    .yc-has-chrome .yc-nav-links li { width:100%; justify-content:center; }
    .yc-has-chrome .yc-nav-links li a {
        display:block; width:100%; text-align:center;
        padding:16px 24px; font-size:13px;
        border-bottom:0.5px solid var(--sand);
    }
    .yc-has-chrome .yc-nav-links li:last-child a { border-bottom:none; }
    .yc-has-chrome .yc-nav-burger { display:flex; }
    .yc-has-chrome .yc-footer { padding:40px 24px 28px; }
    .yc-has-chrome .yc-footer-grid { grid-template-columns:1fr; gap:32px; }
    .yc-has-chrome .yc-footer-bottom { flex-direction:column; text-align:center; }

    /* ── Panier mobile : lignes empilées en cartes ── */
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart,
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart tbody { display:block; width:100%; }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart thead { display:none; }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart tr {
        display:block; margin:0 0 20px; padding:16px;
        border:0.5px solid var(--sand); border-radius:4px;
        background:#FFFFFF !important;
    }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart tr:nth-child(2n) td { background:transparent !important; }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart td {
        display:flex; justify-content:space-between; align-items:center;
        width:auto !important; text-align:right !important;
        padding:8px 0 !important; border:none !important;
        border-bottom:0.5px solid var(--sand) !important;
    }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart td:last-child { border-bottom:none !important; }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart td::before {
        content:attr(data-title); font-weight:500; color:var(--mid);
        text-align:left; padding-right:16px;
    }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart td.product-remove { justify-content:flex-end; }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart td.product-thumbnail { justify-content:center; }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart td.product-thumbnail::before { display:none; }
    .yc-has-chrome .woocommerce table.shop_table_responsive.cart td.product-thumbnail img { width:80px; height:auto; }

    /* Ligne actions en pleine largeur, j'ai fais une colonne */
    .yc-has-chrome .woocommerce table.cart td.actions {
        display:block !important; padding:16px 0 0 !important;
        border:none !important;
    }
    .yc-has-chrome .woocommerce table.cart td.actions::before { display:none !important; }
    .yc-has-chrome .woocommerce table.cart td.actions .coupon { display:block !important; margin:0 0 12px !important; }
    .yc-has-chrome .woocommerce table.cart td.actions .coupon input[type="text"],
    .yc-has-chrome .woocommerce table.cart td.actions .coupon button,
    .yc-has-chrome .woocommerce table.cart td.actions button[name="update_cart"],
    .yc-has-chrome .woocommerce table.cart td.actions input[name="update_cart"] {
        display:block !important; width:100% !important;
        box-sizing:border-box !important; max-width:100% !important;
        margin:0 0 10px !important; float:none !important;
    }
    .yc-has-chrome .woocommerce table.cart td.actions button[name="update_cart"],
    .yc-has-chrome .woocommerce table.cart td.actions input[name="update_cart"] { margin-bottom:0 !important; }

    /* ── Panier mobile : affichage pleine largeur ── */
    .yc-has-chrome.woocommerce-cart .woocommerce { display:block !important; }
    .yc-has-chrome.woocommerce-cart .woocommerce-cart-form,
    .yc-has-chrome.woocommerce-cart .cart-collaterals,
    .yc-has-chrome.woocommerce-cart .cart-collaterals .cart_totals,
    .yc-has-chrome.woocommerce-cart .cart-collaterals .cross-sells {
        width:100% !important; max-width:100% !important;
        float:none !important; margin-left:0 !important; margin-right:0 !important;
    }
    .yc-has-chrome.woocommerce-cart .cart_totals table.shop_table th,
    .yc-has-chrome.woocommerce-cart .cart_totals table.shop_table td {
        white-space:normal !important;
    }
    .yc-has-chrome.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        display:block !important; width:100% !important;
        box-sizing:border-box !important; white-space:normal !important;
        padding:16px 20px !important; line-height:1.3 !important; height:auto !important;
    }
    
}

/* Exception pour masquer les titres des pages sur panier et checkout */
.woocommerce-checkout .entry-hero, .woocommerce-checkout .entry-header, .woocommerce-checkout .page-title, .woocommerce-checkout .page-hero-section, .woocommerce-checkout .entry-hero-container-inner,
.woocommerce-cart .entry-hero, .woocommerce-cart .entry-header, .woocommerce-cart .page-title, .woocommerce-cart .page-hero-section,
.woocommerce-account .entry-hero, .woocommerce-account .entry-header, .woocommerce-account .page-title, .woocommerce-account .page-hero-section {
    display:none !important;
}
/* ═══ Checkout mobile : lisibilité  ═══ */
@media (max-width:768px) {
    .woocommerce-checkout .col2-set,
    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2,
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2 {
        width:100% !important; max-width:100% !important;
        float:none !important; margin:0 0 24px !important;
    }
    .woocommerce-checkout #order_review,
    .woocommerce-checkout #order_review_heading {
        width:100% !important; max-width:100% !important;
        float:none !important; margin-left:0 !important;
    }
    .woocommerce-checkout #order_review { padding:24px 20px !important; }

    /* Tableau récap commande : lignes lisibles */
    .woocommerce-checkout #order_review table.shop_table th,
    .woocommerce-checkout #order_review table.shop_table td {
        white-space:normal !important; padding:10px 8px !important;
    }

    /* Bouton Commander : pleine largeur*/
    .woocommerce-checkout #place_order,
    .woocommerce-checkout .wc-block-components-checkout-place-order-button {
        display:block !important; width:100% !important;
        box-sizing:border-box !important; white-space:normal !important;
        padding:16px 20px !important; line-height:1.3 !important; height:auto !important;
        float:none !important;
    }

/* Champs formulaire : pleine largeur */
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width:100% !important; float:none !important; margin-right:0 !important;
    }
}

/* Checkout : fond blanc  */
.page-id-8,
.page-id-8 body,
.page-id-8 .site,
.page-id-8 .site-container,
.page-id-8 #wrapper,
.page-id-8 #inner-wrap,
.page-id-8 .wp-site-blocks,
.page-id-8 .content-container,
.page-id-8 .content-area,
.page-id-8 .content-bg,
.page-id-8 .content-wrap,
.page-id-8 .entry-content-wrap,
.page-id-8 .entry-content,
.page-id-8 #primary,
.page-id-8 #main,
.page-id-8 .site-content {
    background-color:#FFFFFF !important;
    background-image:none !important;
    box-shadow:none !important;
}
/* ═══ SYSTÈME TYPOGRAPHIQUE UNIFIÉ — TITRES ═══*/


.yc-has-chrome .yc-about-h1,
.yc-has-chrome .yc-info-title,
.yc-has-chrome .yc-contact-title {
    font-size: 50px !important;
    font-weight: 300 !important;
}


.yc-has-chrome .section-title,
.yc-has-chrome .editorial-title,
.yc-has-chrome .yc-about-h2,
.yc-has-chrome .yc-about-matieres-title,
.yc-has-chrome .yc-reviews-title,
.yc-has-chrome .yc-about-engage-h2 {
    font-size: 36px !important;
    font-weight: 300 !important;
}
/* Panier & checkout : contenu pleine largeur sur mobile */
@media (max-width:768px) {
    .yc-has-chrome.woocommerce-cart .entry-content,
    .yc-has-chrome.woocommerce-cart .content-width,
    .yc-has-chrome.woocommerce-cart .site-container,
    .page-id-8 .entry-content,
    .page-id-8 .content-width,
    .page-id-8 .site-container {
        max-width:100% !important;
        width:100% !important;
        padding-left:16px !important;
        padding-right:16px !important;
        margin-left:0 !important;
        margin-right:0 !important;
    }
}