/*
Theme Name: EasyLoc
Description: Thème par blocs autonome pour le site EasyLoc.
Version: 0.2.5
Text Domain: easyloc
Requires at least: 6.6
Requires PHP: 7.4
*/

.easy-container {
	margin-inline: auto;
	width: min(1320px, calc(100% - 40px));
}

.easy-header {
	background: url("assets/header-background.png");
	background-size: cover;
	display: flex;
	margin-bottom: 20px;
	min-height: 98px;
}

.easy-header__inner {
	display: flex;
}

.easy-header__logo-wrapper {
	align-items: center;
	background-color: #fff;
	border-bottom-right-radius: 260px;
	box-shadow: 8px 8px 7px rgb(0 0 0 / 35%);
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: absolute;
	z-index: 1;
}

.easy-header__logo {
	padding: 12px 88px 12px 12px;
	width: 385px;
}

.easy-header__logo img {
	display: block;
	height: auto;
	width: 100%;
}

.easy-header__brand {
	box-sizing: border-box;
	display: flex;
	height: 90%;
	justify-content: flex-end;
	padding-left: 495px;
	width: 100%;
}

.easy-header__brand-content {
	display: flex;
	flex-direction: column;
	padding-bottom: 25px;
	padding-right: 25px;
}

.easy-header__group-logo {
	display: flex;
	height: 70px;
	justify-content: flex-end;
}

.easy-header__group-logo img {
	display: block;
	height: auto;
	max-height: 70px;
	width: auto;
}

.easy-menu.wp-block-navigation {
	align-items: center;
	gap: 23px;
}

.easy-menu .wp-block-navigation__container {
	align-items: center;
	gap: 23px;
}

.easy-header .easy-menu.wp-block-navigation .wp-block-navigation-item__content {
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.easy-header .easy-menu.wp-block-navigation .wp-block-navigation-item__content:focus-visible,
.easy-header .easy-menu.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: #b4dcb0;
}

.easy-menu__cta .wp-block-navigation-item__content,
.blg-account-link .wp-block-navigation-item__content {
	background: #fff;
	border-radius: 8px;
	color: var(--wp--preset--color--primary) !important;
	padding: 10px 20px;
}

.easy-menu__cta .wp-block-navigation-item__content:focus-visible,
.easy-menu__cta .wp-block-navigation-item__content:hover,
.blg-account-link .wp-block-navigation-item__content:focus-visible,
.blg-account-link .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--primary) !important;
}

/* Icônes compte/panier auto-injectées par le bloc navigation natif :
   redondantes avec le lien "Mon compte / Connexion" déjà présent, masquées
   pour rester fidèle à la maquette (ni l'une ni l'autre n'y figurent). */
.easy-header__brand-content > .wp-block-woocommerce-customer-account,
.easy-header__brand-content > .wp-block-woocommerce-mini-cart {
	display: none;
}

@media (max-width: 800px) {
	.easy-header {
		background: var(--wp--preset--color--secondary);
		padding: 14px 0;
	}

	.easy-header__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.easy-header__logo-wrapper {
		position: static;
	}

	.easy-header__logo {
		width: 300px;
	}

	.easy-header__brand {
		background: transparent;
		height: auto;
		justify-content: flex-start;
		padding-left: 0;
	}

	.easy-header__brand-content {
		padding: 12px 0 0;
	}

	.easy-menu.wp-block-navigation,
	.easy-menu .wp-block-navigation__container {
		gap: 13px;
	}

	.easy-menu .wp-block-navigation-item__content {
		font-size: 13px;
	}
}

.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Accueil */

.easy-hero__title {
	border-bottom: 3px solid var(--wp--preset--color--primary);
	padding-bottom: 12px;
	width: fit-content;
}

.easy-hero__title-sub {
	color: #1c1c1c;
	display: block;
	font-size: clamp(1.5rem, 3.5vw, 2.75rem);
	font-weight: 700;
}

.easy-hero__tag {
	display: inline-block;
	font-weight: 700;
	text-transform: uppercase;
}

.easy-about__logo img {
	max-width: 100%;
	width: 280px;
}

.easy-hero__columns {
	align-items: stretch;
}

.easy-hero__media {
	border-radius: 24px;
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
	height: 100%;
	max-height: 520px;
	min-height: 320px;
	overflow: hidden;
	position: relative;
}

.easy-hero__media--flat {
	clip-path: none;
}

.easy-hero__media .splide__track,
.easy-hero__media .splide__list,
.easy-hero__media .splide__slide {
	height: 100%;
}

.easy-hero__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* Avant que le script ne reconstruise le carrousel, ne montre que la 1re image de la galerie native. */
.easy-hero__media:not(.splide) .wp-block-gallery .wp-block-image:not(:first-child) {
	display: none;
}

.easy-hero__arrows {
	bottom: 18px;
	display: flex;
	gap: 14px;
	left: 32%;
	position: absolute;
	z-index: 1;
}

