/* ==========================================================================
   Nassij Atlas – product catalogue (homepage section + products page)
   Tokens map to the Elementor global kit so the brand stays in sync.
   ========================================================================== */

:root {
	--na-red: #E30613;
	--na-red-deep: #B8040F;
	--na-ink: #1C1C1D;
	--na-heading: #575756;
	--na-text: #59585D;
	--na-muted: #8E8E93;
	--na-border: #E3E3E8;
	--na-surface: #FFFFFF;
	--na-canvas: #FAF9F7;
	--na-linen: #F1EDE8;
	--na-font-display: "Cal Sans", var(--e-global-typography-primary-font-family, "Cal Sans"), system-ui, sans-serif;
	--na-font-text: "Golos Text", var(--e-global-typography-text-font-family, "Golos Text"), system-ui, sans-serif;
	--na-radius: 22px;
	--na-radius-sm: 14px;
	--na-ease: cubic-bezier(.2, .7, .2, 1);
	--na-shadow: 0 1px 2px rgba(28, 28, 29, .05), 0 14px 34px -14px rgba(28, 28, 29, .22);
	--na-shadow-hover: 0 2px 4px rgba(28, 28, 29, .06), 0 30px 60px -22px rgba(28, 28, 29, .38);
	--na-texture: url("../img/nassij-textile-texture.png");
}

/* ---------- Layout ---------- */

.na-section {
	position: relative;
	padding-block: clamp(64px, 8vw, 112px);
	font-family: var(--na-font-text);
	color: var(--na-text);
	background-color: var(--na-surface);
	background-image: var(--na-texture);
	background-size: 180px auto;
	background-repeat: repeat;
	isolation: isolate;
}

.na-section::before {
	/* soft vignette keeps the texture away from the content centre */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .55) 70%, rgba(255, 255, 255, .2));
	pointer-events: none;
}

.na-container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 16px;
}

@media (min-width: 768px) {
	.na-container { padding-inline: 32px; }
}

/* ---------- Section heading ---------- */

.na-head {
	max-width: 820px;
	margin: 0 auto clamp(40px, 5vw, 64px);
	text-align: center;
}

.na-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border: 1px solid rgba(227, 6, 19, .2);
	border-radius: 999px;
	background: rgba(227, 6, 19, .05);
	color: var(--na-red);
	font-family: var(--na-font-text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
}

.na-title {
	margin: 22px 0 18px;
	color: var(--na-ink);
	font-family: var(--na-font-display);
	font-size: clamp(32px, 4.4vw, 56px);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: 0;
	word-spacing: .06em;
	text-wrap: balance;
}

.na-section .na-title em,
.na-section h1.na-title em,
.na-section h2.na-title em {
	font-style: normal;
	color: var(--na-red);
}

.na-lead {
	max-width: 720px;
	margin: 0 auto;
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.7;
	color: var(--na-text);
	text-wrap: pretty;
}

/* ---------- Grids ---------- */

.na-grid {
	display: grid;
	gap: 36px 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.na-grid--featured {
	/* mobile: swipeable row of large cards */
	display: flex;
	gap: 16px;
	margin-inline: -16px;
	padding: 8px 16px 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.na-grid--featured::-webkit-scrollbar { display: none; }

.na-grid--featured > .na-card {
	flex: 0 0 min(82%, 360px);
	scroll-snap-align: center;
}

@media (min-width: 768px) {
	.na-grid--featured {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(20px, 2.6vw, 40px);
		margin-inline: 0;
		padding: 8px 0 0;
		overflow: visible;
	}
	.na-grid--catalogue {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 48px 24px;
	}
}

@media (min-width: 1200px) {
	.na-grid--catalogue {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 56px 28px;
	}
}

/* ---------- Product card ---------- */

.na-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.na-card[hidden] { display: none; }

.na-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 2579 / 3172;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--na-radius);
	overflow: hidden;
	background: var(--na-linen);
	box-shadow: var(--na-shadow);
	cursor: zoom-in;
	isolation: isolate;
	transition: transform .6s var(--na-ease), box-shadow .6s var(--na-ease);
	-webkit-tap-highlight-color: transparent;
}

