/**
 * Bloc : lg/hero-home
 *
 * Hero plein écran avec slider des univers.
 * Mobile-first : empilé, contenu condensé.
 * Desktop : full viewport, barre univers glass au pied.
 *
 * Figma specs (desktop) :
 * - Section full viewport (100svh)
 * - Gradient overlay : from-black/30 to transparent
 * - Surtitle : Inria Sans Bold 56px, uppercase, white
 * - Title pill : fond blanc, radius 10px, padding 3px 14px
 * - Accent : Inria Sans Bold 72px, #E30613, text-shadow glow
 * - Tabs : pills inline, actif = bg rouge, inactifs = glass (white/40 + blur)
 * - Barre univers : bg-black/20, backdrop-blur, border-top white/10
 * - Logo cards : glass dark (zinc-500/70), radius 10px, shadow lumineux
 *
 * @since 1.0.0
 */

/* ============================================
   SECTION ROOT
   ============================================ */

.lg-hero-home {
	position: relative;
	width: 100%;
	min-height: 100svh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	/* Tirer le hero derrière le header fixe */
	margin-top: -72px;
	background: var(--color-noir-primary);
}

/* ============================================
   BACKGROUND (image + overlay)
   ============================================ */

.lg-hero-home__background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.lg-hero-home__bg-picture {
	display: block;
	width: 100%;
	height: 100%;
}

.lg-hero-home__bg-image {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
	object-position: right;
	transition: opacity var(--transition-slow);
}

/* Figma: gradient from-black/30 to transparent */
.lg-hero-home__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.3) 0%,
		rgba(0, 0, 0, 0) 60%
	);
	z-index: 1;
}

/* ============================================
   INNER — Contenu positionné au-dessus du bg
   ============================================ */

.lg-hero-home__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	flex: 1;
	/* Compenser le header fixe */
	padding-top: calc(72px + var(--space-6));
	padding-left: var(--space-6);
	padding-right: var(--space-6);
}

/* ============================================
   HEADING GROUP — Surtitle + Title + Accent
   Positionné dans la zone libre du hero
   ============================================ */

.lg-hero-home__heading-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	/* justify-content: center; */
	padding-bottom: var(--space-6);
}

/* Surtitle — "LE GROUPE LG" */
.lg-hero-home__surtitle {
	font-family: var(--ff-heading);
	font-size: 1.5rem;
	font-weight: var(--fw-bold);
	font-style: normal;
	text-transform: uppercase;
	line-height: normal;
	color: var(--color-blanc);
	margin-bottom: var(--space-2);
}

/* Title wrapper */
.lg-hero-home__title {
	font-family: var(--ff-heading);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
}

/* Pill — "DES UNIVERS & DES HUMAINS" */
.lg-hero-home__title-pill {
	display: inline-block;
	background: var(--color-blanc);
	color: var(--color-noir-primary);
	padding: 3px 14px;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: var(--fw-bold);
	font-style: normal;
	line-height: normal;
	text-transform: uppercase;
	margin-bottom: var(--space-2);
}

/* Accent — "EN MOUVEMENT." */
.lg-hero-home__title-accent {
	display: block;
	color: var(--color-accent);
	font-size: 2.125rem;
	font-weight: var(--fw-bold);
	font-style: italic;
	line-height: normal;
	text-transform: uppercase;
	text-shadow: 0 0 4px rgba(255, 255, 255, 0.70);
	margin-top: var(--space-2);
}

/* ============================================
   TABS UNIVERS — Pills inline
   Figma : actif = bg rouge, inactifs = glass
   ============================================ */

.lg-hero-home__tabs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	gap: var(--space-3);
	padding-bottom: var(--space-5);
}

.lg-hero-home__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	font-family: var(--ff-heading);
	font-size: var(--fs-body);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	color: var(--color-blanc);
	background: transparent;
	border: none;
	border-radius: var(--radius-pill);
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	line-height: 1.75;
	transition:
		background var(--transition-base),
		color var(--transition-base),
		border-color var(--transition-base);
}

