/*
Theme Name: Banana Cottage Souki
Theme URI: https://example.com/banana-cottage-souki
Author: Banana Cottage & ChatGPT
Author URI: https://example.com
Description: Thème WordPress minimaliste et premium pour écolodge, inspiré de Souki Lodges, intégrant des champs ACF.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: banana-cottage-souki
*/

:root {
    --bc-green: #1E3E26;
    --bc-green-dark: #15281A;
    --bc-beige: #E8E2D6;
    --bc-beige-light: #FAF9F7;
    --bc-black-soft: #111111;
    --bc-text: #333333;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--bc-text);
    background-color: #ffffff;
}

/* ===========================
   Refonte Banana Cottage - Style Souki
   Préfixe : bc-
   =========================== */

.bc-home {
    font-family: inherit;
    color: var(--bc-text);
    background-color: #ffffff;
}

/* HEADER */

.bc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0));
    color: #ffffff;
}

.bc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bc-logo {
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
}

/* Navigation desktop */

.bc-nav-desktop {
    display: none;
    gap: 1.8rem;
    font-size: 0.95rem;
}

.bc-nav-desktop a {
    text-decoration: none;
    color: #ffffff;
    opacity: 0.88;
    position: relative;
}

.bc-nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.2s ease;
}

.bc-nav-desktop a:hover::after {
    width: 100%;
}

.bc-nav-cta {
    padding: 0.45rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.7);
}

/* Burger */

.bc-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.bc-burger span {
    display: block;
    height: 2px;
    width: 18px;
    background: #ffffff;
    margin: 0 auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bc-burger.is-open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.bc-burger.is-open span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

/* Nav mobile */

.bc-nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 75%;
    max-width: 320px;
    background: rgba(10, 15, 10, 0.96);
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    z-index: 40;
}

.bc-nav-mobile a {
    color: #f7f7f7;
    text-decoration: none;
    font-size: 1rem;
}

.bc-nav-mobile .bc-nav-cta {
    border: 1px solid rgba(255,255,255,0.75);
    padding: 0.55rem 1.2rem;
    display: inline-block;
}

.bc-nav-mobile.is-open {
    transform: translateX(0);
}

.bc-no-scroll {
    overflow: hidden;
}

/* Desktop header */

@media (min-width: 900px) {
    .bc-nav-desktop {
        display: flex;
        align-items: center;
    }
    .bc-burger {
        display: none;
    }
    .bc-nav-mobile {
        display: none;
    }
}

/* HERO */

.bc-hero {
    position: relative;
    height: 100vh;
    min-height: 540px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('https://via.placeholder.com/1600x900?text=Hero+Banana+Cottage');
}

.bc-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0,0,0,0.55), rgba(0,0,0,0.8));
    mix-blend-mode: multiply;
}

.bc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.bc-hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bc-hero-content p {
    font-size: 1.05rem;
    max-width: 480px;
    opacity: 0.9;
    margin-bottom: 1.8rem;
}

.bc-btn-primary {
    display: inline-block;
    padding: 0.85rem 2.4rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: #ffffff;
    color: #000000;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.bc-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.bc-btn-light {
    background: #ffffff;
    color: var(--bc-black-soft);
}

/* SECTIONS */

.bc-section {
    padding: 4.5rem 1.5rem;
}

.bc-section-light {
    background: #ffffff;
}

.bc-section-gray {
    background: var(--bc-beige-light);
}

.bc-section-dark {
    background: var(--bc-black-soft);
    color: #f7f7f7;
}

.bc-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.bc-section h2 {
    font-size: 2rem;
    margin-bottom: 1.3rem;
    text-align: left;
}

.bc-section p {
    line-height: 1.7;
    font-size: 0.98rem;
}

.bc-section-centered {
    text-align: center;
}

.bc-section-centered h2 {
    text-align: center;
}

.bc-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .bc-section {
        padding: 5.5rem 1.5rem;
    }
    .bc-section h2 {
        font-size: 2.4rem;
    }
    .bc-section-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: center;
    }
}

/* Images */

.bc-img-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 70%;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.bc-img-ratio-large {
    position: relative;
    width: 100%;
    padding-bottom: 55%;
    border-radius: 28px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

/* Lodges */

.bc-lodges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    margin-top: 2rem;
}

.bc-lodge-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.bc-lodge-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (min-width: 700px) {
    .bc-lodges-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Expérience */

.bc-experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.2rem;
}

