/* En-tête collante pour Neve FSE */
.wp-block-template-part-header,
header.wp-block-template-part,
.neve-fse-header-container { /* Classe spécifique parfois utilisée par Neve */
    position: sticky !important;
    top: 0;
    z-index: 9999;
}

:root {
	--neve-font-weight-h1: 400;
}

/* Sur ordinateur (Barre d'admin = 32px) */
body.admin-bar header.wp-block-template-part,
body.admin-bar .wp-block-template-part-header {
    top: 32px !important;
}
/*
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
  
  background-image: url('../images/bulles-3.svg');
  background-size: 100%;
  background-position: center;
  
  opacity: 0.25; 
}
*/

#bionef-bubbles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Derrière tout le contenu */
  pointer-events: none; /* Laisse passer les clics vers le site */
  overflow: hidden;
  opacity: 0.25; 
}

#bionef-bubbles-background svg {
  width: 100%;
  height: 100%;
  display: block;
}

main {
	/* border-top: solid transparent 2rem; */
}

.attachment-woocommerce_thumbnail,
.attachment-post-thumbnail,
.wc-block-components-product-image {
	border:solid 1px var(--wp--preset--color--ti-accent-secondary);
	border-radius: .25rem 1.5rem;
}

.woocommerce ul.products li.product .button {
	background-color:var(--wp--preset--color--ti-accent);
	border-radius: 1rem .25rem !important;
	&:hover {
		filter: brightness(1.3); 
	}
}
.woocommerce-account .wp-block-post-title {
	max-width:1120px;
	font-weight:400;
}

.add-request-quote-button  {
	display:inline-block;
	text-decoration:none;
	padding:.5rem 1rem;
	border-radius:1.5rem .25rem ;
}

/* On ajoute un effet "brillant" au survol sur les boutons */
.wp-block-button__link:hover, .wp-block-button .wp-block-button__link:hover { filter: brightness(1.2) !important; }

.bnborder {
	border: solid 1px red !important;
}
#bnheader {
    -webkit-box-shadow: 0 0 3px 3px rgba(0,0,0,.15);
    box-shadow: 0 0 3px 3px rgba(0,0,0,.15);
}

#bnheader .bn-social {
	background-color:transparent !important;
}
#bnheader .bn-social svg {
	fill: var(--wp--preset--color--ti-fg) !important;
}

.wp-site-blocks {
    height: auto !important;
    min-height: 100vh !important; /* Garantit que le site prend tout l'écran au minimum */
}

header.wp-block-template-part + .wp-block-group,
.wp-block-template-part-header + .wp-block-group {
    margin-block-start: 0 !important; /* Ajuste la valeur selon tes besoins */
}

.cornerbionef > div > a {
	background-color:var(--wp--preset--color--ti-accent) !important;
	border-radius: 1rem .25rem !important;
	&:hover {
		filter: brightness(1.3); 
	}
}

.woocommerce-loop-category__title {
    background-color: var(--wp--preset--color--ti-accent);
    border-radius: var(--neve-button-border-radius-bionef, 24px) var(--neve-button-border-radius, 2px);
    border-color: var(--wp--preset--color--ti-accent);
    border-width: 2px;
    border-style: solid;
    color: var(--wp--preset--color--ti-fg-alt);
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 600;
    padding: .5rem 1rem !important;
    text-align:center;
}

/* Sur tablettes et mobiles (Barre d'admin = 46px) */
@media screen and (max-width: 782px) {
    body.admin-bar header.wp-block-template-part,
    body.admin-bar .wp-block-template-part-header {
        top: 46px !important;
    }
    #bnheader .custom-logo {
    	margin-left:1rem;
    	max-width:150px;
    }
}


/* Liste des catégories */
/* Conteneur principal */
.bionef-cat-filter-widget {
    margin-bottom: 1.5rem;
    font-size: 0.88rem; /* Rendu globalement plus compact */
    line-height: 1.25;
}

.bionef-cat-filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--wp--preset--color--ti-accent-secondary);
}