/* Glass inactif — Figma: bg-white/40, border stone-300, backdrop-blur */
.lg-hero-home__tab--glass {
	background: rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(214, 211, 209, 1);
	backdrop-filter: blur(10px);
	color: var(--color-noir-primary);
	font-weight: var(--fw-regular);
}

.lg-hero-home__tab--glass:hover {
	background: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

/* Active tab — Figma: bg rouge plein */
.lg-hero-home__tab--active {
	background: var(--color-rouge-lg);
	color: var(--color-blanc);
	font-weight: var(--fw-bold);
	border: none;
}

.lg-hero-home__tab--active:hover {
	background: #BF1E10;
}

/* Icône lien externe */
.lg-hero-home__tab-external {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	opacity: 0.7;
	display: none;
}

/* ============================================
   BARRE UNIVERS — Glass dark au pied du hero
   Figma: bg-black/20, backdrop-blur, border-top white/10
   ============================================ */

.lg-hero-home__universe {
	position: relative;
	z-index: 2;
	width: 100%;
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	color: var(--color-blanc);
}

.lg-hero-home__universe-inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	padding: var(--space-6);
}

.lg-hero-home__universe[hidden] {
	display: none;
}

/* Texte univers */
.lg-hero-home__universe-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
}

.lg-hero-home__universe-name {
	font-family: var(--ff-heading);
	font-size: var(--fs-h3);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	text-align: center;
	color: var(--color-blanc);
	line-height: var(--lh-heading);
}

.lg-hero-home__universe-slogan {
	font-family: var(--ff-heading);
	font-size: var(--fs-h2);
	font-weight: var(--fw-bold);
	text-align: center;
	color: var(--color-blanc);
	line-height: var(--lh-heading);
}

.lg-hero-home__universe-desc {
	font-family: var(--ff-body);
	font-size: 1rem;
	font-weight: var(--fw-bold);
	line-height: var(--lh-body);
	text-align: center;
	color: var(--color-blanc);
	width: 28.375rem;
}

/* ============================================
   LOGO GRID — Glass dark
   Figma: bg zinc-500/70, radius 10px, shadow lumineux
   Grille fixe des 6 premières marques
   ============================================ */

.lg-hero-home__logos-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-3);
	flex: 1;
}

/* Carte logo */
.lg-hero-home__logo-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 72px;
	padding: var(--space-2);
	background: rgba(113, 113, 122, 0.7);
	border-radius: 10px;
	/* box-shadow: 0 4px 10px rgba(255, 255, 255, 0.25); */
	box-shadow: 0 4px 10px 0 rgba(255, 255, 255, 0.25);
	text-decoration: none;
	transition:
		background var(--transition-base),
		box-shadow var(--transition-base);
}

.lg-hero-home__logo-card:hover {
	background: rgba(113, 113, 122, 0.85);
	/* box-shadow: 0 4px 16px rgba(255, 255, 255, 0.35); */
	text-decoration: none;
}

.lg-hero-home__logo-card-arrow {
	position: absolute;
	top: var(--space-2);
	right: var(--space-2);
	color: var(--color-blanc);
	opacity: 0.8;
	display: flex;
	width: 0.6875rem;
	height: 0.6875rem;
	justify-content: center;
	align-items: center;
	background-color: var(--color-rouge-lg);
	border-radius: 100%;
	aspect-ratio: 1/1;
}

.lg-hero-home__logo-card-arrow svg {
	width: 0.25rem;
	height: 0.25rem;
	flex-shrink: 0;
	aspect-ratio: 1/1;
}

.lg-hero-home__logo {
	max-width: 100%;
	max-height: 28px;
	-o-object-fit: contain;
	   object-fit: contain;
}

/* ============================================
   TABLET (≥ 768px)
   ============================================ */

