/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

@import url("https://use.typekit.net/cqa0zql.css");

* {
	font-family: stevie-sans, sans-serif;
}

.produit-item .sale-price {
	justify-content: flex-start;
}

.woocommerce-checkout #ship-to-different-address, 
.woocommerce-column.woocommerce-column--shipping-address, 
.single-product .product .product_meta .sku_wrapper, 
.woocommerce-order-received .shipped_via {
	display: none !important;
}

.slides-not-found { display: none !important; }

[type="checkbox"] {
	border-radius: 0 !important;
}

.title-section > div {
	flex-direction: row !important;
}

p, p * {
	font-family: stevie-sans, sans-serif !important;
}

h1, h2, h3 {
	font-family: job-clarendon, serif !important;
		
		* {
			font-family: job-clarendon, serif !important;
	}
}

.restricted-text-small {
	max-width: 380px;
}

.restricted-text-mid {
	max-width: 560px;
}

.brz-btn:not(.exclude) {
	position: relative;
	overflow: hidden;
	
	span {
		z-index: 3;
		transform: translateY(2px);
	}
	
	&::before {
		content: "";
		position: absolute;
		height: 100%;
		width: 100%;
		background: var(--theme-palette-color-4);
		top: 0;
		right: -106%;
		transform: scale(1.08);
		transition: cubic-bezier(.68,-0.02,.73,.87) .3s;
	}
	
	&:hover {
		&::before {
			transform: translatex(-106%) scale(1.08);
		}
	}
}

/** HEADER **/
#header {
	* { 
	font-family: inherit;
	}
	
	.ct-container {
		display: flex !important;
		justify-content: space-between;
		
		&>* {
			width: fit-content;
		}
	}
	
	.mega-menu-wrap {
		background-color: transparent !important;
		
		.mega-sub-menu {
			min-width: 750px !important;	
		}
		
		.mega-current_page_item, li.mega-menu-item {
			a.mega-menu-link:hover, a.mega-menu-link, a.mega-menu-link:focus {
				background: transparent !important;
			}
			
			a.mega-menu-link {
				font-size: 16px !important;
				text-transform: none !important;
			}	
		}
	}
}

/** MEGA MENU **/
.mega-menu-wrap .mega-menu.max-mega-menu > li.mega-menu-megamenu > ul.mega-sub-menu {
	transform: translateX(-14%) !important;
}

.mega-menu-wrap #mega-menu-3584-0-2 > ul > li:not(:last-child) {
	padding-bottom: 2px !important;
}

.mega-menu-toggle + .mega-menu > .mega-menu-item {
	padding: 0 5px !important;
}

/*HOME*/
.page-id-65 {
	.landing-column {
		display: flex;
		justify-content: space-between;

		* {
			width: fit-content;
		}
	}

	.landing-title {
		strong {
			display: inline-block;
			position: relative;

			&::before, &::after {
				content: "";
				display: block;
				height: 3px;
				width: 100%;
				background: var(--theme-palette-color-1);
			}
		}
	}
	
	.title-section > * {
		&>*:nth-child(1) {
			width: 35px;
		}
	}
}

/** ARRIVÉES **/
.grille-produits {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	padding: 0 !important;
}

