/* ZM Menu 0.3.0 : menu « Produits neufs » en deux volets + tiroir mobile par niveaux */

/* Le menu d'origine n'est masqué qu'une fois le nouveau construit (classe ajoutée par le script). */
html.zmm-on #menu-menu-principal li.mega-menu > ul.sub-menu,
html.zmm-on .et-l--header li.mega-menu > ul { display: none !important; visibility: hidden !important; }
html.zmm-on .et-l--header .et_mobile_menu { display: none !important; }

/* ---------- Ordinateur ---------- */
#zmm-panel {
	--zmm-red: #d0142c; --zmm-red2: #ff4a5c; --zmm-line: #232a33;
	position: absolute; z-index: 1000001; left: 0; top: 0;
	background: #0d0f14; color: #fff; font-family: Lato, Arial, sans-serif;
	border-top: 3px solid var(--zmm-red);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
	max-height: calc(100vh - 20px); overflow-y: auto; overscroll-behavior: contain;
	box-sizing: border-box;
}
#zmm-panel[hidden] { display: none !important; }
#zmm-panel *, #zmm-drawer * { box-sizing: border-box; }
#zmm-panel a { text-decoration: none; }
#zmm-panel .zmm-models { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--zmm-line); }
#zmm-panel .zmm-models > span { color: #9aa6b3; font-size: 13px; margin-right: 6px; }
.zmm-chip {
	display: inline-block; border: 1px solid #39424d; border-radius: 99px; padding: 6px 14px;
	font-size: 14px; font-weight: 700; line-height: 1.2; color: #fff !important; background: #141922;
	white-space: nowrap; text-decoration: none !important;
}
.zmm-chip:hover, .zmm-chip:focus-visible { border-color: #d0142c; color: #ff4a5c !important; }
#zmm-panel .zmm-body { display: grid; grid-template-columns: 500px minmax(0, 1fr); }
#zmm-panel .zmm-rub {
	list-style: none; margin: 0; padding: 10px 12px; border-right: 1px solid var(--zmm-line);
	display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; column-gap: 6px; align-content: start;
}
#zmm-panel .zmm-rub li { margin: 0; padding: 0; list-style: none; }
#zmm-panel .zmm-rub a {
	display: flex; justify-content: space-between; align-items: center; gap: 8px;
	padding: 7px 12px; font-size: 14px; line-height: 1.3; color: #d9dee4; border-radius: 4px; white-space: nowrap;
}
#zmm-panel .zmm-rub a::after { content: "›"; color: #5d6773; }
#zmm-panel .zmm-rub li.on a { background: #1a1f28; color: #fff; box-shadow: inset 3px 0 0 var(--zmm-red); }
#zmm-panel .zmm-det { padding: 16px 26px 20px; }
#zmm-panel .zmm-det h3 { margin: 0 0 2px; padding: 0; font-size: 20px; line-height: 1.25; font-weight: 900; color: #fff; }
#zmm-panel .zmm-all { color: #ff4a5c; font-size: 14px; font-weight: 700; }
#zmm-panel .zmm-all:hover { text-decoration: underline; }
#zmm-panel .zmm-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
#zmm-panel .zmm-sub {
	display: block; background: #141922; border: 1px solid #232a33; border-radius: 6px;
	padding: 10px 14px; font-weight: 700; font-size: 14px; line-height: 1.3; color: #fff;
}
#zmm-panel .zmm-sub:hover, #zmm-panel .zmm-sub:focus-visible { border-color: var(--zmm-red); color: #ff4a5c; }
@media (max-width: 1200px) {
	#zmm-panel .zmm-body { grid-template-columns: 440px minmax(0, 1fr); }
	#zmm-panel .zmm-rub a { font-size: 13px; padding: 6px 10px; }
}

/* ---------- Mobile ---------- */
html.zmm-lock, html.zmm-lock body { overflow: hidden !important; }
#zmm-drawer {
	position: fixed; inset: 0; z-index: 1000002; display: flex; flex-direction: column;
	background: #0d0f14; color: #fff; font-family: Lato, Arial, sans-serif; font-size: 16px; line-height: 1.4;
	padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
