/* Fox catalogue — pieces of the V2 catalogue pages built in Elementor:
   « Fox Filtres » bar, « Fox Note » stars, « Fox Badge Nouveau », and helper
   classes to put on Elementor containers:
   - fox-carte        : the card (Loop item root, as a link): red Fox corners on hover
   - fox-carte__cta   : the « Découvrir » text: red outline, filled on card hover
   - fox-guide        : a Text widget holding the category guide (two columns)
   Colours: --fox-accent (red), change them in each widget's Style tab or with
   the variables below. White on #E0161E 4.88:1; never dark text on red. */

:root {
	--fox-accent: var(--rouge, #E0161E);
	--fox-coins: var(--rouge, #E0161E);
}

/* ---------- Accessibility (RGAA audit, 20 November 2026) ---------- */

/* 12.7: « Aller au contenu » shows when it gets keyboard focus (it stayed clipped). */
.skip-link.screen-reader-text:focus,
.skip-link.screen-reader-text:focus-visible {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	clip-path: none;
	overflow: visible;
	background: #E0161E;
	color: #fff;
	font: 700 15px/1.2 var(--police, "Chakra Petch"), sans-serif;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .05em;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* 10.7: image links (logo of the header) keep a visible focus. */
.e-image-link-base:focus-visible {
	outline: 2px solid #FF7A7E;
	outline-offset: 4px;
}

/* ---------- Card helpers ---------- */

.fox-carte {
	position: relative;
	text-decoration: none;
}

.fox-carte::before,
.fox-carte::after {
	content: "";
	position: absolute;
	z-index: 3;
	width: 32px;
	height: 32px;
	border: 0 solid var(--fox-coins);
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}

.fox-carte::before {
	top: -1px;
	left: -1px;
	border-top-width: 3px;
	border-left-width: 3px;
}

.fox-carte::after {
	right: -1px;
	bottom: -1px;
	border-right-width: 3px;
	border-bottom-width: 3px;
}

.fox-carte:hover::before,
.fox-carte:hover::after,
.fox-carte:focus-visible::before,
.fox-carte:focus-visible::after {
	opacity: 1;
}

.fox-carte:focus-visible {
	outline: 2px solid var(--texte, #F8F8F8);
	outline-offset: 3px;
}

.fox-carte__cta,
.fox-carte__cta .elementor-heading-title {
	transition: background-color 0.2s, color 0.2s;
}

.fox-carte__cta .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	box-shadow: inset 0 0 0 2px var(--fox-accent);
}

.fox-carte:hover .fox-carte__cta .elementor-heading-title,
.fox-carte:focus-visible .fox-carte__cta .elementor-heading-title {
	background: var(--fox-accent);
	color: #fff;
}

/* Guide text: H2 across, H3 + paragraph blocks on two columns. */
/* Only one box gets the columns: the inner wrapper when Elementor prints one, else the widget. */
.fox-guide > .elementor-widget-container,
.fox-guide.elementor-widget-text-editor:not(:has(> .elementor-widget-container)) {
	columns: 2;
	column-gap: 56px;
}

.fox-guide h2 {
	column-span: all;
	margin: 0 0 20px;
	text-wrap: balance;
}

.fox-guide h3 {
	margin: 0 0 6px;
	break-after: avoid;
}

.fox-guide p {
	margin: 0 0 24px;
	break-inside: avoid;
}

@media (max-width: 767px) {
	.fox-guide > .elementor-widget-container,
	.fox-guide.elementor-widget-text-editor:not(:has(> .elementor-widget-container)) {
		columns: 1;
	}
}

/* ---------- Badge Nouveau ---------- */

.fox-nouveau--coin {
	position: absolute !important;
	top: 12px;
	left: 12px;
	z-index: 2;
	width: auto !important;
	max-width: max-content;
}

.fox-badge {
	display: inline-block;
	padding: 3px 8px;
	background: var(--fox-accent);
	color: #fff;
	/* Own font: in a product card the inherited one can be the browser default (Times). */
	font-family: var(--police, "Chakra Petch"), system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* ---------- Note ---------- */

.fox-note {
	--ffp-etoile: #FFC94D;
	--ffp-etoile-fond: rgba(255, 255, 255, 0.3);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--texte-doux, rgba(255, 255, 255, 0.72));
	/* Own font: in a product card the inherited one is the browser default (Times). */
	font-family: var(--police, "Chakra Petch"), system-ui, sans-serif;
	font-size: 14px;
	white-space: nowrap;
}

.fox-note .ffp-etoiles {
	font-size: 15px;
	letter-spacing: 1px;
}

.fox-note--vide {
	min-height: 22px;
}

/* ---------- Fox Filtres ---------- */

.fox-filtres {
	--fox-filtres-fond: var(--fond, #2A2E37);
	--fox-filtres-texte: var(--texte, #F8F8F8);
	--fox-filtres-doux: var(--texte-doux, rgba(255, 255, 255, 0.72));
	--fox-filtres-bordure: rgba(255, 255, 255, 0.3);
	--fox-filtres-accent: var(--fox-accent);
	--fox-filtres-panneau: var(--fond-carte, #353941);
	background: var(--fox-filtres-fond);
	color: var(--fox-filtres-texte);
	font-family: var(--police, "Chakra Petch"), system-ui, sans-serif;
}

.fox-filtres *,
.fox-filtres *::before,
.fox-filtres *::after {
	box-sizing: border-box;
}

.fox-filtres [hidden] {
	display: none !important;
}

.fox-filtres button,
.fox-filtres select {
	font: inherit;
	color: inherit;
}

.fox-filtres :focus-visible {
	outline: 2px solid var(--fox-filtres-texte);
	outline-offset: 3px;
}

.fox-filtres--collante-yes {
	position: sticky;
	top: var(--fox-haut-entete, 0px);
	z-index: 20;
}

.fox-filtres__barre {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-block: 12px;
}

.fox-filtres__liste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.fox-filtres__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--fox-filtres-bordure);
	border-radius: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
}

.fox-filtres__btn:hover,
.fox-filtres__btn[aria-expanded="true"],
.fox-filtres__btn.est-actif {
	border-color: var(--fox-filtres-accent);
	background: transparent;
	color: inherit;
}

.fox-filtres__btn--deroule::after {
	content: "▾";
	font-size: 12px;
}

.fox-filtres__nb {
	padding: 0 6px;
	background: var(--fox-filtres-accent);
	color: #fff;
	font-size: 12px;
	line-height: 1.6;
}

.fox-filtres__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fox-filtres__filtre {
	position: relative;
}

.fox-filtres__panneau {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 220px;
	max-height: 60vh;
	overflow-y: auto;
	padding: 10px;
	background: var(--fox-filtres-panneau);
	border-top: 2px solid var(--fox-filtres-accent);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.fox-filtres__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	font-size: 15px;
	cursor: pointer;
}

.fox-filtres__option:hover {
	background: rgba(255, 255, 255, 0.06);
}

.fox-filtres__option input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--fox-filtres-accent);
}

.fox-filtres__option-nb {
	margin-left: auto;
	padding-left: 12px;
	font-size: 14px;
	color: var(--fox-filtres-doux);
}

.fox-filtres__droite {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
	font-size: 15px;
	color: var(--fox-filtres-doux);
	white-space: nowrap;
}

.fox-filtres__tri select {
	padding: 8px 10px;
	border: 1px solid var(--fox-filtres-bordure);
	border-radius: 0;
	background: var(--fox-filtres-panneau);
	color: var(--fox-filtres-texte);
}

.fox-filtres__lien {
	padding: 9px 4px;
	border: 0;
	background: none;
	font-size: 15px;
	color: var(--rouge-texte, #FF7A7E);
	text-decoration: underline;
	cursor: pointer;
}

.fox-filtres__lien:hover {
	background: none;
	color: var(--fox-filtres-texte);
}

.fox-filtres__actives {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-bottom: 12px;
}

.fox-filtres__pastille {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	border: 1px solid var(--fox-filtres-bordure);
	border-radius: 0;
	background: transparent;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.fox-filtres__pastille::after {
	content: "✕";
	font-size: 12px;
	color: var(--rouge-texte, #FF7A7E);
}

.fox-filtres__pastille:hover {
	border-color: var(--fox-filtres-accent);
	background: transparent;
	color: inherit;
}

.fox-filtres__actives .fox-filtres__lien {
	padding: 5px 4px;
}

/* One "Filtres" button under the chosen width (widget setting). */
.fox-filtres__btn--tiroir {
	display: none;
}

@media (max-width: 1100px) {
	.fox-filtres[data-tiroir="1100"] .fox-filtres__liste {
		display: none;
	}

	.fox-filtres[data-tiroir="1100"] .fox-filtres__btn--tiroir {
		display: inline-flex;
	}
}

@media (max-width: 1024px) {
	.fox-filtres[data-tiroir="1024"] .fox-filtres__liste {
		display: none;
	}

	.fox-filtres[data-tiroir="1024"] .fox-filtres__btn--tiroir {
		display: inline-flex;
	}
}

@media (max-width: 767px) {
	.fox-filtres[data-tiroir="767"] .fox-filtres__liste {
		display: none;
	}

	.fox-filtres[data-tiroir="767"] .fox-filtres__btn--tiroir {
		display: inline-flex;
	}

	.fox-filtres__droite {
		gap: 10px;
	}

	.fox-filtres__tri-libelle {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

.fox-filtres__tiroir {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-end;
	background: rgba(0, 0, 0, 0.6);
}

.fox-filtres__boite {
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 16px 16px 20px;
	background: var(--fox-filtres-panneau);
	border-top: 3px solid var(--fox-filtres-accent);
}

.fox-filtres__tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.fox-filtres__tete h2 {
	margin: 0;
	font-size: 18px;
	text-transform: uppercase;
	color: var(--fox-filtres-texte);
}

.fox-filtres__tiroir details {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fox-filtres__tiroir summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 0;
	list-style: none;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.fox-filtres__tiroir summary::-webkit-details-marker {
	display: none;
}

.fox-filtres__tiroir summary::after {
	content: "+";
	margin-left: auto;
	font-size: 22px;
	line-height: 1;
	color: var(--rouge-texte, #FF7A7E);
}

.fox-filtres__tiroir details[open] summary::after {
	content: "−";
}

.fox-filtres__tiroir details > div {
	padding-bottom: 10px;
}

.fox-filtres__actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.fox-filtres__bouton {
	flex: 1;
	padding: 12px;
	border: 2px solid var(--fox-filtres-accent);
	border-radius: 0;
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.fox-filtres__bouton:hover,
.fox-filtres__bouton--plein {
	background: var(--fox-filtres-accent);
	color: #fff;
}

.fox-filtres.est-en-cours {
	cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
	.fox-carte::before,
	.fox-carte::after,
	.fox-carte__cta .elementor-heading-title {
		transition: none;
	}
}

/* ---------- Fox Carte produit (one widget for the whole card) ----------
   Same look as the former 9-element card. Sizes are variables, set by the
   widget's Style tab: --fox-carte-photo (photo height), --fox-carte-marge. */

.e-loop-item > .e-con:has(> .elementor-widget-ffp-carte),
.elementor-widget-ffp-carte,
.elementor-widget-ffp-carte > .elementor-widget-container {
	height: 100%;
}

.elementor-widget-ffp-carte {
	width: 100%;
}

.elementor-widget-ffp-carte .fox-carte {
	--fox-carte-photo: 194px;
	--fox-carte-marge: 18px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: inherit;
}

.fox-carte__visuel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: calc(var(--fox-carte-photo) + 2 * var(--fox-carte-marge));
	padding: var(--fox-carte-marge);
}

/* Two classes: beats Elementor's « .elementor img { height: auto } ». */
.fox-carte .fox-carte__photo {
	display: block;
	width: 100%;
	height: var(--fox-carte-photo);
	object-fit: contain;
	object-position: center;
}

.fox-carte__corps {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 6px;
	padding: 4px var(--fox-carte-marge) var(--fox-carte-marge);
}

.fox-carte__specs,
.fox-carte__nom,
.fox-carte__bouton {
	font-family: var(--police, "Chakra Petch"), sans-serif;
	font-weight: 700;
	text-transform: uppercase;
}

.fox-carte__specs {
	display: block;
	color: #FF7A7E;
	font-size: 14px;
	letter-spacing: 0.56px;
	line-height: var(--e-global-typography-primary-line-height, 1);
}

.fox-carte__nom {
	margin: 0;
	padding: 0;
	color: #F8F8F8;
	font-size: 24px;
	line-height: 1.05em;
}

.fox-carte__bas {
	display: flex;
	flex-grow: 1;
	align-items: flex-end;
	justify-content: flex-end;
	padding-top: 10px;
}

.fox-carte__bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	box-shadow: inset 0 0 0 2px var(--fox-accent);
	color: #F8F8F8;
	font-size: 14px;
	letter-spacing: 0.84px;
	line-height: 1;
	transition: background-color 0.2s, color 0.2s;
}

.fox-carte:hover .fox-carte__bouton,
.fox-carte:focus-visible .fox-carte__bouton {
	background: var(--fox-accent);
	color: #fff;
}

@media (max-width: 767px) {
	.elementor-widget-ffp-carte .fox-carte {
		--fox-carte-photo: 120px;
		--fox-carte-marge: 10px;
	}

	.fox-carte__corps {
		padding-top: 2px;
		padding-bottom: 12px;
	}

	.fox-carte__nom {
		font-size: 18px;
	}

	/* Phone: button across the whole card. */
	.fox-carte__bas {
		flex-direction: column;
		align-items: stretch;
	}

	.fox-carte__bouton {
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fox-carte__bouton {
		transition: none;
	}
}
