/*
 * Catalogue boutique : /catalogue/ et les 4 pages Box (woocommerce/archive-product.php).
 * Maquette : refonte/maquettes/catalogue/design_handoff_catalogue/ (README = mesures).
 *
 * Variables posées sur <main class="tbx-cat"> par le gabarit :
 *   --fam / --fam-bg  couleur de la page (bleu + crème sur /catalogue/, famille sur une page Box)
 *   --accent          filet sous le titre ;  --court  terrain ;  --big-color  grand mot du titre
 * Bascule mobile < 768 px : colonne de filtres → bouton « Filtrer (n) » + tiroir plein écran.
 */

.tbx-cat {
	--ink: #0F2A3D;
	--text2: #3E5063;
	--muted: #5A6B7C;
	--navy: #004B76;
	--orange: #CB5223;
	--orange-hover: #B8461C;
	--orange-text: #B2532B;
	--line: #EADFD4;
	--line-soft: #F0E7DE;
	--field: #D8CCC0;
	--soft: #FBF5EF;
	--gutter: max(clamp(20px, 5.5vw, 80px), calc((100% - 1280px) / 2)); /* comme l'accueil : contenu centré, 1280 px max */
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	background: #fff;
}

/* L'ancien CSS additionnel d'Astra (legacy-customizer.css) met un fond gris sur #content des archives. */

html body #content.tbx-cat {
	background: #fff !important;
}

.tbx-cat *,
.tbx-cat *::before,
.tbx-cat *::after {
	box-sizing: border-box;
}

.tbx-cat a {
	text-decoration: none;
}

.tbx-cat :focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 2px;
}

/* Boutons : on neutralise le style des boutons de Hello Elementor (bordure et fond roses au survol). */

/* Le style global d'Elementor (.elementor-kit-… button) impose Open Sans aux boutons. */
html body .tbx-cat button {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	cursor: pointer;
}

/* Bandeau titre et rappel -20 % : assets/css/hero.css (communs avec la page Tarifs). */

/* ---------------------------------------------------------------------------
 * Accès rapide aux 4 Box (/catalogue/) et sélecteur de Box (pages Box)
 * ------------------------------------------------------------------------- */

.tbx-cat-boxes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	padding: 32px var(--gutter) 0;
}

.tbx-cat-boxes__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	min-height: 120px;
	padding: 20px 20px 20px 22px;
	border-radius: 22px;
	background: var(--bg);
	transition: transform .2s;
}

.tbx-cat-boxes__card:hover {
	transform: translateY(-3px);
}

.tbx-cat-boxes__title {
	color: var(--fg);
	font-size: 21px;
	font-weight: 900;
	letter-spacing: -.035em;
	line-height: 1.15;
}

.tbx-cat-boxes__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tbx-cat-boxes__count {
	color: var(--text2);
	font-size: 14.5px;
	font-weight: 600;
}

.tbx-cat-boxes__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--fg);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
}

/* ---------------------------------------------------------------------------
 * Corps : bandeau -20 %, colonne de filtres | contenu
 * ------------------------------------------------------------------------- */

.tbx-cat__body {
	padding: 32px var(--gutter);
}

.tbx-cat__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.tbx-cat--filters .tbx-cat__layout {
	grid-template-columns: 280px minmax(0, 1fr);
}

.tbx-cat__main {
	min-width: 0;
}

/* ---------------------------------------------------------------------------
 * Colonne de filtres (ordinateur) — devient un tiroir sur mobile (plus bas)
 * ------------------------------------------------------------------------- */

.tbx-cat-filters {
	padding: 18px 20px 12px;
	border-radius: 24px;
	background: var(--soft);
}

.tbx-cat-filters__form {
	margin: 0;
}

.tbx-cat-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
}

.tbx-cat-filters__title {
	margin: 0;
	color: var(--navy);
	font-family: inherit;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -.03em;
	line-height: 1.2;
	text-transform: none;
}

.tbx-cat-filters__clear,
.tbx-cat-chips__clear,
.tbx-cat-filters__reset {
	color: var(--orange-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.tbx-cat-filters__clear {
	padding: 8px 0;
}

.tbx-cat-filters__close,
.tbx-cat-filters__foot {
	display: none;
}

.tbx-cat-filter {
	border-top: 1px solid var(--line);
}

.tbx-cat-filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 52px;
	color: var(--ink);
	font-size: 16px;
	font-weight: 800;
	list-style: none;
	cursor: pointer;
}

.tbx-cat-filter__head::-webkit-details-marker {
	display: none;
}

.tbx-cat-filter__chev {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s;
}

.tbx-cat-filter__chev::before {
	content: "";
	border-top: 6px solid var(--navy);
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
}

.tbx-cat-filter[open] .tbx-cat-filter__chev {
	transform: rotate(180deg);
}

.tbx-cat-filter__opts {
	display: flex;
	flex-direction: column;
	padding-bottom: 12px;
}

.tbx-cat-filter__opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	margin: 0;
	color: var(--ink);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
}