@media (min-width: 900px) {
    .bc-experience-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Témoignages */

.bc-testimonials {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 1.8rem;
}

.bc-testimonials blockquote {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.85;
}

/* Réservation */

.bc-reservation p {
    max-width: 520px;
    margin: 0 auto 1.8rem;
}

/* Footer */

.bc-footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    background: #ffffff;
}

/* Responsive hero text */

@media (min-width: 900px) {
    .bc-hero-content h1 {
        font-size: 3.4rem;
    }
    .bc-hero-content p {
        font-size: 1.1rem;
    }
}

/* Effet de zoom très lent sur le hero */
@keyframes bc-hero-zoom {
    from { background-size: 100%; }
    to   { background-size: 108%; }
}

.bc-hero {
    animation: bc-hero-zoom 18s ease-in-out infinite alternate;
}

/* ===========================
   REVEAL AU SCROLL (UNIQUEMENT HOME)
   -> évite les "disparitions" sur Woo / pages après actions AJAX
   =========================== */

/* Par défaut : visible partout */
.bc-section{
  opacity: 1;
  transform: none;
}

/* Reveal OPT-IN : uniquement quand le JS ajoute body.bc-reveal */
body.bc-reveal .bc-section{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
body.bc-reveal .bc-section.is-visible{
  opacity: 1;
  transform: translateY(0);
}


/* Si tu utilises aussi reveal-element (cartes boutique) : visible par défaut */
.reveal-element {
    opacity: 1 !important;
    transform: none !important;
}

html {
    scroll-behavior: smooth;
}

/* Header après scroll */
.bc-header.scrolled {
    background: rgba(17, 17, 17, 0.9);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* Bouton de réservation HBook — version vert premium */
.booking-form-wrapper .hb-submit,
.booking-form-wrapper input[type="submit"],
.booking-form-wrapper button[type="submit"],
.booking-form-wrapper .hb-form input[type="button"],
.booking-form-wrapper .hb-form button {
    background-color: #2D5016 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 1.05rem !important;
    padding: 1rem 2.5rem !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 20px rgba(22, 46, 15, 0.35) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.booking-form-wrapper .hb-submit:hover,
.booking-form-wrapper input[type="submit"]:hover,
.booking-form-wrapper button[type="submit"]:hover,
.booking-form-wrapper .hb-form input[type="button"]:hover,
.booking-form-wrapper .hb-form button:hover {
    background-color: #3d6b22 !important;
    box-shadow: 0 10px 26px rgba(22, 46, 15, 0.45) !important;
    transform: translateY(-2px);
}

/* Retire le titre automatique du formulaire HBook */
.booking-form-wrapper .hb-booking-form-title,
.booking-form-wrapper .hb-form-title,
.booking-form-wrapper h3.hb-form-title {
    display: none !important;
}

/* ============================
   STABLE FIX WooCommerce
   Empêche la "disparition" après Add to cart (AJAX fragments)
   ============================ */

.woocommerce-page .bc-section,
.woocommerce-page .reveal-element,
body.single-product .bc-section,
body.single-product .reveal-element,
body.woocommerce-cart .bc-section,
body.woocommerce-cart .reveal-element,
body.woocommerce-checkout .bc-section,
body.woocommerce-checkout .reveal-element,
body.woocommerce-account .bc-section,
body.woocommerce-account .reveal-element {
    opacity: 1 !important;
    transform: none !important;
}

/* ===========================
   BOUTIQUE (Hero Woo Shop)
   =========================== */

body.woocommerce-shop .bc-hero {
    background-image: url('https://bananacottage.fr/wp-content/uploads/2021/07/image00012-scaled.jpeg') !important;
    background-size: cover;
    background-position: center;
}

/* HERO personnalisé pour la page Boutique */
.woocommerce-shop .bc-shop-hero {
    position: relative;
    min-height: 360px;
    padding: 4rem 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-image: url('https://bananacottage.fr/wp-content/uploads/2021/07/image00012-scaled.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.woocommerce-shop .bc-shop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0,0,0,0.35), rgba(0,0,0,0.7));
}

.woocommerce-shop .bc-shop-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.woocommerce-shop .bc-shop-hero-inner h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.woocommerce-shop .bc-shop-hero-inner p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .woocommerce-shop .bc-shop-hero {
        min-height: 280px;
        padding: 3rem 1.25rem;
        margin-bottom: 2.5rem;
    }

    .woocommerce-shop .bc-shop-hero-inner h1 {
        font-size: 1.7rem;
        letter-spacing: 0.12em;
    }

    .woocommerce-shop .bc-shop-hero-inner p {
        font-size: 0.95rem;
    }
}

/* Bouton "Voir le panier" après ajout */
.woocommerce a.added_to_cart {
    background-color: #2D5016 !important;
    color: #ffffff !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.woocommerce a.added_to_cart:hover {
    background-color: #3d6b22 !important;
    transform: translateY(-1px);
}

/* ===========================
   PAGES PRODUIT WOOCOMMERCE
   =========================== */

body.single-product {
    background-color: #F8F6F0;
}

/* Container principal Woo (desktop) */
.single-product .woocommerce {
    max-width: 1100px;
    margin: 96px auto 64px;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
}

/* Titre produit */
.single-product .product_title {
    font-family: "Playfair Display", serif;
    font-size: 2.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Prix */
.single-product p.price,
.single-product span.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D5016;
}

/* Mise en page image + résumé (desktop) */
@media (min-width: 992px) {
    .single-product div.product {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 48px;
        align-items: start;
    }
}

/* Mobile : FULL WIDTH + respirations */
@media (max-width: 768px) {
    body.single-product {
        background: #fff;
    }

    .single-product .woocommerce {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
    }

    .single-product div.product {
        display: block;
        padding: 16px !important;
    }

    .single-product .woocommerce-product-gallery,
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
    .single-product .woocommerce-product-gallery__image,
    .single-product .woocommerce-product-gallery img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 18px !important;
    }

    .single-product .product_title {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin: 10px 0 10px !important;
    }

    .single-product p.price,
    .single-product span.price {
        font-size: 1.35rem !important;
    }

    .single-product form.cart {
        display: grid;
        gap: 12px;
    }

    .single-product .single_add_to_cart_button {
        width: 100% !important;
        display: inline-flex !important;
        justify-content: center !important;
    }

    .single-product .woocommerce-tabs {
        padding: 0 16px 16px !important;
        margin-top: 18px !important;
    }
}

/* Bouton ajouter au panier (fiche produit) */
.single-product .product .single_add_to_cart_button {
    background-color: #2D5016 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0.9rem 2.4rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: none;
}

.single-product .product .single_add_to_cart_button:hover {
    filter: brightness(1.05);
}

/* Tabs Description / Avis */
.single-product .woocommerce-tabs {
    margin-top: 2.5rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    background: transparent;
}

.single-product .woocommerce-tabs ul.tabs::before {
    display: none;
}

.single-product .woocommerce-tabs ul.tabs li {
    border: none;
    margin: 0;
    background: transparent;
}

.single-product .woocommerce-tabs ul.tabs li a {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    border-color: #2D5016;
}

/* Texte de description */
.single-product .woocommerce-Tabs-panel--description {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.8;
    font-size: 0.98rem;
    color: #262626;
}

/* Related products */
.single-product .related.products {
    margin-top: 3rem;
    border-top: 1px solid #eee;
    padding-top: 2.5rem;
}

.single-product .related.products > h2 {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}

/* Grille premium */
.single-product .related.products ul.products {
    display: grid !important;
    gap: 18px !important;
    margin: 0 !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 769px) {
    .single-product .related.products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .single-product .related.products {
        padding: 0 16px 24px !important;
    }

    .single-product .related.products ul.products {
        grid-template-columns: 1fr !important;
    }

    .single-product .related.products ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        border-radius: 18px !important;
        background: #F8F6F0 !important;
    }

    .single-product .related.products ul.products li.product a img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 14px !important;
        margin: 0 0 12px !important;
    }
}

