/* ============================================
   NOVA CARDS WIDGET
   ============================================ */

   .nova-cards-widget {
	width: 100%;
	position: relative;
}

.nova-cards-grid {
	display: grid;
	/* Default fallback - will be overridden by data-grid-columns or JavaScript */
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	width: 100%;
}

/* Publicité Elementor — pleine largeur, hauteur = contenu (pas d’étirement grille) */
.nova-cards-grid > .nova-cards-grid-ad {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	align-self: start;
	justify-self: stretch;
	height: auto;
	max-height: none;
}

.nova-cards-grid-ad__inner {
	width: 100%;
	min-width: 0;
	height: auto;
	display: block;
	overflow: hidden;
}

.nova-cards-grid-ad__inner > .elementor {
	width: 100%;
	height: auto;
	min-height: 0;
}

/* Évite que les sections / conteneurs Elementor héritent d’une min-height ou flex-grow */
.nova-cards-grid-ad .elementor-section,
.nova-cards-grid-ad .e-con,
.nova-cards-grid-ad .e-con-inner,
.nova-cards-grid-ad .e-con-full {
	height: auto !important;
	min-height: 0 !important;
	flex-grow: 0 !important;
}

/* CSS fallback using data attribute - applies when inline styles are removed by Elementor */
.nova-cards-grid[data-grid-columns="1"] {
	grid-template-columns: repeat(1, 1fr) !important;
}

.nova-cards-grid[data-grid-columns="2"] {
	grid-template-columns: repeat(2, 1fr) !important;
}

.nova-cards-grid[data-grid-columns="3"] {
	grid-template-columns: repeat(3, 1fr) !important;
}

.nova-cards-grid[data-grid-columns="4"] {
	grid-template-columns: repeat(4, 1fr) !important;
}

.nova-cards-grid[data-grid-columns="5"] {
	grid-template-columns: repeat(5, 1fr) !important;
}

.nova-cards-grid[data-grid-columns="6"] {
	grid-template-columns: repeat(6, 1fr) !important;
}

/* CSS fallback for pixels mode with auto-center */
.nova-cards-grid[data-grid-mode="pixels"] {
	justify-items: center;
}


.nova-card-item {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-height: 300px;
	overflow: hidden;
	border-radius: 8px;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
}

/* Remove min-height when aspect-ratio is applied (for creative background cards) */
.nova-card-item[style*="aspect-ratio"] {
	min-height: 0;
	height: auto;
}

.nova-card-item.animated {
	opacity: 1 !important;
	transform: translateY(0) !important;
	filter: blur(0) !important;
}

.nova-card-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
	/* Smooth transition for hover effects */
	transition: transform 0.5s ease, filter 0.5s ease;
	transform-origin: center center;
	will-change: transform;
	backface-visibility: hidden;
}

/* Zoom image on hover — only when enabled via Elementor option (class added by JS) */
.nova-card-item.nova-hover-image-scale:hover .nova-card-background {
	transform: scale(1.08);
}

.nova-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	/* Overlay gradient will be set via inline style */
	/* Smooth transitions for GSAP hover animations */
	will-change: transform, opacity;
	backface-visibility: hidden;
	transform-origin: bottom center;
}

.nova-card-overlay {
	z-index: 1;
}

.nova-card-content {
	z-index: 2;
}

.nova-card-text.nova-card-text-1 h3 {
	margin: 0;
}

.nova-card-text p:last-child {
	margin: 0;
}

.nova-card-text {
	width: 100%;
	position: relative;
}

.nova-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	z-index: 12;
	pointer-events: auto;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nova-card-button span.nova-card-button-icon {
	transition: transform 0.3s ease;
	display: flex;
}

.nova-card-item:hover .nova-card-button-icon {
	animation: slideIcon 0.3s ease-in-out infinite alternate;
}

.nova-card-button-icon img {
	width: 32px;
	height: 32px;
}

/* Animated border on hover between text-1 and text-2
   Apply only when background image + overlay are enabled */
.nova-card-item.has-background-image.has-overlay-enabled .nova-card-text-1::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 0;
	height: 2px;
	background: rgb(255 255 255);
	transition: width 1s ease;
}

