/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

:root {
    --bricks-border-color: #eee7e2;
}


/*** GLOBAL CSS **/
body:not(.admin-bar){--wp-admin--admin-bar--height:0px}

/*
html {
    scroll-padding-top: calc(var(--navigation-bar-offset) + 10px );
}
*/


a.brxe-text-basic:hover{text-decoration:underline}
:where(.brxe-image):before{z-index:1}
.role-administrator .block-dev{display:none}
.effect-img img {transition: all 0.2s ease;}
.effect-img:hover img {transform: scale(1.05, 1.05);}
.brxe-button {cursor: pointer;}
body:not([data-builder-mode]) .bloc-ota-bandeau {opacity: 0;}
.center{align-items:center;align-self:center;text-align:center}
.brxe-heading i {
    font-style: normal;
    color: var(--primary);
}

.brx-animated .perfmatters-lazy.pmloaded,
.brx-animated .perfmatters-lazy.pmloaded>img,
.brx-animated .perfmatters-lazy>img.pmloaded,
.brx-animated .perfmatters-lazy[data-ll-status=entered],
.no-animation {
	animation:inherit !important;
}

:root .bricks-button[class*="primary"],
button.bvs-selector__trigger.product_type_variable,
.bvs-selector .bvs-selector__button,
.bvs-selector__panel .single_add_to_cart_button,
.woocommerce .button,
body:not(.woocommerce) .product_type_variable,
body:not(.woocommerce) .product_type_grouped,
body:not(.woocommerce) .product_type_external,
body:not(.woocommerce) .product_type_simple,
body:not(.woocommerce) .brx-popup-content:not(.woocommerce) form.cart .single_add_to_cart_button,
body:not(.woocommerce) .brxe-woocommerce-mini-cart .woocommerce-mini-cart__buttons .button {
	background: linear-gradient(135deg, var(--primary), var(--orange-sec));
}

:root .bricks-button[class*="primary"]:hover,
button.bvs-selector__trigger.product_type_variable:hover,
.bvs-selector .bvs-selector__button:hover,
.bvs-selector__panel .single_add_to_cart_button:hover,
.woocommerce .button:hover,
body:not(.woocommerce) .product_type_variable:hover,
body:not(.woocommerce) .product_type_grouped:hover,
body:not(.woocommerce) .product_type_external:hover,
body:not(.woocommerce) .product_type_simple:hover,
body:not(.woocommerce) .brx-popup-content:not(.woocommerce) form.cart .single_add_to_cart_button:hover,
body:not(.woocommerce) .brxe-woocommerce-mini-cart .woocommerce-mini-cart__buttons .button:hover {
	background: linear-gradient(135deg, var(--primary), var(--primary));
}

.button:hover {
    text-decoration: unset !important;
}

:root .bricks-button[class*="light"]:where(:not(.bricks-lightbox)) {
	backdrop-filter: blur(6px);
}

.woocommerce-info a.button {
	background: transparent;
	text-decoration: underline;
}

.woocommerce-info a.button:hover {
	background: transparent;
	text-decoration: underline !important;
}

/** CUSTOM SLIDER MULTIPLE IMAGE **/
.brxe-slider-nested .custom-slide-a{width:100%;height:100%}
.brxe-slider-nested .custom-slide-img{position:absolute;width:100%;height:100%;object-fit:cover}


/** POUR ANIMATION GSAP **/
body.bricks-is-frontend .fadein {opacity: 0;transform: translateY(50px);transition: none;}
/****/


