/* Equerre d'argent 2026 (Espace Ambroise Croizat): home carousel label + header seal */

:root {
	--eq-terre: #9a5a3c;
	--eq-paper: #f6f4f3;
	--eq-paper-hover: #efebe8;
	--eq-paper-veil: rgba(246, 244, 243, .5);
	--eq-paper-veil-hover: rgba(246, 244, 243, .8);
	--eq-ink: #2b2522;
	--eq-ink-soft: #6b5d57;
	--eq-ease: cubic-bezier(.25, 1, .5, 1);
}

/* Museum label on the award slide (desktop) */
.eq-cartel-wrap {
	position: absolute;
	left: 0;
	right: 0;
	/* keep the label inside the first viewport when the slide is taller than the screen */
	bottom: max(3.25rem, calc(100% - 100vh + 3.25rem));
	z-index: 5;
	pointer-events: none;
}

.eq-cartel {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 1.25rem;
	max-width: 30rem;
	padding: 1.1rem 1.6rem 1.1rem 1.1rem;
	background: var(--eq-paper);
	color: var(--eq-ink) !important;
	font-family: 'Raleway', sans-serif;
	text-decoration: none !important;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .7s var(--eq-ease) .4s, transform .7s var(--eq-ease) .4s;
}

.carousel-item.active .eq-cartel {
	opacity: 1;
	transform: none;
}

.eq-cartel img {
	width: 104px;
	height: auto;
	flex: none;
}

.eq-cartel-text {
	display: flex;
	flex-direction: column;
	font-size: .9375rem;
	line-height: 1.4;
	color: var(--eq-ink-soft);
}

.eq-cartel-title {
	font-size: 1.6rem;
	line-height: 1.15;
	font-weight: 400;
	color: var(--eq-ink);
	margin-bottom: .35rem;
}

.eq-cartel-link {
	margin-top: .6rem;
	color: var(--eq-terre);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .25em;
}

.eq-cartel-link::after {
	content: "\2192";
	display: inline-block;
	margin-left: .4em;
	transition: transform .3s var(--eq-ease);
}

.eq-cartel:hover .eq-cartel-link::after,
.eq-cartel:focus-visible .eq-cartel-link::after {
	transform: translateX(3px);
}

/* Same label under the carousel below 992px */
#eq-cartel-mobile {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 15px;
	background: var(--eq-paper);
	color: var(--eq-ink) !important;
	font-family: 'Raleway', sans-serif;
	text-decoration: none !important;
}

#eq-cartel-mobile img {
	width: 68px;
	height: auto;
	flex: none;
}

#eq-cartel-mobile .eq-cartel-title {
	font-size: 1.2rem;
	margin-bottom: .15rem;
}

/* Header seal under Contact (desktop) */
#eq-sceau {
	position: absolute;
	top: 78px;
	left: calc(100% - 300px);
	z-index: 20000;
	flex-direction: column;
	align-items: flex-start;
	gap: .45rem;
	padding: .7rem .8rem .6rem;
	background: var(--eq-paper-veil);
	color: var(--eq-ink-soft) !important;
	font-family: 'Raleway', sans-serif;
	font-size: .8125rem;
	line-height: 1.3;
	text-decoration: none !important;
	transition: background-color .2s var(--eq-ease);
}

#eq-sceau img {
	width: 96px;
	height: auto;
}

#eq-sceau:hover,
#eq-sceau:focus-visible {
	background: var(--eq-paper-veil-hover);
}

/* Home: the seal only shows while another slide than the award one is displayed */
#eq-sceau.eq-sceau--sync {
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .5s var(--eq-ease), transform .5s var(--eq-ease), visibility 0s linear .5s, background-color .2s var(--eq-ease);
}

#eq-sceau.eq-sceau--sync.is-on {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .5s var(--eq-ease) .2s, transform .5s var(--eq-ease) .2s, visibility 0s, background-color .2s var(--eq-ease);
}

/* Seal in the mobile navbar (inner pages) */
.eq-sceau-mobile {
	margin-left: auto;
	margin-right: 1rem;
}

.eq-sceau-mobile img {
	width: 56px;
	height: auto;
}

/* Pages (Agence, Approche): hashtags sit at the bottom of the photo, clear of the seal */
@media (min-width: 992px) {
	.page-template-default #tagline {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		margin-top: 0;
		padding-top: 8.5rem;
	}

	.page-template-default #tagline > :last-child {
		margin-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eq-cartel,
	#eq-sceau.eq-sceau--sync,
	#eq-sceau.eq-sceau--sync.is-on,
	.eq-cartel-link::after {
		transition: none;
	}

	.eq-cartel {
		opacity: 1;
		transform: none;
	}
}