.na-card__media::before {
	/* hairline inner frame, like a mounted fabric swatch */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(28, 28, 29, .06);
	pointer-events: none;
}

.na-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(20, 16, 14, 0) 45%, rgba(20, 16, 14, .55) 100%);
	opacity: 0;
	transition: opacity .5s var(--na-ease);
	pointer-events: none;
}

.na-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 1.2s var(--na-ease);
}

.na-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(28, 28, 29, .88);
	color: #fff;
	font-family: var(--na-font-text);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .07em;
	line-height: 1;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.na-card__badge--coup-de-coeur { background: var(--na-red); }

.na-card__cta {
	position: absolute;
	left: 50%;
	bottom: 18px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--na-ink);
	font-family: var(--na-font-text);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4);
	opacity: 0;
	transform: translate(-50%, 10px);
	transition: opacity .45s var(--na-ease), transform .45s var(--na-ease);
}

.na-card__cta svg { color: var(--na-red); }

@media (hover: hover) {
	.na-card__media:hover {
		transform: translateY(-6px);
		box-shadow: var(--na-shadow-hover);
	}
	.na-card__media:hover .na-card__img { transform: scale(1.06); }
	.na-card__media:hover::after { opacity: 1; }
	.na-card__media:hover .na-card__cta {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.na-card__media:focus-visible {
	outline: 3px solid var(--na-red);
	outline-offset: 4px;
}

.na-card__media:focus-visible .na-card__cta {
	opacity: 1;
	transform: translate(-50%, 0);
}

.na-card__body { padding: 18px 4px 0; }

.na-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.na-card__ref {
	color: var(--na-red);
	font-family: var(--na-font-text);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.na-card__title {
	margin: 8px 0 0;
	color: var(--na-ink);
	font-family: var(--na-font-display);
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: .005em;
	word-spacing: .08em;
}

.na-grid--featured .na-card__title { font-size: clamp(19px, 1.8vw, 24px); }

/* colour dots */
.na-dots {
	display: inline-flex;
	align-items: center;
	padding-left: 4px;
}

.na-dot {
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--dot, #ccc);
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(28, 28, 29, .1);
}

.na-dots .na-dot + .na-dot { margin-left: -3px; }

/* ---------- Buttons ---------- */

.na-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 14px 26px;
	border: 0;
	border-radius: 999px;
	font-family: var(--na-font-display);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s var(--na-ease), color .3s var(--na-ease), transform .3s var(--na-ease), box-shadow .3s var(--na-ease);
}

.na-btn svg { transition: transform .3s var(--na-ease); }
.na-btn:hover svg { transform: translateX(3px); }

.na-btn:focus-visible {
	outline: 3px solid var(--na-ink);
	outline-offset: 3px;
}

.na-btn--primary,
.na-btn--primary:visited {
	background: var(--na-red);
	color: #fff;
	box-shadow: 0 12px 28px -12px rgba(227, 6, 19, .6);
}

.na-btn--primary:hover {
	background: var(--na-red-deep);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 18px 34px -14px rgba(227, 6, 19, .7);
}

.na-btn--lg { min-height: 58px; padding-inline: 30px 26px; font-size: 17px; }

.na-btn__count {
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	font-family: var(--na-font-text);
	font-size: 13px;
	font-weight: 500;
}

.na-btn--light,
.na-btn--light:visited {
	background: #fff;
	color: var(--na-ink);
}

.na-btn--light svg { color: var(--na-red); }
.na-btn--light:hover { background: #fff; color: var(--na-red); transform: translateY(-2px); }

/* ---------- Homepage footer row ---------- */

.na-home-products__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	margin-top: clamp(32px, 5vw, 64px);
	padding-top: 32px;
	border-top: 1px solid var(--na-border);
}

@media (min-width: 900px) {
	.na-home-products__footer {
		flex-direction: row;
		justify-content: space-between;
	}
}

.na-color-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 18px;
}

.na-color-links__label {
	color: var(--na-heading);
	font-family: var(--na-font-text);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.na-color-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.na-color-link {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	transition: transform .3s var(--na-ease);
}

.na-color-link .na-dot { width: 24px; height: 24px; }
.na-color-link:hover { transform: scale(1.15); }
.na-color-link:focus-visible { outline: 2px solid var(--na-ink); outline-offset: 1px; }

@media (max-width: 479px) {
	.na-color-links ul { gap: 3px; justify-content: center; }
	.na-color-link { width: 32px; height: 32px; }
	.na-color-link .na-dot { width: 22px; height: 22px; }
}

/* ---------- Catalogue page ---------- */

.na-catalogue {
	padding-top: clamp(64px, 7vw, 104px);
	background-color: var(--na-canvas);
}

.na-catalogue::before {
	background: linear-gradient(180deg, rgba(250, 249, 247, .2), rgba(250, 249, 247, .85) 40%, rgba(250, 249, 247, .92));
}

.na-catalogue .na-head { margin-bottom: clamp(32px, 4vw, 48px); }

.na-filter {
	display: flex;
	gap: 10px;
	margin: 0 -16px;
	padding: 4px 16px 12px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.na-filter::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
	.na-filter {
		flex-wrap: wrap;
		justify-content: center;
		margin: 0;
		padding: 0;
		overflow: visible;
	}
}

.na-chip {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 8px 14px 8px 10px;
	border: 1px solid var(--na-border);
	border-radius: 999px;
	background: var(--na-surface);
	color: var(--na-ink);
	font-family: var(--na-font-text);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	scroll-snap-align: start;
	transition: border-color .25s var(--na-ease), background-color .25s var(--na-ease), color .25s var(--na-ease), box-shadow .25s var(--na-ease);
}

.na-chip:hover {
	border-color: var(--na-ink);
	color: var(--na-ink);
}

.na-chip:focus-visible {
	outline: 3px solid var(--na-red);
	outline-offset: 2px;
}

.na-chip .na-dot { width: 20px; height: 20px; }

.na-chip__all {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: conic-gradient(#2F6FA8, #5E7A52, #D2B26E, #C65616, #A8141C, #6F3E24, #A8978F, #2F6FA8);
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(28, 28, 29, .1);
}

.na-chip__count {
	min-width: 22px;
	padding: 4px 7px;
	border-radius: 999px;
	background: var(--na-canvas);
	color: var(--na-muted);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.na-chip.is-active,
.na-chip.is-active:hover {
	border-color: var(--na-ink);
	background: var(--na-ink);
	color: #fff;
	box-shadow: 0 10px 24px -14px rgba(28, 28, 29, .7);
}

.na-chip.is-active .na-chip__count {
	background: rgba(255, 255, 255, .14);
	color: rgba(255, 255, 255, .8);
}

.na-results {
	margin: 28px 0 24px;
	color: var(--na-muted);
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

.na-results [data-na-count] { color: var(--na-ink); font-weight: 700; }

.na-empty {
	padding: 48px 0;
	text-align: center;
	color: var(--na-text);
}

.na-card.is-entering { animation: na-fade-up .55s var(--na-ease) both; }

@keyframes na-fade-up {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

/* CTA band */
.na-cta-band {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	margin-top: clamp(64px, 8vw, 104px);
	padding: clamp(32px, 5vw, 56px);
	border-radius: 28px;
	background: var(--na-ink);
	color: rgba(255, 255, 255, .72);
	overflow: hidden;
	isolation: isolate;
}

.na-cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(circle at 100% 0%, rgba(227, 6, 19, .45), transparent 45%), var(--na-texture);
	background-size: auto, 160px auto;
	opacity: .9;
	mix-blend-mode: screen;
}

.na-cta-band h2 {
	margin: 0 0 10px;
	color: #fff;
	font-family: var(--na-font-display);
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 600;
	line-height: 1.1;
}

.na-cta-band p { max-width: 560px; margin: 0; line-height: 1.65; }

@media (min-width: 900px) {
	.na-cta-band {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ---------- Product dialog ---------- */

html.na-lock { overflow: hidden; }

.na-dialog {
	width: min(1080px, calc(100% - 24px));
	max-width: none;
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 26px;
	background: var(--na-surface);
	color: var(--na-text);
	font-family: var(--na-font-text);
	box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .5);
	overflow: hidden;
}

.na-dialog::backdrop {
	background: rgba(20, 16, 14, .62);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.na-dialog[open] { animation: na-dialog-in .45s var(--na-ease); }
.na-dialog[open]::backdrop { animation: na-backdrop-in .45s var(--na-ease); }

@keyframes na-dialog-in {
	from { opacity: 0; transform: translateY(16px) scale(.98); }
	to { opacity: 1; transform: none; }
}

@keyframes na-backdrop-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.na-dialog__inner {
	position: relative;
	display: grid;
	max-height: calc(100dvh - 24px);
	overflow-y: auto;
}

@media (min-width: 900px) {
	.na-dialog__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		overflow: hidden;
	}
}

.na-dialog__media {
	display: grid;
	place-items: center;
	background: var(--na-linen);
}

.na-dialog__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 62dvh;
	object-fit: contain;
}

@media (min-width: 900px) {
	.na-dialog__img { max-height: calc(100dvh - 24px); height: 100%; }
}

.na-dialog__content {
	display: flex;
	flex-direction: column;
	padding: 28px 22px 24px;
}

@media (min-width: 900px) {
	.na-dialog__content { padding: 56px 48px 36px; overflow-y: auto; }
}

.na-dialog__ref {
	color: var(--na-red);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.na-dialog__title {
	margin: 10px 0 14px;
	color: var(--na-ink);
	font-family: var(--na-font-display);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: 0;
	word-spacing: .06em;
}

.na-dialog__excerpt { margin: 0 0 28px; font-size: 16.5px; line-height: 1.7; }

.na-dialog__colors {
	padding: 20px 0;
	border-block: 1px solid var(--na-border);
}

.na-dialog__label {
	display: block;
	margin-bottom: 14px;
	color: var(--na-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.na-dialog__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.na-dialog__swatches li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--na-ink);
	font-size: 14.5px;
}

.na-dialog__swatches .na-dot { width: 22px; height: 22px; }

.na-dialog__actions { margin: 28px 0; }

.na-dialog__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
}

.na-dialog__count { color: var(--na-muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.na-dialog__arrow,
.na-dialog__close {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--na-border);
	border-radius: 50%;
	background: #fff;
	color: var(--na-ink);
	cursor: pointer;
	transition: border-color .25s var(--na-ease), color .25s var(--na-ease), transform .25s var(--na-ease);
}

.na-dialog__arrow:hover,
.na-dialog__close:hover { border-color: var(--na-ink); }

.na-dialog__arrow:focus-visible,
.na-dialog__close:focus-visible { outline: 3px solid var(--na-red); outline-offset: 2px; }

.na-dialog__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	border-color: transparent;
	box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .3);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.na-card__media,
	.na-card__img,
	.na-card__cta,
	.na-card__media::after,
	.na-btn,
	.na-btn svg,
	.na-chip,
	.na-color-link {
		transition: none;
	}
	.na-card__media:hover,
	.na-card__media:hover .na-card__img,
	.na-btn--primary:hover,
	.na-btn--light:hover { transform: none; }
	.na-card.is-entering,
	.na-dialog[open],
	.na-dialog[open]::backdrop { animation: none; }
	.na-grid--featured { scroll-behavior: auto; }
}

/* ---------- Homepage "Nos réalisations" strip ---------- */

.na-section--bare {
	padding: 0;
	background: none;
	width: 100%;
}

.na-section--bare::before { display: none; }

.na-grid--strip {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 16px;
}

@media (min-width: 768px) {
	.na-grid--strip {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px;
	}
}

.na-realisations { margin-top: clamp(40px, 5vw, 64px); }

.na-realisations__footer {
	display: flex;
	justify-content: center;
	margin-top: clamp(36px, 4vw, 56px);
}