@media (min-width: 768px) {

	.lg-hero-home__tabs {
		max-width: 75%;
		flex-wrap: wrap;
	}

	/* Surtitle — tablette */
	.lg-hero-home__surtitle {
		font-size: 1.625rem;
	}

	/* Pill — tablette */
	.lg-hero-home__title-pill {
		font-size: 1.25rem;
	}

	/* Accent — tablette */
	.lg-hero-home__title-accent {
		font-size: 2.625rem;
	}

	.lg-hero-home__universe-text {
		flex: 0 0 40%;
	}

	.lg-hero-home__logos-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.lg-hero-home__logo-card-arrow {
		width: 1.00356rem;
		height: 1.00356rem;
	}

	.lg-hero-home__logo-card-arrow svg {
		width: 0.25rem;
		height: 0.25rem;
	}
}

/* ============================================
   DESKTOP (≥ 1024px)
   ============================================ */

@media (min-width: 1024px) {
	.lg-hero-home__bg-picture {
		object-position: center;
	}

	.lg-hero-home {
		margin-top: -76px;
	}

	.lg-hero-home__inner {
		width: 100%;
		max-width: 1440px;
		margin: 0 auto;
		padding-top: calc(76px + var(--space-12));
		padding-left: var(--container-px);
		padding-right: var(--container-px);
	}

	/* Surtitle — Figma desktop: 56px / 80px */
	.lg-hero-home__surtitle {
		font-size: 3.5rem;
		line-height: 5rem;
	}

	/* Title pill — Figma desktop: 40px */
	.lg-hero-home__title-pill {
		font-size: 2.5rem;
	}

	/* Accent — Figma desktop: 72px / 80px */
	.lg-hero-home__title-accent {
		font-size: 4.5rem;
		line-height: 5rem;
		text-shadow: 0 0 10px rgba(255, 255, 255, 0.50);
		padding-left: 3.75rem;
	}

	/* Tabs */
	.lg-hero-home__tabs {
		max-width: 500px;
	}
	.lg-hero-home__tab {
		font-size: var(--fs-body);
		padding: 4px 12px;
	}

	/* Universe bar */
	.lg-hero-home__universe-inner {
		width: 100%;
		max-width: 1440px;
		margin: 0 auto;
		flex-direction: row;
		align-items: center;
		padding: var(--space-8) var(--container-px);
		gap: var(--space-10);
	}

	.lg-hero-home__universe-text {
		flex: 0 0 28.375rem;
		width: 28.375rem;
		align-items: flex-start;
	}

	.lg-hero-home__universe-name,
	.lg-hero-home__universe-slogan,
	.lg-hero-home__universe-desc {
		text-align: left;
	}

	.lg-hero-home__universe-desc {
		font-size: 1.125rem;
	}

	.lg-hero-home__logos-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-4);
	}

	.lg-hero-home__logo-card {
		padding: var(--space-4);
	}

	.lg-hero-home__logo-card-arrow {
		width: 1.25rem;
		height: 1.25rem;
	}

	.lg-hero-home__logo-card-arrow svg {
		width: 0.375rem;
		height: 0.375rem;
	}

	.lg-hero-home__logo {
		max-width: 150px;
		max-height: 30px;
	}
}

/* ============================================
   LARGE DESKTOP (≥ 1440px)
   ============================================ */

@media (min-width: 1440px) {
	/* .lg-hero-home__inner {
		padding-left: 0;
		padding-right: 0;
	} */

	/* Même contrainte max-width sur les enfants de __inner et __universe */
	.lg-hero-home__heading-group {
		max-width: 1440px;
		/* margin-left: auto; */
		/* margin-right: auto; */
		/* padding-left: var(--space-10); */
		/* padding-right: var(--space-10); */
	}

	.lg-hero-home__universe-inner {
		max-width: 1440px;
		margin-left: auto;
		margin-right: auto;
	}
}