/* Vraie case à cocher (clavier, lecteurs d'écran), cachée sous la case dessinée. */

.tbx-cat-filter__opt input {
	position: absolute;
	left: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.tbx-cat-filter__box {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--field);
	border-radius: 6px;
	background: #fff;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
}

.tbx-cat-filter__opt input:checked + .tbx-cat-filter__box {
	border-color: var(--navy);
	background: var(--navy);
}

.tbx-cat-filter__opt input:checked + .tbx-cat-filter__box::before {
	content: "✓";
}

.tbx-cat-filter__opt input:focus-visible + .tbx-cat-filter__box {
	outline: 2px solid var(--navy);
	outline-offset: 2px;
}

.tbx-cat-filter__label {
	flex: 1;
}

.tbx-cat-filter__n {
	color: var(--muted);
	font-size: 13.5px;
}

.tbx-cat .tbx-cat-filters__apply {
	width: 100%;
	height: 44px;
	margin: 4px 0 8px;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
 * Barre d'outils : recherche · nombre de résultats · tri
 * ------------------------------------------------------------------------- */

.tbx-cat-tools {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tbx-cat-tools__search {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	max-width: 420px;
	height: 48px;
	margin: 0;
	padding: 0 18px 0 8px;
	border: 1.5px solid var(--field);
	border-radius: 999px;
	background: #fff;
}

.tbx-cat-tools__search:focus-within {
	border-color: var(--navy);
}

.tbx-cat .tbx-cat-tools__loupe,
.tbx-cat .tbx-cat-tools__loupe:hover,
.tbx-cat .tbx-cat-tools__loupe:focus {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--orange);
}

.tbx-cat .tbx-cat-tools__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ink);
	font: 500 15.5px Inter, system-ui, sans-serif;
	-webkit-appearance: none;
	appearance: none;
}

.tbx-cat .tbx-cat-tools__search input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.tbx-cat-tools__count {
	flex: 1;
	margin: 0;
	color: var(--muted);
	font-size: 14.5px;
	font-weight: 600;
	text-align: right;
}

.tbx-cat-tools__sort {
	margin: 0;
}

.tbx-cat .tbx-cat-tools__sort select {
	height: 48px;
	margin: 0;
	padding: 0 40px 0 16px;
	border: 1.5px solid var(--field);
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23004B76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
	color: var(--ink);
	font: 600 15px Inter, system-ui, sans-serif;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.tbx-cat .tbx-cat-tools__filter,
.tbx-cat-tools__short {
	display: none;
}

/* Filtres actifs */

.tbx-cat-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.tbx-cat-chips__label {
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.tbx-cat-chips__chip {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 0 6px 0 16px;
	border: 1.5px solid var(--navy);
	border-radius: 999px;
	background: #fff;
	color: var(--navy) !important;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4; /* le Î d'« Entraînement » n'est pas rogné */
	white-space: nowrap;
}

.tbx-cat-chips__x {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #EAF0F7;
	font-size: 15px;
	font-weight: 700;
	transition: background .2s;
}

.tbx-cat-chips__chip:hover .tbx-cat-chips__x {
	background: #D5E2EF;
}

.tbx-cat-chips__clear {
	padding: 0 6px;
	font-size: 14.5px;
	line-height: 40px;
}

/* ---------------------------------------------------------------------------
 * Grille et carte produit
 * ------------------------------------------------------------------------- */

.tbx-cat__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.tbx-cat--filters .tbx-cat__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tbx-cat-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: #fff;
	transition: transform .2s, box-shadow .2s;
}

.tbx-cat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 44px -24px rgba(120, 50, 20, .45);
}

.tbx-cat-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: repeating-linear-gradient(135deg, #F1E4D8 0 8px, #F7EDE4 8px 16px);
}

.tbx-cat-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.tbx-cat-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tbx-cat-card__badge {
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.2;
}

.tbx-cat-card__badge--save {
	background: var(--orange);
}

.tbx-cat-card__badge--tool {
	background: #0E7A40;
}

.tbx-cat-card__badge--soon {
	background: #B92121;
}