.nova-card-item.has-background-image.has-overlay-enabled:hover .nova-card-text-1::after {
	width: 100%;
}

.nova-card-text-1 {
	/* Styles pour le premier texte - configurés via Elementor */
	display: block;
}

.nova-card-text-2 {
	/* Styles pour le deuxième texte - configurés via Elementor */
	display: block;
}

.nova-card-button {
	text-decoration: initial !important;
}

.nova-card-item {
	text-decoration: none;
	color: inherit;
}

.elementor-editor-active .nova-card-item {
	opacity: 1 !important;
	filter: initial !important;
	transform: initial !important;
	overflow: initial !important;
}

.nova-card-item.has-link {
	cursor: pointer;
}

/* ============================================
   ALTERNATE LAYOUT: IMAGE ABOVE CONTENT
   ============================================ */

/* Card becomes a vertical stack: image on top, content below */
.nova-card-item--image-top {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-height: 0;
}

/* Image wrapper for the alternate layout */
.nova-card-item--image-top .nova-card-image-wrapper {
	position: relative;
	width: 100%;
	flex-shrink: 0;
	overflow: hidden;
}

.nova-card-item--image-top .nova-card-image-wrapper img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.5s ease;
	transform-origin: center center;
	will-change: transform;
	backface-visibility: hidden;
}



/* Content no longer overlays the image; it just sits below */
.nova-card-item--image-top .nova-card-content {
	position: relative;
	height: auto;
}

/* ============================================
   ELEMENTOR EDITOR SPECIFIC STYLES
   For image-above-content layout
   ============================================ */

/* Ensure styles apply correctly in Elementor editor */
/* .elementor-element .nova-card-item--image-top .nova-card-image-wrapper,
.elementor-widget-nova-cards .nova-card-item--image-top .nova-card-image-wrapper {
	position: relative !important;
	width: 100% !important;
	flex-shrink: 0 !important;
	overflow: hidden !important;
	display: block !important;
} */

/* .elementor-element .nova-card-item--image-top .nova-card-image-wrapper img,
.elementor-widget-nova-cards .nova-card-item--image-top .nova-card-image-wrapper img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	object-fit: cover !important;
	object-position: center center !important;
} */

/* Force aspect-ratio to work in editor */
.elementor-element .nova-card-item--image-top .nova-card-image-wrapper[style*="aspect-ratio"] img,
.elementor-widget-nova-cards .nova-card-item--image-top .nova-card-image-wrapper[style*="aspect-ratio"] img {
	height: auto !important;
}

/* Ensure border-radius applies in editor */
.elementor-element .nova-card-item--image-top .nova-card-image-wrapper,
.elementor-widget-nova-cards .nova-card-item--image-top .nova-card-image-wrapper {
	border-radius: inherit !important;
}

.elementor-element .nova-card-item--image-top .nova-card-image-wrapper img,
.elementor-widget-nova-cards .nova-card-item--image-top .nova-card-image-wrapper img {
	border-radius: inherit !important;
}

/* Ensure padding and margin apply in editor - inline styles take precedence */
.elementor-element .nova-card-item--image-top .nova-card-image-wrapper,
.elementor-widget-nova-cards .nova-card-item--image-top .nova-card-image-wrapper {
	box-sizing: border-box !important;
	/* Inline styles from Elementor controls will override these defaults */
}

/* Override any Elementor default styles that might interfere */
.elementor-editor-active .elementor-element .nova-card-item--image-top .nova-card-image-wrapper,
.elementor-editor-active .elementor-widget-nova-cards .nova-card-item--image-top .nova-card-image-wrapper {
	/* Reset any transforms or filters that might interfere */
	transform: none !important;
	filter: none !important;
	opacity: 1 !important;
}

.elementor-editor-active .elementor-element .nova-card-item--image-top .nova-card-image-wrapper img,
.elementor-editor-active .elementor-widget-nova-cards .nova-card-item--image-top .nova-card-image-wrapper img {
	transform: none !important;
	filter: none !important;
	opacity: 1 !important;
}


