/* ==========================================================================
   "Nos produits" (page-nos-produits.php). Uses the tokens and product cards of the format pages
   (format.css: .fp, .fp-card, .fp-grid, .fp-tabs); adds a compact banner with the nine formats
   drawn to scale, and one section per format.
   ========================================================================== */

/* ------------------------------------------------------------ Banner */
.np-hero {
	position: relative;
	padding: calc(var(--header-h) + clamp(24px, 5vh, 52px)) 0 clamp(28px, 5vh, 44px);
	overflow: hidden;
	color: #fff;
	background: var(--fp-ink);
	isolation: isolate;
}
.np-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 120px 120px,
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 120px 120px;
	mask-image: radial-gradient(90% 90% at 80% 20%, #000, transparent 75%);
}
.np-hero__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 32px;
}
.np-hero__title {
	margin: 0;
	font-family: var(--fp-head);
	font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.035em;
	color: #fff;
	animation: fp-rise 1s var(--fp-ease) both;
}
.np-hero__count {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
}
.np-hero__count b {
	font-family: var(--fp-head);
	font-size: 1.6rem;
	color: var(--fp-gold-soft);
	font-variant-numeric: tabular-nums;
}
.np-hero__count span {
	width: 1px;
	height: 18px;
	margin: 0 10px;
	background: rgba(255, 255, 255, 0.25);
	align-self: center;
}
.np-hero__scale {
	display: flex;
	align-items: flex-end;
	gap: clamp(14px, 2.4vw, 32px);
	margin: clamp(22px, 4vh, 36px) 0 0;
	padding: 18px 0 2px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.np-hero__scale::-webkit-scrollbar {
	display: none;
}
.np-hero__scale a {
	display: grid;
	justify-items: start;
	gap: 8px;
	min-width: 56px;
	font-family: var(--fp-head);
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	white-space: nowrap;
}
.np-hero__shape {
	width: calc(var(--w) * 0.8px);
	height: calc(var(--h) * 0.8px);
	border: 1px solid rgba(255, 255, 255, 0.38);
	transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--fp-ease);
	transform-origin: 50% 100%;
}
.np-hero__scale a:hover .np-hero__shape,
.np-hero__scale a:focus-visible .np-hero__shape {
	border-color: var(--fp-gold-soft);
	background: rgba(227, 194, 122, 0.14);
	transform: translateY(-4px);
}
.np-hero__scale a:hover {
	color: #fff;
}

/* ------------------------------------------------------------ Formats */
.np-body {
	padding-bottom: clamp(56px, 8vw, 110px);
}
.np-format {
	padding-top: clamp(40px, 5vw, 72px);
	scroll-margin-top: calc(var(--mh-compact, 60px) + 64px);
}
.np-format + .np-format .np-format__head {
	padding-top: clamp(28px, 4vw, 48px);
	border-top: 1px solid var(--fp-line);
}
.np-format__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 8px;
}
.np-format__glyph {
	flex: none;
	width: calc(var(--fw) * 0.5px);
	height: calc(var(--fh) * 0.5px);
	border: 1.5px solid var(--fp-gold);
	background: rgba(201, 154, 63, 0.1);
}
.np-format__titles {
	min-width: 0;
}
.np-format__title {
	margin: 0;
	font-family: var(--fp-head);
	font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--fp-ink);
}
.np-format__title span {
	font-size: 0.42em;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--fp-gold);
}
.np-format__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--fp-muted);
}
.np-format__chip {
	padding: 3px 10px;
	border: 1px solid var(--fp-line);
	border-radius: 999px;
	font-size: 12px;
	color: var(--fp-text);
	background: #fff;
}
.np-format__link {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding: 10px 16px;
	border: 1px solid var(--fp-ink);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fp-ink);
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s;
}
.np-format__link:hover,
.np-format__link:focus-visible {
	background: var(--fp-ink);
	color: #fff;
}
.np-format__link svg {
	width: 16px;
	height: 16px;
}
.np-finish {
	margin-top: clamp(22px, 3vw, 34px);
}
.np-finish__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-family: var(--fp-head);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--fp-ink);
}
.np-finish__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--fp-line);
}

@media (max-width: 767px) {
	.np-format__head {
		flex-wrap: wrap;
	}
	.np-format__link {
		margin-left: 0;
	}
	.np-hero__scale {
		margin-inline: -16px;
		padding-inline: 16px;
	}
}