@media (max-width: 991px) {
	.grille-produits {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.grille-produits {
		grid-template-columns: repeat(1, 1fr);
	}
}

/** ANIMATION CARDS CATÉGORIES **/ 
.categ-card .brz-bg-image {
	background-size 0.5s ease-in-out !important;
}

/** 2 valeurs numériques pour la transition smooth **/
@media (min-width:992px) {
	.categ-card .brz-bg-image {
		background-size: 225% !important;
	}
	.categ-card:hover .brz-bg-image {
		background-size: 245% !important;
	}
}

@media (min-width:1150px) {
	.categ-card .brz-bg-image {
		background-size: 185% !important;
	}
	.categ-card:hover .brz-bg-image {
		background-size: 205% !important;
	}
}

@media (min-width:1400px) {
	.categ-card .brz-bg-image {
		background-size: 150% !important;
	}
	.categ-card:hover .brz-bg-image {
		background-size: 170% !important;
	}
}

/** CARTE PRODUIT **/
.produit-item {
	display: flex;
	flex-direction: column;
	background: var(--theme-palette-color-5);
	padding: 30px;
	gap: 15px;

	&:hover {
		transform: scale(1.03)
	}

	* {
		font-family: stevie-sans, sans-serif !important;
	}
	
	.produit-badges {
		display: flex;
		gap: 10px;
		position: absolute;
		
		.badge {
			padding: 6px 8px;
			border: 1px solid var(--theme-palette-color-1);
			border-radius: 3px;
			width: fit-content;
			line-height: 15px;

			span {
				font-weight: 500;
				letter-spacing: 2px;
				font-size: 14px;
			}
		}
		
		.badge-stock {
			background-color: var(--theme-palette-color-1);
			color: var(--theme-palette-color-8);
		}
	}

	

	.flex {
		justify-content: space-between;
		align-items: end;
		gap: 15px;
	}

	.titre-produit {
		line-height: 1.3;
		font-weight: 400;
		font-size: 16px;
		color: var(--theme-palette-color-4);
		opacity: .6;
		margin-bottom: 10px;
		display: -webkit-box;
	  	-webkit-box-orient: vertical;
	  	-webkit-line-clamp: 4;
	 	overflow: hidden;
		min-height: 62.39px;
		display: flex;
		align-items: flex-end;
	}

	.prix {
		font-size: 21px;
		white-space: nowrap;
		font-weight: 700;
		color: var(--theme-palette-color-4);
	}

	.item-image {
		height: 180px;
		width: 100%;

		img {
			mix-blend-mode: darken;
			width: 100%;
			height: 100%;
			object-fit: contain;
		}
	} 

	.bouton-panier {
		margin-top: 5px;
		aspect-ratio: 1;
		display: flex;
		padding: 13px;
		background: var(--theme-palette-color-4);
		position: relative;

		&:hover {
			background: var(--theme-palette-color-1);
		}
	}
}

.single-product .out-of-stock-badge {
	padding: 6px 8px;
	border: 1px solid var(--theme-palette-color-1);
	border-radius: 3px;
	width: fit-content;
	line-height: 15px;
	font-weight: 500;
	letter-spacing: 2px;
	font-size: 14px;
	background-color: var(--theme-palette-color-1);
	color: var(--theme-palette-color-8);
}

/** FOOTER **/
footer .agency-credits, footer .agency-credits p, footer .agency-credits:hover {
	display: flex;
	align-items: center;
	column-gap: 8px;
	line-height: 1.5 !important;
	flex-wrap: wrap;
	color: var(--black);
}

footer .agency-credits p {
	font-weight: 600;
}

footer [data-row="bottom"] .ct-container {
	align-items: center;
}

#footer {
	* {
		font-family: stevie-sans, sans-serif !important;
	}
	
	[data-column="widget-area-1"] {
		width: 140px !important;
	}
	
	.footer-title {
		font-family: job-clarendon, serif !important;
		font-size: 24px;
		color: var(--theme-palette-color-5);
		letter-spacing: 1px;
	}

	[data-column="widget-area-3"] {		
		:is(a, span) {
			display: flex;
			gap: 12px;
		}
		
		svg {
			margin-top: 5px;
		}
		
		ul {
			margin-top: 20px;
			
			li {
				margin-top: 5px;
				
				b {
					color: var(--theme-palette-color-5)
				}
			}
		}
	}
	
	@media screen and (min-width: 991px) {
		[data-row="middle"] > .ct-container {
			padding-top: 50px;
			display: flex;
			justify-content: space-between;
			
			* {
				width: fit-content;
			}
		}
	}
}

/** CONTACT **/
#form-container {
	max-width: 1000px;
	z-index: 40;
	position: relative;
}