/** HEADER CLASSIC 
@keyframes fade-in {0% {opacity: 0;}100% {opacity: 1;}}
header nav ul.bricks-nav-menu>li.current-menu-item:not(.menu-item-has-children,.btn-header) a::after,header nav ul.bricks-nav-menu>li:hover:not(.menu-item-has-children,.btn-header) a::after{content:"";width:100%;height:3px;background-color:var(--primary);position:absolute;bottom:-7px;animation:fade-in .3s ease}
header div.brx-offcanvas-inner nav ul.bricks-nav-menu>li a::after{display:none}
header nav ul.bricks-nav-menu li a{position:relative}
header .header-menu nav li:hover .brx-submenu-toggle button{transform:rotate(180deg)}
header nav ul.bricks-nav-menu>li.menu-item-has-children ul.sub-menu a:before{content:"-";margin-right:10px;transition:margin .3s ease}
header nav ul.bricks-nav-menu>li.menu-item-has-children ul.sub-menu a:hover:before{margin-right:15px}
header nav ul.bricks-nav-menu>li.menu-item-has-children ul.sub-menu li{padding:15px 10px}
header nav ul.bricks-nav-menu>li.menu-item-has-children ul.sub-menu a{width:fit-content}

**/


/** HEADER CLASSIC + HEADER FIXE 

body.header-fixe header:is(.sticky, .brx-sticky):not(.scrolling) .header-menu,
body.header-color header:is(.sticky, .brx-sticky):not(.scrolling) .header-menu {
    background-color: red;
}

body.header-fixe header:is(.sticky, .brx-sticky):not(.scrolling) {
    position: static;
}

body.header-fixe header:is(.sticky, .brx-sticky).scrolling + main {
    padding-top: var(--navigation-bar-offset);
}

**/


/* BANDEAU COOKIE - PLUGIN YESCOOKIE */
.cky-btn{flex:initial!important}
.cky-btn-revisit-wrapper{display:none!important}
.cky-notice-group{display:flex !important;flex-direction:row !important;flex-wrap:nowrap !important;align-items:center !important;gap:32px !important}
.cky-notice-btn-wrapper{justify-content:flex-start!important;margin-top:0!important;flex-wrap:nowrap!important;flex-direction:row !important;white-space:nowrap !important;gap:10px !important}
.cky-notice-btn-wrapper .cky-btn{margin:0!important}
@media (max-width:800px){.cky-notice-group{flex-direction:column!important;align-items:flex-start!important}}
@media (max-width:440px){.cky-notice-btn-wrapper{flex-direction:row!important;align-items:stretch!important;white-space:normal!important}}
/* COOKIE */



/** WOOCOMMERCE */
.add-to-cart .cart .quantity{width:90px;height:40px}
.add-to-cart form{height:40px;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;border-radius:10px;width:fit-content;overflow:hidden;font-size:14px;padding-top: 1px;padding-bottom: 1px;}
.add-to-cart form div.quantity{border:1px solid var(--bricks-border-color);border-radius:10px;border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}
.add-to-cart .quantity .qty{width:30px;border:0}
.add-to-cart .quantity .minus,.add-to-cart .quantity .plus{border:0;width:30px}
.add-to-cart .add_to_cart_button{min-width:auto;height:40px;background-color:var(--primary);color:var(--blanc);font-weight:400;padding:0 20px}
.add-to-cart button.button{margin: 0 !important;}
.bloc-product .woocommerce-Price-amount span,.brxe-product-price .woocommerce-Price-amount span{font-size:60%;vertical-align:text-top}



/* =========================
   RADIO LIVRAISON
========================= */

ul.woocommerce-shipping-methods input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;

  display: inline-grid;
  place-content: center;

  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;

  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50%;

  cursor: pointer;
}

ul.woocommerce-shipping-methods input[type="radio"]::before {
  content: "";

  width: 10px;
  height: 10px;

  background-color: var(--primary);
  border-radius: 50%;

  transform: scale(0);
  transition: transform 0.1s ease-in-out;
}

ul.woocommerce-shipping-methods input[type="radio"]:checked::before {
  transform: scale(1);
}

ul.woocommerce-shipping-methods input[type="radio"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}


.woocommerce-checkout label {
    letter-spacing: inherit;
}


/** FILTRE RESPONSIVE **/

body.no-scroll {
    overflow: hidden;
}

.show-filter-menu {
    opacity: 1 !important;
    transform: translateX(0) !important;
    visibility: visible;
}

.backdrop-filter::before {
    content: "";
    background-color: rgb(0 0 0 / 60%);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 998;
}


