/* ctr-gallery — filtres + grille unifiée (full-bleed section) */
.wpcursor-component.wpcursor-ctr-gallery.cns-ctr-gallery {
	--ctr-forest: #0e2b20;
	--ctr-lime: #c8e86c;
	--ctr-mint: #eef6e4;
	--ctr-ink: #111111;
	--ctr-muted: #5b6470;
	width: 100%;
	max-width: none;
	border-radius: 0;
	box-sizing: border-box;
	background: linear-gradient(180deg, #f4f7f2 0%, #ffffff 28%);
	padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
	color: var(--ctr-ink);
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__filters {
	position: relative;
	z-index: 2;
	margin: -2.75rem auto 2.5rem;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: #fff;
	border-radius: 1.35rem;
	box-shadow: 0 18px 40px rgba(14, 43, 32, 0.12);
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__filters-kicker {
	margin: 0 0 0.35rem;
	color: var(--ctr-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__filters-title {
	margin: 0 0 1.1rem;
	color: var(--ctr-ink) !important;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	line-height: 1.2;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__controls {
	display: grid;
	grid-template-columns: minmax(16rem, 1.2fr) repeat(2, minmax(0, 1fr));
	gap: 0.9rem 1rem;
	align-items: end;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__control-label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--ctr-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__seg {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem;
	background: #f3f5f2;
	border-radius: 999px;
	width: 100%;
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__seg-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ctr-forest);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 0.55rem 0.75rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
	flex: 1 1 0;
	white-space: nowrap;
	text-align: center;
	min-width: 0;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__seg-btn.is-active {
	background: var(--ctr-forest);
	color: #fff;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__select {
	width: 100%;
	appearance: none;
	border: 1px solid #d7ddd4;
	border-radius: 0.85rem;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230e2b20' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.85rem center / 16px no-repeat;
	padding: 0.75rem 2.4rem 0.75rem 0.9rem;
	font: inherit;
	color: var(--ctr-ink);
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__notice {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	margin: 1rem 0 0;
	padding: 0.75rem 0.95rem;
	border-radius: 0.85rem;
	background: var(--ctr-mint);
	color: #243528;
	font-size: 0.92rem;
	line-height: 1.4;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__count {
	margin: 0.65rem 0 0;
	color: var(--ctr-muted);
	font-size: 0.88rem;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__head {
	margin: 0 0 1.35rem;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__title {
	margin: 0 0 0.4rem;
	color: var(--ctr-ink) !important;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__lead {
	margin: 0;
	color: var(--ctr-muted);
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__empty {
	margin: 0 0 1rem;
	padding: 1rem;
	border-radius: 0.85rem;
	background: #fff7e8;
	color: #5a3d12;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.1rem;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__card {
	background: #fff;
	border-radius: 1.1rem;
	box-shadow: 0 10px 28px rgba(14, 43, 32, 0.08);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(14, 43, 32, 0.14);
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__card-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__figure {
	position: relative;
	margin: 0;
	aspect-ratio: 1;
	background: #e7ebe4;
	overflow: hidden;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__multi,
.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__peek {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	width: 1.85rem;
	height: 1.85rem;
	padding: 0;
	margin: 0;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ctr-forest);
	font-size: 0.75rem;
	font-weight: 700;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__peek {
	font-size: 1.2rem;
	font-weight: 600;
	font-family: Georgia, "Times New Roman", serif;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__chev {
	display: block;
	line-height: 1;
	/* Glyphes ‹ › : flex center suffit (pas de translate — Lucide tip-bias n’applique pas) */
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__multi {
	right: 2.8rem;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__meta {
	padding: 0.95rem 1rem 1.1rem;
	display: grid;
	gap: 0.3rem;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__label {
	color: var(--ctr-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__card-title {
	color: var(--ctr-ink);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__kg {
	display: inline-flex;
	width: fit-content;
	margin-top: 0.15rem;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: var(--ctr-mint);
	color: var(--ctr-forest);
	font-size: 0.85rem;
	font-weight: 700;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__data {
	display: none;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 1.75rem;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__more-wrap[hidden] {
	display: none !important;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__more {
	appearance: none;
	border: 0;
	cursor: pointer;
	min-width: min(100%, 420px);
	padding: 0.95rem 1.5rem;
	border-radius: 999px;
	background: var(--ctr-forest);
	color: #fff;
	font: inherit;
	font-weight: 700;
	transition: transform 0.18s ease, background 0.18s ease;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__more:hover {
	transform: translateY(-2px);
	background: #163528;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog {
	border: 0;
	padding: 0;
	max-width: min(920px, calc(100vw - 2rem));
	width: 100%;
	background: transparent;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog::backdrop {
	background: rgba(8, 18, 14, 0.72);
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog-inner {
	position: relative;
	background: #0e2b20;
	border-radius: 1.1rem;
	padding: 1rem;
	color: #fff;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog-close {
	position: absolute;
	top: 0.55rem;
	right: 0.7rem;
	z-index: 2;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 280px;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog-stage img {
	max-width: 100%;
	max-height: min(72vh, 720px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0.75rem;
	background: #081610;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ctr-forest);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-sizing: border-box;
	font-size: 1.55rem;
	font-weight: 500;
	font-family: Georgia, "Times New Roman", serif;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog-nav--prev {
	left: 0.4rem;
}
.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog-nav--next {
	right: 0.4rem;
}

.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__dialog-cap {
	margin: 0.75rem 0 0.25rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}

@media (max-width: 1100px) {
	.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__controls {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__control--genre {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__controls {
		grid-template-columns: 1fr;
	}
	.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__control--genre {
		grid-column: auto;
	}
	.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__seg-btn {
		font-size: 0.84rem;
		padding: 0.5rem 0.55rem;
	}
}

@media (max-width: 420px) {
	.wpcursor-component.wpcursor-ctr-gallery .cns-ctr-gallery__grid {
		grid-template-columns: 1fr;
	}
}