/*
 * NTPC V13 — architecture éditoriale consolidée.
 * Cette couche ne modifie pas le hero, le rail Réalisations ni le formulaire.
 */

:root {
	--ntpc-v13-gold: #d9aa4e;
	--ntpc-v13-gold-light: #f5dc99;
	--ntpc-v13-edge: rgba(245, 220, 153, 0.34);
	--ntpc-v13-panel: rgba(13, 13, 12, 0.9);
	--ntpc-v13-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navigation principale : une seule surface calme pour les destinations essentielles. */
@media (min-width: 78.01rem) {
	.ntpc-site-header {
		grid-template-columns: minmax(9rem, 1fr) minmax(30rem, 36rem) minmax(12rem, 1fr);
	}

	.ntpc-desktop-navigation {
		position: relative;
		isolation: isolate;
		width: min(100%, 34rem);
		height: 3.4rem;
		padding: 0.3rem;
		overflow: hidden;
		border: 1px solid rgba(245, 220, 153, 0.24);
		border-radius: 999px;
		background:
			linear-gradient(120deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 46%, rgba(217, 170, 78, 0.045)),
			rgba(10, 10, 9, 0.82);
		box-shadow:
			inset 0 1px rgba(255, 255, 255, 0.12),
			inset 0 -1px rgba(217, 170, 78, 0.06),
			0 0.9rem 2.5rem rgba(0, 0, 0, 0.22);
	}

	.ntpc-desktop-navigation::before {
		position: absolute;
		z-index: -1;
		top: -150%;
		left: -18%;
		width: 42%;
		height: 400%;
		background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
		content: "";
		pointer-events: none;
		transform: rotate(18deg);
	}

	.ntpc-desktop-navigation > a {
		display: flex;
		flex: 1 1 0;
		align-items: center;
		justify-content: center;
		height: 2.78rem;
		min-height: 2.78rem;
		padding: 0.5rem 1.05rem;
		color: rgba(255, 255, 255, 0.76);
		font-size: clamp(0.92rem, 0.82rem + 0.13vw, 1rem);
		font-weight: 650;
		letter-spacing: -0.012em;
		border: 1px solid transparent;
		border-radius: 999px;
		transition:
			color 180ms ease,
			border-color 220ms ease,
			background-color 220ms ease,
			box-shadow 220ms ease,
			transform 220ms var(--ntpc-v13-ease);
	}

	.ntpc-desktop-navigation > a:hover,
	.ntpc-desktop-navigation > a:focus-visible {
		color: #fff;
		border-color: rgba(245, 220, 153, 0.28);
		background: rgba(217, 170, 78, 0.08);
		transform: translateY(-1px);
	}

	.ntpc-desktop-navigation > a.is-current {
		color: #17130b;
		border-color: rgba(255, 239, 190, 0.78);
		background: linear-gradient(135deg, #f1d27e, #b9842d 72%, #e4bd61);
		box-shadow:
			inset 0 1px rgba(255, 255, 255, 0.55),
			0 0.45rem 1.25rem rgba(217, 170, 78, 0.2);
		text-shadow: none;
	}

	.ntpc-desktop-navigation > a::after {
		display: none;
	}
}

@supports ((-webkit-backdrop-filter: blur(1rem)) or (backdrop-filter: blur(1rem))) {
	@media (min-width: 78.01rem) {
		.ntpc-desktop-navigation {
			background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), rgba(6, 6, 6, 0.36) 48%, rgba(217, 170, 78, 0.04));
			-webkit-backdrop-filter: blur(1.35rem) saturate(138%);
			backdrop-filter: blur(1.35rem) saturate(138%);
		}
	}
}

