/* —— Galerie photos —— */

.cns-dom-gallery {
	background: var(--cns-green-deep);
	padding: clamp(3rem, 6vw, 4.75rem) 0;
	scroll-margin-top: 130px;
	color: #fff;
}

.cns-dom-gallery__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.cns-dom-gallery__head {
	margin-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
}

.cns-dom-gallery__label {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.78);
}

.cns-dom-gallery__wrap {
	position: relative;
	margin: 0 calc(-1 * clamp(1.25rem, 4vw, 3rem));
	padding: 0 clamp(2.6rem, 4.5vw, 3.25rem);
}

.cns-dom-gallery__track {
	display: flex;
	gap: 0.9rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.25rem 0.1rem 0.4rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cns-dom-gallery__track::-webkit-scrollbar {
	display: none;
}

.cns-dom-gallery__track:focus-visible {
	outline: 2px solid var(--cns-lime);
	outline-offset: 4px;
}

.cns-dom-gallery__slide {
	margin: 0;
	flex: 0 0 min(78vw, 320px);
	scroll-snap-align: start;
	border-radius: 1.15rem;
	overflow: hidden;
	background: #111;
	aspect-ratio: 4 / 5;
}

.cns-dom-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.06);
	transition: filter 0.3s ease, transform 0.4s ease;
}

.cns-dom-gallery__slide:hover img {
	filter: grayscale(0.2) contrast(1.05);
	transform: scale(1.03);
}

.cns-dom-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.55rem;
	height: 2.55rem;
	border: 0;
	border-radius: 999px;
	background: var(--cns-lime);
	color: #111;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease;
}

.cns-dom-gallery__nav--prev {
	left: 0.25rem;
}

.cns-dom-gallery__nav--next {
	right: 0.25rem;
}

.cns-dom-gallery__nav:hover {
	transform: translateY(-50%) scale(1.05);
}

.cns-dom-gallery__nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.cns-dom-gallery__dots {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	margin-top: 1.15rem;
}

.cns-dom-gallery__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.28);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.cns-dom-gallery__dot.is-active {
	background: var(--cns-lime);
	transform: scale(1.15);
}

@media (max-width: 700px) {
	.cns-dom-gallery__slide {
		flex-basis: min(82vw, 260px);
	}

	.cns-dom-gallery__wrap {
		padding: 0 2.35rem;
	}
}

/* Anti-tokens.css — fond sombre */
.wpcursor-component.wpcursor-domicile-gallery :is(h1,h2,h3,[class*="__title"],[class*="__name"],[class*="__card-title"]) {
	color: #fff !important;
	text-decoration: none !important;
}
.wpcursor-component.wpcursor-domicile-gallery :is(h1,h2,h3) span,
.wpcursor-component.wpcursor-domicile-gallery [class*="__title"] span,
.wpcursor-component.wpcursor-domicile-gallery [class*="__title-accent"],
.wpcursor-component.wpcursor-domicile-gallery [class*="__card-accent"],
.wpcursor-component.wpcursor-domicile-gallery .cns-dom-forms__list strong {
	color: #c8f000 !important;
}
.wpcursor-component.wpcursor-domicile-gallery a { text-decoration: none; }