.nova-card-button-wrap {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

.nova-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0);
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
	pointer-events: auto;
}

/* Force !important for button typography styles to override theme styles */
.elementor-widget-nova-cards .nova-card-button {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-style: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-decoration: inherit !important;
	text-transform: inherit !important;
	text-align: inherit !important;
}


/* Creative Background Styles */
.nova-card-creative-background {
	background-position: center !important;
	background-repeat: no-repeat !important;
}

.elementor-widget-nova-cards {
	width: 100% !important;
}

/* Disable border and background styles when creative background is enabled */
.nova-cards-widget.creative-background-enabled .nova-card-item.has-creative-background {
	border: none !important;
	border-width: 0 !important;
	border-style: none !important;
	border-color: transparent !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	-moz-box-shadow: none !important;
}

/* Ensure no border styles are applied to creative background cards */
.nova-cards-widget.creative-background-enabled .nova-card-item.has-creative-background,
.nova-cards-widget.creative-background-enabled .nova-card-item.has-creative-background::before,
.nova-cards-widget.creative-background-enabled .nova-card-item.has-creative-background::after {
	border: none !important;
	box-shadow: none !important;
}

/* Responsive Grid */
@media (max-width: 1024px) {
	.nova-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.nova-cards-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   FILTRES
   ============================================ */

.nova-cards-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 24px;
}

.nova-title-widget ul {
	list-style: inside;
}

.nova-cards-filter-item {
	display: inline-block;
	cursor: pointer;
	font-size: inherit;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


.nova-cards-filters {
	max-width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
}

.nova-cards-filter-item.active,
.nova-cards-filter-item:hover {
	background-color: currentColor;
}

.nova-cards-filter-item.active span,
.nova-cards-filter-item:hover span {
	color: #fff;
}

/* Masquage des cards filtrées */
.nova-card-item.nova-filter-hidden {
	display: none !important;
}

.nova-cards-filter-empty {
	display: none;
	width: 100%;
}

@media (max-width: 767px) {
	.nova-cards-filter-item.hide-on-mobile {
		display: none !important;
	}
}

/* Filtres meta (formulaire) */
.nova-cards-filters--meta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 16px;
}

.nova-cards-filters__main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	flex: 1 1 auto;
	min-width: 0;
}

.nova-cards-meta-sort {
	flex: 0 0 auto;
	margin-left: auto;
	min-width: 180px;
}

.nova-cards-meta-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.nova-cards-meta-filter--stacked {
	align-items: flex-start;
}

.nova-cards-meta-filter--stacked.has-icon .nova-cards-meta-filter__icon {
	margin-top: 18px;
}

.nova-cards-meta-filter__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}

.nova-cards-meta-filter__title {
	display: block;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #E85D04;
}

.nova-cards-meta-filter__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
}

.nova-cards-meta-filter__icon img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.nova-cards-meta-filter__control {
	min-width: 0;
	flex: 1 1 auto;
}

.nova-cards-meta-filter-input {
	max-width: 100%;
	min-width: 140px;
	font-size: inherit;
	line-height: 1.4;
}

.nova-cards-meta-filter__checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	white-space: nowrap;
}

.nova-cards-meta-filter__checkbox-label input {
	margin: 0;
}

/* ============================================================
 * Anti-flash : le widget reçoit `style="opacity:0;visibility:hidden;"`
 * inline en PHP (garantit l'application immédiate, sans dépendre du
 * chargement CSS). cards.js retire ces inline styles à la fin de
 * l'initialisation, en deux étapes :
 *   1) visibility:''      → widget visible mais encore opacity:0
 *   2) rAF → opacity:''   → fade-in via la transition ci-dessous
 *
 * Filet de sécurité <noscript> dans le PHP forcera la visibilité si
 * le JS est désactivé.
 * ============================================================ */
.nova-cards-widget {
	transition: opacity .35s ease;
}

/* Archive taxonomie (NOVA Page) : état final rendu en PHP, pas de fade-in. */
.nova-cards-widget--server-ready,
html.nova-page-embed .nova-cards-widget,
html.nova-taxonomy-mirror .nova-page-widget .nova-cards-widget {
	opacity: 1 !important;
	visibility: visible !important;
	transition: none !important;
}