/* Menu mobile : hiérarchie courte, cibles tactiles et langage du CTA Hero. */
@media (max-width: 78rem) {
	.ntpc-menu-sidebar {
		background:
			radial-gradient(circle at 16% 4%, rgba(245, 220, 153, 0.15), transparent 15rem),
			linear-gradient(145deg, rgba(28, 25, 20, 0.96), rgba(8, 9, 10, 0.985) 58%, rgba(5, 6, 7, 0.99));
	}

	.ntpc-menu-sidebar-heading {
		padding: 0.2rem 0.15rem 1rem;
	}

	.ntpc-menu-sidebar nav {
		gap: 0.58rem;
		margin-top: 1rem;
	}

	.ntpc-menu-sidebar nav a {
		display: grid;
		grid-template-columns: 2rem minmax(0, 1fr) 2rem;
		align-items: center;
		min-height: 4.15rem;
		padding: 0.72rem 0.85rem;
		overflow: hidden;
		color: rgba(255, 255, 255, 0.84);
		border: 1px solid rgba(245, 220, 153, 0.15);
		border-radius: 1.2rem;
		background: linear-gradient(110deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014));
		box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
		transition:
			color 180ms ease,
			border-color 220ms ease,
			background-color 220ms ease,
			box-shadow 220ms ease;
	}

	.ntpc-menu-sidebar nav a::after {
		display: none;
	}

	.ntpc-menu-link-index {
		color: rgba(245, 220, 153, 0.58);
		font-size: 0.65rem;
		font-weight: 700;
		letter-spacing: 0.13em;
	}

	.ntpc-menu-link-label {
		font-family: var(--ntpc-font-display);
		font-size: clamp(1rem, 4.4vw, 1.17rem);
		font-weight: 690;
		letter-spacing: -0.025em;
	}

	.ntpc-menu-link-arrow {
		display: grid;
		place-items: center;
		width: 1.85rem;
		height: 1.85rem;
		color: var(--ntpc-v13-gold-light);
		font-size: 0.95rem;
		border: 1px solid rgba(245, 220, 153, 0.24);
		border-radius: 50%;
		transition: transform 240ms var(--ntpc-v13-ease);
	}

	.ntpc-menu-sidebar nav a:hover .ntpc-menu-link-arrow,
	.ntpc-menu-sidebar nav a:focus-visible .ntpc-menu-link-arrow,
	.ntpc-menu-sidebar nav a.is-current .ntpc-menu-link-arrow {
		transform: translateX(0.12rem);
	}

	.ntpc-menu-sidebar nav a.is-current {
		color: #fff;
		border-color: rgba(245, 220, 153, 0.48);
		background: linear-gradient(110deg, rgba(217, 170, 78, 0.2), rgba(217, 170, 78, 0.035));
		box-shadow:
			inset 0 1px rgba(255, 255, 255, 0.11),
			0 0.85rem 2rem rgba(0, 0, 0, 0.19),
			0 0 1.6rem rgba(217, 170, 78, 0.08);
	}
}

/* Section éditoriale Nos services. */
.ntpc-home-services {
	isolation: isolate;
	background:
		radial-gradient(circle at 88% 12%, rgba(217, 170, 78, 0.11), transparent 25rem),
		radial-gradient(circle at 4% 78%, rgba(44, 82, 102, 0.13), transparent 34rem),
		linear-gradient(180deg, #090a0a, #11100e 52%, #090a0a);
}

.ntpc-home-services::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
	background-size: 4.5rem 4.5rem;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
	content: "";
	pointer-events: none;
}

.ntpc-home-services .ntpc-section-heading {
	margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.ntpc-service-jump {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 90rem;
	margin: 0 auto clamp(1.2rem, 2vw, 1.75rem);
	padding: 0.42rem;
	border-color: rgba(245, 220, 153, 0.2);
	border-radius: 999px;
	background: rgba(7, 8, 9, 0.84);
}

.ntpc-service-jump a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 3rem;
	padding: 0.65rem 0.8rem;
	color: rgba(255, 255, 255, 0.72);
	font-family: var(--ntpc-font-display);
	font-size: clamp(0.75rem, 0.7rem + 0.15vw, 0.9rem);
	font-weight: 650;
	text-align: center;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 999px;
	transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.ntpc-service-jump a span {
	color: rgba(245, 220, 153, 0.56);
	font-size: 0.62rem;
	letter-spacing: 0.12em;
}

.ntpc-service-jump a:hover,
.ntpc-service-jump a:focus-visible {
	color: #fff;
	border-color: rgba(245, 220, 153, 0.29);
	background: rgba(217, 170, 78, 0.1);
}

.ntpc-service-editorial-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 90rem;
	margin: 0 auto;
	gap: clamp(0.85rem, 1.8vw, 1.4rem);
}

