/* YCM Menu mobile – panneau plein écran (v1.0.0) */

/* ---- Bouton « Menu » qui remplace le hamburger Divi (Divi l'affiche jusqu'à 980 px) ---- */
html.ycm-mm-ready .et-l--header .et_mobile_nav_menu .mobile_nav {
	display: none !important;
}
.ycm-mm-burger {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #0b5197;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.ycm-mm-burger:hover,
.ycm-mm-burger:focus-visible {
	background: #eef3f8;
}
.ycm-mm-burger:focus-visible {
	outline: 2px solid #0b5197;
	outline-offset: 2px;
}
.ycm-mm-burger span {
	font-family: 'Big Shoulders', Helvetica, Arial, sans-serif;
	font-weight: 800;
	font-size: 12px;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ---- Panneau ---- */
html.ycm-mm-open,
html.ycm-mm-open body {
	overflow: hidden !important;
}
.ycm-mm {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	background: #0b5197;
	color: #fff;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
	-webkit-font-smoothing: antialiased;
}
.ycm-mm[hidden] {
	display: none;
}
.ycm-mm.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.ycm-mm a,
.ycm-mm button {
	color: #fff;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.ycm-mm a:focus-visible,
.ycm-mm button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.ycm-mm ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* En-tête du panneau */
.ycm-mm__head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	min-height: 84px;
	padding: 0 12px 0 16px;
	padding-top: env(safe-area-inset-top);
	border-bottom: 1px solid rgba(255, 255, 255, .18);
	box-sizing: border-box;
}
.ycm-mm__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ycm-mm__brand img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}
.ycm-mm__brand span {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
	font-family: 'Big Shoulders', Helvetica, Arial, sans-serif;
	text-transform: uppercase;
}
.ycm-mm__brand strong {
	font-weight: 800;
	font-size: 21px;
}
.ycm-mm__brand em {
	font-style: normal;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .06em;
	opacity: .85;
}
.ycm-mm__close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.ycm-mm__close:hover,
.ycm-mm__close:focus-visible {
	background: rgba(255, 255, 255, .16);
}

/* Liste */
.ycm-mm__nav {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px 0 16px;
}
.ycm-mm__item {
	border-bottom: 1px solid rgba(255, 255, 255, .14);
	opacity: 0;
	transform: translateX(24px);
	transition: opacity .3s ease, transform .3s ease;
}
.ycm-mm.is-open .ycm-mm__item {
	opacity: 1;
	transform: none;
	transition-delay: calc(120ms + var(--ycm-i, 0) * 60ms);
}
.ycm-mm__row {
	display: flex;
	align-items: center;
	min-height: 64px;
	padding: 0 10px 0 22px;
}
.ycm-mm__link {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	margin: 0;
	padding: 10px 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	box-sizing: border-box;
	font-family: 'Big Shoulders', Helvetica, Arial, sans-serif;
	font-weight: 800;
	font-size: 31px;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.ycm-mm .ycm-mm__link:focus-visible {
	color: #ffd9da;
}
@media (hover: hover) {
	.ycm-mm .ycm-mm__link:hover { color: #ffd9da; }
}
.ycm-mm__mark {
	flex-shrink: 0;
	width: 6px;
	height: 26px;
	border-radius: 3px;
	background: transparent;
}
.ycm-mm__item.is-current .ycm-mm__mark {
	background: #df282c;
}
.ycm-mm__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.ycm-mm__toggle svg {
	transition: transform .25s ease;
}
.ycm-mm__toggle:hover,
.ycm-mm__toggle:focus-visible,
.ycm-mm__item.is-open .ycm-mm__toggle {
	background: rgba(255, 255, 255, .16);
}
.ycm-mm__item.is-open .ycm-mm__toggle svg {
	transform: rotate(180deg);
}

/* Sous-menus en accordéon */
.ycm-mm__sub {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .28s ease;
}
.ycm-mm__item.is-open .ycm-mm__sub {
	grid-template-rows: 1fr;
}
.ycm-mm__sub > ul {
	overflow: hidden;
	padding: 0 14px 0 30px;
	visibility: hidden;
	transition: visibility 0s linear .28s, padding .28s ease;
}
.ycm-mm__item.is-open .ycm-mm__sub > ul {
	padding-bottom: 14px;
	visibility: visible;
	transition: visibility 0s, padding .28s ease;
}
.ycm-mm__sublink {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 6px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
}
.ycm-mm__sublink span {
	flex: 1;
}
.ycm-mm .ycm-mm__sublink:hover,
.ycm-mm .ycm-mm__sublink:focus-visible {
	background: rgba(255, 255, 255, .10);
}
.ycm-mm__sublink.is-current {
	background: rgba(255, 255, 255, .14);
	box-shadow: inset 4px 0 0 #df282c;
}
.ycm-mm__ext {
	flex-shrink: 0;
	opacity: .8;
}

/* Bas du panneau */
.ycm-mm__foot {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 20px 22px;
	padding-bottom: calc(22px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(255, 255, 255, .18);
	background: #094784;
}
.ycm-mm__ctas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.ycm-mm__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 8px;
	border: 2px solid #fff;
	border-radius: 6px;
	box-sizing: border-box;
	text-align: center;
	font-family: 'Big Shoulders', Helvetica, Arial, sans-serif;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.05;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: background-color .2s ease, color .2s ease;
}
.ycm-mm .ycm-mm__cta--red {
	border-color: #df282c;
	background: #df282c;
}
.ycm-mm .ycm-mm__cta--red:hover,
.ycm-mm .ycm-mm__cta--red:focus-visible {
	border-color: #fff;
	background: #fff;
	color: #df282c;
}
.ycm-mm .ycm-mm__cta--line:hover,
.ycm-mm .ycm-mm__cta--line:focus-visible {
	background: #fff;
	color: #0b5197;
}
.ycm-mm__contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 14px;
	font-size: 14px;
	font-weight: 600;
}
.ycm-mm__contact a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
}

/* Écrans bas (téléphone à l'horizontale) */
@media (max-height: 560px) {
	.ycm-mm__head { min-height: 64px; }
	.ycm-mm__row, .ycm-mm__link { min-height: 52px; }
	.ycm-mm__link { font-size: 26px; }
	.ycm-mm__foot { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* Le panneau ne sert jamais au-dessus de 980 px (menu ordinateur de Divi) */
@media (min-width: 981px) {
	.ycm-mm { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.ycm-mm,
	.ycm-mm.is-open,
	.ycm-mm__item,
	.ycm-mm.is-open .ycm-mm__item,
	.ycm-mm__sub,
	.ycm-mm__sub > ul,
	.ycm-mm__toggle svg {
		transition: none !important;
	}
}