/* ============================================================
 * Habillage « pill » pour les selects (NiceSelect2)
 *  - Activé par .nova-cards-meta-filter--nice (posé par cards.js)
 *  - L'icône à gauche (.has-icon) est intégrée dans le pill
 * ============================================================ */
:root {
	--nova-mfilter-bg: #ffffff;
	--nova-mfilter-border: #E1E4F4;
	--nova-mfilter-text: #1A1B3D;
	--nova-mfilter-muted: #6B6F8E;
	--nova-mfilter-accent: #2E48F0;
	--nova-mfilter-radius: 999px;
	--nova-mfilter-height: 52px;
	--nova-mfilter-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.nova-cards-meta-filter--nice {
	background: var(--nova-mfilter-bg);
	border: 1px solid var(--nova-mfilter-border);
	border-radius: var(--nova-mfilter-radius);
	padding: 0 18px;
	gap: 12px;
	min-height: var(--nova-mfilter-height);
	box-shadow: var(--nova-mfilter-shadow);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.nova-cards-meta-filter--nice:hover,
.nova-cards-meta-filter--nice:focus-within {
	border-color: var(--nova-mfilter-accent);
	box-shadow: 0 1px 6px rgba(46, 72, 240, 0.12);
}

.nova-cards-meta-filter--nice .nova-cards-meta-filter__icon {
	color: var(--nova-mfilter-accent);
	width: 24px;
	height: 24px;
}
.nova-cards-meta-filter--nice .nova-cards-meta-filter__icon img {
	width: 24px;
	height: 24px;
}
/* Séparateur vertical entre l'icône et le pseudo-select. */
.nova-cards-meta-filter--nice.has-icon .nova-cards-meta-filter__icon {
	position: relative;
	padding-right: 12px;
	margin-right: 0;
}
.nova-cards-meta-filter--nice.has-icon .nova-cards-meta-filter__icon::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 22px;
	background: var(--nova-mfilter-border);
}

.nova-cards-meta-filter--nice .nova-cards-meta-filter__control {
	display: flex;
	align-items: center;
	min-width: 160px;
}

/* Surcharge NiceSelect2 quand il est dans notre wrapper. */
.nova-cards-meta-filter--nice .nice-select {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 30px 0 0 !important;
	height: auto !important;
	line-height: 1.4 !important;
	font-size: 15px;
	font-weight: 500;
	color: var(--nova-mfilter-text);
	min-width: 140px;
	width: 100%;
	position: relative;
}
.nova-cards-meta-filter--nice .nice-select:not([data-nova-arrow="1"]):not(.open)::after,
.nova-cards-meta-sort .nice-select:not([data-nova-arrow="1"]):not(.open)::after {
	display: block !important;
	content: '' !important;
	border: none !important;
	width: 7px !important;
	height: 5px !important;
	right: 0 !important;
	top: 50% !important;
	margin-top: 0 !important;
	transform: translateY(-50%) !important;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='5' viewBox='0 0 7 5' fill='none'%3E%3Cpath d='M6.5 0.5L3.5 3.5L0.5 0.5' stroke='%23373737' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.nova-cards-meta-filter--nice .nice-select.open:not([data-nova-arrow="1"])::after,
.nova-cards-meta-sort .nice-select.open:not([data-nova-arrow="1"])::after {
	display: block !important;
	content: '' !important;
	border: none !important;
	position: absolute !important;
	width: 7px !important;
	height: 5px !important;
	right: 0 !important;
	top: 50% !important;
	margin-top: 0 !important;
	transform: translateY(-50%) !important;
	filter: none !important;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 5' width='7' height='5'%3E%3Cpath fill='none' stroke='%23373737' stroke-linecap='round' d='m6.5 4.5l-3-3-3 3'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
.nova-cards-meta-filter--nice .nice-select.open {
	z-index: 20;
	box-shadow: none !important;
}
.nova-cards-meta-sort .nice-select-search-box,
.nova-filters-form .nice-select-search-box {
	padding: 8px 12px 4px;
	position: sticky;
	top: 0;
	z-index: 2;
	background: inherit;
}

.nova-cards-meta-filter--nice .nice-select-search,
.nova-cards-meta-sort .nice-select-search,
.nova-filters-form .nice-select-search {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid var(--nova-mfilter-border, #d8dee4);
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.3;
	color: var(--nova-mfilter-text, #373737);
	background: #fff;
	outline: none;
}

.nova-cards-meta-filter--nice .nice-select-search:focus,
.nova-cards-meta-sort .nice-select-search:focus,
.nova-filters-form .nice-select-search:focus {
	border-color: var(--nova-mfilter-accent, #01abc4);
}

.nova-cards-meta-filter--nice .nice-select .current {
	color: var(--nova-mfilter-text);
	font-weight: 500;
}
.nova-cards-meta-filter--nice .nice-select .list {
	border: 1px solid var(--nova-mfilter-border);
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
	margin-top: 10px;
	padding: 6px 0;
	min-width: 220px;
	max-height: 220px;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.nova-cards-meta-filter--nice .nice-select .option {
	font-size: 14px;
	color: var(--nova-mfilter-text);
	padding: 8px 16px;
	min-height: 36px;
	line-height: 1.4;
}
.nova-cards-meta-filter--nice .nice-select .option:hover,
.nova-cards-meta-filter--nice .nice-select .option.focus,
.nova-cards-meta-filter--nice .nice-select .option.selected.focus {
	background: var(--nova-mfilter-accent);
	color: #fff;
}

/* On masque le <select> natif (NiceSelect2 le fait déjà via display:none ;
 * on s'assure qu'aucun reset ne le ré-affiche par-dessus). */
.nova-cards-meta-filter--nice select.nova-cards-meta-filter-input,
.nova-cards-meta-filter--nice select.nova-cards-sort-select {
	display: none !important;
}

/* ============================================================
 * Filtre plage (budget) — noUiSlider, déclenché comme NiceSelect
 * ============================================================ */
.nova-cards-meta-filter--range .nova-cards-meta-filter__control {
	position: relative;
}

.nova-cards-meta-filter__range {
	position: relative;
	width: 100%;
	min-width: 160px;
}

.nova-cards-meta-filter__range-display-input {
	display: block;
	width: 100%;
	min-width: 140px;
	padding: 0 30px 0 0;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--nova-mfilter-text);
	cursor: pointer;
	appearance: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nova-cards-meta-filter__range-display-input::placeholder {
	color: var(--nova-mfilter-text);
	opacity: 1;
}

.nova-cards-meta-filter__range-display-input:focus {
	outline: none;
}

.nova-cards-meta-filter__range::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border: solid var(--nova-mfilter-text);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	pointer-events: none;
	transition: transform .15s ease;
}

.nova-cards-meta-filter--range:has(.nova-cards-meta-filter__range.open) {
	position: relative;
	z-index: 60;
}

.nova-cards-meta-filter__range.open::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}

.nova-cards-meta-filter__range-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 10px);
	z-index: 50;
	padding: 16px 18px 18px;
	background: #fff;
	border: 1px solid var(--nova-mfilter-border);
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
	min-width: 260px;
}

.nova-cards-meta-filter__range-panel[hidden] {
	display: none !important;
}

.nova-cards-meta-filter__range-track {
	height: 6px;
	margin: 4px 4px 2px;
}

.nova-cards-meta-filter__range-track .noUi-target {
	background: #e8eaf3;
	border: none;
	border-radius: 999px;
	box-shadow: none;
}

.nova-cards-meta-filter__range-track .noUi-connect {
	background: var(--nova-mfilter-accent);
}

.nova-cards-meta-filter__range-track .noUi-handle {
	width: 20px;
	height: 20px;
	right: -10px;
	top: -7px;
	border-radius: 50%;
	border: 2px solid var(--nova-mfilter-accent);
	background: #fff;
	box-shadow: 0 1px 4px rgba(16, 24, 40, 0.12);
	cursor: grab;
}

.nova-cards-meta-filter__range-track .noUi-handle::before,
.nova-cards-meta-filter__range-track .noUi-handle::after {
	display: none;
}

.nova-cards-meta-filter__range-track .noUi-handle:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(46, 72, 240, 0.2);
}

@media (max-width: 767px) {
	.nova-cards-filters--meta {
		flex-direction: column;
		align-items: stretch;
	}

	.nova-cards-meta-filter-input {
		width: 100%;
		min-width: 0;
	}

	.nova-cards-meta-filter--nice {
		width: 100%;
	}
}

/* ============================================================
 * Pagination
 *  - Rendu par JS (cards.js initPagination)
 *  - Boutons "pill" : numéros, prev/next, first/last
 *  - États : normal / hover / active / disabled
 *  - Ellipsis : span non-interactif
 * Tous les paramètres visuels sont surchargeables via les controls
 * Elementor (taille, couleurs, radius, typo, gap, marges).
 * ============================================================ */
.nova-cards-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	justify-content: center;
	margin: 32px 0 0;
	font-size: 14px;
	line-height: 1;
}

/* Le <button> est un wrapper sémantique TRANSPARENT : aucun visuel
 * dessus (pas de fond, pas de bord, pas de radius). Toute la couche
 * graphique (pill, taille, couleurs, rayon) est sur le <span>.__btn-label
 * → permet aux contrôles Elementor "background / border / radius / size"
 * d'agir sur le span sans perturber les états (hover/active/disabled)
 * qui restent capturés via le <button>.
 */
.nova-cards-pagination__btn {
	display: inline-flex;
	align-items: stretch;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #0B0F2E;
	font: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	user-select: none;
	line-height: 1;
}

.nova-cards-pagination__btn:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.nova-cards-pagination__btn.is-active {
	cursor: default;
}

.nova-cards-pagination__btn:focus-visible {
	outline: none;
}

.nova-cards-pagination__btn:focus-visible .nova-cards-pagination__btn-label {
	outline: 2px solid #2E48F0;
	outline-offset: 2px;
}

/* Le span porte le visuel : taille, padding, fond, bord, radius, anim. */
.nova-cards-pagination__btn-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background-color: #F4F5FB;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease, border-color .2s ease;
	pointer-events: none; /* clic capté par le <button>, jamais par le span */
}

