/*!
 * Belweder Palette 1.9.1 — version claire
 * En-tête : couleurs actuelles conservées. Corps : blanc et gris très clair neutre,
 * texte anthracite, boutons et sélection dans les teals de l'en-tête, champagne pour
 * les étoiles et les badges. Pied de page : gris très clair, logo et icônes en teal.
 * Le vert foncé ne reste que dans la barre du haut (en-tête conservé).
 *
 * Le vert Belweder est écrit en hsl() exprès : l'extension convertit à l'affichage
 * l'ancien teal foncé (même valeur hexadécimale) en anthracite ; ce format échappe
 * à la conversion si un optimiseur intègre ce fichier dans la page.
 * Toutes les règles sont préfixées par #bw-pal (identifiant posé sur <html>).
 */

:root{
	--bw-blanc:#FFFFFF;
	--bw-gris-clair:#F7F7F5;
	--bw-bordure:#E7E7E3;
	--bw-anthracite:#292E2C;
	--bw-texte:#4A4F4C;
	--bw-texte-2:#646966;
	--bw-vert:hsl(172.17, 32.86%, 27.45%);
	--bw-teal:#86C2BC;
	--bw-teal-moyen:#5FA39C;
	--bw-champagne:#B5854A;
	--bw-champagne-texte:#7A5A30;
	--bw-champagne-pale:#F4ECDF;
	--bw-etoile-vide:#DCD5CA;
}

/* ---------- Liens : remplace le rose par défaut du thème Hello Elementor (#c36) ----------
   :where() garde une spécificité minimale : les liens déjà stylés (menus, boutons, cartes)
   conservent leur style, seuls les liens « nus » changent. */
:where(#bw-pal) a{color:var(--bw-anthracite)}
:where(#bw-pal) a:hover,
:where(#bw-pal) a:active{color:var(--bw-teal-moyen)}
/* Liens dans les textes : anthracite souligné de teal */
:where(#bw-pal) :is(.elementor-widget-text-editor,.woocommerce-product-details__short-description,.elementor-tab-content,.entry-content) a:not(.elementor-button):not(.button){
	color:var(--bw-anthracite);
	text-decoration:underline;
	text-decoration-color:var(--bw-teal);
	text-decoration-thickness:1px;
	text-underline-offset:3px;
}
:where(#bw-pal) :is(.elementor-widget-text-editor,.woocommerce-product-details__short-description,.elementor-tab-content,.entry-content) a:not(.elementor-button):not(.button):hover{
	color:var(--bw-teal-moyen);
	text-decoration-color:var(--bw-teal-moyen);
}

/* ---------- Fond de page blanc ---------- */
#bw-pal body{background-color:var(--bw-blanc)}

/* ---------- Fil d'Ariane : gris discret ---------- */
#bw-pal .woocommerce-breadcrumb,
#bw-pal .woocommerce-breadcrumb a,
#bw-pal .rank-math-breadcrumb,
#bw-pal .rank-math-breadcrumb a{color:var(--bw-texte-2)!important}
#bw-pal .woocommerce-breadcrumb a:hover,
#bw-pal .rank-math-breadcrumb a:hover{color:var(--bw-anthracite)!important}

/* ---------- Boutons des cartes produits et bouton Filtrer : contour fin ---------- */
#bw-pal ul.products li.product a.button,
#bw-pal ul.products li.product .button,
#bw-pal .widget_price_filter .price_slider_amount .button,
#bw-pal .widget_price_filter button{
	background-color:transparent!important;
	border:1px solid var(--bw-anthracite)!important;
	color:var(--bw-anthracite)!important;
	box-shadow:none!important;
}
#bw-pal ul.products li.product a.button:hover,
#bw-pal ul.products li.product .button:hover,
#bw-pal ul.products li.product a.button:focus-visible,
#bw-pal .widget_price_filter .price_slider_amount .button:hover,
#bw-pal .widget_price_filter button:hover{
	background-color:var(--bw-teal)!important;
	border-color:var(--bw-teal)!important;
	color:var(--bw-anthracite)!important;
}
#bw-pal ul.products li.product a.added_to_cart{
	color:var(--bw-anthracite)!important;
	text-decoration:underline;
	text-underline-offset:3px;
}

