/* NTPC V11 — catalogue de réalisations tactile et liquid glass. */

:root {
	--ntpc-v11-gold: #d8aa4f;
	--ntpc-v11-gold-light: #f4d995;
	--ntpc-v11-glass: rgba(12, 13, 14, 0.72);
	--ntpc-v11-edge: rgba(244, 217, 149, 0.38);
	--ntpc-v11-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html.ntpc-project-modal-open,
html.ntpc-project-modal-open body,
html.ntpc-filter-modal-open,
html.ntpc-filter-modal-open body {
	overflow: hidden;
	overscroll-behavior: none;
}

.ntpc-realisations-catalogue {
	padding-top: clamp(6.75rem, 9vw, 8.5rem);
}

.ntpc-realisations-catalogue.has-open-filter {
	overflow: visible;
}

.ntpc-realisations-catalogue .ntpc-realisations-heading {
	margin-bottom: 1rem;
}

.ntpc-realisations-catalogue .ntpc-section-title {
	font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.ntpc-realisations-catalogue .ntpc-realisations-intro {
	max-width: 43rem;
	margin: 0 auto 1.3rem;
}

/* Les anciennes pages provisionnées peuvent encore contenir ces libellés. */
.ntpc-realisations-catalogue .ntpc-prototype-notice,
.ntpc-realisations-catalogue .ntpc-prototype-badge {
	display: none !important;
}

body:not(.wp-admin) .ntpc-prototype-notice,
body:not(.wp-admin) .ntpc-prototype-badge {
	display: none !important;
}

/* Une seule destination publique : le rail éditorial de la page d'accueil. */
body.home .ntpc-realisations-featured {
	position: relative;
	scroll-margin-top: calc(var(--ntpc-header-height, 6.5rem) + 1rem);
}

body.home .ntpc-realisations-featured .ntpc-realisations-actions {
	display: none;
}

body.home .ntpc-realisations-grid-featured {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.home .ntpc-realisations-grid-featured[data-count] > .ntpc-realisation-card,
body.home .ntpc-realisations-grid-featured[data-count="3"] > .ntpc-realisation-card:first-child {
	grid-column: auto;
	grid-row: auto;
	min-height: clamp(27rem, 36vw, 33rem);
}

.ntpc-realisations-grid-featured .ntpc-realisation-card-arrow,
.ntpc-realisations-grid-catalogue .ntpc-realisation-card-arrow {
	z-index: 4;
	top: 1rem;
	right: 1rem;
	bottom: auto;
	font-size: 0;
	background: rgba(7, 8, 9, 0.58);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.ntpc-realisations-grid-featured .ntpc-realisation-card-arrow::before,
.ntpc-realisations-grid-catalogue .ntpc-realisation-card-arrow::before {
	font-family: var(--ntpc-font-display);
	font-size: 1rem;
	font-weight: 720;
	line-height: 1;
	content: "→";
}

body.home .ntpc-realisations-featured.is-parallax-arrival .ntpc-realisation-card {
	animation: ntpc-v11-home-arrival 900ms var(--ntpc-v11-ease) both;
	animation-delay: calc(var(--ntpc-card-index, 0) * 75ms);
}

@keyframes ntpc-v11-home-arrival {
	0% { opacity: 0.42; transform: translate3d(0, 2.5rem, 0) scale(0.965); }
	55% { opacity: 1; transform: translate3d(0, -0.35rem, 0) scale(1.008); }
	100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Le catalogue reste visible : la recherche est rangée dans un déclencheur compact. */
.ntpc-realisations-controls {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	max-width: 90rem;
	min-height: 3.1rem;
	margin: 0 auto clamp(1.4rem, 2.8vw, 2.25rem);
}

.ntpc-realisations-filter-shell {
	position: relative;
}

.ntpc-realisations-filter-trigger {
	display: grid;
	grid-template-columns: 1.35rem auto 1.2rem;
	align-items: center;
	gap: 0.65rem;
	min-height: 3rem;
	padding: 0.42rem 0.55rem 0.42rem 0.9rem;
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--ntpc-font-display);
	font-size: 0.84rem;
	font-weight: 720;
	list-style: none;
	cursor: pointer;
	border: 1px solid var(--ntpc-v11-edge);
	border-radius: 999px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025) 46%, rgba(216, 170, 79, 0.11)),
		rgba(9, 10, 11, 0.58);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 0.75rem 2rem rgba(0, 0, 0, 0.22), 0 0 1.4rem rgba(216, 170, 79, 0.07);
	-webkit-backdrop-filter: blur(18px) saturate(145%);
	backdrop-filter: blur(18px) saturate(145%);
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.ntpc-realisations-filter-trigger::-webkit-details-marker {
	display: none;
}

.ntpc-realisations-filter-trigger svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: var(--ntpc-v11-gold-light);
	stroke-linecap: round;
	stroke-width: 1.6;
}

.ntpc-filter-trigger-arrow {
	display: grid;
	place-items: center;
	width: 1.8rem;
	height: 1.8rem;
	color: var(--ntpc-v11-gold-light);
	border-radius: 50%;
	background: rgba(216, 170, 79, 0.1);
}

.ntpc-realisations-filter-trigger:hover,
.ntpc-realisations-filter-trigger:focus-visible,
.ntpc-realisations-filter-shell[open] .ntpc-realisations-filter-trigger {
	border-color: rgba(244, 217, 149, 0.76);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 0.8rem 2.4rem rgba(0, 0, 0, 0.3), 0 0 1.7rem rgba(216, 170, 79, 0.14);
}

.ntpc-realisations-result-count {
	margin: 0;
	color: rgba(255, 255, 255, 0.56);
	font-size: 0.76rem;
}

.ntpc-realisations-filter-backdrop {
	position: fixed;
	z-index: 998;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(2, 3, 4, 0.68);
	-webkit-backdrop-filter: blur(14px) saturate(105%);
	backdrop-filter: blur(14px) saturate(105%);
}

.ntpc-realisations-filter-panel {
	position: fixed;
	z-index: 999;
	top: 50%;
	left: 50%;
	width: min(42rem, calc(100vw - 2rem));
	max-height: min(44rem, calc(100dvh - 2rem));
	padding: clamp(1rem, 3vw, 1.6rem);
	overflow: auto;
	border: 1px solid rgba(244, 217, 149, 0.45);
	border-radius: 1.7rem;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 32%),
		linear-gradient(155deg, rgba(17, 17, 17, 0.94), rgba(6, 7, 8, 0.9));
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 2rem 6rem rgba(0, 0, 0, 0.6), 0 0 2.5rem rgba(216, 170, 79, 0.1);
	-webkit-backdrop-filter: blur(30px) saturate(150%);
	backdrop-filter: blur(30px) saturate(150%);
	transform: translate3d(-50%, -47%, 0) scale(0.97);
	animation: ntpc-v11-filter-in 420ms var(--ntpc-v11-ease) both;
}

.ntpc-realisations-filter-panel > header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.ntpc-realisations-filter-panel > header p {
	margin: 0 0 0.3rem;
	color: var(--ntpc-v11-gold-light);
	font-size: 0.7rem;
	font-weight: 760;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ntpc-realisations-filter-panel h2 {
	margin: 0;
	font-family: var(--ntpc-font-display);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	letter-spacing: -0.045em;
}

.ntpc-realisations-filter-panel > header button {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	border: 1px solid rgba(244, 217, 149, 0.36);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	touch-action: manipulation;
}

.ntpc-realisations-toolbar {
	display: grid;
	grid-template-columns: 1.35fr 1fr 0.7fr;
	gap: 0.8rem;
	margin: 0;
}

.ntpc-realisations-field {
	display: grid;
	gap: 0.42rem;
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ntpc-realisations-field input,
.ntpc-realisations-field select {
	width: 100%;
	min-height: 3.15rem;
	padding: 0.7rem 0.85rem;
	color: #fff;
	font: 500 1rem/1.2 var(--ntpc-font-body);
	letter-spacing: 0;
	text-transform: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.9rem;
	background: rgba(0, 0, 0, 0.32);
	outline: none;
}

.ntpc-realisations-field input:focus,
.ntpc-realisations-field select:focus {
	border-color: rgba(244, 217, 149, 0.78);
	box-shadow: 0 0 0 3px rgba(216, 170, 79, 0.12);
}

.ntpc-realisations-filter-actions {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	margin-top: 0.35rem;
}

.ntpc-realisations-apply,
.ntpc-realisations-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.65rem 1.1rem;
	font-weight: 750;
	text-decoration: none;
	border-radius: 999px;
}

.ntpc-realisations-apply {
	color: #15110a;
	border: 1px solid var(--ntpc-v11-gold-light);
	background: linear-gradient(135deg, #9e6a1d, #f0cd76 56%, #b97c25);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0.6rem 1.8rem rgba(216, 170, 79, 0.2);
}

.ntpc-realisations-reset {
	color: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
}

/* Desktop : une couverture éditoriale pour le dernier chantier, puis une grille. */
.ntpc-realisations-grid-catalogue {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: minmax(19rem, 21vw);
	gap: clamp(0.8rem, 1.4vw, 1.25rem);
}

.ntpc-realisations-grid-catalogue > .ntpc-realisation-card {
	grid-column: span 4;
	min-height: 0;
	aspect-ratio: auto;
}

.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:first-child {
	grid-column: span 8;
	grid-row: span 2;
}

.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:nth-child(2),
.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:nth-child(3) {
	grid-column: span 4;
}

.ntpc-realisations-grid-catalogue .ntpc-realisation-card-link {
	display: grid;
	grid-template: 1fr / 1fr;
	min-height: 100%;
}

.ntpc-realisations-grid-catalogue .ntpc-realisation-media {
	grid-area: 1 / 1;
	min-height: 100%;
	aspect-ratio: auto;
}

.ntpc-realisations-grid-catalogue .ntpc-realisation-media picture,
.ntpc-realisations-grid-catalogue .ntpc-realisation-media > img {
	inset: 0;
	width: 100%;
	height: 100%;
}

.ntpc-realisations-grid-catalogue .ntpc-realisation-media::after {
	background: linear-gradient(180deg, transparent 35%, rgba(4, 5, 6, 0.16) 56%, rgba(4, 5, 6, 0.78) 100%);
}

.ntpc-realisations-grid-catalogue .ntpc-realisation-copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	grid-area: 1 / 1;
	align-self: end;
	width: calc(100% - 1.2rem);
	min-height: 0;
	max-height: 58%;
	margin: 0.6rem;
	padding: clamp(0.9rem, 1.5vw, 1.25rem);
	border: 1px solid rgba(244, 217, 149, 0.3);
	border-radius: clamp(1rem, 1.6vw, 1.35rem);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
		rgba(8, 9, 10, 0.68);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.13), 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(20px) saturate(138%);
	backdrop-filter: blur(20px) saturate(138%);
}

.ntpc-realisations-grid-catalogue .ntpc-realisation-title {
	font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:first-child .ntpc-realisation-title {
	font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.ntpc-realisations-grid-catalogue .ntpc-realisation-summary {
	display: -webkit-box;
	margin-bottom: 0;
	overflow: hidden;
	font-size: clamp(0.82rem, 1.1vw, 0.98rem);
	line-height: 1.38;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ntpc-realisations-grid-catalogue .ntpc-realisation-meta,
.ntpc-realisations-grid-catalogue .ntpc-realisation-discover {
	display: none;
}

/* Navigation mobile ajoutée en progressive enhancement. */
.ntpc-project-rail-nav {
	display: none;
}

/* Galerie de fiche : grille sur grand écran, rail tactile sur mobile. */
.ntpc-project-gallery-nav {
	display: none;
}

/* Fiche réelle : la photo s'ouvre comme une vue plein écran. */
.ntpc-realisation-single {
	padding-top: 0 !important;
}

.ntpc-realisation-single .ntpc-realisation-hero {
	min-height: 100svh;
	min-height: 100dvh;
}

.ntpc-realisation-single .ntpc-realisation-back {
	top: calc(var(--ntpc-header-height) + 1rem);
	min-height: 3rem;
	background: rgba(8, 9, 10, 0.62);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(18px) saturate(135%);
	backdrop-filter: blur(18px) saturate(135%);
}

/* Visionneuse privée des cartes de démonstration, sans fausse page WordPress. */
.ntpc-project-viewer[hidden] {
	display: none !important;
}

.ntpc-project-viewer {
	position: fixed;
	z-index: 1100;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.ntpc-project-viewer-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.82);
	-webkit-backdrop-filter: blur(18px) saturate(110%);
	backdrop-filter: blur(18px) saturate(110%);
}

.ntpc-project-viewer-stage {
	position: relative;
	width: min(74rem, 100%);
	height: min(52rem, calc(100dvh - 2rem));
	overflow: hidden;
	border: 1px solid rgba(244, 217, 149, 0.45);
	border-radius: 2rem;
	background: #08090a;
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 2rem 7rem rgba(0, 0, 0, 0.74), 0 0 3rem rgba(216, 170, 79, 0.12);
	transform: translate3d(0, 1.4rem, 0) scale(0.955);
	opacity: 0;
}

.ntpc-project-viewer.is-open .ntpc-project-viewer-stage {
	transform: translate3d(0, 0, 0) scale(1);
	opacity: 1;
}

.ntpc-project-viewer-media,
.ntpc-project-viewer-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ntpc-project-viewer-media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(3, 4, 5, 0.08), rgba(3, 4, 5, 0.14) 42%, rgba(3, 4, 5, 0.9));
	content: "";
}

.ntpc-project-viewer-media img {
	object-fit: cover;
}

.ntpc-project-viewer-close {
	position: absolute;
	z-index: 3;
	top: 1rem;
	left: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.55rem 0.9rem;
	color: #fff;
	font-weight: 750;
	border: 1px solid rgba(244, 217, 149, 0.38);
	border-radius: 999px;
	background: rgba(8, 9, 10, 0.58);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	touch-action: manipulation;
}

.ntpc-project-viewer-copy {
	position: absolute;
	z-index: 2;
	right: clamp(1rem, 4vw, 3.5rem);
	bottom: clamp(1rem, 4vw, 3.5rem);
	left: clamp(1rem, 4vw, 3.5rem);
	max-width: 43rem;
	padding: clamp(1rem, 3vw, 2rem);
	border-color: rgba(244, 217, 149, 0.36);
	border-radius: 1.5rem;
}

.ntpc-project-viewer-copy h2 {
	margin: 0;
	font-family: var(--ntpc-font-display);
	font-size: clamp(2rem, 6vw, 4rem);
	letter-spacing: -0.055em;
	line-height: 0.98;
}

.ntpc-project-viewer-copy > p:not(.ntpc-realisation-service) {
	max-width: 52ch;
	margin: 0.9rem 0 1.2rem;
	color: rgba(255, 255, 255, 0.76);
	line-height: 1.55;
}

.ntpc-project-viewer-copy a {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--ntpc-v11-gold-light);
	font-weight: 760;
	text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
	.ntpc-realisations-filter-trigger,
	.ntpc-project-viewer-stage,
	.ntpc-realisation-card {
		transition: transform 520ms var(--ntpc-v11-ease), opacity 420ms ease, border-color 220ms ease, box-shadow 220ms ease;
	}

	.ntpc-realisations-filter-trigger:hover {
		transform: translateY(-1px);
	}

	@keyframes ntpc-v11-filter-in {
		from { opacity: 0; transform: translate3d(-50%, -44%, 0) scale(0.96); }
		to { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
	}
}

@media (max-width: 64rem) and (min-width: 48rem) {
	body.home .ntpc-realisations-grid-featured {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.home .ntpc-realisations-grid-featured[data-count] > .ntpc-realisation-card,
	body.home .ntpc-realisations-grid-featured[data-count="3"] > .ntpc-realisation-card:first-child {
		grid-column: auto;
		grid-row: auto;
		min-height: 27rem;
	}

	.ntpc-realisations-grid-catalogue {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 23rem;
	}

	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card,
	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:first-child,
	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:nth-child(2),
	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:nth-child(3) {
		grid-column: auto;
		grid-row: auto;
	}

	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:first-child {
		grid-column: 1 / -1;
		min-height: 32rem;
	}
}

@media (max-width: 47.99rem) {
	body.home .ntpc-realisations-featured {
		scroll-margin-top: 2rem;
	}

	.ntpc-realisations-catalogue,
	.ntpc-realisations-catalogue.ntpc-realisations,
	body.home .ntpc-realisations-featured,
	body.home .ntpc-realisations-featured.ntpc-realisations {
		padding-top: 2.3rem !important;
		padding-right: 0;
		padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
		padding-left: 0;
		overflow: hidden;
	}

	.ntpc-realisations-catalogue .ntpc-realisations-heading,
	body.home .ntpc-realisations-featured .ntpc-realisations-heading,
	.ntpc-realisations-catalogue .ntpc-realisations-intro,
	.ntpc-realisations-catalogue .ntpc-realisations-controls,
	.ntpc-realisations-catalogue .ntpc-realisations-empty,
	.ntpc-realisations-catalogue .ntpc-realisations-pagination {
		margin-right: max(1rem, env(safe-area-inset-right));
		margin-left: max(1rem, env(safe-area-inset-left));
	}

	.ntpc-realisations-catalogue .ntpc-realisations-heading {
		margin-bottom: 0.75rem;
	}

	body.home .ntpc-realisations-featured .ntpc-realisations-heading {
		margin-bottom: 0.75rem;
	}

	.ntpc-realisations-catalogue .ntpc-section-title {
		font-size: clamp(1.9rem, 8.5vw, 2.5rem);
		letter-spacing: -0.055em;
	}

	body.home .ntpc-realisations-featured .ntpc-section-title {
		font-size: clamp(1.9rem, 8.5vw, 2.5rem);
		letter-spacing: -0.055em;
	}

	body.home .ntpc-realisations-featured .ntpc-section-kicker {
		display: none;
	}

	.ntpc-realisations-catalogue .ntpc-section-kicker,
	.ntpc-realisations-catalogue .ntpc-realisations-intro {
		display: none !important;
	}

	.ntpc-realisations-controls {
		display: block;
		width: auto;
		min-height: 2.8rem;
		margin-bottom: 0.9rem;
	}

	.ntpc-v11-ready .ntpc-realisations-catalogue .ntpc-realisations-controls {
		position: absolute;
		width: 1px;
		height: 1px;
		min-height: 0;
		margin: 0 !important;
		overflow: visible;
	}

	.ntpc-v11-ready body.home .ntpc-realisations-featured .ntpc-realisations-controls {
		position: absolute;
		width: 1px;
		height: 1px;
		min-height: 0;
		margin: 0 !important;
		overflow: visible;
	}

	.ntpc-v11-ready .ntpc-realisations-catalogue .ntpc-realisations-filter-trigger,
	.ntpc-v11-ready .ntpc-realisations-catalogue .ntpc-realisations-result-count,
	.ntpc-v11-ready body.home .ntpc-realisations-featured .ntpc-realisations-filter-trigger,
	.ntpc-v11-ready body.home .ntpc-realisations-featured .ntpc-realisations-result-count {
		display: none !important;
	}

	.ntpc-realisations-filter-shell {
		display: block;
		width: 100%;
	}

	.ntpc-realisations-filter-trigger {
		grid-template-columns: 1.2rem 1fr 1.65rem;
		width: 100%;
		min-height: 2.75rem;
		padding: 0.35rem 0.45rem 0.35rem 0.78rem;
		font-size: 0.78rem;
	}

	.ntpc-filter-trigger-arrow {
		width: 1.65rem;
		height: 1.65rem;
	}

	.ntpc-realisations-result-count {
		display: none;
	}

	.ntpc-realisations-filter-panel {
		top: auto;
		right: max(0.65rem, env(safe-area-inset-right));
		bottom: max(0.65rem, env(safe-area-inset-bottom));
		left: max(0.65rem, env(safe-area-inset-left));
		width: auto;
		max-height: calc(100dvh - max(1.3rem, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
		padding: 1rem;
		border-radius: 1.65rem;
		transform: translate3d(0, 1.2rem, 0) scale(0.98);
		animation-name: ntpc-v11-filter-mobile-in;
	}

	.ntpc-realisations-toolbar {
		grid-template-columns: 1fr 1fr;
	}

	.ntpc-realisations-field-search {
		grid-column: 1 / -1;
	}

	/* Rail tactile : la première carte est visible et la suivante reste entrevue. */
	.ntpc-realisations-grid-catalogue,
	body.home .ntpc-realisations-grid-featured {
		display: flex;
		width: 100%;
		max-width: none;
		gap: 0.85rem;
		margin: 0;
		padding: 0 max(8vw, env(safe-area-inset-right)) 1rem max(8vw, env(safe-area-inset-left));
		overflow-x: auto;
		overflow-y: hidden;
		scroll-padding-inline: 8vw;
		scroll-snap-type: x mandatory;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		touch-action: pan-x pan-y;
	}

	.ntpc-realisations-grid-catalogue::-webkit-scrollbar,
	body.home .ntpc-realisations-grid-featured::-webkit-scrollbar {
		display: none;
	}

	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card,
	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:first-child,
	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:nth-child(2),
	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:nth-child(3),
	body.home .ntpc-realisations-grid-featured[data-count] > .ntpc-realisation-card,
	body.home .ntpc-realisations-grid-featured[data-count="3"] > .ntpc-realisation-card:first-child {
		flex: 0 0 min(84vw, 25rem);
		grid-column: auto;
		grid-row: auto;
		height: clamp(24rem, 112vw, 31rem);
		min-height: 0;
		aspect-ratio: auto;
		scroll-snap-align: center;
		scroll-snap-stop: always;
		opacity: 0.64;
		transform: scale(0.935);
		transform-origin: center;
	}

	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:first-child,
	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card.is-active,
	body.home .ntpc-realisations-grid-featured > .ntpc-realisation-card:first-child,
	body.home .ntpc-realisations-grid-featured > .ntpc-realisation-card.is-active {
		opacity: 1;
		transform: scale(1);
	}

	.ntpc-realisations-grid-catalogue .ntpc-realisation-copy,
	body.home .ntpc-realisations-grid-featured .ntpc-realisation-copy {
		width: calc(100% - 1rem);
		max-height: 36%;
		margin: 0.5rem;
		padding: 0.9rem 0.95rem 1rem;
		border-radius: 1.15rem;
	}

	.ntpc-realisations-grid-catalogue .ntpc-realisation-title,
	.ntpc-realisations-grid-catalogue > .ntpc-realisation-card:first-child .ntpc-realisation-title,
	body.home .ntpc-realisations-grid-featured .ntpc-realisation-title,
	body.home .ntpc-realisations-grid-featured > .ntpc-realisation-card:first-child .ntpc-realisation-title {
		font-size: clamp(1.3rem, 6vw, 1.75rem);
		line-height: 1.02;
	}

	.ntpc-realisations-grid-catalogue .ntpc-realisation-summary,
	body.home .ntpc-realisations-grid-featured .ntpc-realisation-summary {
		font-size: 0.86rem;
		-webkit-line-clamp: 2;
	}

	.ntpc-realisations-catalogue.ntpc-realisations-prototype .ntpc-realisation-summary {
		display: none !important;
	}

	.ntpc-project-rail-nav {
		display: grid;
		grid-template-columns: 2.75rem 2.75rem 1fr auto 2.75rem;
		align-items: center;
		gap: 0.2rem;
		width: min(calc(100% - 1.5rem), 24rem);
		min-height: 3rem;
		margin: 0.45rem auto calc(1.35rem + env(safe-area-inset-bottom));
		padding: 0.12rem 0.2rem;
		border: 1px solid rgba(244, 217, 149, 0.25);
		border-radius: 999px;
		background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(7, 8, 9, 0.35));
		box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 0.7rem 2rem rgba(0, 0, 0, 0.24);
		-webkit-backdrop-filter: blur(18px) saturate(145%);
		backdrop-filter: blur(18px) saturate(145%);
	}

	.ntpc-project-rail-nav--featured {
		grid-template-columns: 2.75rem 1fr auto 2.75rem;
	}

	.ntpc-project-rail-nav > button {
		display: grid;
		place-items: center;
		min-width: 44px;
		min-height: 44px;
		padding: 0;
		color: rgba(255, 255, 255, 0.88);
		font-size: 1rem;
		border: 0;
		border-radius: 50%;
		background: transparent;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	.ntpc-project-rail-filter svg {
		width: 1.15rem;
		height: 1.15rem;
		fill: none;
		stroke: var(--ntpc-v11-gold-light);
		stroke-linecap: round;
		stroke-width: 1.65;
	}

	.ntpc-project-rail-dots {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.32rem;
	}

	.ntpc-project-rail-dots button {
		width: 0.42rem;
		height: 0.42rem;
		min-width: 0;
		min-height: 0;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.44);
		touch-action: manipulation;
		transition: width 280ms var(--ntpc-v11-ease), background-color 180ms ease, box-shadow 180ms ease;
	}

	.ntpc-project-rail-dots button.is-active {
		width: 1.15rem;
		background: var(--ntpc-v11-gold-light);
		box-shadow: 0 0 0.65rem rgba(244, 217, 149, 0.5);
	}

	.ntpc-project-rail-count {
		padding-inline: 0.3rem;
		color: rgba(255, 255, 255, 0.62);
		font-size: 0.7rem;
		font-variant-numeric: tabular-nums;
	}

	.ntpc-project-gallery {
		display: flex;
		width: calc(100% + 2rem);
		max-width: none;
		gap: 0.75rem;
		margin-inline: -1rem;
		padding: 0 8vw 0.75rem;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-padding-inline: 8vw;
		scroll-snap-type: x mandatory;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.ntpc-project-gallery::-webkit-scrollbar {
		display: none;
	}

	.ntpc-project-gallery__item,
	.ntpc-project-gallery > a {
		flex: 0 0 min(82vw, 25rem);
		min-height: 24rem;
		aspect-ratio: 4 / 5;
		scroll-snap-align: center;
		scroll-snap-stop: always;
		border: 1px solid rgba(244, 217, 149, 0.34);
		border-radius: 1.4rem;
		box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 1.2rem 3rem rgba(0, 0, 0, 0.3);
	}

	.ntpc-project-gallery__item img,
	.ntpc-project-gallery > a img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.ntpc-project-gallery-nav {
		display: grid;
		grid-template-columns: 2.75rem 1fr 2.75rem;
		align-items: center;
		width: min(100%, 18rem);
		min-height: 3rem;
		margin: 0.15rem auto 0;
		padding: 0.1rem 0.2rem;
		border: 1px solid rgba(244, 217, 149, 0.26);
		border-radius: 999px;
		background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(7, 8, 9, 0.4));
		box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 0.7rem 2rem rgba(0, 0, 0, 0.24);
		-webkit-backdrop-filter: blur(18px) saturate(145%);
		backdrop-filter: blur(18px) saturate(145%);
	}

	.ntpc-project-gallery-nav button {
		display: grid;
		place-items: center;
		min-width: 44px;
		min-height: 44px;
		padding: 0;
		color: #fff;
		border: 0;
		border-radius: 50%;
		background: transparent;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	.ntpc-project-gallery-count {
		color: rgba(255, 255, 255, 0.66);
		font-size: 0.74rem;
		font-variant-numeric: tabular-nums;
		text-align: center;
	}

	.ntpc-project-viewer {
		padding: 0;
	}

	.ntpc-project-viewer-stage {
		width: 100%;
		height: 100svh;
		height: 100dvh;
		border-width: 0;
		border-radius: 0;
	}

	.ntpc-project-viewer-close {
		top: max(0.8rem, env(safe-area-inset-top));
		left: max(0.8rem, env(safe-area-inset-left));
	}

	.ntpc-project-viewer-copy {
		right: max(0.75rem, env(safe-area-inset-right));
		bottom: max(0.75rem, env(safe-area-inset-bottom));
		left: max(0.75rem, env(safe-area-inset-left));
		padding: 1.05rem;
		border-radius: 1.25rem;
	}

	.ntpc-project-viewer-copy h2 {
		font-size: clamp(2rem, 10vw, 3.25rem);
	}

	@keyframes ntpc-v11-filter-mobile-in {
		from { opacity: 0; transform: translate3d(0, 1.5rem, 0) scale(0.97); }
		to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.ntpc-realisations-filter-panel,
	.ntpc-realisation-card,
	.ntpc-project-viewer-stage,
	.ntpc-project-rail-dots button {
		animation: none !important;
		transition: none !important;
	}

	body.home .ntpc-realisations-featured.is-parallax-arrival .ntpc-realisation-card {
		animation: none !important;
	}
}

.ntpc-save-data .ntpc-realisations-filter-panel,
.ntpc-save-data .ntpc-realisation-card,
.ntpc-save-data .ntpc-project-viewer-stage {
	animation: none !important;
	transition: none !important;
}

@supports not ((-webkit-backdrop-filter: blur(1rem)) or (backdrop-filter: blur(1rem))) {
	.ntpc-realisations-filter-trigger,
	.ntpc-realisations-filter-panel,
	.ntpc-realisations-grid-catalogue .ntpc-realisation-copy,
	body.home .ntpc-realisations-grid-featured .ntpc-realisation-copy,
	.ntpc-project-rail-nav,
	.ntpc-project-viewer-copy,
	.ntpc-project-viewer-close {
		background: #0b0c0d;
	}
}
