/* Catégorie produit en gabarit WooCommerce natif (ROADMAP 2.2, inc/gabarit-categorie.php).
   Chargé seulement sur les catégories migrées. Aucun sélecteur Divi Theme Builder. */

/* ---------- En-tête ---------- */
.flux-categorie-page #main-content .container {
	padding-top: 40px;
}

.flux-categorie-page .woocommerce-breadcrumb {
	margin: 0 0 18px;
	font-size: 14px;
	color: #201f1b;
}

.flux-categorie-page .woocommerce-products-header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e4e4e1;
}

.flux-categorie-page .woocommerce-products-header__title.page-title {
	margin: 0;
	padding: 0;
	font: 500 40px/1.15 Oswald, sans-serif;
	color: #201f1b;
}

.flux-categorie-page .term-description {
	max-width: 820px;
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.65;
	color: #3d3c38;
}

.flux-categorie-page .term-description p:last-child {
	padding-bottom: 0;
}

/* ---------- Appel au devis sous l'introduction ---------- */
.flux-cat__appel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin-top: 20px;
}

.flux-cat__appel-cta {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 26px;
	border-radius: 3px;
	background: #71aa4a;
	font: 500 17px/1 Oswald, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff !important;
	text-decoration: none;
}

.flux-cat__appel-cta:hover {
	background: #5a8c39;
}

.flux-cat__appel .flux-reassurance {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: #3d3c38;
}

.flux-cat__appel .flux-reassurance li {
	padding: 0;
}

.flux-cat__appel .flux-reassurance li::before {
	content: "✓";
	margin-right: 6px;
	font-weight: 700;
	color: #5a8c39;
}

/* ---------- Navigation par catégories + grille ---------- */
.flux-cat__corps {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.flux-cat__nav {
	/* Pas de sticky : la liste est plus haute que la fenêtre, son bas resterait inaccessible. Elle défile avec la page. */
	position: static;
	padding: 20px 18px;
	border-radius: 14px;
	background: #f7f7f7;
	font-size: 14px;
}

.flux-cat__nav-tout {
	margin: 0 0 14px;
	padding: 0 0 14px;
	border-bottom: 1px solid #e4e4e1;
	font-weight: 700;
}

.flux-cat__nav-groupe + .flux-cat__nav-groupe {
	margin-top: 16px;
}

.flux-cat__nav-titre {
	margin: 0 0 6px;
	padding: 0;
	font: 500 13px/1.3 Oswald, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6b6a65;
}

.flux-cat__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.flux-cat__nav li {
	padding: 0;
}

.flux-cat__nav a {
	display: block;
	padding: 5px 8px;
	margin: 0 -8px;
	border-radius: 6px;
	line-height: 1.35;
	color: #201f1b;
	text-decoration: none;
}

.flux-cat__nav a:hover {
	background: #eef5e8;
	color: #3f6b22;
}

.flux-cat__nav a.is-actif {
	background: #201f1b;
	font-weight: 600;
	color: #fff;
}

/* ---------- Grille des produits ---------- */
.flux-categorie-page.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0 0 56px;
}

.flux-categorie-page.woocommerce ul.products::before,
.flux-categorie-page.woocommerce ul.products::after {
	display: none;
}

.flux-categorie-page.woocommerce ul.products li.product {
	float: none;
	width: auto;
	margin: 0 !important;
	padding: 0;
	clear: none;
}

.flux-categorie-page.woocommerce ul.products li.product a.woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.flux-categorie-page.woocommerce ul.products li.product .et_shop_image {
	display: block;
	margin: 0 0 14px;
	overflow: hidden;
	border-radius: 14px;
	background: #f7f7f7;
}

.flux-categorie-page.woocommerce ul.products li.product .et_shop_image img {
	margin: 0;
	transition: transform .25s ease;
}

.flux-categorie-page.woocommerce ul.products li.product a:hover .et_shop_image img {
	transform: scale(1.03);
}

.flux-categorie-page.woocommerce ul.products li.product .et_overlay {
	display: none;
}

.flux-categorie-page.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 8px;
	padding: 0;
	font: 500 18px/1.3 Oswald, sans-serif;
	color: #201f1b;
}

.flux-carte__reperes {
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.4;
	color: #6b6a65;
}

.flux-carte__origine {
	align-self: flex-start;
	margin-bottom: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #eef5e8;
	font-size: 12px;
	font-weight: 600;
	color: #3f6b22;
}

.flux-carte__voir {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: auto;
	border: 1.5px solid #71aa4a;
	border-radius: 3px;
	font: 500 15px/1 Oswald, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #3f6b22;
	transition: background .2s ease, color .2s ease;
}

/* Toute la carte est un lien : son survol remplit le bouton. */
.flux-categorie-page.woocommerce ul.products li.product a:hover .flux-carte__voir,
.flux-categorie-page.woocommerce ul.products li.product a:focus-visible .flux-carte__voir {
	background: #71aa4a;
	color: #fff;
}