/* ---------- Boutons d'achat principaux : teal de l'en-tête, texte anthracite (contraste 6,9:1) ---------- */
#bw-pal button.single_add_to_cart_button,
#bw-pal a.checkout-button,
#bw-pal #place_order,
#bw-pal .woocommerce a.button.alt,
#bw-pal .woocommerce button.button.alt,
#bw-pal .elementor-add-to-cart .elementor-button{
	background-color:var(--bw-teal)!important;
	border-color:var(--bw-teal)!important;
	color:var(--bw-anthracite)!important;
	box-shadow:none!important;
}
#bw-pal button.single_add_to_cart_button:hover,
#bw-pal a.checkout-button:hover,
#bw-pal #place_order:hover,
#bw-pal .woocommerce a.button.alt:hover,
#bw-pal .woocommerce button.button.alt:hover,
#bw-pal .elementor-add-to-cart .elementor-button:hover{
	background-color:var(--bw-anthracite)!important;
	border-color:var(--bw-anthracite)!important;
	color:var(--bw-blanc)!important;
}

/* ---------- Cartes produits : blanches, bordure fine ---------- */
#bw-pal ul.products li.product{
	background-color:var(--bw-blanc)!important;
	border:1px solid var(--bw-bordure)!important;
	box-shadow:none!important;
}
#bw-pal ul.products li.product:hover{box-shadow:0 12px 32px rgba(41,46,44,.07)!important}

/* ---------- Badges : un seul style, champagne pâle ---------- */
#bw-pal .onsale,
#bw-pal ul.products li.product [class*="badge"]:not([class*="wish"]):not(button){
	background:var(--bw-champagne-pale)!important;
	color:var(--bw-champagne-texte)!important;
	border-color:transparent!important;
	box-shadow:none!important;
}

/* ---------- Étoiles ---------- */
#bw-pal .star-rating::before{color:var(--bw-etoile-vide)!important}
#bw-pal .star-rating span,
#bw-pal .star-rating span::before,
#bw-pal .elementor-star-rating .elementor-star-full,
#bw-pal .elementor-star-rating i.elementor-star-full::before{color:var(--bw-champagne)!important}

/* ---------- Prix : anthracite, prix barré gris ---------- */
#bw-pal .price,
#bw-pal .price .amount,
#bw-pal .price ins,
#bw-pal .price ins .amount{color:var(--bw-anthracite)!important}
#bw-pal .price ins{text-decoration:none}
#bw-pal .price del,
#bw-pal .price del .amount{color:var(--bw-texte-2)!important;opacity:1}

/* ---------- Filtres : le vert marque uniquement la sélection ---------- */
#bw-pal .widget_product_categories .current-cat > a,
#bw-pal .bw-filters .current-cat > a{
	background-color:transparent!important;
	color:var(--bw-anthracite)!important;
	font-weight:600!important;
	box-shadow:none!important;
}
#bw-pal .widget_price_filter .price_slider_wrapper .ui-widget-content{background-color:var(--bw-bordure)!important}
#bw-pal .widget_price_filter .ui-slider .ui-slider-range{background-color:var(--bw-teal-moyen)!important}
#bw-pal .widget_price_filter .ui-slider .ui-slider-handle{
	background-color:var(--bw-blanc)!important;
	border:2px solid var(--bw-teal-moyen)!important;
	box-shadow:none!important;
}

