/* =========================================================================
   MINERAL — Nuancier
   ====================================================================== */

.nc { padding: calc(var(--section-y) + 5rem) var(--gutter) var(--section-y); }

.nc__head { max-width: 1400px; margin: 0 auto clamp(2.5rem, 6vh, 4rem); }
.nc__head .kicker { margin-bottom: 1.5rem; }

.nc__title {
	font-size: clamp(2.4rem, 5vw, 4.5rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.035em;
}

.nc__intro {
	margin-top: 1.5rem;
	max-width: 58ch;
	color: var(--ink-soft);
	line-height: 1.65;
}

.nc__empty { max-width: 1400px; margin: 4rem auto; color: var(--fg-2); }

/* ---------- Disposition en deux colonnes ------------------------------- */

.nc__layout {
	display: grid;
	grid-template-columns: 4fr 7fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
	max-width: 1400px;
	margin: 0 auto;
}

/* ---------- Colonne fixe ------------------------------------------------ */

.nc__stage-col { position: sticky; top: clamp(5rem, 12vh, 8rem); }

.nc__stage { position: relative; }

.nc__figure {
	position: relative;
	width: min(30vw, 300px);
	aspect-ratio: 1;
	margin: 0 auto;
}

/* Le cadran est calé sur la figure, plus sur des valeurs devinées. */
.nc__dial { display: none; }

.nc__figure img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}
.nc__figure img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}
.nc__figure.is-swapping img { opacity: 0; transform: scale(0.94); }

.nc__info { margin-top: 2rem; text-align: center; }

.nc__name {
	font-size: clamp(1.5rem, 2.4vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.nc__specs {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 1.5rem auto 0;
	max-width: 320px;
	text-align: left;
}
.nc__specs > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--line);
}
.nc__specs dt {
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fg-2);
}
.nc__specs dd { margin: 0; font-weight: 600; font-size: 0.9375rem; }

.nc__desc {
	margin-top: 1.25rem;
	max-width: 40ch;
	margin-inline: auto;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--ink-soft);
}
.nc__desc:empty { display: none; }

/* ---------- Filtres ------------------------------------------------------ */

.nc__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
}

.nc__filter {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.55rem 1rem;
	border: 1px solid var(--line);
	border-radius: 100px;
	background: transparent;
	font-size: 0.875rem;
	transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nc__filter span { font-family: var(--font-mono); font-size: 0.6rem; color: var(--fg-2); }
.nc__filter:hover { border-color: var(--ink); }
.nc__filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.nc__filter.is-active span { color: rgba(253, 252, 250, 0.6); }

/* ---------- Grille des teintes -------------------------------------------- */

.nc__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: clamp(0.75rem, 2vw, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.nc__cell.is-hidden { display: none; }

.nc__swatch {
	display: block;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: center;
}

.nc__swatch img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: 50%;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nc__swatch:hover img { transform: scale(1.06); }

.nc__swatch.is-active img {
	transform: scale(1.06);
	box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--accent);
}

.nc__swatch-name {
	display: block;
	margin-top: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.58rem;
	letter-spacing: 0.06em;
	line-height: 1.3;
	color: var(--fg-2);
	transition: color 0.25s var(--ease);
	overflow-wrap: anywhere;
}
.nc__swatch:hover .nc__swatch-name,
.nc__swatch.is-active .nc__swatch-name { color: var(--ink); }

.nc__swatch:focus-visible img { outline: 2px solid var(--accent); outline-offset: 3px; }

.nc__none { padding: 3rem 0; text-align: center; color: var(--fg-2); }

/* ---------- Appel ---------------------------------------------------------- */

.nc__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: 1400px;
	margin: clamp(3rem, 8vh, 6rem) auto 0;
	padding-top: clamp(2rem, 5vh, 3rem);
	border-top: 1px solid var(--line);
}
.nc__cta p { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Responsive ------------------------------------------------------ */

@media (max-width: 1024px) {
	.nc__layout { grid-template-columns: 1fr; gap: 2.5rem; }

	/* La colonne devient une barre collante en haut, réduite à l'essentiel. */
	.nc__stage-col {
		position: sticky;
		top: 0;
		z-index: 5;
		padding: 1rem 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
	}
	.nc__stage { display: flex; align-items: center; gap: 1.25rem; }
	.nc__dial { display: none; }
	.nc__figure { width: 88px; flex: 0 0 auto; margin: 0; }
	.nc__info { margin: 0; text-align: left; }
	.nc__name { font-size: 1.25rem; }
	.nc__specs { margin: 0.5rem 0 0; max-width: none; flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
	.nc__specs > div { border: 0; padding: 0; gap: 0.4rem; }
	.nc__desc { display: none; }
}

@media (max-width: 640px) {
	.nc__grid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
	.nc__swatch-name { font-size: 0.52rem; }
	.nc__cta { flex-direction: column; align-items: flex-start; }
}