.flux-carte__voir::after {
	content: "→";
	margin-left: 8px; /* flex : l'espace du contenu serait supprimé */
}

/* ---------- Sections sous la grille ---------- */
.flux-cat__sections > * {
	margin: 0 0 56px;
}

.flux-cat__sections > :last-child {
	margin-bottom: 40px;
}

.flux-cat__texte {
	max-width: 820px;
	font-size: 16px;
	line-height: 1.7;
	color: #3d3c38;
}

.flux-cat__texte h2 {
	margin: 36px 0 12px;
	padding: 0;
	font: 500 26px/1.2 Oswald, sans-serif;
	color: #201f1b;
}

.flux-cat__texte h2:first-child {
	margin-top: 0;
}

.flux-cat__texte h3 {
	margin: 24px 0 8px;
	padding: 0;
	font: 500 20px/1.3 Oswald, sans-serif;
	color: #201f1b;
}

.flux-cat__texte a {
	color: #3f6b22;
	text-decoration: underline;
}

.flux-cat__texte ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.flux-sec__titre {
	margin: 0 0 18px;
	padding: 0;
	font: 500 26px/1.2 Oswald, sans-serif;
	color: #201f1b;
}

.flux-cat__voir ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flux-cat__voir a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #d6d6d1;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	color: #201f1b;
	text-decoration: none;
}

.flux-cat__voir a:hover {
	border-color: #71aa4a;
	color: #3f6b22;
}

/* ---------- Mobile : navigation en pastilles au-dessus de la grille ---------- */
@media (max-width: 980px) {
	.flux-cat__corps {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	/* Une seule rangée de pastilles défilante, sans titres de rubrique : les produits restent dans le premier écran. */
	.flux-cat__nav {
		position: static;
		display: flex;
		gap: 8px;
		margin: 0 -16px;
		padding: 0 16px 4px;
		overflow-x: auto;
		background: none;
		border-radius: 0;
		scrollbar-width: none;
	}

	.flux-cat__nav::-webkit-scrollbar {
		display: none;
	}

	.flux-cat__nav-groupe,
	.flux-cat__nav ul,
	.flux-cat__nav li {
		display: contents;
	}

	.flux-cat__nav-titre {
		display: none;
	}

	.flux-cat__nav-tout {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.flux-cat__nav a {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		margin: 0;
		padding: 0 14px;
		border: 1px solid #d6d6d1;
		border-radius: 999px;
		white-space: nowrap;
	}

	.flux-cat__nav a.is-actif {
		border-color: #201f1b;
	}

	.flux-categorie-page.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 14px;
	}
}

@media (max-width: 767px) {
	.flux-categorie-page #main-content .container {
		padding-top: 24px;
	}

	.flux-categorie-page .woocommerce-products-header__title.page-title {
		font-size: 30px;
	}

	.flux-categorie-page.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 16px;
	}

	/* Bouton plus discret sur 2 colonnes étroites : toute la carte reste cliquable. */
	.flux-carte__voir {
		min-height: 36px;
		border-width: 1px;
		font-size: 13px;
		letter-spacing: .03em;
	}
}

/* Divi met des puces et un retrait sur toutes les listes de #left-area : retirés pour la navigation et la réassurance. */
#left-area .flux-cat__nav ul,
#left-area .flux-cat__appel .flux-reassurance,
#left-area .flux-cat__voir ul {
	padding: 0;
	list-style: none;
}

/* Espace sous le bloc navigation + grille : la navigation peut être plus haute que la grille (peu de produits). */
.flux-cat__corps {
	margin-bottom: 56px;
}

.flux-categorie-page.woocommerce .flux-cat__corps ul.products {
	margin-bottom: 0;
}

@media (max-width: 980px) {
	.flux-cat__corps {
		margin-bottom: 40px;
	}
}

/* Tableau d'aide au choix dans le texte long */
.flux-cat__texte table {
	width: 100%;
	margin: 8px 0 18px;
	border: 0;
	border-collapse: collapse;
	font-size: 14.5px;
	line-height: 1.45;
}

.flux-cat__texte th,
.flux-cat__texte td {
	padding: 11px 14px;
	border: 0;
	border-bottom: 1px solid #e4e4e1;
	text-align: left;
	vertical-align: top;
}

.flux-cat__texte thead th {
	background: #f7f7f7;
	font-weight: 700;
	color: #201f1b;
}

.flux-cat__texte td:first-child {
	font-weight: 600;
	white-space: nowrap;
}

.flux-cat__texte {
	max-width: 900px;
}

#left-area .flux-cat__texte ul {
	padding: 0 0 0 20px;
	list-style: disc;
}

/* Mobile : le tableau défile horizontalement plutôt que de déborder */
@media (max-width: 767px) {
	.flux-cat__texte table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.flux-cat__texte td,
	.flux-cat__texte th {
		white-space: normal;
		min-width: 120px;
	}
}

.flux-cat__texte td:nth-child(2),
.flux-cat__texte td:nth-child(3) {
	white-space: nowrap;
}