.easy-hero__arrow {
	align-items: center;
	background: var(--wp--preset--color--primary);
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgb(0 0 0 / 15%);
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.easy-hero__arrow img {
	clip-path: none;
	height: 16px;
	object-fit: contain;
	width: auto;
}

.easy-hero__arrow--next img {
	transform: scaleX(-1);
}

.easy-feature img {
	display: block;
	height: 100px;
	margin-inline: auto;
	width: auto;
}

.easy-tiles {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, 1fr);
}

.easy-tiles.is-layout-flow > *,
.easy-tile.is-layout-flow > * {
	margin-block-start: 0;
}

.easy-tile {
	align-items: center;
	background-position: center;
	background-size: cover;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	min-height: 300px;
	overflow: hidden;
	position: relative;
	text-align: center;
}

.easy-tile::before {
	background: linear-gradient(180deg, rgb(0 0 0 / 5%), rgb(0 0 0 / 55%));
	content: "";
	inset: 0;
	position: absolute;
	z-index: 0;
}

.easy-tile > * {
	position: relative;
	z-index: 1;
}

.easy-tile__badge {
	align-items: center;
	background: var(--wp--preset--color--secondary);
	border-radius: 50%;
	display: flex;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.easy-tile__badge img {
	height: 26px;
	width: 26px;
}

.easy-tile__label {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

.easy-tile__underline {
	background: var(--wp--preset--color--primary);
	border: none;
	height: 3px;
	margin: 0;
	width: 36px;
}

.easy-search-bar-wrap {
	background-color: var(--wp--preset--color--secondary);
}

.easy-search-bar {
	align-items: stretch;
	justify-content: center;
}

.easy-search-bar .wp-block-search {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.easy-search-bar .wp-block-search__inside-wrapper {
	border: none !important;
	border-radius: 8px !important;
	flex: 1 1 auto;
	max-width: 520px;
	min-width: 280px;
}

.easy-search-bar .wp-block-search__input {
	border: none !important;
	box-shadow: none !important;
	flex: 1 1 auto;
	font-family: inherit;
	font-size: 13px;
	padding: 12px 16px !important;
	width: 100%;
}

.easy-search-bar .wp-block-search__button {
	background: transparent !important;
	padding: 0 16px !important;
}

.easy-search-bar .wp-block-search__button svg {
	fill: #888;
	height: 16px;
	width: 16px;
}

.easy-search-bar select {
	background: #fff;
	border: none;
	border-radius: 8px;
	box-sizing: border-box;
	cursor: pointer;
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 13px;
	padding: 12px 16px;
	width: 220px;
}

.easy-products {
	margin-top: var(--wp--preset--spacing--40);
}

.easy-product-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
	height: 100%;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.easy-product-card:hover {
	box-shadow: 0 14px 36px rgb(0 0 0 / 18%);
	transform: translateY(-2px);
}

.easy-product-card .wp-block-post-featured-image {
	margin: 0;
}

.easy-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--wp--preset--spacing--30);
}

.easy-product-card__tag {
	align-self: flex-start;
	background: var(--wp--preset--color--primary);
	border-radius: 12px;
	color: #fff !important;
	cursor: default;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 5px 12px;
	pointer-events: none;
	text-decoration: none !important;
	text-transform: uppercase;
}

.easy-product-card__cta {
	background: var(--wp--preset--color--primary);
	border-radius: 8px;
	color: #fff !important;
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-top: auto;
	padding: 12px 20px;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
}

.easy-product-card__cta:hover {
	background: var(--wp--preset--color--secondary);
}

.easy-cta {
	align-items: center;
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: space-between;
}

.easy-cta__phone {
	align-items: center;
	background: var(--wp--preset--color--primary);
	border-radius: 8px;
	display: flex;
	gap: 12px;
	padding: 14px 28px;
	text-decoration: none;
}

.easy-cta__phone img {
	height: 22px;
	width: 22px;
}

.easy-cta__phone span {
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.easy-social {
	display: flex;
	gap: 14px;
}

.easy-social a {
	align-items: center;
	background: #1c1c1c;
	border-radius: 50%;
	display: flex;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.easy-social img {
	height: 16px;
	width: 16px;
}

.easy-footer-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-site-blocks > footer a {
	color: #fff;
	text-decoration: none;
}

.wp-site-blocks > footer a:focus-visible,
.wp-site-blocks > footer a:hover {
	color: #b4dcb0;
}

@media (max-width: 800px) {
	.easy-tiles {
		grid-template-columns: 1fr;
	}

	.easy-hero__media {
		height: 300px;
	}
}

/* Fiche produit */

.easy-product__columns {
	align-items: stretch;
}

.easy-product__card {
	background: #eef1ec;
	border-radius: 16px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
	padding: 40px;
}

.easy-product__card .easy-product-card__tag {
	align-self: flex-start;
}

.easy-product__columns .wp-block-woocommerce-product-image-gallery,
.easy-product__columns .wp-block-woocommerce-product-image-gallery img {
	border-radius: 16px;
}

.easy-related-query {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.easy-related-card {
	align-items: center;
	background: #eef1ec;
	border-radius: 8px;
	gap: 16px;
	padding: 12px;
}

.easy-related-card__link {
	color: var(--wp--preset--color--primary);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
}
