/*
 * E2IT - heros de l archive « Nos realisations ». Prefixe rh-.
 *
 * Proportions du dossier de maquette, valeurs ramenees aux jetons. Fil
 * d Ariane repris des pages d expertise. Fond : photo et degrade, sans
 * motif.
 */

.rh-mono {
	margin: 0;
	font: 500 11px/1.5 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

.rh-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--e2it-marine);
	color: var(--e2it-blanc);
}

.rh-hero__fond {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.rh-hero__fond img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(100deg, rgba(7, 28, 62, .97) 0%, rgba(11, 46, 94, .9) 50%, rgba(11, 46, 94, .74) 100%);
}

/* Sous l en-tete transparent (88 px). */
.rh-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--e2it-largeur-contenu, 1240px);
	margin: 0 auto;
	padding: calc(88px + 60px) 40px 56px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	align-items: stretch;
}

.rh-hero__texte {
	flex: 1.5 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
}

.rh-hero__haut {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rh-hero .rh-hero__titre:not(#e2it) {
	margin: 0;
	font-size: clamp(42px, 5vw, 68px);
	line-height: .98;
	letter-spacing: -.036em;
	color: var(--e2it-blanc);
	text-wrap: balance;
}

.rh-hero__titre em {
	font-style: italic;
	color: var(--e2it-glacier);
}

.rh-hero__intro {
	margin: 0;
	max-width: 520px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--e2it-bleu-clair);
	text-wrap: pretty;
}

/* ---- Onglets ---- */
.rh-terrains {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rh-onglets {
	align-self: flex-start;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: var(--e2it-rayon-pilule);
	background: rgba(7, 28, 62, .6);
	border: 1px solid rgba(169, 196, 229, .3);
}

.rh-onglets button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--e2it-rayon-pilule);
	background: transparent;
	color: var(--e2it-bleu-clair);
	font: 600 15px/1 var(--e2it-police);
	cursor: pointer;
	transition: background-color .24s ease, color .24s ease;
}

.rh-onglets button span {
	padding: 4px 7px;
	border-radius: var(--e2it-rayon-pilule);
	background: rgba(169, 196, 229, .16);
	color: var(--e2it-bleu-clair);
	font: 500 10px/1 var(--e2it-police-mono);
	letter-spacing: .08em;
}

@media (hover: hover) {
	.rh-onglets button:hover {
		color: var(--e2it-blanc);
	}
}

.rh-onglets button[aria-selected="true"] {
	background: var(--e2it-blanc);
	color: var(--e2it-marine);
}

.rh-onglets button[aria-selected="true"] span {
	background: var(--e2it-bleu-pale);
	color: var(--e2it-bleu-profond);
}

.rh-onglets button:focus-visible {
	outline: 2px solid var(--e2it-accent);
	outline-offset: 2px;
}

/* ---- Carte vedette : passe sous le texte en pleine largeur quand la
   place manque ---- */
.rh-vedettes {
	flex: 1 1 360px;
	min-width: 0;
	max-width: 100%;
	display: flex;
}

.rh-panneau {
	flex: 1;
	display: flex;
	min-width: 0;
}

.rh-panneau[hidden] {
	display: none;
}

.rh-vedette {
	flex: 1;
	position: relative;
	display: block;
	min-height: 420px;
	max-height: 540px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--e2it-bleu-profond);
	border: 1px solid rgba(169, 196, 229, .3);
	box-shadow: 0 30px 70px rgba(3, 12, 28, .45);
	color: var(--e2it-blanc);
	text-decoration: none;
	transition: transform .4s var(--e2it-courbe), border-color .24s ease;
}

@media (hover: hover) {
	.rh-vedette:hover {
		transform: translateY(-4px);
		border-color: rgba(169, 196, 229, .6);
		color: var(--e2it-blanc);
	}
}

.rh-vedette:focus-visible {
	outline: 2px solid var(--e2it-accent);
	outline-offset: 3px;
}

.rh-vedette > img:not(#e2it) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.rh-vedette::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(7, 28, 62, .97) 0%, rgba(11, 46, 94, .72) 38%, rgba(11, 46, 94, 0) 70%);
}

/* Sans photo : un degrade marine, et l extrait de la demande a la place. */
.rh-vedette--sans-photo {
	background: linear-gradient(160deg, var(--e2it-bleu-profond) 0%, var(--e2it-marine) 70%);
}

.rh-vedette--sans-photo::after {
	display: none;
}

.rh-vedette__haut {
	position: absolute;
	z-index: 1;
	left: 22px;
	right: 22px;
	top: 22px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.rh-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: var(--e2it-rayon-pilule);
	background: var(--e2it-blanc);
	color: var(--e2it-marine);
	font: 500 10px/1 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.rh-badge i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--e2it-accent);
}