/** ANIMATION AJAX */
.grid-product {
	transition: opacity 0.22s, filter 0.22s, transform 0.22s;	
}
.loading-ajax {
    opacity: 0.35;
    filter: blur(2px);
    transform: scale(0.99);	
}

.grid-product.loading-ajax + .block-ajax-loading {
	display: flex;
}

/** WOOCOMMERCE ORDER RECEIVED **/
.woocommerce-order-received p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received{margin:0!important}
.woocommerce-order-received .div-thank-you-order{text-align:center;margin-bottom:30px}
.woocommerce-order-received div.woocommerce {padding:30px}
.woocommerce-order-received h1{padding:30px;font-size:var(--text-h2);}
.woocommerce-order-received .woocommerce-order h2{margin-bottom:20px;font-size:var(--text-h3);}
.woocommerce-order-received .woocommerce-order h3,.woocommerce-order-received .woocommerce-order h4{margin-bottom:20px;font-size:var(--text-h4);}
.woocommerce-order-received .woocommerce-columns--addresses{gap:20px}


/* PANIER PLUS QUE */
@keyframes move {0% {background-position: 0 0;}100% {background-position: 50px 50px;}}
.shipping_bar {
	padding: 14px 20px;
    border-bottom: 1px solid rgb(238, 231, 226);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgb(253, 248, 244);
    font-weight: 700;
    font-size: 13px;
}
.shipping_bar span{color:green;font-weight:600}
.shipping_bar i{color:green!important;font-size:20px!important;margin-left:8px!important}

.newprogress{    
	position: relative;
    height: 8px;
    border-radius: 99px;
    background: rgb(238, 231, 226);
    overflow: hidden;
    display: block;
    box-shadow: rgba(11, 12, 14, 0.08) 0px 1px 2px inset;
}

.newprogress__fill{
	width: 0%;
	position: relative;
    display: block;
    height: 100%;
    border-radius: 99px;
	overflow: hidden;
	background-color: green;
    background-image: linear-gradient(-45deg, rgb(255 255 255 / .2) 25%, transparent 25%, transparent 50%, rgb(255 255 255 / .2) 50%, rgb(255 255 255 / .2) 75%, transparent 75%, transparent);
    animation: move 4s linear infinite;
    background-size: 50px 50px;
    transition: width 2s ease;

}

@keyframes move {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 50px 50px
    }
}

/* FIN PANIER PLUS QUE */


/* FIBOSEARCH */
span.dgwt-wcas-si{width:50px!important;min-width:50px!important;height:50px!important;min-height:50px!important}
span.dgwt-wcas-si img{width:100%;height:100%;max-height:100%;object-fit:contain}
.dgwt-wcas-open-pirx .dgwt-wcas-details-wrapp,.dgwt-wcas-open-pirx .dgwt-wcas-suggestions-wrapp{border-radius:5px!important;border:1px solid var(--bricks-border-color)}
html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{box-shadow:0 0 0 1px var(--bricks-border-color)}
.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar button.dgwt-wcas-om-return path,.dgwt-wcas-style-pirx .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader) path,.dgwt-wcas-style-pirx .dgwt-wcas-voice-search svg path,.dgwt-wcas-style-pirx.dgwt-wcas-has-submit .dgwt-wcas-search-submit svg path{fill:var(--primary)}
.dgwt-wcas-ico-magnifier-handler{fill:var(--base)}

html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
    background: #f4efeb;
    box-shadow: 0 0 0 1px var(--bricks-border-color);
}

.header-search-cart .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
    padding-top: 6px;
    padding-bottom: 6px;
	padding-left: 40px;
}

.dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    left: 15px;
    top: 8px;
    min-width: 25px;
    width: 25px;
    height: 25px;
    min-height: 25px;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg {
    width: 15px;
    height: 15px;
}

html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
    border-color: var(--primary);
}


.dgwt-wcas-open-pirx .dgwt-wcas-details-inner, .dgwt-wcas-open-pirx .dgwt-wcas-suggestions-wrapp>.dgwt-wcas-suggestion {
    padding-left: 12px;
    padding-right: 12px;
}