/* ---------- Pied de page clair ---------- */
#bw-pal .elementor-location-footer{
	background-color:var(--bw-gris-clair);
	border-top:1px solid var(--bw-bordure);
	color:var(--bw-texte);
}
#bw-pal .elementor-location-footer a:hover{color:var(--bw-teal-moyen)!important}
/* Moyens de paiement : gris neutre */
#bw-pal .elementor-location-footer [class*="fa-cc-"],
#bw-pal .elementor-location-footer [class*="fab-cc-"],
#bw-pal .elementor-location-footer [class*="apple-pay"],
#bw-pal .elementor-location-footer [class*="google-pay"]{color:var(--bw-texte-2)!important;fill:var(--bw-texte-2)!important}
/* Newsletter : champ blanc bordé, bouton teal comme les boutons d'achat */
#bw-pal .elementor-location-footer input[type="email"],
#bw-pal .elementor-location-footer input[type="text"],
#bw-pal .elementor-location-footer .elementor-field-textual{
	background-color:var(--bw-blanc)!important;
	border:1px solid var(--bw-bordure)!important;
	color:var(--bw-anthracite)!important;
}
#bw-pal .elementor-location-footer input::placeholder{color:var(--bw-texte-2)!important;opacity:1}
#bw-pal .elementor-location-footer .elementor-button,
#bw-pal .elementor-location-footer button[type="submit"],
#bw-pal .elementor-location-footer input[type="submit"]{
	background-color:var(--bw-teal)!important;
	border-color:var(--bw-teal)!important;
	color:var(--bw-anthracite)!important;
	box-shadow:none!important;
}
#bw-pal .elementor-location-footer .elementor-button:hover,
#bw-pal .elementor-location-footer button[type="submit"]:hover,
#bw-pal .elementor-location-footer input[type="submit"]:hover{
	background-color:var(--bw-anthracite)!important;
	border-color:var(--bw-anthracite)!important;
	color:var(--bw-blanc)!important;
}
/* Réseaux sociaux : pastilles claires */
#bw-pal .elementor-location-footer .elementor-social-icon{
	background-color:var(--bw-blanc)!important;
	border:1px solid var(--bw-bordure)!important;
}
#bw-pal .elementor-location-footer .elementor-social-icon i{color:var(--bw-anthracite)!important}
#bw-pal .elementor-location-footer .elementor-social-icon svg{fill:var(--bw-anthracite)!important}
#bw-pal .elementor-location-footer .elementor-social-icon:hover{background-color:var(--bw-teal)!important;border-color:var(--bw-teal)!important}
/* Logo blanc recoloré en teal moyen #5FA39C (à remplacer à terme par un logo de cette couleur dans le template) */
#bw-pal .elementor-location-footer .elementor-widget-theme-site-logo img,
#bw-pal .elementor-location-footer img[alt*="belweder" i]{
	filter:brightness(0) saturate(100%) invert(76%) sepia(12%) saturate(2756%) hue-rotate(116deg) brightness(108%) contrast(28%);
}

/* ---------- Newsletter de l'accueil : bandeau teal clair au lieu du vert foncé ---------- */
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)){
	background-color:var(--bw-teal)!important;
	background-image:none!important;
}
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)) .elementor-heading-title,
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)) .elementor-widget-text-editor,
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)) .elementor-widget-text-editor p,
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)) .elementor-widget-text-editor a{color:var(--bw-anthracite)!important}
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)) .elementor-widget-text-editor p[style*="font-size"]{color:rgba(41,46,44,.72)!important}
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)) .elementor-field-textual{
	background-color:var(--bw-blanc)!important;
	border-color:rgba(41,46,44,.14)!important;
	color:var(--bw-anthracite)!important;
}
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)) input::placeholder{color:var(--bw-texte-2)!important;opacity:1}
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)) .elementor-button{
	background-color:var(--bw-anthracite)!important;
	border-color:var(--bw-anthracite)!important;
	color:var(--bw-blanc)!important;
}
#bw-pal :is(.elementor-section:has(.bw-news),.home [data-elementor-type="wp-page"] .elementor-top-section:has(.elementor-widget-form)) .elementor-button:hover{
	background-color:var(--bw-blanc)!important;
	border-color:var(--bw-blanc)!important;
	color:var(--bw-anthracite)!important;
}

/* ---------- Messages WooCommerce (vert et bleu par défaut) ---------- */
#bw-pal .woocommerce-message{border-top-color:var(--bw-teal-moyen)!important}
#bw-pal .woocommerce-message::before{color:var(--bw-teal-moyen)!important}
#bw-pal .woocommerce-info{border-top-color:var(--bw-champagne)!important}
#bw-pal .woocommerce-info::before{color:var(--bw-champagne)!important}

/* ---------- Focus clavier et sélection de texte ---------- */
#bw-pal :focus-visible{outline:2px solid var(--bw-anthracite);outline-offset:2px}
#bw-pal ::selection{background:var(--bw-gris-clair);color:var(--bw-anthracite)}