/* Listes (parents et sous-listes) */
.bionef-cat-list,
.bionef-cat-sublist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Indentation compacte pour la hiérarchie */
.bionef-cat-sublist {
    padding-left: 0.75rem !important; /* Décalage vers la droite pour les sous-catégories */
    margin-top: 0.15rem !important;
    border-left: 1px dashed var(--wp--preset--color--ti-accent-secondary);
}

/* Éléments de liste */
.bionef-cat-list li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Liens (ultra-compacts) */
.bionef-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.bionef-cat-list a:hover {
    background-color: var(--wp--preset--color--light-gray, #f8fafc);
    color: var(--wp--preset--color--ti-accent);
}

/* Style de l'élément actif */
.bionef-cat-list li.is-active > a {
    font-weight: 700;
    color: var(--wp--preset--color--ti-accent);
    background-color: var(--wp--preset--color--light-gray, #f1f5f9);
}

/* Nom et compteur de produits */
.bionef-cat-list .cat-name {
/*    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
*/
}

.bionef-cat-list .count {
    white-space: nowrap;
    font-size: 0.78em;
    opacity: 0.55;
    margin-left: 0.4rem;
}


/* *** AJOUT BRUNO *** */
.bionef-cat-list {
	max-height:500px;
	overflow-y:scroll;
	border: solid 1px var(--wp--preset--color--ti-accent);
	scrollbar-color: var(--wp--preset--color--ti-accent) var(--wp--preset--color--ti-bg-alt);
}
.bionef-cat-list>li {
	margin:0 .5rem !important;
}

.bionef-cat-list .cat-root .cat-name {
	font-size:120%;
	font-weight:700;
}

footer.wp-block-template-part > .wp-block-group {
	/* margin-top: 2rem; */
	border-top:solid 2px var(--wp--preset--color--ti-accent-secondary);
	a.benet {
		color:#c3f;
		font-style:italic;
		font-weight:700;
		text-decoration:none;
		&:hover {
			color:white;
		}
	}
}


.bionef-footer {
	margin-top: 2rem;
	h3 {
		color:white;
	}
	.catmap {
		ul {
			margin:0;
			padding:0;
			list-style-type:none;
			li {
				text-transform:lowercase;
				display: initial;
				font-size:80%;
				&:after {
					content: " – ";
					color:var(--wp--preset--color--ti-bg-alt-2);
				}
			}
		}
	}
}

.bn-filtre {
	position:relative;
	padding:0.5rem 1rem;
	background-color:var(--wp--preset--color--ti-bg-alt-2);
}

/* ==========================================================================
   CORRECTIF GLOBAL COLONNE DROITE (.bn-filtre)
   ========================================================================== */

/* 1. Isolation stricte du conteneur et de tous ses descendants */
.bn-filtre,
.bn-filtre * {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.bn-filtre {
    width: 100% !important;
    min-width: 0 !important; /* Débloque la compression Flexbox/Grid */
    overflow: hidden !important;
}

/* ==========================================================================
   ISOLATION DU FILTRE DE PRIX (CONTENEUR GROUPE .bn-filtre-prix)
   ========================================================================== */

/* 1. Isolation globale du conteneur */
.bn-filtre-prix {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important; /* Annule tout comportement flex/grid parasite hérité */
    display: none !important; /* Bionef n'en veut pas */
}

/* 2. Le conteneur interne WooCommerce s'adapte au Groupe */
.bn-filtre-prix .wc-block-price-filter,
.bn-filtre-prix .wc-block-product-filter-price-slider {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. Réglage fluide de la grille des inputs sous le slider (Min / - / Max) */
.bn-filtre-prix .wc-block-product-filter-price-slider__content {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    column-gap: 8px !important;
    align-items: center !important;
}

/* 4. Alignement vertical du rail et centrage des curseurs (billes) */
.bn-filtre-prix .wc-block-product-filter-price-slider__range-input-wrapper {
    display: flex !important;
    align-items: center !important;
    height: 24px !important;
}

/* Replacement vertical fin des curseurs (Chrome, Safari, Edge) */
.bn-filtre-prix .wc-block-product-filter-price-slider__range-input::-webkit-slider-thumb {
    margin-top: 0 !important;
    position: relative !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Replacement vertical fin des curseurs (Firefox) */
.bn-filtre-prix .wc-block-product-filter-price-slider__range-input::-moz-range-thumb {
    position: relative !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}