:root{
	--wp--preset--spacing--80: var(--wp--custom--spacer-xxl-fluid);
	--wp--preset--spacing--70: var(--wp--custom--spacer-xl-fluid);
	--wp--preset--spacing--60: var(--wp--custom--spacer-l-fluid);
	--wp--preset--spacing--50: var(--wp--custom--spacer-m-fluid);
	--wp--preset--spacing--40: var(--wp--custom--spacer-fluid);
	--wp--preset--spacing--30: var(--wp--custom--spacer-s-fluid);
	--wp--preset--spacing--20: var(--wp--custom--spacer-xs);
}

/***	Swiper		***/
:root{
	--swiper-pagination-color: var(--wp--custom--accent);
	--swiper-navigation-color: var(--wp--custom--accent);
}


:root :where(.wp-block-image.is-style-rounded,.wp-block-image .is-style-rounded){aspect-ratio: 1;}
:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){object-fit: cover; height: 100% !important;}
:root :where(.wp-block-image.is-style-rounded,.wp-block-image .is-style-rounded) + .wp-block-buttons{margin-block-start: var(--wp--custom--spacer-s-fluid);}
.wp-block-image.has-custom-border picture img{border-radius: inherit;}

@media (max-width: 781px) {
	.hide-on-mobile{display: none;}
}

section.wp-block-group{padding-top: var(--wp--custom--spacer-xl-fluid); padding-bottom: var(--wp--custom--spacer-xl-fluid);}
section.wp-block-group:not(.has-background) + section.wp-block-group:not(.has-background){padding-top: 0;}
.wp-block-heading + .wp-block-query{margin-top: var(--wp--custom--space);}
.wp-block-site-logo{width: var(--wp--custom--logo-size-fluid);}
.wp-block-site-logo a,
.wp-block-site-logo img {width: 100%;}

ul.breadcrumb{display: flex; column-gap: var(--wp--custom--spacer-xs); flex-wrap: wrap; list-style: none; padding-left: 0;}
ul.breadcrumb > li{font-size: var(--wp--preset--font-size--s);}
ul.breadcrumb > li a:after{content:'/'; margin-left: var(--wp--custom--spacer-xs);}

.categories-filter{display: flex; gap: var(--wp--custom--spacer-fluid); align-items: center;}
.categories-filter ul{display: flex; list-style: none; gap: var(--wp--custom--spacer-fluid); padding-left: 0; margin: 0;}

.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) picture{
	flex: 1 0 0%;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
/* 
:root :where(.is-layout-flex) {
    gap: var(--wp--style--block-gap);
} */

:where(.wp-site-blocks) > :last-child{margin-block-start: 0;}

/**	Force burger menu on Tablet **/
@media (min-width: 600px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: block;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}


@media (min-width: 782px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block;
    }
}



/**	Contact Form **/
.wpcf7-form label{font-size: var(--wp--preset--font-size--default);}
.wpcf7-form label sup{color: var(--wp--custom--accent); font-weight: bold;}

.wpcf7-not-valid-tip{font-size: var(--wp--preset--font-size--s);color: var(--wp--custom--accent);}

/* Conteneur principal */
.wpcf7-form .cf7-grid {display: flex;flex-wrap: wrap; gap: var(--wp--custom--spacer-s-fluid);}

/* Colonnes (moitié de la largeur) */
.wpcf7-form .cf7-col {flex: 1 1 calc(50% - 15px);}

/* Lignes complètes */
.wpcf7-form .cf7-full {flex: 1 1 100%;}

/* Champs */
.wpcf7-form .cf7-grid input,
.wpcf7-form .cf7-grid textarea,
.wpcf7-form .cf7-grid select {
    width: 100%;
    padding: 8px; 
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: var(--wp--preset--font-size--s);
	font-family: var(--wp--preset--font-family--text);
}
.wpcf7-form .cf7-grid textarea { max-height: 125px;}
.wpcf7-form .cf7-grid input[type="file"]{border: 0; padding-left: 0; padding-right: 0; border-radius: 0;}
.wpcf7-form .cf7-grid input[type="checkbox"]{width: auto;}

/* Style du bouton */
.wpcf7-form .cf7-grid input[type="submit"] {
    background-color: var(--wp--custom--accent);
    color: var(--wp--custom--white);
    padding-top: 0.3em;
    padding-right: 1em;
    padding-bottom: 0.3em;
    padding-left: 1em;
    border: none;
    border-radius: var(--wp--custom--radius-m);
    cursor: pointer;
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--default);
    transition: background 0.3s ease;
	font-weight: 600;
}

.wpcf7-form .cf7-grid input[type="submit"]:hover {
    background-color: var(--wp--custom--accent);
}

.wpcf7-form p:has(input[type="hidden"]){margin: 0;}
.wpcf7-form p.has-xs-font-size,
.wpcf7-form .wpcf7-form-control.wpcf7-acceptance label{font-size: var(--wp--preset--font-size--xs); display: inline-block; line-height: var(--wp--custom--line-height-s); color: var(--wp--custom--gray-500); font-weight: 400; margin: 0;}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output{
	border-color: var(--wp--custom--accent); background: var(--wp--custom--theme-100); font-size: var(--wp--preset--font-size--normal);
}

/* Responsive */
@media (max-width: 600px) {
    .wpcf7-form .cf7-col {
        flex: 1 1 100%;
    }
}
@media(min-width: 782px){
	.wpcf7-form .cf7-grid {gap: 15px;}
	.wpcf7-form .cf7-grid input,
	.wpcf7-form .cf7-grid textarea,
	.wpcf7-form .cf7-grid select {font-size: 16px; padding: 12px;}
}


/**
*	Woocommerce
**/
.woocommerce.archive img, .woocommerce-page.archive img{}
.woocommerce div.product form.cart div.quantity .qty{box-sizing: content-box;}

.woocommerce div.product .woocommerce-tabs .panel#tab-description > h2:first-child{display: none;}
.woocommerce-account .woocommerce-MyAccount-navigation{background: var(--wp--custom--theme-50); padding: var(--wp--custom--spacer-s-fluid);}
.woocommerce-account .woocommerce-MyAccount-navigation ul{margin-bottom: 0;}
.woocommerce-account .woocommerce-MyAccount-navigation li{padding: var(--wp--custom--spacer-s-fluid) 0;}

.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce{
	max-width: unset;
}

/**	Code promo	**/
.toast-copy {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--wp--custom--accent);
  color: var(--wp--custom--white);
  padding: 12px 20px;
  border-radius: var(--wp--custom--radius);
  font-size: var(--wp--preset--font-size--s);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.toast-copy.show {
  opacity: 1;
}
