/* Utopia – Méga-menu CCPLM */
.umm {
	--umm-teal: #206269;
	--umm-teal-dark: #17484d;
	--umm-yellow: #f6c841;
	--umm-orange: #f28b41;
	--umm-text: #23393b;
	--umm-line: #dce7e6;
	--umm-font: 'Avenir', 'Avenir Next', system-ui, sans-serif;            /* texte + onglets */
	--umm-font-cn: var(--umm-font);                                        /* onglets, titres de colonnes */
	--umm-font-title: 'Comfortaa', var(--umm-font);                        /* titre de rubrique (bloc gauche) */
	--umm-color: #fff; /* couleur des onglets (blanc sur le hero) */

	position: relative;
	z-index: 50;
	font-family: var(--umm-font);
	padding: 22px 40px;
}
.umm ul { list-style: none; margin: 0; padding: 0; }

/* ---- Barre ---- */
.umm__bar {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 64px;
}
.umm__item { position: static; }
.umm__top {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 6px 0 10px;
	color: var(--umm-color);
	font-family: var(--umm-font-cn);
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .2s ease;
}
.umm__top::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 0;
	border-radius: 2px;
	background: var(--umm-yellow);
	transition: width .3s cubic-bezier(.2, .7, .2, 1);
}
.umm__top:hover,
.umm__top:focus-visible,
.umm__item.is-open > .umm__top,
.umm__item.is-current > .umm__top { color: var(--umm-yellow); text-decoration: none; }
.umm__item.is-open > .umm__top::after,
.umm__item.is-current > .umm__top::after { width: 100%; }
.umm__top:focus-visible { outline: 2px solid var(--umm-yellow); outline-offset: 4px; border-radius: 2px; }
.umm__num { color: var(--umm-yellow); font-size: 12.5px; padding-top: 1px; }
.umm__label { display: flex; flex-direction: column; }
.umm__chev {
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: .85;
	transition: transform .25s ease;
}
.umm__item.is-open .umm__chev { transform: rotate(180deg); }

/* ---- Panneau ---- */
.umm__panel {
	position: absolute;
	top: 100%;
	left: 50%;
	translate: -50% 0;
	width: min(1240px, calc(100vw - 80px));
	margin-top: -6px;
	display: flex;
	flex-wrap: wrap;
	background: #fff;
	color: var(--umm-text);
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 28px 70px rgba(15, 46, 50, .34);
	text-align: left;
	animation: ummIn .32s cubic-bezier(.2, .7, .2, 1);
}
.umm__panel[hidden] { display: none; }
@keyframes ummIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: none; }
}

/* Bloc gauche */
.umm__intro {
	flex: 0 1 300px;
	min-width: 240px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 36px 34px;
	background: var(--umm-teal);
	color: #fff;
}
.umm__intro-num {
	font-family: var(--umm-font-cn);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .1em;
	color: var(--umm-yellow);
}
.umm__intro-title {
	margin: 0;
	font-family: var(--umm-font-title);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.15;
	color: #fff;
	text-wrap: balance;
}
.umm__vague { display: block; width: 92px; height: auto; }
.umm__intro-text { margin-top: 4px; font-size: 15px; line-height: 1.5; opacity: .9; text-wrap: pretty; }
.umm__intro-text > :first-child { margin-top: 0; }
.umm__intro-text > :last-child { margin-bottom: 0; }
.umm__cta {
	margin-top: auto;
	padding-top: 18px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}
.umm__cta:hover, .umm__cta:focus-visible { color: var(--umm-yellow); text-decoration: none; }
.umm__arrow {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s ease;
}
.umm__cta:hover .umm__arrow { transform: translateX(3px); }

/* Colonnes */
.umm__groups {
	flex: 999 1 520px;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	align-content: start;
	gap: 28px 36px;
	padding: 36px 40px;
}
.umm__group { display: flex; flex-direction: column; gap: 4px; }
.umm__group-title {
	display: block;
	margin: 0 0 6px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--umm-line);
	font-family: var(--umm-font-cn);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--umm-teal);
	text-decoration: none;
}
a.umm__group-title:hover { color: var(--umm-teal-dark); text-decoration: none; }
.umm__links a {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 5px 0;
	color: var(--umm-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}
.umm__links a::before {
	content: '';
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--umm-orange);
	transform: translateY(-2px);
}
.umm__links a:hover,
.umm__links a:focus-visible,
.umm__links a[aria-current] { color: var(--umm-teal); text-decoration: none; }

/* Bloc droit : image mise en avant */
.umm__media {
	flex: 1 1 260px;
	min-width: 0;
	display: flex;
	padding: 28px 28px 28px 0;
}
.umm__img {
	display: block;
	flex: 1;
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	border-radius: 20px;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

/* ---- Intégration dans l'en-tête Kadence ---- */
.umm--embedded { padding: 0; }
.header-navigation .umm .umm__item,
.main-navigation .umm .umm__item { position: static; margin: 0; }
.header-navigation .umm a.umm__top,
.main-navigation .umm a.umm__top { color: var(--umm-color); padding: 6px 0 10px; }
.header-navigation .umm a.umm__top:hover,
.header-navigation .umm .is-open > a.umm__top,
.header-navigation .umm .is-current > a.umm__top { color: var(--umm-yellow); }
.header-navigation .umm .umm__links a { color: var(--umm-text); padding: 5px 0; }
.header-navigation .umm .umm__links a:hover { color: var(--umm-teal); }
.header-navigation .umm .umm__cta { color: #fff; }
.header-navigation .umm .umm__cta:hover { color: var(--umm-yellow); }
/* le panneau doit pouvoir déborder de la rangée */
.site-header-row-container-inner,
.site-main-header-wrap,
.site-header-section,
.header-navigation,
.primary-menu-container { overflow: visible; }

/* ---- Tablette / mobile : accordéon ---- */
@media (max-width: 1023px) {
	.umm { padding: 0; }
	.umm__bar { flex-direction: column; gap: 0; }
	.umm__item { border-bottom: 1px solid rgba(255, 255, 255, .2); }
	.umm__top { padding: 16px 20px; }
	.umm__top::after { display: none; }
	.umm__chev { margin-left: auto; }
	.umm__panel {
		position: static;
		translate: none;
		width: auto;
		margin: 0 0 16px;
		border-radius: 20px;
		box-shadow: none;
	}
	.umm__intro { flex-basis: 100%; padding: 24px; }
	.umm__intro-num, .umm__intro-title, .umm__vague { display: none; }
	.umm__intro-text { margin: 0; }
	.umm__cta { padding-top: 4px; }
	.umm__groups { flex-basis: 100%; padding: 24px; gap: 20px; }
	.umm__media { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.umm__panel { animation: none; }
	.umm__top::after, .umm__chev, .umm__arrow { transition: none; }
}