.dgwt-wcas-open-pirx .dgwt-wcas-details-wrapp, .dgwt-wcas-open-pirx .dgwt-wcas-suggestions-wrapp {
    padding-top: 0px;
}

.dgwt-wcas-has-headings .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
    font-weight: 700;
}

.dgwt-wcas-has-headings .dgwt-wcas-suggestion-tax .dgwt-wcas-st {
    font-size: 0.85rem;
    font-weight: 400;
}

.dgwt-wcas-suggestion {
    padding: 5px 10px;
}

.dgwt-wcas-st {
    color: var(--base);
    font-size: 0.85rem;
}

.dgwt-wcas-sp {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.header-search-cart .dgwt-wcas-close {
    right: auto;
    left: 20px;
}

/*
 * Fondu de l'image de la carte produit au changement de variation.
 *
 * La classe est posée par le script sur l'image ciblée, qui vit hors de
 * .bvs-selector. Sous `prefers-reduced-motion`, le script échange
 * directement sans jamais poser `is-swapping`.
 */
.bvs-image {
	transition: opacity 0.20s ease-out;
}

.bvs-image.is-swapping {
	opacity: 0;
}

/* BVS SELECTOR */
.bvs-selector {
	--bvs-accent: var(--primary);
	--bvs-text: var(--base);
	--bvs-border: var(--bricks-border-color);
	--bvs-background: var(--blanc);
	width: 100%;
}

/*
 * `.bvs-selector__button` porte l'habillage, `.bvs-selector__trigger` le
 * comportement d'ouverture du panneau : le lien des produits simples doit
 * ressembler au déclencheur sans en déclencher la logique.
 *
 * `min-width` et `white-space` neutralisent `form.cart .button` de Bricks,
 * qui impose 200px et interdit le retour à la ligne.
 */
.bvs-selector .bvs-selector__button,
.bvs-selector__panel .single_add_to_cart_button {
	min-width: 0 !important;
	white-space: normal !important;
	padding-top: 9px !important;
    padding-right: 14px !important;
    padding-bottom: 9px !important;
    padding-left: 14px !important;
    font-size: 0.80rem !important;
    color: var(--blanc) !important;
    font-weight: 700 !important;
	border-radius: 99px !important;
	column-gap: 4px !important;
	width: 100%;
	min-height: 42px;
	margin-top: 0;
	display: flex;
    align-items: center;
}

.bvs-selector__panel {
	width: 100%;
	left: 0;
	position: absolute;
	bottom: 0;
	z-index: 10;
	padding: 8px 16px;
	color: var(--bvs-text);
	background: linear-gradient(0deg,rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.8) 100%);
	backdrop-filter: blur(1px);
	border: 1px solid var(--bvs-border);
	border-radius: 16px;

	box-shadow:
		0 14px 40px rgb(0 0 0 / 12%),
		0 2px 8px rgb(0 0 0 / 5%);
}


.bvs-selector__panel[hidden] {
	display: none !important;
}

.bvs-selector__header {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.bvs-selector__title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.bvs-selector__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	color: #767676;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-radius: 50%;
}

.bvs-selector__close:hover {
	color: var(--bvs-text);
	background: #f5f3f1;
}


.bvs-selector table.variations,
.bvs-selector table.variations tbody,
.bvs-selector table.variations tr,
.bvs-selector table.variations th,
.bvs-selector table.variations td {
	display: block;
	width: 100%;
	padding: 0 !important;
	text-align: left;
	background: transparent !important;
	border: 0 !important;
}

.bvs-selector table.variations tbody {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.bvs-selector table.variations {
    margin-bottom: 12px;
}

.bvs-selector table.variations th.label {
	display: none;
}

/*
 * Libellé d'un champ, quand le titre du panneau ne suffit plus :
 * produits à plusieurs attributs, et panneau nicotine à deux selects.
 */
.bvs-selector__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}

/*
 * Les lignes du tableau sont mises à plat plus haut, marges comprises :
 * sans cette règle, deux champs successifs se touchent — taux et type de
 * booster, ou deux attributs d'un produit variable.
 */

.bvs-selector table.variations td.value {
	position: relative;
}