.wpcf7-form {
	color: white;
	
	.form-forced-flex {
		flex-direction: row !important;
		gap: 20px !important;
		align-items: end;
		margin-bottom: unset !important;
	}
	
	p {
		margin-bottom: 15px;
	}
	
  .form-flex {
    display: flex;
    gap: 20px;
		
		>* {
			width: 100%;
		}
		
		@media screen and (max-width: 777px) {
			flex-direction: column;
			gap: 0px;
			margin-bottom: 5px;
		}
  }

  input,
  textarea {
    border-radius: 8px;
		margin-top: 8px;
		border: rgba(255, 255, 255, .2) 1px solid;
  }

  * {
    font-family: stevie-sans, sans-serif !important;
    font-size: 14px !important;
  }

  .wpcf7-submit {
    font-weight: 600 !important;
    font-size: 16px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 5px;
		color: var(--theme-palette-color-4);
		border: none;
		transition: .4s;
		
		&::hover {
			background: var(--theme-palette-color-8);
		}
  }
}


/** CORRECTIONS SUR PAGE GÉNÉRÉES **/
body:not(.brz, .cmplz-document) .woocommerce, .cmplz-document article {
	padding: 75px 0 !important;
}

#cmplz-document, body.cmplz-document h1  {
	max-width: calc(1 * var(--brz-section-container-max-width, 1290px)) !important;
}

#cmplz-document :is(p, li) {
	color: var(--theme-palette-color-6);
}

body.cmplz-document h1 {
	font-size: 46px;
}

@media (max-width: 991px) {
	body:not(.brz, .cmplz-document) .woocommerce, .cmplz-document article {
		padding: 50px 0 !important;
	}
	
	body.cmplz-document h1 {
		font-size: 38px;
	}
}

@media (max-width: 767px) {
	body:not(.brz, .cmplz-document) .woocommerce, .cmplz-document article {
		padding: 25px 0 !important;
	}
	
	body.cmplz-document h1 {
		font-size: 36px;
	}
}

.ct-cart-actions div.quantity.hidden {
	display: none !important;
}

.additional_information_tab {
	display: none !important;
}

.woocommerce-product-gallery img, .flexy-container img {
	object-fit: contain !important;
}

.woocommerce-message {
	margin-top: 2rem;
}

.woocommerce-additional-fields__field-wrapper {
	margin-bottom: 25px;
}

.input-cffu-file-upload {
	border-color: var(--theme-form-field-border-initial-color) !important;
}

#documents_exacts_field, #acceptation_cgv_field {
	margin-bottom: 15px !important;
}

.woocommerce-page h3:not(.titre-produit), .woocommerce-page h2 {
	font-size: 28px !important;
	letter-spacing: 1px;
}

#ship-to-different-address span {
	font-size: 20px !important;
	letter-spacing: 0.75px;
}

#ship-to-different-address {
	margin-bottom: 45px !important;
}

.woocommerce-orders-table__row th {
	vertical-align: middle !important;
}

.woocommerce-Addresses h2 {
	font-size: 20px !important;
	margin-bottom: 8px !important;
	letter-spacing: 0.75px;
}

@media (max-width: 991px) {
	.woocommerce-page h3:not(.titre-produit), .woocommerce-page h2  {
		font-size: 27px !important;
	}
	
	.woocommerce-Addresses h2 {
		font-size: 20px !important;
	}

	#ship-to-different-address span {
		font-size: 16px !important;
	}
	
	#ship-to-different-address {
		margin-bottom: 20px !important;
	}
}

@media (max-width: 769px) {
	.woocommerce-page h3:not(.titre-produit), .woocommerce-page h2  {
		font-size: 22px !important;
	}
	
	.woocommerce-Addresses h2 {
		font-size: 18px !important;
	}
}


/** PAGE HISTOIRE **/
@media screen and (min-width: 768px) {
	#frise-chronologique {
		background: url(/wp-content/uploads/2025/09/timeline.svg);
		background-repeat: no-repeat;
		background-position-y: 76px;
		background-size: 100%;
	}
}

/** AJUSTEMENTS VARIATIONS PRODUITS **/
.variable-item {
	box-shadow: none !important;
	border: 1px solid #818080a6 !important;
}

.variable-item:not(.disabled) {
	border-color: var(--theme-palette-color-1) !important;
}

.variable-item.selected {
	background-color: var(--theme-palette-color-1) !important;
	
	span {
		color: var(--theme-palette-color-7) !important;
	}
}