.rh-vedette__annee {
	font: 500 11px/1 var(--e2it-police-mono);
	letter-spacing: .12em;
}

.rh-vedette__bas {
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 26px 24px;
}

.rh-vedette__titre {
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 30px;
	line-height: 1.08;
	letter-spacing: -.022em;
	text-wrap: balance;
}

.rh-vedette__demande {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 0 4px;
	border-top: 1px solid rgba(169, 196, 229, .22);
	font-size: 16px;
	line-height: 1.55;
	color: var(--e2it-bleu-clair);
}

.rh-vedette__etiquette {
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

.rh-vedette__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 2px;
}

.rh-vedette__tags span {
	padding: 6px 10px;
	border: 1px solid rgba(169, 196, 229, .45);
	border-radius: var(--e2it-rayon-pilule);
	font: 500 10px/1.2 var(--e2it-police-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rh-vedette__lien {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid rgba(169, 196, 229, .3);
	font-weight: 600;
	font-size: 15px;
}

.rh-vedette__fleche::before {
	content: "→";
	display: inline-block;
	transition: transform .3s var(--e2it-courbe);
}

.rh-vedette:hover .rh-vedette__fleche::before {
	transform: translateX(6px);
}

/* ==================================================================
   Bandeau bas : etapes d une fiche, puis logos. Pas de separateur
   vertical : il doit pouvoir passer sur deux lignes proprement.
   ================================================================== */
.rh-bandeau {
	position: relative;
	z-index: 2;
	border-top: 1px solid rgba(169, 196, 229, .22);
	background: rgba(5, 21, 47, .55);
}

.rh-bandeau__inner {
	max-width: var(--e2it-largeur-contenu, 1240px);
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	column-gap: 48px;
	row-gap: 0;
}

.rh-methode {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	padding: 22px 0;
}

.rh-methode .rh-mono,
.rh-logos .rh-mono {
	flex: none;
	max-width: 120px;
	font-size: 10px;
	letter-spacing: .12em;
}

.rh-methode ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
}

.rh-methode li {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
	font-size: 15px;
}

.rh-methode li > span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--e2it-blanc);
	color: var(--e2it-marine);
	font: 500 10px/1 var(--e2it-police-mono);
}

/* Trait entre deux etapes, sans element de plus dans la liste. */
.rh-methode li + li::before {
	content: "";
	width: 14px;
	height: 1px;
	margin-right: 9px;
	background: rgba(169, 196, 229, .5);
}

.rh-logos {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 18px 0;
	overflow: hidden;
}

.rh-logos__masque {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.rh-logos__bande {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 14px;
	width: max-content;
	animation: rh-defile 46s linear infinite;
}

.rh-logos:hover .rh-logos__bande,
.rh-logos:focus-within .rh-logos__bande {
	animation-play-state: paused;
}

.rh-logos__bande li {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	min-width: 140px;
	padding: 0 22px;
	box-sizing: border-box;
	border-radius: 10px;
	border: 1px solid rgba(169, 196, 229, .24);
	background: rgba(255, 255, 255, .04);
}

/* Logos passes en blanc : la bande reste homogene sur le fond sombre. */
.rh-logos__bande img:not(#e2it) {
	max-height: 28px;
	max-width: 120px;
	width: auto;
	height: auto;
	filter: brightness(0) invert(1);
	opacity: .85;
}

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

/* ==================================================================
   Mobile
   ================================================================== */
@media (max-width: 767px) {
	.rh-hero__inner,
	.rh-bandeau__inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.rh-hero__inner {
		padding-top: calc(92px + 32px);
		padding-bottom: 40px;
		gap: 32px;
	}

	.rh-hero__intro {
		font-size: 16px;
	}

	.rh-onglets {
		align-self: stretch;
	}

	/* Trois onglets sur une ligne, meme a 360 px : texte et pastille
	   resserres. */
	.rh-onglets {
		flex-wrap: nowrap;
		gap: 2px;
	}

	.rh-onglets button {
		flex: 1 1 auto;
		justify-content: center;
		gap: 6px;
		padding: 0 8px;
		font-size: 14px;
	}

	.rh-onglets button span {
		padding: 3px 5px;
	}

	.rh-vedette {
		min-height: 380px;
	}

	.rh-vedette__titre {
		font-size: 24px;
	}

	.rh-methode {
		gap: 12px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rh-logos__bande {
		animation: none;
	}

	.rh-vedette,
	.rh-onglets button,
	.rh-vedette__fleche::before {
		transition: none;
	}
}