/* Carte related */
.single-product .related.products ul.products li.product {
    background-color: #F8F6F0;
    border-radius: 18px;
    padding: 1.4rem 1.2rem 1.6rem;
    text-align: left;
}

.single-product .related.products ul.products li.product a img {
    border-radius: 12px;
}

.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    line-height: 1.4;
}

.single-product .related.products ul.products li.product .price {
    color: #2D5016;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Boutons related – anti “gros cercle” définitif */
.single-product .related.products li.product a.button,
.single-product .related.products li.product a.add_to_cart_button,
.single-product .related.products li.product button,
.single-product .related.products li.product [class*="add_to_cart"] {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 0.8rem !important;
    background-color: #2D5016 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    border: none !important;
}

.single-product .related.products li.product a.button::before,
.single-product .related.products li.product a.button::after,
.single-product .related.products li.product a.add_to_cart_button::before,
.single-product .related.products li.product a.add_to_cart_button::after,
.single-product .related.products li.product button::before,
.single-product .related.products li.product button::after {
    content: none !important;
    display: none !important;
}
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error{
  max-width: 1100px;
  margin: 90px auto 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  color: #222;
}

/* ===========================
   CART — Fix gros espace après la notice (mobile/desktop)
   =========================== */

/* Le wrapper des messages Woo (c’est souvent lui qui crée le gap) */
body.woocommerce-cart .woocommerce-notices-wrapper{
  margin: 90px auto 12px !important; /* réduit l’espace sous la notice */
  padding: 0 !important;
}

/* La notice "Astuce" */
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message{
  margin: 0 0 12px !important;       /* plus de marge énorme */
  padding: 12px 14px !important;
}

/* Le formulaire panier juste après la notice */
body.woocommerce-cart .woocommerce-notices-wrapper + form.woocommerce-cart-form{
  margin-top: 0 !important;
  padding-top: 0 !important;
  clear: none !important;
}

/* Table panier */
body.woocommerce-cart form.woocommerce-cart-form table.shop_table{
  margin-top: 0 !important;
}

/* Mobile: encore plus compact */
@media (max-width: 768px){
  body.woocommerce-cart .woocommerce-notices-wrapper{
    margin: 80px 16px 10px !important; /* si header fixe, on garde un top safe */
  }
  body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
  body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message{
    margin-bottom: 10px !important;
  }
}


/* ===========================
   WOOCOMMERCE — Banana Cottage UI (Cart/Checkout/Account)
   Harmonise boutons, champs, tableaux + Woo Blocks
   =========================== */

:root{
  --bc-cream: var(--bc-beige-light);
  --bc-ink: var(--bc-black-soft);
}

/* ---- Boutons Woo (classique) ---- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button{
  background: var(--bc-green) !important;
  color: #fff !important;
  border: 1px solid var(--bc-green) !important;
  border-radius: 9999px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 20px rgba(22, 46, 15, 0.20) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover{
  background: var(--bc-green-dark) !important;
  border-color: var(--bc-green-dark) !important;
  color:#fff !important;
}

/* ---- Inputs Woo (classique) ---- */
.woocommerce input.input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select{
  background: var(--bc-beige-light) !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  outline: none !important;
  box-shadow: none !important;
}

.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus{
  border-color: rgba(30, 62, 38, .55) !important;
}

/* ---- Tables Panier ---- */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table{
  background:#fff !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0,0,0,.06) !important;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td{
  border-color: rgba(0,0,0,.06) !important;
}

.woocommerce-cart .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order{
  background: #fff !important;
  border-radius: 18px !important;
  padding: 16px !important;
  border: 1px solid rgba(0,0,0,.06) !important;
}

/* ---- Bouton "Proceed to checkout" (Woo classique) ---- */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  background: var(--bc-green) !important;
  border-color: var(--bc-green) !important;
  border-radius: 9999px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  padding: 16px 18px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover{
  background: var(--bc-green-dark) !important;
  border-color: var(--bc-green-dark) !important;
}

/* ---- Woo Blocks (si panier/checkout en blocs) ---- */
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.wc-block-cart__submit .wc-block-components-button{
  background: var(--bc-green) !important;
  color:#fff !important;
  border-radius: 9999px !important;
  border: 1px solid var(--bc-green) !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  padding: 16px 18px !important;
  box-shadow: 0 8px 20px rgba(22, 46, 15, 0.20) !important;
}

.wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.wc-block-cart__submit .wc-block-components-button:hover{
  background: var(--bc-green-dark) !important;
  border-color: var(--bc-green-dark) !important;
}

/* Inputs Blocks */
.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-combobox-control input{
  background: var(--bc-beige-light) !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 14px !important;
}

/* =========================================
   FIX DESKTOP UNIQUEMENT (sans casser mobile)
   - Titre centré + plus visible
   - Related products : 3 colonnes seulement en desktop
   ========================================= */

/* 1) TITRE (desktop uniquement) */
@media (min-width: 992px){
  body.single-product .woocommerce div.product .summary .product_title.entry-title{
    text-align: center !important;
    font-size: 2.6rem !important;
    line-height: 1.15 !important;
    max-width: 900px !important;
    margin: 0 auto 18px !important;
  }

  body.single-product .woocommerce div.product .summary{
    text-align: center !important;
  }

  body.single-product .woocommerce div.product .summary p.price,
  body.single-product .woocommerce div.product .summary span.price{
    display: block !important;
    text-align: center !important;
    margin: 0 0 18px !important;
  }
}

/* 2) RELATED PRODUCTS (desktop uniquement) */
@media (min-width: 992px){
  body.single-product .woocommerce .related.products ul.products{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.single-product .woocommerce .related.products ul.products li.product{
    float: none !important;
    width: auto !important;
    margin: 0 !important;
  }
}

/* 3) MOBILE : on garde ton rendu parfait (sécurité) */
@media (max-width: 991px){
  body.single-product .woocommerce .related.products ul.products{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.single-product .woocommerce .related.products ul.products li.product{
    width: 100% !important;
    margin: 0 !important;
  }
}

/* ======================================================
   FICHE PRODUIT — TITRE DE PAGE (CELUI VISIBLE EN HAUT)
   ====================================================== */

body.single-product .entry-title,
body.single-product header.entry-header h1,
body.single-product .wp-block-post-title {
    text-align: center !important;
    font-weight: 800 !important;
    font-family: "Playfair Display", serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    max-width: 980px;
    margin: 40px auto 24px;
    padding: 0 20px;
}

/* Desktop uniquement : plus impactant */
@media (min-width: 992px) {
    body.single-product .entry-title,
    body.single-product header.entry-header h1,
    body.single-product .wp-block-post-title {
        font-size: 2.6rem;
        line-height: 1.15;
    }
}

/* Mobile : on respecte ton rendu actuel */
@media (max-width: 768px) {
    body.single-product .entry-title,
    body.single-product header.entry-header h1,
    body.single-product .wp-block-post-title {
        font-size: 1.6rem;
        letter-spacing: 0.05em;
        margin: 20px auto 16px;
    }
}

/* ======================================================
   FIX NOTICE WOOCOMMERCE (icône chevauche le texte)
   Cart / Checkout / Shop / Account
   ====================================================== */

/* Le conteneur de message : on passe en flex */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info{
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;

  /* on neutralise les vieux paddings Woo qui étaient faits pour l'icône en absolute */
  padding: 14px 16px !important;
  padding-left: 16px !important;
  text-indent: 0 !important;

  line-height: 1.45 !important;
}

/* L’icône Woo est souvent en ::before */
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-info::before{
  position: static !important;   /* ✅ plus de chevauchement */
  top: auto !important;
  left: auto !important;
  margin: 2px 0 0 0 !important;
  flex: 0 0 auto !important;
  transform: none !important;
}

/* Sécurité : si le thème ajoute du padding via :before */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info{
  background-clip: padding-box;
}

/* Mobile : un peu plus compact */
@media (max-width: 768px){
  .woocommerce .woocommerce-message,
  .woocommerce .woocommerce-error,
  .woocommerce .woocommerce-info{
    padding: 12px 14px !important;
    gap: 10px !important;
  }
}

/* ======================================================
   CGV & Mentions légales — Banana Cottage Premium
   ====================================================== */

/* Fond général + respiration */
.page-id-790,
.page-id-790 body,
body.page-id-790 {
    background: var(--bc-beige-light);
}

/* Container principal */
.page-id-790 main,
.page-id-790 .entry-content {
    max-width: 960px;
    margin: 140px auto 80px;
    padding: 0 20px;
}

/* Carte premium */
.page-id-790 .entry-content > * {
    background: #ffffff;
    border-radius: 24px;
    padding: 42px 40px;
    box-shadow: 0 22px 55px rgba(0,0,0,0.10);
}

/* Logo en haut */
.page-id-790 .wp-block-image {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.page-id-790 .wp-block-image img {
    width: 110px;
    height: auto;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.15);
}

/* Titre principal */
.page-id-790 h1,
.page-id-790 h2:first-of-type {
    font-family: "Playfair Display", serif;
    text-align: center;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 28px;
}

/* Titres sections */
.page-id-790 h2,
.page-id-790 h3 {
    font-family: "Playfair Display", serif;
    letter-spacing: 0.06em;
    margin-top: 36px;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

/* Texte long lisible */
.page-id-790 p,
.page-id-790 li {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #333;
}

/* Listes */
.page-id-790 ul {
    padding-left: 20px;
    margin: 14px 0 24px;
}

.page-id-790 ul li {
    margin-bottom: 8px;
}

/* Séparateurs visuels naturels */
.page-id-790 hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.15), transparent);
    margin: 42px 0;
}

/* Liens */
.page-id-790 a {
    color: var(--bc-green);
    font-weight: 600;
    text-decoration: none;
}

.page-id-790 a:hover {
    text-decoration: underline;
}

/* Signature / italique final */
.page-id-790 em {
    display: block;
    text-align: center;
    margin-top: 32px;
    font-style: italic;
    opacity: 0.8;
}

/* Mobile */
@media (max-width: 768px) {
    .page-id-790 main,
    .page-id-790 .entry-content {
        margin: 110px auto 60px;
    }

    .page-id-790 .entry-content > * {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .page-id-790 h1,
    .page-id-790 h2:first-of-type {
        font-size: 1.4rem;
        letter-spacing: 0.1em;
    }
}