/*
 * `:has(select)` : un champ rendu autrement — pastilles de variation de
 * Bricks — n'a rien à signaler, le chevron reste réservé aux vraies listes.
 */
.bvs-selector table.variations td.value:has(select)::after {
	position: absolute;
	right: 13px;
	bottom: 20px;
	width: 8px;
	height: 8px;
	content: "";
	border-right: 2px solid var(--gris);
	border-bottom: 2px solid var(--gris);
	border-radius: 1px;
	transform: translateY(50%) rotate(45deg);
	pointer-events: none;
}

.bvs-selector table.variations select {
    appearance: none;
    width: 100%;
    padding: 6px 27px 6px 12px;
    color: var(--bvs-text);
    font: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    background: var(--bvs-background);
    border: 1px solid var(--bvs-accent);
    border-radius: 12px;
}


.bvs-selector .single_variation,
.bvs-selector .stock,
.bvs-selector .quantity,
.bvs-selector .reset_variations {
	display: none !important;
}

.bvs-selector .single_variation_wrap {
	margin-top: 12px;
}



.bvs-selector .single_add_to_cart_button.disabled,
.bvs-selector .single_add_to_cart_button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

/*
 * Ajout au panier en cours.
 *
 * Le libellé est rendu transparent plutôt que retiré : le bouton garde
 * exactement les mêmes dimensions pendant le chargement.
 */
.bvs-selector .is-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

/*
 * Bricks remplace le contenu du bouton par son propre texte d'attente :
 * `color: transparent` suffit pour du texte, cette règle couvre le cas où
 * ce contenu est une icône.
 */
.bvs-selector .is-loading > * {
	visibility: hidden;
}

/*
 * Le SVG sert de masque plutôt que d'image de fond : la couleur reste
 * pilotée par `background-color`, donc par tes variables, au lieu d'être
 * figée dans l'encodage de la data-URI.
 */
.bvs-selector .is-loading::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	content: "";
	background-color: var(--blanc, #ffffff);
	mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 -960 960 960%27%3E%3Cpath d=%27M325-111.5q-73-31.5-127.5-86t-86-127.5Q80-398 80-480.5t31.5-155q31.5-72.5 86-127t127.5-86Q398-880 480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480.5-80Q398-80 325-111.5Z%27/%3E%3C/svg%3E") center / contain no-repeat;
	 -webkit-animation:spin 0.7s linear infinite;
    -moz-animation:spin 0.7s linear infinite;
    animation:spin 0.7s linear infinite;
}


/*
 * Lien « Voir le panier » que WooCommerce insère après le bouton une fois
 * l'ajout réussi : sans règle, il s'affichait brut sous la carte.
 */
.bvs-selector .added_to_cart {
	display: block;
	margin-top: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	text-align: center;
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.bvs-selector__button,
	.bvs-selector .single_add_to_cart_button,
	.bvs-image {
		transition: none;
	}
}


.bricks-cart-adding svg {
	 -webkit-animation:spin 0.7s linear infinite;
    -moz-animation:spin 0.7s linear infinite;
    animation:spin 0.7s linear infinite;
	width: 20px !important;
	height: 20px !important;
	fill: var(--blanc);
}

.bricks-cart-adding {
    cursor: not-allowed;
    opacity: 0.45;
}


@-moz-keyframes spin {
    100% { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform:rotate(360deg);
    }
}



/** SLIDER **/

.splide__pagination {
    width: 100%;
}

.splide__arrow {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    color: var(--blanc);
    border-radius: 50px;
    border: 3px solid var(--blanc);
	box-shadow: rgba(234, 91, 12, 0.3) 0px 6px 12px
}

.splide__pagination .splide__pagination__page {
    margin: 3px;
	width: 7px;
	height: 7px;
}

.splide__pagination .splide__pagination__page.is-active {
    background-color: var(--primary);
	background: linear-gradient(135deg, var(--primary), var(--primary));
    z-index: 1;
    width: 20px;
    border-radius: 6px;
}


.splide__slide .b_product:hover,
.splide__slide .bvs-selector__panel {
    box-shadow: unset;
}