.nova-cards-pagination__btn:hover:not(:disabled):not(.is-active) .nova-cards-pagination__btn-label {
	background-color: #E4E6F2;
	color: #0B0F2E;
}

.nova-cards-pagination__btn.is-active .nova-cards-pagination__btn-label {
	background-color: #0B0F2E;
	color: #FFFFFF;
}

.nova-cards-pagination__btn:disabled .nova-cards-pagination__btn-label {
	background-color: #F4F5FB;
	color: #A7AAC0;
}

.nova-cards-pagination__icon {
	width: 12px;
	height: 12px;
	display: block;
}

.nova-cards-pagination__ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 44px;
	color: #6B6F8E;
	font-weight: 600;
	user-select: none;
}

.nova-cards-pagination--load-more {
	justify-content: center;
}

.nova-cards-pagination__btn--load-more .nova-cards-pagination__btn-label {
	min-width: auto;
	width: auto;
	gap: 8px;
}

.nova-cards-load-more__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	flex-shrink: 0;
}

.nova-cards-load-more__icon svg {
	display: block;
	width: 14px;
	height: 14px;
}

.nova-cards-load-more__text {
	display: inline-block;
	line-height: 1.2;
}

@media (max-width: 480px) {
	.nova-cards-pagination {
		gap: 4px;
	}
	.nova-cards-pagination__btn-label {
		min-width: 36px;
		height: 36px;
		padding: 0 8px;
		font-size: 13px;
	}
	.nova-cards-pagination__ellipsis {
		min-width: 20px;
		height: 36px;
	}
}

/* ================================
   Nova Card Text Logo (image dans Texte 1)
================================ */
.nova-card-text-1 .nova-card-text-logo {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 60px;
	width: auto;
	object-fit: contain;
}