/* Menu mobile Veloria — toutes les regles sont dans @media (max-width:900px)
   pour ne rien changer au rendu desktop. */

@media (max-width: 900px) {

	/* L'ancien comportement affichait la nav dans l'en-tete sticky :
	   elle traversait le contenu et n'avait aucun habillage. Neutralise. */
	.site_header.is-open .header_nav { display:none }

	.vm_overlay {
	position:fixed;
	display:block;
	z-index:998;
	width:100%;
	height:100%;
	background:rgba(11,20,36,.55);
	opacity:0;
	top:0;
	left:0;
	transition:opacity .28s var(--ease);
	-webkit-backdrop-filter:blur(2px);
	backdrop-filter:blur(2px)
	}

	.vm_overlay.is-on { opacity:1 }

	.vm_overlay[hidden] { display:none }

	.vm_panel {
	position:fixed;
	display:flex;
	flex-direction:column;
	z-index:999;
	width:min(400px,92vw);
	height:100%;
	height:100dvh;
	overflow:hidden;
	background:var(--paper);
	box-shadow:-8px 0 40px rgba(11,20,36,.28);
	top:0;
	right:0;
	transform:translate3d(100%,0,0);
	transition:transform .3s var(--ease-out);
	will-change:transform;
	backface-visibility:hidden
	}

	.vm_panel.is-on { transform:translate3d(0,0,0) }

	.vm_panel[hidden] { display:none }

	.vm_head {
	display:flex;
	align-items:center;
	justify-content:space-between;
	flex-shrink:0;
	gap:14px;
	background:var(--navy);
	padding:16px 18px
	}

	.vm_head_logo {
	display:flex;
	align-items:center;
	overflow:hidden;
	max-width:190px;
	min-width:0;
	text-decoration:none
	}

	/* garde-fou : quel que soit l'element qui finit dans l'en-tete du panneau,
	   il ne peut pas depasser. Le logo du site fait 1671 px de large en natif.
	   brightness(0) ecrase toutes les couleurs en noir, invert(1) les passe en
	   blanc : le logo devient monochrome blanc quelles que soient ses couleurs
	   d'origine, sans avoir a fournir une seconde image. */
	.vm_head img,
	.vm_head_img,
	.vm_head .custom-logo {
	display:block;
	width:auto;
	max-width:100%;
	height:auto;
	max-height:34px;
	object-fit:contain;
	filter:brightness(0) invert(1)
	}

	.vm_head .custom-logo-link { display:flex; align-items:center; min-width:0 }

	.vm_head_txt {
	font-size:1.25rem;
	font-weight:700;
	font-family:var(--display);
	color:#fff;
	letter-spacing:.02em
	}

	.vm_close {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex-shrink:0;
	width:40px;
	height:40px;
	background:rgba(255,255,255,.12);
	border:0;
	border-radius:50%;
	color:#fff;
	cursor:pointer;
	transition:background .2s var(--ease);
	padding:0
	}

	.vm_close:hover { background:rgba(255,255,255,.24) }

	.vm_body {
	flex-grow:1;
	overflow-y:auto;
	overscroll-behavior:contain;
	-webkit-overflow-scrolling:touch;
	padding:18px 18px 32px
	}

	/* recherche */
	.vm_search {
	position:relative;
	display:flex;
	align-items:center;
	background:var(--haze);
	border-radius:var(--r-pill);
	margin:0 0 16px;
	padding:0 6px 0 0
	}

	.vm_search_input {
	flex-grow:1;
	min-width:0;
	background:transparent;
	border:0;
	font-size:1rem;
	font-family:var(--font);
	color:var(--ink);
	padding:14px 8px 14px 20px
	}

	.vm_search_input:focus { outline:0 }

	.vm_search_go {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex-shrink:0;
	width:40px;
	height:40px;
	background:var(--navy);
	border:0;
	border-radius:50%;
	color:#fff;
	cursor:pointer;
	padding:0
	}

	/* acces rapides */
	.vm_quick {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:10px;
	margin:0 0 22px
	}

	.vm_quick_item {
	position:relative;
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:7px;
	justify-content:center;
	background:var(--cream);
	border:1px solid var(--line);
	border-radius:var(--r-sm);
	font-size:.9rem;
	font-weight:600;
	font-family:var(--display);
	color:var(--navy);
	text-decoration:none;
	padding:15px 10px
	}

	.vm_quick_item svg { width:22px; height:22px }

	.vm_quick_nb {
	position:absolute;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:20px;
	height:20px;
	background:var(--volt);
	border-radius:var(--r-pill);
	font-size:.72rem;
	font-style:normal;
	font-weight:700;
	color:var(--volt-ink);
	top:10px;
	right:10px;
	padding:0 6px
	}

	/* navigation */
	.vm_nav { margin:0 0 22px }

	.vm_titre {
	text-transform:uppercase;
	font-size:.7rem;
	font-weight:600;
	font-family:var(--display);
	color:var(--muted-2);
	letter-spacing:.14em;
	margin:0 0 8px
	}

	.vm_nav ul {
	display:flex;
	flex-direction:column;
	list-style:none;
	margin:0;
	padding:0
	}

	.vm_row {
	display:flex;
	align-items:center;
	gap:6px
	}

	.vm_link {
	display:flex;
	align-items:center;
	justify-content:space-between;
	flex-grow:1;
	gap:10px;
	border-bottom:1px solid var(--line);
	font-size:1.02rem;
	font-weight:600;
	font-family:var(--display);
	color:var(--navy);
	text-decoration:none;
	transition:color .2s var(--ease);
	padding:14px 2px
	}

	.vm_link:active { color:var(--navy-2) }

	.vm_link.is-strong { font-size:1.1rem }

	.vm_link.is-sub {
	font-size:.97rem;
	font-weight:400;
	color:var(--muted);
	padding:12px 2px 12px 16px
	}

	.vm_link em {
	font-size:.78rem;
	font-style:normal;
	color:var(--muted-2)
	}

	.vm_row .vm_link { border-bottom:0 }

	.vm_row {
	border-bottom:1px solid var(--line)
	}

	.vm_toggle {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex-shrink:0;
	width:38px;
	height:38px;
	background:var(--haze);
	border:0;
	border-radius:50%;
	color:var(--navy);
	cursor:pointer;
	transform:rotate(0deg);
	transition:transform .25s var(--ease),background .2s var(--ease);
	padding:0
	}

	.vm_toggle.is-on { background:var(--navy); color:#fff; transform:rotate(180deg) }

	.vm_sub {
	background:var(--cream);
	border-radius:0 0 var(--r-sm) var(--r-sm);
	margin:0;
	padding:4px 12px
	}

	.vm_sub[hidden] { display:none }

	.vm_sub li:last-child .vm_link { border-bottom:0 }

	/* contact */
	.vm_contact {
	background:var(--cream);
	border:1px solid var(--line);
	border-radius:var(--r);
	margin:0 0 18px;
	padding:18px 20px
	}

	.vm_contact_tel {
	display:flex;
	align-items:center;
	gap:10px;
	font-size:1.18rem;
	font-weight:700;
	font-family:var(--display);
	color:var(--navy);
	text-decoration:none
	}

	.vm_contact_tel svg { width:20px; height:20px; flex-shrink:0 }

	.vm_contact_mail {
	display:inline-block;
	font-size:.95rem;
	color:var(--navy);
	text-decoration:underline;
	text-decoration-color:var(--volt-2);
	text-underline-offset:3px;
	word-break:break-word;
	margin:10px 0 0
	}

	.vm_contact_h {
	font-size:.86rem;
	color:var(--muted);
	margin:8px 0 0
	}

	.vm_contact_cta { width:100%; font-size:.96rem; margin:16px 0 0; padding:13px 20px }

	/* reseaux */
	.vm_social {
	display:flex;
	flex-wrap:wrap;
	gap:10px;
	list-style:none;
	margin:0 0 18px;
	padding:0
	}

	.vm_social a {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:42px;
	height:42px;
	background:var(--navy);
	border-radius:50%;
	color:#fff;
	transition:background .2s var(--ease)
	}

	.vm_social a:active { background:var(--navy-2) }

	.vm_social svg { width:19px; height:19px }

	/* reassurance */
	.vm_reass {
	display:flex;
	flex-direction:column;
	gap:8px;
	list-style:none;
	border-top:1px solid var(--line);
	font-size:.87rem;
	color:var(--muted);
	margin:0;
	padding:18px 0 0
	}

	.vm_reass li { display:flex; align-items:center; gap:9px }

	.vm_reass li::before {
	content:"\2713";
	flex-shrink:0;
	font-weight:700;
	color:var(--navy)
	}

}

@media (min-width: 901px) {
	.vm_panel,
	.vm_overlay { display:none }
}

@media (prefers-reduced-motion: reduce) {
	.vm_panel,
	.vm_overlay,
	.vm_toggle { transition:none }
}
