/* Fichier généré par assets/css/build.mjs — ne pas modifier : éditer assets/css/src/. */

/* ---- blocs/page-boutique.css ---- */
/*
 * Page Boutique /boutique (maquettes/gabarits/page-boutique.php, préfixe cb) : les 10 rubriques
 * du catalogue. La carte catégorie est dans page-catalogue.css (préfixe cl).
 */

/* Premier bloc collé au header. */
.kdo-bloc--cb-entete {
	padding-top: 0.9rem;
}

/* ---------- En-tête : disposition A ---------- */
.kdo-cb-entete .kdo-panneau__grille {
	@media (min-width: 1024px) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.kdo-cb-entete .kdo-ariane {
	margin-bottom: 0.85rem;
}

.kdo-cb-entete .kdo-hero__titre {
	font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.6rem);
}

.kdo-cb-chiffres {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 0;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;

	& li {
		display: flex;
		align-items: center;
		gap: 0.55rem;
		padding-inline: 1.1rem;

		&:first-child {
			padding-left: 0;
		}

		& + li {
			border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--marque) 35%, var(--wp--preset--color--filet));
		}
	}

	& strong {
		color: var(--wp--preset--color--marque);
		font-family: var(--wp--preset--font-family--titre);
		font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
		font-weight: 800;
		line-height: 1;
		white-space: nowrap;
	}

	& span {
		color: var(--wp--preset--color--navy);
		font-family: var(--wp--preset--font-family--titre);
		font-size: 0.66rem;
		font-weight: 700;
		line-height: 1.25;
		text-transform: uppercase;
	}

	@media (max-width: 479px) {
		& li {
			padding-inline: 0.7rem;
		}
	}
}

/* Recherche dans le catalogue : le champ du header, en grand. */
.kdo-cb-recherche {
	max-width: 32rem;
	margin-bottom: 1.25rem;

	& .kdo-recherche__champ {
		min-height: 50px;
		padding: 0.5rem 9rem 0.5rem 1.25rem;
		border: 1.5px solid var(--wp--preset--color--filet);
		background: var(--wp--preset--color--surface);
		font-size: 0.95rem;
		box-shadow: var(--wp--preset--shadow--carte);

		&:focus {
			border-color: var(--wp--preset--color--marque);
			outline: none;
		}
	}

	@media (max-width: 479px) {
		& .kdo-recherche__champ {
			padding-right: 3.75rem;
		}
	}
}

/* Sélecteur doublé : .kdo-panneau .kdo-bouton (panneau.css) imposait sa marge intérieure et
 * écrasait l'icône du bouton rond en mobile. */
.kdo-cb-recherche .kdo-cb-recherche__bouton {
	position: absolute;
	top: 50%;
	right: 0.3rem;
	min-height: 40px;
	padding-inline: 1.1rem;
	gap: 0.45rem;
	border-radius: var(--wp--custom--rayon--pilule);
	translate: 0 -50%;

	& .kdo-icone {
		width: 1.1rem;
		height: 1.1rem;
		color: inherit;
	}

	@media (max-width: 479px) {
		width: 40px;
		padding: 0;

		& span {
			position: absolute;
			width: 1px;
			height: 1px;
			overflow: hidden;
			clip-path: inset(50%);
		}
	}
}

/* Scène de produits de plusieurs rubriques (proportions fixes). */
.kdo-cb-scene {
	--kdo-scene: 1.3;
}

.kdo-cb-entete .kdo-panneau__visuel {
	min-height: 0;
}

.kdo-cb-produit--1 {
	right: 0;
	top: 0;
	width: 52%;
	rotate: 8deg;
}

.kdo-cb-produit--2 {
	left: 4%;
	top: 6%;
	width: 40%;
	rotate: -6deg;
}

.kdo-cb-produit--3 {
	left: 30%;
	top: 22%;
	width: 42%;
}

.kdo-cb-produit--4 {
	left: 2%;
	bottom: 0;
	width: 40%;
	rotate: -4deg;
}

.kdo-cb-produit--5 {
	right: 16%;
	bottom: -2%;
	width: 30%;
	rotate: 10deg;
}

.kdo-cb-scene {
	container-type: inline-size;
}

.kdo-cb-pastille {
	top: auto;
	right: auto;
	left: 42%;
	bottom: 2%;
	width: max(19%, 5rem);
	z-index: 2;
}

/* ---------- Les 10 rubriques : 2 colonnes, puis 5 à partir de 1024px ---------- */
.kdo-cb-rubriques {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;

	@media (min-width: 768px) {
		gap: 1rem;
	}

	@media (min-width: 1024px) {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	@media (max-width: 639px) {
		& .kdo-cl-categorie__liens,
		& .kdo-cl-categorie__voir {
			display: none;
		}

		& .kdo-cl-categorie__corps {
			padding: 0.7rem 0.75rem 0.8rem;
		}

		& .kdo-cl-categorie__titre {
			font-size: 0.85rem;
		}
	}
}

/* ---------- Sur mesure : C en miroir, navy ; spécialités en pilules ---------- */
.kdo-cb-specialites {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.4rem;
	padding: 0;
	list-style: none;

	/* Lien quand la page de la spécialité existe, simple pastille sinon (Lot 6). */
	& a,
	& span {
		display: inline-block;
		padding: 0.3rem 0.8rem;
		border: 1px solid color-mix(in srgb, var(--wp--preset--color--surface) 30%, transparent);
		border-radius: var(--wp--custom--rayon--pilule);
		background: color-mix(in srgb, var(--wp--preset--color--surface) 6%, transparent);
		color: var(--wp--preset--color--surface);
		font-family: var(--wp--preset--font-family--titre);
		font-size: 0.76rem;
		font-weight: 700;
		text-decoration: none;
		transition: background-color var(--wp--custom--transition), border-color var(--wp--custom--transition);

		&::before {
			content: "›";
			margin-right: 0.35rem;
			color: var(--kdo-panneau-vert-clair);
		}
	}

	& a:hover,
	& a:focus-visible {
		border-color: var(--kdo-panneau-vert-clair);
		background: color-mix(in srgb, var(--wp--preset--color--marque) 30%, transparent);
	}
}

.kdo-cb-scene-sm {
	--kdo-scene: 1.5;
}

.kdo-cb-sm--1 {
	left: 24%;
	top: 0;
	width: 42%;
	rotate: -4deg;
}

.kdo-cb-sm--2 {
	right: 3%;
	top: 14%;
	width: 31%;
	rotate: 9deg;
}

.kdo-cb-sm--3 {
	left: 2%;
	bottom: 4%;
	width: 34%;
	rotate: -6deg;
}

.kdo-cb-sm--4 {
	left: 42%;
	bottom: 0;
	width: 31%;
}

.kdo-cb-sm--5 {
	right: 12%;
	bottom: 2%;
	width: 17%;
	rotate: 10deg;
}
