/*
 * The hero: band 1 of the home page. The text, then the door's panel (door.css). Phone first.
 *
 * Below 1025 px the band wears the door's own ground: its soft gradient under a grain, and the
 * contour rings in two corners. From 1025 px the band is paper and the rings are inside the panel.
 * The rings are masks of the files in assets/img/, filled with the brand's blue.
 */

.ro-hero {
	position: relative;
	isolation: isolate;
	padding-block: var(--espace-32) var(--espace-48);
	overflow-x: clip;
	background:
		var(--ro-grain) 0 0 / 100% 100%,
		var(--ro-sol-porte);
}

.ro-hero::before,
.ro-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	z-index: -1;
	background: var(--ro-bleu-500);
	mask-repeat: no-repeat;
	mask-size: cover;
	pointer-events: none;
}

.ro-hero::before {
	inset-block-start: 0;
	block-size: 46%;
	opacity: 0.24;
	mask-image: url("../img/porte-anneaux-hd.svg");
	mask-position: right top;
}

.ro-hero::after {
	inset-block-end: 0;
	block-size: 40%;
	opacity: 0.14;
	mask-image: url("../img/porte-anneaux-bg.svg");
	mask-position: left bottom;
}

/* Right to left: the contour lines turn with the reading. */
[dir="rtl"] .ro-hero::before,
[dir="rtl"] .ro-hero::after {
	transform: scaleX(-1);
}

.ro-hero__grid {
	display: grid;
	gap: var(--espace-32);
	grid-template-columns: minmax(0, 1fr);
}

.ro-hero__text {
	min-inline-size: 0;
}

/* Quieter than a page title: the panel's headline is the loud one. Archivo 800 comes from the base h1. */
.ro-hero .ro-hero__title {
	margin: 0;
	color: var(--nuit);
	font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
	line-height: 1.1;
	overflow-wrap: break-word;
	text-wrap: balance;
}

.ro-hero .ro-hero__lead {
	margin: var(--espace-16) 0 0;
	max-inline-size: 68ch;
	color: var(--nuit);
	font-size: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
	line-height: 1.5;
}

.ro-hero__actions {
	display: grid;
	gap: var(--espace-8);
	justify-items: start;
	margin-block-start: var(--espace-24);
}

.ro-hero__button {
	inline-size: 100%;
}

.ro-hero .ro-hero__note {
	margin: 0;
	color: var(--ardoise);
	font-size: var(--petit);
	font-weight: 500;
	line-height: 1.5;
}

.ro-hero__link {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	font-weight: 500;
}

@media (min-width: 577px) {
	.ro-hero__button {
		inline-size: auto;
	}
}

@media (min-width: 768px) {
	.ro-hero {
		padding-block: var(--espace-48) var(--ro-entre-bandes);
	}
}

@media (min-width: 1025px) {
	.ro-hero {
		padding-block: var(--espace-48) var(--espace-64);
		background: var(--papier);
	}

	.ro-hero::before,
	.ro-hero::after {
		display: none;
	}

	/* The text on the start side over five parts, the panel over seven, level with each other. */
	.ro-hero__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: var(--espace-48);
		align-items: center;
	}

	/* The button and the link side by side, the small line under them. */
	.ro-hero__actions {
		grid-template-columns: auto 1fr;
		column-gap: var(--espace-24);
		align-items: center;
	}

	.ro-hero__note {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}
