/*
Theme Name: Meuble Lave Linge
Theme URI: https://mll.lit-bebe.org
Author: Meuble Lave Linge
Description: Thème bloc (FSE) sur-mesure pour Meuble Lave Linge, conçu pour WooCommerce. Structure de page d'accueil inspirée de WoodMart, avec une identité propre (typographie Poppins/Lato, accent chêne).
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meuble-lave-linge
Requires Plugins: woocommerce
*/

/* Navigation principale — soulignement au survol, dans l'esprit des menus e-commerce classiques */
.mll-main-nav .wp-block-navigation-item > a {
	position: relative;
	padding-bottom: 4px;
}
.mll-main-nav .wp-block-navigation-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transition: right 0.2s ease;
}
.mll-main-nav .wp-block-navigation-item > a:hover::after,
.mll-main-nav .wp-block-navigation-item > a:focus-visible::after {
	right: 0;
}

/* En-tête : icônes recherche / compte / panier alignées et de taille cohérente */
.mll-header-icons {
	align-items: center;
}
.mll-header-icons .wp-block-search {
	display: flex;
	align-items: center;
}
header .wp-block-search__button.has-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: var(--wp--preset--color--ink);
}
header .wp-block-search__button.has-icon:hover {
	color: var(--wp--preset--color--accent);
}
header .wp-block-search__button.has-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* Empêche le menu principal de passer à la ligne sur desktop */
.mll-main-nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	white-space: nowrap;
}

/* Slider d'images du hero — ajoutez la classe "mll-hero-slider" au bloc Galerie
   (panneau Avancé du bloc) pour transformer une galerie de 2+ images en slider.
   La hauteur se règle sur le bloc Groupe parent "mll-hero-slider-wrap"
   (panneau Dimensions → Min. height, ou en tirant la poignée dans l'éditeur) ;
   la largeur se règle en tirant la bordure de la colonne qui le contient. */
.mll-hero-slider-wrap {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--panel);
}
.wp-block-gallery.mll-hero-slider {
	position: absolute !important;
	inset: 0 !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
}
.wp-block-gallery.mll-hero-slider > figure.wp-block-image {
	position: absolute !important;
	inset: 0 !important;
	width: auto !important;
	height: auto !important;
	max-width: none;
	margin: 0;
	opacity: 0;
	transition: opacity 0.7s ease;
	pointer-events: none;
}
.wp-block-gallery.mll-hero-slider > figure.wp-block-image.is-active {
	opacity: 1;
	pointer-events: auto;
}
.wp-block-gallery.mll-hero-slider > figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: contain;
	display: block;
}
.mll-slider-nav {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}
.mll-slider-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	border: none;
	cursor: pointer;
	padding: 0;
}
.mll-slider-dot.is-active {
	background: var(--wp--preset--color--accent);
}
.mll-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	color: var(--wp--preset--color--ink);
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	line-height: 1;
	z-index: 5;
}
.mll-slider-arrow:hover {
	color: var(--wp--preset--color--accent);
}
.mll-slider-arrow.prev {
	left: 12px;
}
.mll-slider-arrow.next {
	right: 12px;
}