.ntpc-service-editorial-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.6fr);
	grid-template-rows: auto 1fr auto;
	min-height: 30rem;
	padding: clamp(1.25rem, 2.4vw, 2rem);
	overflow: hidden;
	border-color: rgba(245, 220, 153, 0.2);
	border-radius: clamp(1.35rem, 2.2vw, 2rem);
	background:
		radial-gradient(circle at var(--ntpc-pointer-x, 88%) var(--ntpc-pointer-y, 10%), rgba(245, 220, 153, 0.12), transparent 15rem),
		linear-gradient(150deg, rgba(29, 28, 25, 0.95), rgba(9, 10, 10, 0.98) 68%);
	box-shadow:
		inset 0 1px rgba(255, 255, 255, 0.09),
		0 1.4rem 3.5rem rgba(0, 0, 0, 0.24);
	scroll-margin-top: calc(var(--ntpc-header-height) + 1.5rem);
}

.ntpc-service-editorial-card::after {
	position: absolute;
	right: -9rem;
	bottom: -10rem;
	width: 22rem;
	aspect-ratio: 1;
	border: 1px solid rgba(245, 220, 153, 0.08);
	border-radius: 50%;
	box-shadow: 0 0 0 3rem rgba(245, 220, 153, 0.018), 0 0 0 7rem rgba(245, 220, 153, 0.012);
	content: "";
	pointer-events: none;
}