.tbx-cat-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
}

.tbx-cat-card__box {
	align-self: flex-start;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--bg);
	color: var(--fg);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
}

.tbx-cat-card__name {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.25;
	text-transform: none;
}

.tbx-cat-card__name a,
.tbx-cat-card__pitch {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tbx-cat-card__name a {
	color: var(--ink);
}

.tbx-cat-card__name a:hover {
	color: var(--navy);
}

.tbx-cat-card__pitch {
	margin: 0 0 6px;
	color: var(--text2);
	font-size: 14.5px;
	line-height: 1.45;
}

.tbx-cat-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--line-soft);
}

.tbx-cat-card__price {
	display: flex;
	flex-direction: column;
	margin: 0;
	line-height: 1.1;
}

.tbx-cat-card__soon {
	color: var(--muted);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.tbx-cat-card__from {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.tbx-cat-card__amount,
.tbx-cat-card__amount .amount {
	color: var(--ink);
	font-size: 24px;
	font-weight: 900;
	letter-spacing: -.03em;
	white-space: nowrap;
}

.tbx-cat-card__btn,
.tbx-cat__btn {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 5px 0 18px;
	border-radius: 999px;
	background: var(--orange);
	box-shadow: 0 12px 24px -12px rgba(203, 82, 35, .7);
	color: #fff !important;
	font-size: 14.5px;
	font-weight: 700;
	white-space: nowrap;
	transition: background .2s;
}

.tbx-cat-card__btn:hover,
.tbx-cat__btn:hover {
	background: var(--orange-hover);
}

.tbx-cat-card__btn-dot,
.tbx-cat__btn-dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: var(--orange);
	font-size: 15px;
	font-weight: 800;
}

/* ---------------------------------------------------------------------------
 * Aucun résultat
 * ------------------------------------------------------------------------- */

.tbx-cat__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	padding: 64px 40px;
	border-radius: 28px;
	background: var(--soft);
	text-align: center;
}

.tbx-cat__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #fff;
	color: var(--orange);
	font-size: 26px;
	font-weight: 900;
}

.tbx-cat__empty h2 {
	margin: 6px 0 0;
	color: var(--navy);
	font-family: inherit;
	font-size: 28px;
	font-weight: 900;
	letter-spacing: -.04em;
	line-height: 1.2;
	text-transform: none;
}

.tbx-cat__empty p {
	max-width: 440px;
	margin: 0;
	color: var(--text2);
	font-size: 16px;
	line-height: 1.55;
}

.tbx-cat__empty .tbx-cat__btn {
	height: 52px;
	margin-top: 10px;
	padding: 0 6px 0 24px;
	gap: 14px;
	font-size: 16px;
}

.tbx-cat__empty .tbx-cat__btn-dot {
	width: 40px;
	height: 40px;
	font-size: 17px;
}

/* ---------------------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------------------- */

.tbx-cat-pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding-top: 56px;
}

.tbx-cat-pages__n,
.tbx-cat-pages__step {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	border: 1.5px solid var(--field);
	border-radius: 999px;
	background: #fff;
	color: var(--navy) !important;
	font-size: 15px;
	font-weight: 700;
	transition: border-color .2s;
}

.tbx-cat-pages__n.dots {
	border-color: transparent;
}

a.tbx-cat-pages__n:hover,
.tbx-cat-pages__step:hover {
	border-color: var(--navy);
}

.tbx-cat-pages__n.current {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff !important;
}

.tbx-cat-pages__step {
	padding: 0 20px;
	border-width: 2px;
}

.tbx-cat-pages__step--prev {
	padding: 0;
}

/* ---------------------------------------------------------------------------
 * Écrans moyens
 * ------------------------------------------------------------------------- */

@media (max-width: 1279px) {

	.tbx-cat--filters .tbx-cat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tbx-cat__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.tbx-cat-boxes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tbx-cat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tbx-cat-tools {
		flex-wrap: wrap;
	}

	.tbx-cat-tools__search {
		flex-basis: 100%;
		max-width: none;
	}

	.tbx-cat-tools__count {
		text-align: left;
	}
}

/* ---------------------------------------------------------------------------
 * Mobile (< 768 px)
 * ------------------------------------------------------------------------- */

