/**
 * Landing · choix de l'univers (maquettes Entree.dc.html et Entree-mobile.dc.html).
 */

/* Seule intervention sur l'en-tête : masqué quand la page commence par ce bloc (réglage
   « Masquer l'en-tête du site », classe posée par inc/univers/blocs.php). */
body.iav-landing-sans-entete #masthead {
	display: none;
}

.iav-bloc.iav-landing {
	--iav-texte: var(--wp--custom--iav--texte, #111111);
	position: relative;
	/* L'écran entier (640 px au moins) ; sous 800 px les portes empilées font défiler. */
	min-height: max(640px, 100vh);
	min-height: max(640px, 100svh);
	display: flex;
	flex-direction: column;
	background: var(--wp--custom--iav--fond, #ffffff);
	color: var(--iav-texte);
	line-height: 1.6;
}

/* Ligne du logo : recherche (IAV-28) ou vide | logo (H1) | FR / EN. Au-dessus des portes : sur
   mobile, le champ de recherche s'ouvre en dessous de la ligne (univers-navigation.css). */
.iav-landing__marque {
	position: relative;
	z-index: 3;
	flex: none;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 16px 24px;
}

/* Même place que dans l'en-tête du site (.iav-entete__gauche). */
.iav-landing__recherche {
	justify-self: start;
	display: flex;
	align-items: center;
	min-width: 0;
}

.iav-landing__centre {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.iav-bloc .iav-landing__logo {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.iav-landing__logo-image {
	display: block;
	width: 160px;
	max-width: none;
	height: auto;
}

.iav-landing__logo-image--inverse {
	filter: invert(1);
}

.iav-bloc .iav-landing__sous-titre {
	--primaryFontSize: 11px;
	--lineHeight: 16px;
	margin: 0;
	padding: 0 !important;
	font-size: 11px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--wp--custom--iav--texte-discret, #555555);
}

.iav-landing .iav-landing__langues {
	justify-self: end;
}

/* Portes. */
.iav-landing__portes {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.iav-bloc .iav-landing__porte {
	--primaryColor: #ffffff;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(40px, 7vh, 72px) 32px;
	color: #ffffff;
	text-align: center;
	text-decoration: none;
}

.iav-bloc .iav-landing__porte--fonce {
	--primaryColor: var(--iav-texte);
	color: var(--iav-texte);
}

.iav-bloc a.iav-landing__porte:hover,
.iav-bloc a.iav-landing__porte:focus-visible {
	color: #ffffff;
}

.iav-bloc a.iav-landing__porte--fonce:hover,
.iav-bloc a.iav-landing__porte--fonce:focus-visible {
	color: var(--iav-texte);
}

.iav-bloc a.iav-landing__porte:focus-visible {
	outline: 2px solid var(--iav-texte);
	outline-offset: -6px;
}

.iav-bloc .iav-landing__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(0.3);
	transform: scale(var(--iav-zoom, 1));
	transition: transform 0.8s ease, filter 0.4s ease;
}

/* Survol : la porte s'éclaire (IAV-15, IAV-16 : demande de la cliente du 24/11) ; image en
   couleurs pleines, plus lumineuse, voile retiré. */
.iav-bloc a.iav-landing__porte:hover .iav-landing__image,
.iav-bloc a.iav-landing__porte:focus-visible .iav-landing__image {
	filter: grayscale(0) brightness(1.15);
	transform: scale(calc(var(--iav-zoom, 1) * 1.03));
}

.iav-landing__voile,
.iav-landing__halo {
	position: absolute;
	inset: 0;
}

.iav-landing__voile {
	background: var(--iav-voile-couleur, rgba(40, 40, 40, 0.14));
	transition: opacity 0.4s ease;
}

.iav-bloc a.iav-landing__porte:hover .iav-landing__voile,
.iav-bloc a.iav-landing__porte:focus-visible .iav-landing__voile {
	opacity: 0;
}

/* Texte clair : halo sombre derrière le texte (maquette, porte Inland). */
.iav-landing__halo {
	background: radial-gradient(ellipse 70% 40% at 50% 50%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
}

.iav-landing__contenu {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.iav-landing__surtitre {
	margin-bottom: 12px;
	font-size: 11px;
	line-height: 1.5;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.iav-bloc .iav-landing__titre {
	margin: 0;
	padding-left: 0.22em;
	font-family: var(--wp--preset--font-family--work-sans), sans-serif;
	font-size: clamp(48px, 6vw, 88px);
	line-height: 1;
	font-weight: 200;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: inherit;
}

.iav-landing__texte {
	margin-top: 10px;
	font-size: 19px;
	line-height: 1.5;
	font-weight: 300;
}

.iav-landing__bouton {
	margin-top: 24px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.iav-landing__bouton .iav-icone {
	transition: transform 0.2s ease;
}

.iav-bloc a.iav-landing__porte:hover .iav-landing__bouton .iav-icone,
.iav-bloc a.iav-landing__porte:focus-visible .iav-landing__bouton .iav-icone {
	transform: translateX(6px);
}

/* Texte clair : ombres de la maquette. */
.iav-landing__porte--clair .iav-landing__titre {
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.iav-landing__porte--clair .iav-landing__texte {
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Outland : nom en graisse 800, sans espacement ; accroche en 500. */
.iav-bloc .iav-landing__porte--outland .iav-landing__titre {
	padding-left: 0;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.iav-landing__porte--outland .iav-landing__texte {
	font-weight: 500;
}

/* Mobile : portes empilées. */
@media (max-width: 800px) {
	.iav-bloc.iav-landing {
		min-height: 100vh;
		min-height: 100svh;
	}

	.iav-landing__portes {
		grid-template-columns: 1fr;
		grid-auto-rows: minmax(420px, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.iav-bloc .iav-landing__image,
	.iav-landing__voile,
	.iav-landing__bouton .iav-icone {
		transition: none;
	}
}