#zmm-drawer[hidden] { display: none !important; }
#zmm-drawer a { text-decoration: none; color: inherit; }
#zmm-drawer .zmm-top { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 16px; background: #0b1520; border-bottom: 3px solid #d0142c; }
#zmm-drawer .zmm-top img { max-height: 38px; width: auto; }
#zmm-drawer .zmm-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; padding: 8px 12px; cursor: pointer; }
#zmm-drawer form { margin: 12px 14px 4px; display: flex; }
#zmm-drawer input[type="search"] {
	flex: 1; width: 100%; padding: 11px 14px; border-radius: 8px; background: #141922; border: 1px solid #2b333d;
	color: #fff; font-size: 16px; -webkit-appearance: none; appearance: none;
}
#zmm-drawer input[type="search"]::placeholder { color: #8d98a5; }
#zmm-drawer .zmm-crumb { display: flex; align-items: center; gap: 10px; padding: 6px 16px 8px; min-height: 40px; font-size: 14px; color: #9aa6b3; }
#zmm-drawer .zmm-back { background: none; border: 0; color: #ff4a5c; font: 700 15px Lato, Arial, sans-serif; padding: 6px 0; cursor: pointer; }
#zmm-drawer .zmm-list { list-style: none; margin: 0; padding: 0 0 24px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#zmm-drawer .zmm-list > li { margin: 0; padding: 0; list-style: none; border-top: 1px solid #1c222a; }
#zmm-drawer .zmm-row {
	display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px;
	padding: 15px 18px; font-size: 16px; color: #fff; background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit;
}
#zmm-drawer .zmm-row.big { font-weight: 900; }
#zmm-drawer .zmm-row .zmm-arr { color: #6c7784; font-size: 22px; line-height: 1; }
#zmm-drawer .zmm-row.zmm-alllink { color: #ff4a5c; font-weight: 700; }
#zmm-drawer .zmm-title { border-top: 0 !important; }
#zmm-drawer .zmm-title > div { padding: 14px 18px 6px !important; font-size: 20px; font-weight: 900; line-height: 1.25; }
#zmm-drawer .zmm-crumb { padding-left: 18px !important; }
#zmm-drawer .zmm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px 14px 14px; border-top: 0 !important; }
#zmm-drawer .zmm-grid .zmm-chip { text-align: center; padding: 10px 6px; }

