/* ==========================================================================
   Section titles — one compact style for the homepage titles (.o-headline with its highlighted
   word, and the .o-title blocks). Same texts; only the presentation changes:
   - Red Hat Display, moderate size, tight letter-spacing;
   - the highlighted word ("Aspect", "carrelage") loses its hand-drawn circle / underline and gets
     a thin gold underline that draws in from the left;
   - under every title, the site marker (gold joint + tile on its point, markers.css);
   - entrance: the title rises from a soft mask as it scrolls in (browsers with scroll-driven
     animations; elsewhere it is simply shown). Nothing moves with reduced motion.
   ========================================================================== */

.o-headline,
.o-headline--center,
.o-headline--big,
.o-title__text {
	font-family: "Red Hat Display", var(--o-heading, sans-serif);
	font-size: clamp(1.55rem, 1.15rem + 1.1vw, 2.15rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.018em;
	color: #0b0b0b;
	text-wrap: balance;
}
.o-headline--big {
	font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.2rem);
	color: #0b0b0b;
}
.o-title__text {
	margin-top: 8px;
}

/* Highlighted word: same ink, thin gold underline instead of the drawn circle / underline. */
.o-mark svg {
	display: none;
}
.o-mark__text,
.o-mark--circle .o-mark__text {
	color: inherit;
	background: linear-gradient(90deg, #c99a3f, #e3c27a) 0 100% / 100% 2px no-repeat;
	padding-bottom: 0.06em;
}

/* The site marker under every title (same drawing as .o-title__marks in markers.css). */
.o-headline::after {
	content: "";
	display: block;
	width: 78px;
	height: 14px;
	margin-top: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='14' viewBox='0 0 78 14'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23c99a3f'/%3E%3Cstop offset='1' stop-color='%23e3c27a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='6' width='56' height='2' fill='url(%23g)'/%3E%3Crect x='58' y='3' width='1.5' height='8' fill='%23c99a3f'/%3E%3Crect x='65' y='2' width='7' height='7' transform='rotate(45 68.5 5.5) translate(0 1.5)' fill='none' stroke='%23c99a3f' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 78px 14px no-repeat;
	transform-origin: left center;
}
/* Keep the typing headline (Excellence et Innovation) exactly as it behaves today. */
.o-headline--typing::after {
	margin-top: 14px;
}
.o-headline--center::after {
	margin-inline: auto;
}
.o-asp__head .o-headline::after {
	margin-inline: 0;
}

/* Eyebrow above a title ("Gamme étendue de carrelage"): smaller, quieter, gold rule. */
.o-title__sub {
	padding-left: 44px;
	font-size: 12px;
	letter-spacing: 0.16em;
	color: #8b877f;
}
.o-title__sub::before {
	top: 8px;
	width: 32px;
	background: #c99a3f;
}
.o-title__marks {
	margin-top: 4px;
}

/* Entrance */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.o-headline,
		.o-title__text,
		.o-title__sub {
			animation: ttl-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 70%;
		}
		.o-mark__text {
			animation: ttl-underline linear both;
			animation-timeline: view();
			animation-range: entry 30% entry 100%;
		}
	}
}
@keyframes ttl-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
		clip-path: inset(0 0 100% 0);
	}
	to {
		clip-path: inset(0 0 -20% 0);
	}
}
@keyframes ttl-underline {
	from {
		background-size: 0 2px;
	}
}

@media (max-width: 599px) {
	.o-headline--center {
		text-align: left;
	}
	.o-headline--center::after {
		margin-inline: 0;
	}
}
