/**
 * Page NiroMaker — sections illustrées, priorité, marquee polymères, propriétés.
 */

/* Chapôs de section : plus larges + air avant les blocs suivants. */
body.niromaker .section > .lede {
	max-width: none;
	max-inline-size: min(68ch, 100%);
}

body.niromaker .section > .lede + .wp-block-columns.columns-ruled,
body.niromaker .section > .lede + .wp-block-columns.cards-numbered,
body.niromaker .section > .lede + .niromaker-marquee,
body.niromaker .section > .lede + .niromaker-props {
	margin-block-start: var(--space-3xl);
}

body.niromaker .section > :is(h2, h3) + .wp-block-columns.columns-ruled,
body.niromaker .section > :is(h2, h3) + .wp-block-columns.cards-numbered {
	margin-block-start: var(--space-3xl);
}

/* Index 01/02/03 dans columns-gammes (parcours + spécialités). */
body.niromaker .columns-gammes .mosaic__index {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-medium);
	line-height: 1;
	color: var(--color-accent);
}

/* Preuve : 50/50 texte + grande photo (sans trou central sur grand écran). */
#preuve .wp-block-columns.columns-split--figure {
	align-items: center;
	gap: var(--space-3xl);
}

#preuve .stat--figure {
	margin-block-end: var(--space-lg);
}

#preuve .columns-split--figure > .wp-block-column:first-child > h2 {
	max-inline-size: none;
	max-width: none;
	margin-block: 0 var(--space-md);
}

#preuve .columns-split--figure > .wp-block-column:first-child > p {
	max-inline-size: none;
	max-width: none;
}

#preuve .columns-split--figure .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

@media (min-width: 1024px) {
	#preuve .columns-split.columns-split--figure > .wp-block-column:first-child {
		flex: 1 1 50% !important;
	}

	#preuve .columns-split.columns-split--figure > .wp-block-column:last-child {
		flex: 1 1 50% !important;
		max-width: none !important;
	}
}

.niromaker-priority {
	margin-block-start: var(--space-xl);
	padding-block-start: var(--space-lg);
	border-block-start: var(--line-width) solid var(--color-line);
	max-inline-size: none;
}

.niromaker-priority > :is(h2, h3) {
	margin: 0 0 var(--space-xs);
	font-size: var(--font-size-lg);
	color: var(--color-accent);
}

.niromaker-priority > p {
	margin: 0;
}

.niromaker-badge {
	margin: 0 0 var(--space-xs);
	color: var(--color-accent);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-medium);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

#fabrication .cards-numbered > .wp-block-column > .niromaker-badge + h3 {
	margin-block-start: 0;
}

/* Bandeau polymères */
.niromaker-marquee {
	margin-block-start: var(--space-xl);
	overflow: hidden;
	border-block: var(--line-width) solid var(--color-line);
	padding-block: var(--space-lg);
	mask-image: linear-gradient(
		to right,
		transparent,
		#000 8%,
		#000 92%,
		transparent
	);
}

.niromaker-marquee__track {
	display: flex;
	width: max-content;
	gap: 0;
	animation: niromaker-marquee 40s linear infinite;
}

.niromaker-marquee__list {
	display: flex;
	align-items: center;
	gap: var(--space-2xl);
	margin: 0;
	padding: 0 var(--space-xl);
	list-style: none;
	flex-shrink: 0;
}

.niromaker-marquee__item {
	font-family: var(--font-display);
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-medium);
	white-space: nowrap;
	color: var(--color-text);
}

.niromaker-marquee__item::after {
	content: "·";
	margin-inline-start: var(--space-2xl);
	color: var(--color-accent);
	font-weight: var(--font-weight-regular);
}

@keyframes niromaker-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.niromaker-marquee {
		mask-image: none;
		overflow-x: auto;
	}

	.niromaker-marquee__track {
		animation: none;
		width: 100%;
	}

	.niromaker-marquee__list[aria-hidden="true"] {
		display: none;
	}
}

/* Propriétés / normes */
.niromaker-props {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: var(--space-xl) 0 0;
	padding: 0;
	list-style: none;
}

.niromaker-props__item {
	margin: 0;
	padding: var(--space-xs) var(--space-md);
	border: var(--line-width) solid var(--color-line);
	font-size: var(--font-size-sm);
	line-height: 1.3;
	color: var(--color-text);
}
