/**
 * Noticlub Elementor widget: Hero overlay (frontend + editor preview).
 *
 * Maquette Figma : bloc texte 810px centré ; titre en escalier vers la droite
 * (VOS à gauche, ÉVÉNE décalée à droite, MENTS. encore plus à droite) ;
 * description à droite du titre, calée en haut ; losange blanc après MENTS.
 * Toucher au design par défaut touchera à la page vos evenements
 */

.noticlub-hero-overlay {
	position: relative !important;
	display: flex !important;
	box-sizing: border-box !important;
	width: 100% !important;
	overflow-x: hidden !important;
	background-color: transparent !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	background-position: center center !important;
	background-image: var(--noticlub-hero-bg-desktop) !important;
}

@media (max-width: 767px) {
	.noticlub-hero-overlay {
		background-image: var(--noticlub-hero-bg-mobile, var(--noticlub-hero-bg-desktop)) !important;
	}
}

.noticlub-hero-overlay__content {
	position: relative !important;
	z-index: 1 !important;
	box-sizing: border-box !important;
	width: min(100%, 810px) !important;
	max-width: 810px !important;
	flex: 0 1 auto !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.noticlub-hero-overlay__grid:not(.noticlub-hero-overlay__grid--split) {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.5em !important;
	align-items: flex-start !important;
}

.noticlub-hero-overlay__heading {
	margin: 0 !important;
	font-family: Extime, sans-serif !important;
	font-weight: 100 !important;
	font-size: 170px !important;
	line-height: 0.95 !important;
	letter-spacing: 0.02em !important;
	text-transform: uppercase !important;
}

.noticlub-hero-overlay__grid:not(.noticlub-hero-overlay__grid--split) .noticlub-hero-overlay__heading {
	max-width: 100% !important;
}

.noticlub-hero-overlay__heading--contents {
	display: contents !important;
}

.noticlub-hero-overlay__grid--split {
	display: grid !important;
	grid-template-columns: max-content minmax(16rem, 13rem) !important;
	grid-template-rows: auto auto auto !important;
	align-items: start !important;
	justify-content: center !important;
	justify-items: stretch !important;
	column-gap: 1.5rem !important;
	row-gap: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Propriétés communes aux 3 spans du titre */
.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span {
	grid-column: 1 !important;
	justify-self: start !important;
	text-align: left !important;
	width: max-content !important;
	max-width: 100% !important;
	padding: 0 !important;
	font: inherit !important;
	color: inherit !important;
	text-transform: inherit !important;
	letter-spacing: inherit !important;
}

/* L1 — VOS : légèrement indentée vers la droite */
.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
	grid-row: 1 !important;
	margin: 0 0 -0.08em 0 !important;
	transform: translateX(300px) !important;
}

/* L2 — ÉVÉNE : ligne la plus à gauche (sans indent) */
.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(2) {
	grid-row: 2 !important;
	margin: -0.05em 0 0 0 !important;
}

/* Description : colonne droite, centrée verticalement sur le titre */
.noticlub-hero-overlay__grid--split > .noticlub-hero-overlay__description {
	grid-column: 2 !important;
	grid-row: 2 !important;
	align-self: start !important;
	justify-self: start !important;
	text-align: left !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 13rem !important;
	margin-top: 2rem !important;
	font-family: Extime, sans-serif !important;
	font-weight: 300 !important;
	font-size: 20px !important;
	line-height: 26px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

/* L3 — MENTS. : plus à droite que VOS + losange */
.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
	grid-row: 3 !important;
	margin: -0.05em 0 0 0 !important;
	transform: translateX(240px) !important;
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: flex-end !important;
	flex-wrap: nowrap !important;
	gap: 0.1em !important;
}

.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child::after {
	content: "" !important;
	display: block !important;
	flex-shrink: 0 !important;
	width: 30px !important;
	height: 30px !important;
	margin-inline-start: 0 !important;
	margin-bottom: 15px !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 78 20 24'%3E%3Cpath fill='%23ffffff' d='M20 90L10 80L0 90L10 100L20 90Z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: contain !important;
}

.noticlub-hero-overlay__description {
	margin: 0 !important;
}

.noticlub-hero-overlay__grid:not(.noticlub-hero-overlay__grid--split) .noticlub-hero-overlay__description {
	font-family: Extime, sans-serif !important;
	font-weight: 400 !important;
	font-size: 20px !important;
	line-height: 1.35 !important;
	max-width: 36em !important;
}

@media (max-width: 960px) {
	.noticlub-hero-overlay__heading {
		font-size: clamp(3rem, 16vw, 9rem) !important;
		line-height: 0.85 !important;
	}

	.noticlub-hero-overlay__grid--split {
		grid-template-columns: max-content minmax(9rem, 12rem) !important;
		column-gap: 1rem !important;
	}
}

@media (max-width: 767px) {
	.noticlub-hero-overlay__heading {
		font-size: clamp(2.5rem, 13vw, 5rem) !important;
		line-height: 0.88 !important;
	}

	/* Mobile : le h1 redevient un bloc normal, plus de display:contents */
	.noticlub-hero-overlay__heading--contents {
		display: block !important;
		width: max-content !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		text-align: left !important;
	}

	/* Grille devient flex column centrée : titre puis description */
	.noticlub-hero-overlay__grid--split {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		grid-template-columns: none !important;
		row-gap: 1.25rem !important;
		column-gap: 0 !important;
	}

	/* Spans du titre : lignes empilées, on garde le translateX de l'escalier */
	.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span {
		display: block !important;
		grid-column: auto !important;
		grid-row: auto !important;
		justify-self: auto !important;
		font-weight: 100 !important;
	}

	.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
		display: inline-flex !important;
	}

	/* Réinitialiser les transforms desktop et appliquer un léger décalage mobile */
	.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
		transform: translateX(8vw) !important;
	}

	.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(2) {
		transform: none !important;
	}

	.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
		transform: translateX(4vw) !important;
	}

	/* Description : sous le titre, centrée */
	.noticlub-hero-overlay__grid--split > .noticlub-hero-overlay__description {
		grid-column: auto !important;
		grid-row: auto !important;
		align-self: auto !important;
		justify-self: auto !important;
		order: 2 !important;
		text-align: center !important;
		margin: 0 !important;
        margin-left: -45px !important;
		max-width: 230px !important;
		font-size: clamp(0.95rem, 3.5vw, 1.125rem) !important;
	}

	.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading {
		order: 1 !important;
	}

	.noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child::after {
		width: 14px !important;
		height: 14px !important;
	}
}