@media (max-width: 767px) {

	.tbx-cat-boxes {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 20px 16px 0;
	}

	.tbx-cat-boxes__card {
		gap: 10px;
		min-height: 96px;
		padding: 14px 12px 12px 16px;
		border-radius: 20px;
	}

	.tbx-cat-boxes__title {
		font-size: 16.5px;
		letter-spacing: -.03em;
		line-height: 1.1;
	}

	.tbx-cat-boxes__count {
		font-size: 13px;
	}

	.tbx-cat-boxes__arrow {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.tbx-cat__body {
		padding: 20px 16px 0;
	}

	.tbx-cat__layout,
	.tbx-cat--filters .tbx-cat__layout {
		display: block;
	}

	/* Barre d'outils : recherche pleine largeur, puis « Filtrer (n) » + tri. */

	.tbx-cat-tools {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.tbx-cat--filters .tbx-cat-tools {
		grid-template-columns: 1fr 1fr;
	}

	.tbx-cat-tools__search {
		grid-column: 1 / -1;
		padding-left: 6px;
	}

	.tbx-cat .tbx-cat-tools__search input[type="search"] {
		font-size: 16px; /* pas de zoom automatique sur iPhone */
	}

	.tbx-cat-tools__count {
		display: none;
	}

	.tbx-cat .tbx-cat-tools__filter,
	.tbx-cat .tbx-cat-tools__filter:hover,
	.tbx-cat .tbx-cat-tools__filter:focus {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		height: 48px;
		padding: 0 18px;
		border: 2px solid var(--navy);
		border-radius: 999px;
		background: var(--navy);
		color: #fff;
		font-size: 15px;
		font-weight: 700;
	}

	.tbx-cat .tbx-cat-tools__sort select {
		width: 100%;
		padding-left: 12px;
	}

	.tbx-cat-chips {
		gap: 8px;
		margin-top: 10px;
	}

	.tbx-cat-chips__label {
		display: none;
	}

	.tbx-cat-chips__chip {
		gap: 8px;
		height: 44px;
		padding: 0 6px 0 14px;
		font-size: 14px;
	}

	.tbx-cat-chips__x {
		width: 30px;
		height: 30px;
	}

	.tbx-cat-chips__clear {
		font-size: 14px;
		line-height: 44px;
	}

	.tbx-cat-tools__short {
		display: block;
		margin: 10px 0 0;
		color: var(--muted);
		font-size: 13.5px;
		font-weight: 600;
	}

	.tbx-cat__grid,
	.tbx-cat--filters .tbx-cat__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 12px;
	}

	.tbx-cat__empty {
		gap: 12px;
		margin-top: 12px;
		padding: 36px 20px;
		border-radius: 24px;
	}

	.tbx-cat__empty-icon {
		display: none;
	}

	.tbx-cat__empty h2 {
		margin: 0;
		font-size: 22px;
	}

	.tbx-cat__empty p {
		font-size: 15px;
		line-height: 1.5;
	}

	.tbx-cat__empty .tbx-cat__btn {
		margin-top: 0;
		padding: 0 24px;
	}

	.tbx-cat__empty .tbx-cat__btn-dot {
		display: none;
	}

	.tbx-cat-pages {
		gap: 6px;
		padding: 32px 12px 8px;
	}

	.tbx-cat-pages__step {
		padding: 0;
	}

	.tbx-cat-pages__label {
		display: none;
	}

	/* Tiroir de filtres plein écran (ouvert par « Filtrer (n) »). */

	.tbx-cat-filters {
		position: fixed;
		inset: 0;
		z-index: 100000;
		display: none;
		padding: 0;
		border-radius: 0;
		background: #fff;
	}

	.tbx-cat-filters.is-open {
		display: block;
	}

	.tbx-cat-filters__form {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.tbx-cat-filters__head {
		flex: none;
		height: 68px;
		padding: 0 12px 0 20px;
		border-bottom: 1px solid var(--line);
	}

	.tbx-cat-filters__title {
		font-size: 22px;
		letter-spacing: -.035em;
	}

	.tbx-cat-filters__clear {
		display: none;
	}

	.tbx-cat .tbx-cat-filters__close,
	.tbx-cat .tbx-cat-filters__close:hover,
	.tbx-cat .tbx-cat-filters__close:focus {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1.5px solid var(--field);
		border-radius: 50%;
		background: #fff;
		color: var(--navy);
		font-size: 20px;
		font-weight: 700;
	}

	.tbx-cat-filters__body {
		flex: 1;
		overflow: auto;
		padding: 4px 20px 16px;
		overscroll-behavior: contain;
	}

	.tbx-cat-filter {
		border-top: 0;
		border-bottom: 1px solid var(--line-soft);
	}

	.tbx-cat-filter__head {
		height: 56px;
		font-size: 16.5px;
	}

	.tbx-cat-filter__chev {
		width: 30px;
		height: 30px;
		background: var(--soft);
	}

	.tbx-cat-filter__opts {
		padding-bottom: 10px;
	}

	.tbx-cat-filter__opt {
		gap: 14px;
		min-height: 48px;
		font-size: 16px;
	}

	.tbx-cat-filter__opt input,
	.tbx-cat-filter__box {
		width: 24px;
		height: 24px;
	}

	.tbx-cat-filter__box {
		font-size: 14px;
	}

	.tbx-cat-filter__n {
		font-size: 14px;
	}

	.tbx-cat-filters__foot {
		display: grid;
		flex: none;
		grid-template-columns: auto 1fr;
		gap: 12px;
		align-items: center;
		padding: 12px 16px 24px;
		border-top: 1px solid var(--line);
		background: #fff;
	}

	.tbx-cat-filters__reset {
		padding: 0 10px;
		font-size: 15px;
		font-weight: 700;
		line-height: 52px;
	}

	.tbx-cat .tbx-cat-filters__see,
	.tbx-cat .tbx-cat-filters__see:hover,
	.tbx-cat .tbx-cat-filters__see:focus {
		height: 52px;
		padding: 0 16px;
		border: 0;
		border-radius: 999px;
		background: var(--orange);
		box-shadow: 0 12px 24px -12px rgba(203, 82, 35, .7);
		color: #fff;
		font-size: 16px;
		font-weight: 700;
	}

	.tbx-cat .tbx-cat-filters__see:hover {
		background: var(--orange-hover);
	}

	.tbx-cat-filters noscript {
		display: none;
	}
}

@media (min-width: 600px) and (max-width: 767px) {
	.tbx-cat__grid,
	.tbx-cat--filters .tbx-cat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Page qui défile derrière le tiroir : bloquée. */

body.tbx-cat-drawer-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.tbx-cat-card,
	.tbx-cat-boxes__card,
	.tbx-cat-filter__chev {
		transition: none;
	}

	.tbx-cat-card:hover,
	.tbx-cat-boxes__card:hover {
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
 * Sélecteur de Box des pages Box, plus visible (retour d'Elsa, 2026-10-10) : 5 cartes colorées
 * (Toutes les Box + les 4 Box), la Box en cours en couleur pleine. Remplace la rangée de pilules.
 * ------------------------------------------------------------------------- */

.tbx-cat-boxes--switch {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	padding-top: 28px;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card {
	min-height: 108px;
	border: 2px solid transparent;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card:hover {
	border-color: var(--fg);
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current {
	background: var(--fg);
	box-shadow: 0 18px 34px -18px color-mix(in srgb, var(--fg) 80%, transparent);
	transform: translateY(-4px);
}

.tbx-cat-boxes--switch .is-current .tbx-cat-boxes__title {
	color: #fff;
}

.tbx-cat-boxes--switch .is-current .tbx-cat-boxes__count {
	color: rgba(255, 255, 255, .9);
	font-weight: 800;
}

.tbx-cat-boxes--switch .is-current .tbx-cat-boxes__arrow {
	background: #fff;
	color: var(--fg);
}

@media (max-width: 1100px) {
	.tbx-cat-boxes--switch {
		display: flex;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.tbx-cat-boxes--switch::-webkit-scrollbar {
		display: none;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card {
		flex: none;
		width: 200px;
	}
}

@media (max-width: 767px) {
	.tbx-cat-boxes--switch {
		gap: 10px;
		padding: 20px 16px 6px;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card {
		width: 156px;
		min-height: 96px;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current {
		transform: none;
	}
}

/* ======================================================================
 * Téléphone : liste compacte (retour d'Elsa, 2026-10-12, proposition B) — une ligne par produit : vignette carrée
 * à gauche, Box, nom (2 lignes), prix et flèche ; 6 à 7 produits par écran. La description reste sur la fiche.
 * Catalogue, pages Box et recherche ; les produits similaires de la fiche gardent leur carrousel.
 * ==================================================================== */
@media (max-width: 767px) {
	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid),
	.tbx-cat--filters .tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) > .tbx-cat-card {
		display: grid;
		grid-template-columns: 88px minmax(0, 1fr);
		align-items: center;
		gap: 12px;
		padding: 8px;
		border-radius: 18px;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__media {
		width: 88px;
		aspect-ratio: 1;
		border-radius: 12px;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__media .tbx-ph__label {
		padding: 3px 4px;
		font-size: 8.5px;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__badges {
		display: none;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__body {
		gap: 3px;
		min-width: 0;
		padding: 0 4px 0 0;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__box {
		padding: 0;
		background: none;
		font-size: 10.5px;
		font-weight: 800;
		letter-spacing: .06em;
		text-transform: uppercase;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__name {
		font-size: 15px;
		line-height: 1.25;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__pitch {
		display: none;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__foot {
		gap: 8px;
		margin-top: 2px;
		padding-top: 0;
		border-top: 0;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__from {
		font-size: 10.5px;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) :is(.tbx-cat-card__amount, .tbx-cat-card__amount .amount) {
		font-size: 18px;
	}

	html body .tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__soon {
		padding: 4px 9px 4px 7px;
		font-size: 11.5px;
	}

	/* Bouton réduit à la flèche ronde (le texte reste pour les lecteurs d'écran). */
	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__btn {
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		gap: 0;
		font-size: 0;
		box-shadow: none;
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__btn-dot {
		width: 36px;
		height: 36px;
		background: transparent;
		color: #fff;
		font-size: 16px;
	}
}

/* Pages Box, tablette et téléphone : sélecteur en grille, toutes les Box visibles sans glisser (retour d'Elsa,
   2026-10-12). « Toutes les Box » occupe une ligne entière au-dessus des 4 Box. */
@media (max-width: 1100px) {
	.tbx-cat-boxes--switch {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		overflow: visible;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card {
		width: auto;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card--all {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.tbx-cat-boxes--switch {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card {
		width: auto;
		min-height: 88px;
		padding: 12px 14px;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card--all {
		min-height: 0;
		padding: 10px 14px;
	}
}

/* « Toutes les Box » sur une ligne : « 53 produits » ne colle plus à la flèche (retour d'Elsa, 2026-10-17). */
.tbx-cat-boxes__foot {
	gap: 12px;
}

/* Catalogue et pages Box : nom et descriptif des produits en entier (retour d'Elsa, 2026-10-17).
   Sur téléphone, la liste compacte garde son descriptif masqué (choix du 2026-10-12). */
.tbx-cat-card__name a,
.tbx-cat-card__pitch {
	display: block;
	overflow: visible;
	-webkit-line-clamp: unset;
}

/* Produit « Bientôt disponible » : la pastille et « Voir le détail » ne tiennent pas côte à côte sur une carte étroite ;
   le bouton passe dessous, calé à droite, au lieu d'être coupé (retour d'Elsa, 2026-10-19). */
.tbx-cat-card__foot:has(.tbx-cat-card__soon) {
	flex-wrap: wrap;
	row-gap: 10px;
}

.tbx-cat-card__foot:has(.tbx-cat-card__soon) .tbx-cat-card__btn {
	margin-left: auto;
}

/* « Économisez X € » à côté de l'étiquette de la Box, sous le visuel (Elsa, 2026-10-26). */
.tbx-cat-card__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.tbx-cat-card__save {
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--orange, #cb5223);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.3;
}

@media (max-width: 767px) {
	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__save {
		padding: 2px 7px;
		font-size: 10.5px;
	}
}

/* Ancre de la liste (après un filtre, un tri ou une page) : un peu d'air au-dessus (Elsa, 2026-11-06). */
#produits {
	scroll-margin-top: 24px;
}

/* Boutons des Box : « Catalogue » puis le nom de la Box à la ligne, sur toutes les cartes (Elsa, 2026-11-07). */
.tbx-cat-boxes__title > span {
	display: block;
}

/* Liste mise à jour sur place (filtres, tri, pages, Elsa 2026-11-08) : léger fondu pendant le chargement. */
.tbx-cat__layout {
	transition: opacity .2s ease;
}

.tbx-cat__layout.is-loading {
	opacity: .45;
	pointer-events: none;
}

/* Packs Animation (Elsa, 2026-11-08) : « au lieu de X € » barré sous le prix ; nom sur deux lignes (le tiret devient un retour à la ligne). */
.tbx-cat-card__old {
	margin-top: 3px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: line-through;
	white-space: nowrap;
}

.tbx-cat-card__sub {
	display: block;
	margin-top: 2px;
	font-size: .82em;
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
 * Panneau de choix des Box : tuiles pleines aux couleurs des Box (variante B, Elsa 2026-11-08) ; sans le chevauchement du bandeau, retiré le même jour.
 * Style BD des bandeaux (dégradé + petits points) ; la Box affichée est relevée, entourée d'un anneau blanc puis coloré.
 * ------------------------------------------------------------------------- */
.tbx-cat-boxes {
	position: relative;
	z-index: 3;
}

.tbx-cat-boxes__card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 132px;
	padding: 18px 18px 16px 20px;
	border: 0;
	border-radius: 24px;
	background: radial-gradient(120% 140% at 85% 0, var(--g1, color-mix(in srgb, var(--fg) 78%, #fff)), var(--fg) 55%, var(--g3, color-mix(in srgb, var(--fg) 70%, #000)));
	box-shadow: 0 18px 30px -18px var(--fg);
	color: #fff;
}

.tbx-cat-boxes__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(circle, rgba(255, 255, 255, .2) 2px, transparent 2.4px);
	background-size: 14px 14px;
	-webkit-mask: radial-gradient(70% 120% at 100% 0, #000, transparent 75%);
	mask: radial-gradient(70% 120% at 100% 0, #000, transparent 75%);
	pointer-events: none;
}

.tbx-cat-boxes .tbx-cat-boxes__title {
	color: #fff;
	font-size: 21px;
	text-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}

.tbx-cat-boxes__title > span {
	margin-top: 2px;
}

.tbx-cat-boxes .tbx-cat-boxes__count {
	color: rgba(255, 255, 255, .92);
	font-weight: 700;
}

.tbx-cat-boxes .tbx-cat-boxes__arrow {
	background: #fff;
	color: var(--fg);
}

.tbx-cat-boxes__card:hover {
	transform: translateY(-5px);
	border-color: transparent;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card,
.tbx-cat-boxes--switch .tbx-cat-boxes__card:hover {
	border: 0;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current {
	background: radial-gradient(120% 140% at 85% 0, var(--g1, color-mix(in srgb, var(--fg) 78%, #fff)), var(--fg) 55%, var(--g3, color-mix(in srgb, var(--fg) 70%, #000)));
	box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--fg), 0 26px 40px -16px var(--fg);
	transform: translateY(-8px);
}

.tbx-cat-boxes--switch .is-current .tbx-cat-boxes__title,
.tbx-cat-boxes--switch .is-current .tbx-cat-boxes__count {
	color: #fff;
}

@media (max-width: 767px) {
	.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current {
		box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--fg), 0 18px 28px -14px var(--fg);
	}
}

/* Téléphone : « Communication » ne dépasse plus de sa tuile (le titre passe de 21 à 17 px). */
@media (max-width: 1100px) {
	.tbx-cat-boxes .tbx-cat-boxes__title {
		font-size: 17px;
		letter-spacing: -.03em;
		overflow-wrap: anywhere;
	}

	.tbx-cat-boxes__card {
		padding: 14px 14px 12px 16px;
	}
}

/* Téléphone : les visuels produit sont en 4:3 ; la vignette carrée de 88 px les rognait (« SITE INTERNET », « RÉSEAUX SOCIAUX » coupés).
   Vignette 4:3 de 112 px : le visuel s'affiche en entier (Elsa, 2026-11-09). */
@media (max-width: 767px) {
	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) > .tbx-cat-card {
		grid-template-columns: 112px minmax(0, 1fr);
	}

	.tbx-cat__grid:not(.tbx-pp-related .tbx-cat__grid) .tbx-cat-card__media {
		width: 112px;
		aspect-ratio: 4 / 3;
	}
}

/* ---------------------------------------------------------------------------
 * Sélecteur de Box : la Box affichée ressort davantage (Elsa, 2026-11-09). Les autres cartes sont réduites (moins hautes,
 * titre et flèche plus petits) ; la Box en cours est plus haute, sans décalage vers le haut (donc rien ne déborde sur
 * les voisines ni sur le bandeau au-dessus). Les cartes restent centrées sur la rangée.
 * ------------------------------------------------------------------------- */
.tbx-cat-boxes--switch {
	align-items: center;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card {
	min-height: 84px;
	gap: 8px;
	padding: 12px 14px 12px 16px;
	border-radius: 20px;
	box-shadow: 0 10px 18px -14px var(--fg);
	transform: none;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card:hover {
	transform: translateY(-2px);
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card:not(.is-current) .tbx-cat-boxes__title {
	font-size: 16px;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card:not(.is-current) .tbx-cat-boxes__count {
	font-size: 12.5px;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card:not(.is-current) .tbx-cat-boxes__arrow {
	width: 28px;
	height: 28px;
	font-size: 14px;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current {
	min-height: 136px;
	padding: 20px 20px 18px 22px;
	transform: none;
}

.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current .tbx-cat-boxes__title {
	font-size: 23px;
}

@media (max-width: 1100px) {
	.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current {
		min-height: 120px;
		padding: 16px 16px 14px 18px;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current .tbx-cat-boxes__title {
		font-size: 20px;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card:not(.is-current) .tbx-cat-boxes__title {
		font-size: 14.5px;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card--all {
		min-height: 0;
		padding: 10px 16px;
	}
}

@media (max-width: 767px) {
	.tbx-cat-boxes--switch .tbx-cat-boxes__card:not(.is-current) {
		min-height: 70px;
		gap: 6px;
		padding: 10px 12px;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current {
		min-height: 104px;
		padding: 14px 14px 12px 16px;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card:not(.is-current) .tbx-cat-boxes__arrow {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.tbx-cat-boxes--switch .tbx-cat-boxes__card--all {
		min-height: 0;
		padding: 8px 14px;
	}
}

/* Tuile de la Box affichée : le titre ne se coupe plus (« Communication » reste entier) ; elle ressort par sa hauteur,
   son anneau et son ombre plutôt que par une plus grande police (Elsa, 2026-11-09). */
.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current .tbx-cat-boxes__title {
	font-size: 21px;
	overflow-wrap: normal;
}

.tbx-cat-boxes--switch .is-current .tbx-cat-boxes__count {
	font-size: 13px;
	white-space: nowrap;
}

.tbx-cat-boxes--switch .is-current .tbx-cat-boxes__arrow {
	flex: none;
	width: 34px;
	height: 34px;
}

@media (max-width: 1100px) {
	.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current .tbx-cat-boxes__title {
		font-size: 17px;
	}
}

/* Tablette : « Communication » tient dans sa tuile de la Box affichée (4 tuiles par ligne) ; téléphone : 2 par ligne, 17 px. */
@media (max-width: 1100px) {
	.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current .tbx-cat-boxes__title {
		font-size: clamp(14px, 2vw, 17px);
	}
}

@media (max-width: 767px) {
	.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current .tbx-cat-boxes__title {
		font-size: 17px;
	}
}

/* ---------------------------------------------------------------------------
 * Téléphone : mini-cartes 2 × 2 (variante B, Elsa 2026-11-18 ; maquette refonte/maquettes/catalogue-choix-mobile-2026-11-18/).
 * Les cartes gardent leur couleur mais deviennent des bandeaux de 50 px : nom de la Box + pastille blanche du nombre de
 * produits (✓ pour la Box affichée). « Tout le catalogue » occupe une ligne entière. Le 1er produit remonte dans le
 * premier écran. Ordinateur et tablette inchangés.
 * ------------------------------------------------------------------------- */
.tbx-cat-boxes__n {
	display: none;
}

@media (max-width: 767px) {
	.tbx-cat-boxes,
	.tbx-cat-boxes.tbx-cat-boxes--switch {
		gap: 8px !important;
		align-items: stretch;
		padding-top: 16px;
	}

	.tbx-cat__body {
		padding-top: 14px;
	}

	.tbx-cat-boxes .tbx-cat-boxes__card,
	.tbx-cat-boxes.tbx-cat-boxes--switch .tbx-cat-boxes__card,
	.tbx-cat-boxes.tbx-cat-boxes--switch .tbx-cat-boxes__card--all {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 8px;
		min-height: 50px !important;
		height: 50px;
		padding: 0 10px 0 13px !important;
		border-radius: 14px;
		box-shadow: 0 10px 18px -14px var(--fg);
		transform: none !important;
	}

	.tbx-cat-boxes.tbx-cat-boxes--switch .tbx-cat-boxes__card.is-current {
		box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fg), 0 10px 18px -12px var(--fg);
	}

	/* Seulement le nom : « Catalogue » et le bas de carte disparaissent. */
	.tbx-cat-boxes .tbx-cat-boxes__title {
		min-width: 0;
		font-size: 0 !important;
		line-height: 1.1;
	}

	.tbx-cat-boxes .tbx-cat-boxes__title > span,
	.tbx-cat-boxes .tbx-cat-boxes__card--all .tbx-cat-boxes__title {
		display: block;
		margin: 0;
		font-size: 14.5px !important;
		letter-spacing: -.02em;
		overflow-wrap: normal;
		white-space: nowrap;
	}

	.tbx-cat-boxes .tbx-cat-boxes__foot {
		display: none !important;
	}

	.tbx-cat-boxes .tbx-cat-boxes__n {
		display: grid;
		flex: none;
		place-items: center;
		min-width: 26px;
		height: 22px;
		padding: 0 6px;
		border-radius: 99px;
		background: #fff;
		color: var(--fg);
		font-size: 12px;
		font-weight: 900;
	}
}
