/* =========================================================
   UGCS ALBUMS — EN-TÊTE (liste et détail)
   Repris à l'identique de l'en-tête Actualités (.ugcs-news-entete),
   classes renommées .ugcs-albums-entete pour rester indépendant de
   ce plugin. Toutes les valeurs (tailles, marges, dégradé, largeurs
   de colonnes) sont volontairement identiques.
   ========================================================= */

.ugcs-albums-entete {
	--ugcs-violet: #5B2167;
	--ugcs-violet-hover: #46194F;
	--ugcs-violet-light: #A35BB5;
	--ugcs-dark: #10162F;
	--ugcs-text: #323544;
	--ugcs-muted: #6F7180;
	--ugcs-border: #E3DFE5;
	--ugcs-background: #FFFFFF;

	position: relative;

	width: 100vw;
	max-width: none;

	min-height: 410px;

	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);

	overflow: hidden;

	background: var(--ugcs-background);
}

.ugcs-albums-entete__visual {
	position: absolute;
	z-index: 1;

	top: 0;
	right: 0;
	bottom: 0;

	width: 70%;

	overflow: hidden;
}

.ugcs-albums-entete__visual img {
	position: absolute;
	inset: 0;

	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center 40%;
}

.ugcs-albums-entete__visual::after {
	content: "";
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			90deg,
			#ffffff 0%,
			rgba(255, 255, 255, .98) 12%,
			rgba(255, 255, 255, .92) 26%,
			rgba(255, 255, 255, .70) 40%,
			rgba(255, 255, 255, .35) 55%,
			rgba(255, 255, 255, 0) 70%
		);

	pointer-events: none;
}

.ugcs-albums-entete__wave {
	position: absolute;
	left: 0;
	width: 100%;
	pointer-events: none;
}

.ugcs-albums-entete__wave--top {
	z-index: 5;
	top: -1px;
	height: 82px;
}

.ugcs-albums-entete__wave--top .ugcs-albums-entete__wave-fill {
	fill: var(--ugcs-background);
}

.ugcs-albums-entete__wave--top .ugcs-albums-entete__wave-line {
	fill: none;
	stroke: var(--ugcs-violet-light);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.ugcs-albums-entete__wave--bottom {
	z-index: 5;
	bottom: -1px;
	height: 80px;
}

.ugcs-albums-entete__wave--bottom .ugcs-albums-entete__wave-fill {
	fill: var(--ugcs-background);
}

.ugcs-albums-entete__container {
	position: relative;
	z-index: 3;

	width: min(1240px, calc(100% - 64px));
	min-height: 410px;

	margin: 0 auto;

	display: flex;
	align-items: flex-start;
}

.ugcs-albums-entete__content {
	width: 55%;
	max-width: 620px;

	padding: 65px 0 55px;
}

.ugcs-albums-entete__breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;

	margin: 0 0 50px;

	color: var(--ugcs-dark);
	font-size: 14px;
	line-height: 1.4;
	font-family: var(--global-body-font-family);
}

.ugcs-albums-entete__breadcrumb a {
	color: var(--ugcs-violet);
	text-decoration: none;
}

.ugcs-albums-entete__breadcrumb a:hover,
.ugcs-albums-entete__breadcrumb a:focus-visible {
	text-decoration: underline;
}

.ugcs-albums-entete__breadcrumb-home {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ugcs-albums-entete__breadcrumb-separator {
	color: var(--ugcs-violet-light);
	font-size: 17px;
	line-height: 1;
}

.ugcs-albums-entete__breadcrumb-current {
	color: #646174;
}

.ugcs-albums-entete__title {
	margin: 0;
	padding: 0;

	color: var(--ugcs-dark);
	font-family: var(--global-heading-font-family);
	font-size: clamp(50px, 4.7vw, 70px);
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.035em;
	text-transform: uppercase;
}

.ugcs-albums-entete__separator {
	width: 55px;
	height: 3px;

	margin: 20px 0 0;

	background: var(--ugcs-violet);
}

.ugcs-albums-entete__intro {
	margin-top: 20px;
	max-width: none;
}

.ugcs-albums-entete__intro p {
	margin: 0 0 10px;

	color: var(--ugcs-dark);
	font-size: 16px;
	line-height: 1.55;
	font-family: var(--global-body-font-family);
}

.ugcs-albums-entete__intro p:last-child {
	margin-bottom: 0;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1024px) {

	.ugcs-albums-entete {
		min-height: 370px;
	}

	.ugcs-albums-entete__container {
		width: min(960px, calc(100% - 48px));
		min-height: 370px;
	}

	.ugcs-albums-entete__content {
		width: 50%;
		padding: 55px 0 45px;
	}

	.ugcs-albums-entete__visual {
		width: 68%;
	}

	.ugcs-albums-entete__visual img {
		object-position: 60% center;
	}

	.ugcs-albums-entete__wave--top {
		height: 70px;
	}

	.ugcs-albums-entete__title {
		font-size: clamp(44px, 6vw, 58px);
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.ugcs-albums-entete {
		min-height: auto;
		padding-top: 255px;
	}

	.ugcs-albums-entete__visual {
		top: 0;
		right: 0;
		bottom: auto;

		width: 100%;
		height: 255px;
	}

	.ugcs-albums-entete__visual img {
		object-position: 67% center;
	}

	.ugcs-albums-entete__visual::after {
		background: linear-gradient(
			0deg,
			#ffffff 0%,
			rgba(255, 255, 255, .95) 9%,
			rgba(255, 255, 255, .45) 24%,
			rgba(255, 255, 255, 0) 44%
		);
	}

	.ugcs-albums-entete__container {
		width: calc(100% - 40px);
		min-height: auto;
		display: block;
	}

	.ugcs-albums-entete__content {
		width: 100%;
		max-width: none;
		padding: 50px 0 42px;
	}

	.ugcs-albums-entete__breadcrumb {
		gap: 6px;
		margin-bottom: 35px;
		font-size: 12px;
	}

	.ugcs-albums-entete__title {
		font-size: clamp(38px, 12vw, 48px);
	}

	.ugcs-albums-entete__separator {
		margin-top: 17px;
	}

	.ugcs-albums-entete__wave--top {
		height: 58px;
	}

	.ugcs-albums-entete__wave--bottom {
		height: 55px;
	}

}


/* =========================================================
   FICHE DÉTAIL (plus haute que la liste, rôle de couverture)
   ========================================================= */

@media (min-width: 1025px) {

	.ugcs-albums-single .ugcs-albums-entete,
	.ugcs-albums-single .ugcs-albums-entete__container {
		min-height: 620px;
	}

}

@media (min-width: 768px) and (max-width: 1024px) {

	.ugcs-albums-single .ugcs-albums-entete,
	.ugcs-albums-single .ugcs-albums-entete__container {
		min-height: 560px;
	}

}