/**
 * Déjeuner d'entreprise
 * .page-id-6224
 */
.page-id-6224 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
    transform: translateX(128px) !important;
}

.page-id-6224 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(2) {
    transform: translateX(50px) !important;
}

.page-id-6224 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
    transform: translateX(600px) !important;
}

@media (max-width: 960px) {
    .page-id-6224 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
        transform: translateX(50px) !important;
        margin: 0 !important;
    }

    .page-id-6224 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(2) {
        transform: translateX(50px) !important;
    }

    .page-id-6224 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
        transform: translateX(50px) !important;
    }
}

/**
 * Diner d'entreprise
 * .page-id-6179
 */
.page-id-6179 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(3) {
    transform: translateX(450px) !important;
}

/**
 * Seminaire
 * .page-id-6207
 */
.page-id-6207 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
    margin: 0 !important;
    transform: translateX(100px) !important;
}

.page-id-6207 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
    transform: translateX(280px) !important;
}

@media (max-width: 960px) {
    .page-id-6207 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
        transform: translateX(-40px) !important;
    }

    .page-id-6207 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
        transform: translateX(80px) !important;
    }
}

/**
 * Mariage
 * .page-id-6093
 */
.page-id-6093 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
    margin: 0 !important;
    transform: translateX(100px) !important;
}

/**
 * Evenements sur mesure
 * .page-id-6261
 * 4 blocs (Evéne / ments / sur / mesure) au lieu des 3 habituels.
 * La grille de base ne définit une grid-row explicite que pour les
 * spans 1, 2 et :last-child (cas à 3 blocs) : le 3e span ("sur") n'a
 * donc pas de grid-row et se retrouve auto-placé sur une ligne
 * implicite tout en bas. On ajoute ici une 4e ligne de grille et on
 * positionne explicitement "sur" (grid-row 3) et "mesure" (grid-row 4).
 */
.page-id-6261 .noticlub-hero-overlay__grid--split {
    grid-template-rows: auto auto auto auto !important;
}

.page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
    margin: 0 !important;
    transform: translateX(50px) !important;
}

.page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(2) {
    transform: translateX(350px) !important;
}

.page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(3) {
    grid-row: 3 !important;
    transform: translateX(150px) !important;
}

.page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
    grid-row: 4 !important;
    transform: translateX(300px) !important;
}

@media (max-width: 1024px) {
    .page-id-6261 .noticlub-hero-overlay__heading {
        font-size: clamp(2rem, 16vw, 4rem) !important;
    }

    .page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
        transform: translateX(100px) !important;
    }

    .page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(2) {
        transform: translateX(150px) !important;
    }

    .page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(3) {
        transform: translateX(120px) !important;
    }

    .page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
        transform: translateX(130px) !important;
    }
}

@media (max-width: 767px) {
    .page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
        transform: translateX(-20px) !important;
    }

    .page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(2) {
        transform: translateX(80px) !important;
    }

    .page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(3) {
        transform: translateX(30px) !important;
    }

    .page-id-6261 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:last-child {
        transform: translateX(65px) !important;
    }
}

/**
 * Noti Plage
 * .page-id-2182
 */
.page-id-2182 .noticlub-hero-overlay__grid--split .noticlub-hero-overlay__heading > span:nth-of-type(1) {
    transform: translateX(100px) !important;
}