.ntpc-service-editorial-marker {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: space-between;
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.ntpc-service-editorial-marker > span {
	display: grid;
	place-items: center;
	width: 3.7rem;
	height: 3.7rem;
	color: var(--ntpc-v13-gold-light);
	border: 1px solid rgba(245, 220, 153, 0.32);
	border-radius: 50%;
	background: rgba(217, 170, 78, 0.07);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 1.5rem rgba(217, 170, 78, 0.07);
}

.ntpc-service-editorial-marker svg {
	width: 1.7rem;
	height: 1.7rem;
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.55;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ntpc-service-editorial-marker b {
	color: rgba(255, 255, 255, 0.26);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.15em;
}

.ntpc-service-editorial-copy {
	padding-right: clamp(0.25rem, 1.6vw, 1.35rem);
}

.ntpc-service-editorial-copy h3 {
	margin: 0;
	font-family: var(--ntpc-font-display);
	font-size: clamp(1.75rem, 2.6vw, 2.65rem);
	font-weight: 760;
	letter-spacing: -0.045em;
	line-height: 1.02;
	text-wrap: balance;
}

.ntpc-service-editorial-copy p {
	margin: 0.9rem 0 0;
	color: rgba(255, 255, 255, 0.64);
	font-size: clamp(0.98rem, 0.92rem + 0.16vw, 1.08rem);
	line-height: 1.62;
}

.ntpc-service-editorial-copy .ntpc-service-editorial-lead {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1.05rem, 0.95rem + 0.28vw, 1.2rem);
	line-height: 1.5;
}

.ntpc-service-editorial-card ul {
	position: relative;
	z-index: 1;
	display: grid;
	align-content: start;
	gap: 0.72rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ntpc-service-editorial-card li {
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
	align-items: start;
	gap: 0.55rem;
	color: rgba(255, 255, 255, 0.73);
	font-size: 0.92rem;
	line-height: 1.4;
}

.ntpc-service-editorial-card li svg {
	width: 1rem;
	height: 1rem;
	margin-top: 0.12rem;
	fill: none;
	stroke: var(--ntpc-v13-gold-light);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ntpc-service-editorial-action {
	position: relative;
	z-index: 2;
	display: inline-flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: space-between;
	width: min(100%, 18rem);
	min-height: 3.2rem;
	margin-top: clamp(1.5rem, 3vw, 2.2rem);
	padding: 0.72rem 0.85rem 0.72rem 1.1rem;
	color: #17130b;
	font-family: var(--ntpc-font-display);
	font-size: 0.9rem;
	font-weight: 760;
	text-decoration: none;
	border: 1px solid rgba(255, 239, 190, 0.78);
	border-radius: 999px;
	background: linear-gradient(135deg, #f0d17c, #ad7826 72%, #e0b557);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0.75rem 1.8rem rgba(217, 170, 78, 0.13);
	transition: transform 220ms var(--ntpc-v13-ease), box-shadow 220ms ease;
}

.ntpc-service-editorial-action svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ntpc-service-editorial-action:hover,
.ntpc-service-editorial-action:focus-visible {
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.58), 0 0 2.1rem rgba(217, 170, 78, 0.25);
	transform: translateY(-2px);
}

#services,
#methode,
#entreprise {
	scroll-margin-top: calc(var(--ntpc-header-height) + 1rem);
}

@supports ((-webkit-backdrop-filter: blur(1rem)) or (backdrop-filter: blur(1rem))) {
	.ntpc-service-jump {
		background: rgba(8, 9, 10, 0.56);
		-webkit-backdrop-filter: blur(1.2rem) saturate(135%);
		backdrop-filter: blur(1.2rem) saturate(135%);
	}
}

@media (max-width: 64rem) {
	.ntpc-service-jump {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-radius: 1.55rem;
	}

	.ntpc-service-editorial-card {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.ntpc-service-editorial-copy {
		padding-right: 0;
	}

	.ntpc-service-editorial-card ul {
		margin-top: 1.35rem;
	}
}

@media (max-width: 47.99rem) {
	.ntpc-home-services {
		padding-top: clamp(4.75rem, 17vw, 6.25rem);
		padding-bottom: clamp(4.75rem, 17vw, 6.25rem);
	}

	.ntpc-home-services .ntpc-section-heading h2 {
		font-size: clamp(2.45rem, 11vw, 3.65rem);
	}

	.ntpc-home-services .ntpc-section-heading-split > p {
		font-size: 1rem;
		line-height: 1.58;
	}

	.ntpc-service-jump {
		display: flex;
		justify-content: flex-start;
		margin-right: calc(-1 * var(--ntpc-layout-gutter));
		padding: 0.36rem var(--ntpc-layout-gutter) 0.36rem 0.36rem;
		overflow-x: auto;
		border-right: 0;
		border-radius: 1.35rem 0 0 1.35rem;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
	}

	.ntpc-service-jump::-webkit-scrollbar {
		display: none;
	}

	.ntpc-service-jump a {
		flex: 0 0 auto;
		min-width: 10.4rem;
		min-height: 2.85rem;
		scroll-snap-align: start;
	}

	.ntpc-service-editorial-grid {
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}

	.ntpc-service-editorial-card {
		padding: 1.25rem;
		border-radius: 1.45rem;
	}

	.ntpc-service-editorial-marker {
		margin-bottom: 1.8rem;
	}

	.ntpc-service-editorial-marker > span {
		width: 3.35rem;
		height: 3.35rem;
	}

	.ntpc-service-editorial-copy h3 {
		font-size: clamp(1.85rem, 8.8vw, 2.35rem);
	}

	.ntpc-service-editorial-copy p {
		font-size: 1rem;
	}

	.ntpc-service-editorial-card li {
		font-size: 0.9rem;
	}

	.ntpc-service-editorial-action {
		width: 100%;
	}
}

@supports not ((-webkit-backdrop-filter: blur(1rem)) or (backdrop-filter: blur(1rem))) {
	.ntpc-desktop-navigation,
	.ntpc-menu-sidebar,
	.ntpc-service-jump,
	.ntpc-service-editorial-card {
		background-color: #10100f;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ntpc-desktop-navigation > a,
	.ntpc-menu-link-arrow,
	.ntpc-service-jump a,
	.ntpc-service-editorial-action {
		transition: none;
	}

	.ntpc-desktop-navigation > a:hover,
	.ntpc-desktop-navigation > a:focus-visible,
	.ntpc-service-editorial-action:hover,
	.ntpc-service-editorial-action:focus-visible {
		transform: none;
	}
}