/* ---------- Barre de recherche dans l'en-tête (ordinateur) ---------- */
.zmm-has-sbar .et_pb_menu__search-button,
.et-l--header .et_pb_menu__search-button { display: none !important; } /* pas de loupe qui clignote avant la barre */
.zmm-has-sbar > .et_pb_menu__wrap { flex: 0 0 auto !important; }
.zmm-sbar {
	position: relative; display: flex; align-items: center; align-self: center;
	flex: 1 1 700px; max-width: 760px; min-width: 240px; margin: 0 auto; padding: 0 24px;
	font-family: Lato, Arial, sans-serif;
}
.zmm-sbar .dgwt-wcas-search-wrapp { flex: 1; width: auto !important; max-width: none !important; min-width: 0; margin: 0 !important; }
.zmm-sbar .zmm-veh { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); z-index: 50; }
.zmm-sbar .dgwt-wcas-search-input { padding-left: var(--zmm-chip-w, 130px) !important; }
.zmm-vchip {
	display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c9ced6; background: #f3f4f6; color: #142b3e;
	border-radius: 99px; padding: 5px 11px; font: 700 13px/1.2 Lato, Arial, sans-serif; cursor: pointer; white-space: nowrap;
}
.zmm-vchip.on { background: #d0142c; border-color: #d0142c; color: #fff; }
.zmm-vchip .zmm-caret { font-size: 10px; opacity: .8; }
.zmm-vmenu {
	position: absolute; left: 0; top: calc(100% + 8px); z-index: 1000003; width: 230px; padding: 8px;
	background: #0d0f14; border-top: 3px solid #d0142c; border-radius: 0 0 8px 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}
.zmm-vmenu[hidden] { display: none !important; }
.zmm-vmenu .zmm-vtitle { color: #9aa6b3; font-size: 12px; padding: 4px 8px 6px; }
.zmm-vmenu button {
	display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; text-align: left;
	background: none; border: 0; border-radius: 4px; color: #fff; padding: 8px 10px; font: 700 14px/1.2 Lato, Arial, sans-serif; cursor: pointer;
}
.zmm-vmenu button small { color: #8d98a5; font-weight: 400; font-size: 12px; }
.zmm-vmenu button:hover, .zmm-vmenu button.on { background: #1a1f28; box-shadow: inset 3px 0 0 #d0142c; }
.zmm-vmenu .zmm-vall { margin-top: 4px; border-top: 1px solid #232a33; border-radius: 0; color: #ff4a5c; font-weight: 700; }

/* Habillage de la recherche FiboSearch : une seule barre sombre, assortie au menu */
.zmm-sbar .dgwt-wcas-sf-wrapp { background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.zmm-sbar .dgwt-wcas-sf-wrapp::before, .zmm-sbar .dgwt-wcas-sf-wrapp::after { display: none !important; }
.zmm-sbar input.dgwt-wcas-search-input {
	height: 42px !important; min-height: 0 !important; line-height: 1.2 !important; box-sizing: border-box !important;
	padding-top: 0 !important; padding-bottom: 0 !important; padding-right: 48px !important;
	background: rgba(255, 255, 255, .08) !important; color: #fff !important; font: 400 15px Lato, Arial, sans-serif !important;
	border: 1px solid rgba(255, 255, 255, .28) !important; border-radius: 99px !important; box-shadow: none !important;
	transition: border-color .15s, background-color .15s;
}
.zmm-sbar input.dgwt-wcas-search-input::placeholder { color: #aab4bf !important; opacity: 1 !important; }
.zmm-sbar input.dgwt-wcas-search-input:hover { border-color: rgba(255, 255, 255, .45) !important; }
.zmm-sbar input.dgwt-wcas-search-input:focus { background: rgba(255, 255, 255, .12) !important; border-color: #d0142c !important; outline: 0 !important; }
.zmm-sbar .dgwt-wcas-search-submit {
	left: auto !important; right: 6px !important; top: 50% !important; transform: translateY(-50%) !important; margin: 0 !important;
	width: 32px !important; height: 32px !important; min-height: 0 !important; padding: 0 !important;
	background: transparent !important; border: 0 !important; box-shadow: none !important; opacity: .85;
}
.zmm-sbar .dgwt-wcas-search-submit::before { display: none !important; }
.zmm-sbar .dgwt-wcas-search-submit svg, .zmm-sbar .dgwt-wcas-search-submit path { fill: #fff !important; }
.zmm-sbar .dgwt-wcas-search-submit:hover { opacity: 1; }
.zmm-sbar .dgwt-wcas-preloader, .zmm-sbar .dgwt-wcas-close { right: 40px !important; left: auto !important; }
.zmm-sbar .zmm-veh { left: 30px; }
.zmm-vchip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; padding: 5px 10px; font-size: 12.5px; }
.zmm-vchip:hover { border-color: rgba(255, 255, 255, .5); }
.zmm-vchip.on { background: #d0142c; border-color: #d0142c; color: #fff; }
.zmm-vmenu { top: calc(100% + 12px); left: -6px; border-radius: 8px; border-top: 0; box-shadow: 0 14px 30px rgba(0, 0, 0, .5), inset 0 3px 0 #d0142c; padding: 10px 8px 8px; }
.zmm-vmenu .zmm-vtitle { text-align: left; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

/* ---------- Autres menus déroulants de l'en-tête : même style que le panneau ---------- */
html.zmm-on #menu-menu-principal > li:not(.mega-menu) ul.sub-menu {
	background: #0d0f14 !important; border-top: 3px solid #d0142c !important; border-radius: 0 0 8px 8px !important;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45) !important; padding: 8px !important; width: 260px !important; font-family: Lato, Arial, sans-serif;
}
html.zmm-on #menu-menu-principal > li:not(.mega-menu) ul.sub-menu li { padding: 0 !important; margin: 0 !important; width: 100% !important; }
html.zmm-on #menu-menu-principal > li:not(.mega-menu) ul.sub-menu li > a {
	display: flex !important; justify-content: space-between; align-items: center; gap: 8px; width: 100% !important; box-sizing: border-box;
	padding: 8px 12px !important; border-radius: 4px; font-size: 14px !important; font-weight: 700 !important; line-height: 1.3 !important;
	color: #d9dee4 !important; background: none !important; opacity: 1 !important;
}
html.zmm-on #menu-menu-principal > li:not(.mega-menu) ul.sub-menu li > a:hover,
html.zmm-on #menu-menu-principal > li:not(.mega-menu) ul.sub-menu li.et-hover > a { background: #1a1f28 !important; color: #fff !important; box-shadow: inset 3px 0 0 #d0142c; }
html.zmm-on #menu-menu-principal > li:not(.mega-menu) ul.sub-menu li.menu-item-has-children > a::after {
	content: "›" !important; font-family: Lato, Arial, sans-serif !important; font-size: 18px !important; color: #5d6773 !important;
	position: static !important; transform: none !important; margin: 0 !important;
}
html.zmm-on #menu-menu-principal > li:not(.mega-menu) ul.sub-menu ul.sub-menu { top: -11px !important; left: calc(100% + 8px) !important; border-radius: 8px !important; }
/* Près du bord droit de l'écran : déroulants alignés à droite et sous-menus ouverts vers la gauche */
html.zmm-on #menu-menu-principal > li:nth-last-child(-n+2):not(.mega-menu) > ul.sub-menu { left: auto !important; right: 0 !important; }
html.zmm-on #menu-menu-principal > li:nth-last-child(-n+3):not(.mega-menu) ul.sub-menu ul.sub-menu { left: auto !important; right: calc(100% + 8px) !important; }
/* Le menu garde sa place à côté de la barre de recherche */
.zmm-has-sbar .et_pb_menu__menu, .zmm-has-sbar .et-menu-nav { flex-shrink: 0 !important; }
/* Le logo ne se fait jamais écraser : c'est la barre de recherche qui cède la place */
.zmm-has-sbar > .et_pb_menu__logo-wrap { flex: 0 0 auto !important; min-width: max-content !important; }
.zmm-has-sbar > .et_pb_menu__logo-wrap img { flex-shrink: 0; }
@media (max-width: 1500px) { .zmm-sbar { padding: 0 14px; flex-basis: 360px; min-width: 200px; } .zmm-sbar .zmm-veh { left: 20px; } }

/* Tablette / petit portable (iPad paysage…) : la barre passe sur une deuxième ligne, centrée */
@media (min-width: 981px) and (max-width: 1250px) {
	.zmm-has-sbar { flex-wrap: wrap !important; justify-content: space-between !important; }
	.zmm-has-sbar > .et_pb_menu__logo-wrap { margin-right: auto !important; }
	.zmm-has-sbar > .et_pb_menu__wrap { flex: 0 1 auto !important; justify-content: flex-end !important; }
	.zmm-sbar { order: 10; flex: 1 1 100% !important; max-width: 760px !important; min-width: 0 !important; margin: 10px auto 14px !important; padding: 0 !important; }
	/* Logo + menu tiennent sur une seule ligne : menu un peu plus compact, logo un peu plus petit */
	.zmm-has-sbar > .et_pb_menu__wrap { flex-wrap: nowrap !important; min-width: 0 !important; }
	.zmm-has-sbar #menu-menu-principal { flex-wrap: nowrap !important; }
	.zmm-has-sbar #menu-menu-principal > li { padding-left: 6px !important; padding-right: 6px !important; }
	.zmm-has-sbar #menu-menu-principal > li > a { font-size: 14px !important; padding-right: 16px !important; }
	.zmm-has-sbar > .et_pb_menu__logo-wrap img { max-height: 56px !important; width: auto !important; }
}
/* Tablette et écrans tactiles : le filtre à côté de la barre (pas par-dessus le texte) */
@media (min-width: 981px) and (max-width: 1250px), (hover: none) and (min-width: 981px) {
	.zmm-sbar .zmm-veh { position: relative !important; left: auto !important; top: auto !important; transform: none !important; flex: 0 0 auto; margin-right: 8px; order: -1; }
	.zmm-sbar .zmm-vchip { padding: 10px 12px; font-size: 14px; }
	.zmm-sbar input.dgwt-wcas-search-input { padding-left: 16px !important; font-size: 16px !important; }
}

/* ---------- Barre de recherche sur mobile / tablette : deuxième ligne, pleine largeur ---------- */
@media (max-width: 980px) {
	.zmm-has-sbar { flex-wrap: wrap !important; justify-content: space-between !important; }
	.zmm-has-sbar > .et_pb_menu__logo-wrap { flex: 0 0 auto !important; margin-right: auto !important; }
	.zmm-has-sbar > .et_pb_menu__wrap { flex: 1 1 auto !important; justify-content: flex-end !important; }
	.zmm-sbar { order: 10; flex: 1 1 100% !important; max-width: none !important; min-width: 0 !important; margin: 14px 0 16px !important; padding: 0 !important; }
	/* Le filtre passe à côté de la barre (et non par-dessus) : FiboSearch ne peut plus intercepter le toucher */
	.zmm-sbar .zmm-veh { position: relative !important; left: auto !important; top: auto !important; transform: none !important; flex: 0 0 auto; margin-right: 8px; order: -1; }
	.zmm-sbar .zmm-vchip { padding: 10px 12px; font-size: 14px; }
	.zmm-sbar input.dgwt-wcas-search-input { padding-left: 16px !important; }
	.zmm-sbar input.dgwt-wcas-search-input { font-size: 16px !important; } /* évite le zoom automatique d'iOS */
	.zmm-vmenu { left: 0; }
}
