﻿/* HEADER composite em-site (fond partage + colonnes hero/slider). */

.em-section--header .em-rubrique.em-header-shell {
	background-color: var(--em-rubrique-bg, transparent);
}

.em-section--header {
	position: relative;
}

.em-header-switch {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 2px 4px;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--em-header-switch-color, #fff);
}

.em-header-switch__btn {
	width: 28px;
	height: 28px;
	border: 1px solid color-mix(in srgb, currentColor 75%, transparent);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-weight: 700;
	cursor: pointer;
}

.em-header-switch__btn:hover {
	background: color-mix(in srgb, currentColor 16%, transparent);
}

.em-header-switch__dots {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.em-header-switch__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	color: inherit;
	background: currentColor;
	opacity: .45;
	cursor: pointer;
}

.em-header-switch__dot.is-active {
	opacity: 1;
}

.em-header-instance {
	transition: opacity .2s ease;
}

.em-header-instance:not(.is-active) {
	opacity: 0;
}

.em-section--header .em-header-shell::before {
	filter: brightness(1.18) saturate(0.92);
}

.em-section--header .em-header-shell__inner {
	position: relative;
	z-index: 1;
	width: min(1100px, 92vw);
	margin: 0 auto;
	padding: 44px 0 68px;
	display: grid;
	gap: 28px;
	align-items: start;
}

.em-section--header .em-header-shell__inner.is-single {
	grid-template-columns: minmax(0, 1fr) !important;
}

.em-section--header .em-header-shell__col {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.em-section--header .em-header-shell__col--slider .em-rubrique,
.em-section--header .em-header-shell__col--slider .em-rubrique__row,
.em-section--header .em-header-shell__col--slider .em-rubrique__col {
	width: 100%;
}

.em-section--header .em-header-shell__col--slider .em-slider--shared {
	width: 100%;
	max-width: 430px;
	margin: 0 auto;
}

.em-section--header .em-header-shell .em-rubrique {
	background-color: transparent !important;
}

.em-section--header .em-header-shell .em-rubrique::before {
	display: none !important;
}

.em-section--header .em-header-shell__col--slider .em-rubrique {
	padding-left: 0 !important;
	padding-right: 0 !important;
	overflow: visible;
	padding-bottom: 12px;
	padding-right: 12px !important;
}

.em-section--header .em-rubrique__button {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 999px;
	font-family: "Archivo Black", Arial, sans-serif;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .03em;
	text-decoration: none;
	border: 2px solid #111;
	box-shadow: 0 4px 0 rgba(0, 0, 0, .45);
	line-height: 1.1;
	margin-bottom: 10px;
	transform-origin: center;
}

.em-section--header .em-rubrique__button:hover {
	filter: brightness(1.06);
}

@media (max-width: 960px) {
	.em-section--header .em-header-shell__inner,
	.em-section--header .em-header-shell__inner.is-slider-first {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

@media (max-width: 760px) {
	.em-section--header .em-header-shell__inner,
	.em-section--header .em-header-shell__inner.is-slider-first {
		padding-top: 2px;
		padding-bottom: 30px;
		gap: 12px;
	}

	.em-section--header .em-rubrique__row[data-em-has-button="1"] {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center;
		gap: 8px;
	}

	.em-section--header .em-rubrique__row[data-em-has-button="1"] > .em-rubrique__col[data-em-has-button="1"] {
		width: 100% !important;
		min-width: 0;
		flex: 1 1 auto;
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 10px;
	}

	.em-section--header .em-rubrique__row[data-em-has-button="1"] .em-rubrique__button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		white-space: nowrap;
		flex: 1 1 0;
		min-width: 0;
		margin-right: 0 !important;
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}
}

