/*
Theme Name: BP Theme
Description: Thème bloc des boutiques bp-provision. Enfant de Twenty Twenty-Five ; la charte (couleurs, polices, rayons) vient du blueprint via les variables CSS --bp-* de bp-core.
Template: twentytwentyfive
Version: 0.2.0
Text Domain: bp-theme
Requires at least: 6.6
Requires PHP: 8.0
*/

.bp-wrap { width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
@media (max-width: 749px) { .bp-wrap { padding-left: 16px; padding-right: 16px; } }

/* ---- En-tête : tout en couleur de marque, logo clair, barre d'annonces, menu, recherche ---- */
.bp-header { background: var(--bp-mega-bg, var(--bp-scheme-1-button, #2f5de4)); color: #ffffff; font-family: 'Montserrat', system-ui, sans-serif; padding: 0 0 16px; }
.bp-header a { color: #ffffff; text-decoration: none; }
.bp-topbar { background: rgba(0, 0, 0, 0.16); font-size: 11.5px; padding: 5px 0; }
.bp-topbar .bp-wrap { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.bp-headrow { padding-top: 14px; padding-bottom: 6px; gap: 20px; }
.bp-headrow .wp-block-navigation { font-weight: 600; font-size: 14px; }
.bp-headrow .wp-block-navigation a { color: #ffffff; padding: 0.5rem 0.55rem; }
.bp-headrow .wp-block-navigation a:hover { text-decoration: underline; }
.bp-headrow .wp-block-navigation a[href*="withdrawal"] { background: #ffffff; color: var(--bp-mega-bg, #384799); border-radius: 999px; padding: 0.55rem 1rem; font-weight: 700; }
.bp-header .wp-block-navigation__responsive-container-open svg { fill: #ffffff; }
.bp-icons { gap: 14px; color: #ffffff; }
.bp-icons svg, .bp-icons .wc-block-mini-cart__icon { fill: #ffffff; color: #ffffff; }
.bp-icons .wc-block-mini-cart__button, .bp-icons .wc-block-customer-account__account-icon { color: #ffffff; }
.bp-searchrow { padding-top: 8px; }
.bp-searchrow .wp-block-search { max-width: 760px; margin: 0 auto; }
.bp-searchrow .wp-block-search__inside-wrapper { border: 0; gap: 8px; }
.bp-searchrow .wp-block-search__input { background: #ffffff; color: #2b2622; border: 0; border-radius: 999px; padding: 0.7rem 1.3rem; }
.bp-searchrow .wp-block-search__button { background: var(--bp-scheme-1-button, #c2410c); color: var(--bp-scheme-1-button-text, #ffffff); border: 0; border-radius: 999px; padding: 0.6rem 1.1rem; }
.bp-logo { display: inline-block; text-decoration: none; color: inherit; font-weight: 700; font-size: 1.4rem; }
.bp-logo img { display: block; }

/* ---- Pied de page ---- */
.bp-footer { background: var(--bp-mega-bg, #1b1b1f); color: #ffffff; }
.bp-footer a { color: #ffffff; }
.bp-footer .wp-block-navigation { gap: 0.4rem; }

/* ---- Accueil : sections (calquées sur papapattes.fr) ---- */
.bp-hs { padding-top: 32px; padding-bottom: 32px; font-family: 'Montserrat', system-ui, sans-serif; }
.bp-hs .bp-hs-title { margin: 0 0 20px; font-family: 'Montserrat', system-ui, sans-serif; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: #202020; }

/* Paliers de quantité */
.bp-tiers { background: var(--bp-mega-bg, #384799); border-radius: 22px; padding: 28px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: center; }
.bp-tiers .bp-tier { border-radius: 14px; padding: 22px 12px; text-align: center; color: #1b1b1f; }
.bp-tiers .bp-tier strong { display: block; font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1; }
.bp-tiers .bp-tier span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }

/* Tuiles des animaux */
.bp-audiences { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding: 0; margin: 0; }
.bp-audiences a { display: block; text-align: center; text-decoration: none; color: inherit; transition: transform 0.25s ease; }
.bp-audiences a:hover { transform: translateY(-4px); }
.bp-aud-media { display: block; position: relative; width: 100%; aspect-ratio: 1 / 0.82; border-radius: 22px; background: var(--tile-bg, #e8f6fc); }
.bp-aud-media img { position: absolute; left: 50%; bottom: 0; height: 118%; width: auto; max-width: 92%; transform: translateX(-50%); object-fit: contain; object-position: bottom; }
.bp-aud-label { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.25; }

/* Barre d'avantages */
.bp-perks { list-style: none; margin: 0; padding: 18px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; background: #f3f4f6; border-radius: 16px; font-family: 'Montserrat', system-ui, sans-serif; }
.bp-perks li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bp-perk-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--perk-c, #384799); color: #ffffff; }
.bp-perk-ico svg { width: 24px; height: 24px; }
.bp-perks strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.bp-perks small { display: block; font-size: 12.5px; color: #6b635b; line-height: 1.3; margin-top: 2px; }

/* Cartes produit et catégorie */
.woocommerce ul.products li.product,
.wc-block-grid__product,
ul.products li.product-category {
	border: var(--bp-card-border, 1px solid #dfe3ee);
	border-radius: var(--bp-card-radius, 4px);
	padding: 0.75rem;
	background: var(--bp-scheme-1-bg, #ffffff);
}
.woocommerce span.onsale { background: var(--bp-scheme-4-bg, #c62828); color: #ffffff; border-radius: var(--bp-badge-radius, 40px); }

/* Boutons WooCommerce */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
	background: var(--bp-scheme-1-button, #2f5de4);
	color: var(--bp-scheme-1-button-text, #ffffff);
	border-radius: var(--bp-btn-radius, 0);
}
