/* HP Menu : préfixe .hpm. Couleurs Harry Plast : bleu marine #13154e, vert #0db200. */

.hpm-bar, .hpm-mobile {
	--hpm-navy: #13154e;
	--hpm-green: #0db200;
	--hpm-green-dark: #076600;
	--hpm-text: #3d434c;
	--hpm-muted: #5f6670;
	--hpm-line: #e3e3e3;
	--hpm-soft: #eef0f6;
}

/* Ancien encart promo du thème, remplacé par la colonne « Emballages personnalisés » */
.main-menu-wrapper .main-menu-promo { display: none !important; }

/* ── Barre ─────────────────────────────────────────────────────── */
.hpm-bar > li { position: static; }
.hpm-trigger {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 0; border: 0; background: none; cursor: pointer;
	font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
	min-height: 44px; border-bottom: 3px solid transparent;
}
.hpm-trigger .hpm-chev { transition: transform .2s; }
.hpm-open > .hpm-trigger { color: var(--hpm-green-dark); border-bottom-color: var(--hpm-green); }
.hpm-open > .hpm-trigger .hpm-chev { transform: rotate(180deg); }
.hpm-trigger:focus-visible { outline: 2px solid var(--hpm-green); outline-offset: 4px; }

.hpm-backdrop {
	position: fixed; left: 0; right: 0; bottom: 0; top: 0;
	background: rgba(19, 21, 78, .35); z-index: 998;
}

/* ── Panneaux ──────────────────────────────────────────────────── */
.hpm-panel {
	position: fixed; left: 0; right: 0; z-index: 999;
	display: flex; justify-content: center;
	text-transform: none; letter-spacing: normal; font-weight: 400; text-align: left;
	color: #212529; font-size: 16px; line-height: 1.45;
}
.hpm-panel[hidden] { display: none; }
.hpm-panel__inner {
	width: 100%; max-width: 1280px; max-height: calc(100vh - 140px); overflow: auto;
	display: flex; background: #fff; border-radius: 0 0 6px 6px;
	box-shadow: 0 24px 48px rgba(19, 21, 78, .18);
}
.hpm-panel a { text-decoration: none; }

/* Colonne mise en avant */
.hpm-feature {
	flex: 0 0 320px; box-sizing: border-box; padding: 34px 30px;
	background: var(--hpm-navy); color: #fff;
	display: flex; flex-direction: column; gap: 16px;
}
.hpm-feature--side { flex-basis: 360px; }
.hpm-badge {
	align-self: flex-start; background: var(--hpm-green); color: var(--hpm-navy);
	font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
	padding: 3px 10px; border-radius: 20px;
}
.hpm-feature__title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.1; color: #fff; }
.hpm-feature__title--sm { font-size: 24px; }
.hpm-feature__text { margin: 0; font-size: 15px; color: #c9cde0; }
.hpm-feature__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hpm-feature__links a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hpm-feature__foot { margin-top: auto; border-top: 1px solid #3a3d7a; padding-top: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #aeb3d1; }
.hpm-feature__foot a { color: #fff; font-size: 15px; font-weight: 700; }
.hpm-btn {
	min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center;
	padding: 0 16px; border-radius: 4px; font-size: 16px; font-weight: 800;
}
.hpm-btn--green, .hpm-btn--green:hover { background: var(--hpm-green); color: var(--hpm-navy) !important; }
.hpm-btn--green:hover { background: #12c905; }

/* Catalogue */
.hpm-catalog { flex: 1 1 auto; min-width: 0; padding: 32px 40px 0; display: flex; flex-direction: column; }
.hpm-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 52px; }
.hpm-group ul, .hpm-rows ul { list-style: none; margin: 0; padding: 0; }
.hpm-group__title {
	margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--hpm-line);
	font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hpm-green-dark);
}
.hpm-cat { display: flex; align-items: flex-start; gap: 14px; padding: 8px 10px; margin: 0 -10px; border-radius: 6px; transition: background-color .15s; }
.hpm-cat:hover, .hpm-cat:focus-within { background: #f4f5f9; }
.hpm-icon {
	width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
	background: var(--hpm-soft); color: var(--hpm-navy);
	display: flex; align-items: center; justify-content: center;
}
.hpm-icon img { width: 22px; height: 22px; object-fit: contain; }
.hpm-icon--lg { width: 56px; height: 56px; flex-basis: 56px; }
.hpm-icon--lg img { width: 28px; height: 28px; }
.hpm-cat__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hpm-cat__name { font-size: 17px; font-weight: 700; color: var(--hpm-navy); }
.hpm-cat__name:hover { color: var(--hpm-green-dark); }
.hpm-cat__subs { font-size: 14px; color: var(--hpm-muted); }
.hpm-cat__subs a { color: var(--hpm-muted); }
.hpm-cat__subs a:hover { color: var(--hpm-navy); text-decoration: underline; }

.hpm-strip {
	margin-top: 24px; min-height: 60px; border-top: 1px solid var(--hpm-line);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
	font-size: 14px; color: var(--hpm-text);
}
.hpm-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.hpm-strip strong { color: var(--hpm-navy); }
.hpm-strip > a { font-weight: 700; color: var(--hpm-green-dark); }

/* Liste (secteurs) */
.hpm-rows { flex: 1 1 auto; min-width: 0; padding: 32px 44px; }
.hpm-row { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--hpm-line); }
.hpm-row__name { flex: 1 1 auto; font-size: 26px; font-weight: 800; color: var(--hpm-navy); letter-spacing: -.3px; }
.hpm-row__more { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--hpm-green-dark); }
.hpm-row:hover .hpm-row__name { color: var(--hpm-green-dark); }

/* ── Mobile ────────────────────────────────────────────────────── */
.hpm-mobile { text-transform: none; letter-spacing: normal; font-weight: 400; text-align: left; color: #212529; font-size: 16px; padding: 8px 20px 20px; box-sizing: border-box; }
.hpm-mobile a { text-decoration: none; }
.hpm-m-level[hidden] { display: none; }
.hpm-m-feature {
	display: flex; align-items: center; gap: 14px; margin: 8px 0 12px; padding: 14px 16px;
	border-radius: 6px; background: var(--hpm-navy); color: #fff !important;
}
.hpm-m-feature__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.hpm-m-feature__title { font-size: 18px; font-weight: 800; }
.hpm-m-feature__text { font-size: 13px; color: #c9cde0; }
.hpm-m-list { list-style: none; margin: 0; padding: 0; }
.hpm-m-row {
	width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 0; border: 0; border-bottom: 1px solid var(--hpm-line); background: none; cursor: pointer;
	font: inherit; font-size: 19px; font-weight: 700; color: var(--hpm-navy) !important; text-align: left;
}
.hpm-m-row--light { font-size: 16px; font-weight: 600; }
.hpm-m-row--cat { min-height: 50px; font-size: 16px; justify-content: flex-start; border-bottom-color: var(--hpm-soft); }
.hpm-m-row--cat .hpm-icon { width: 32px; height: 32px; flex-basis: 32px; }
.hpm-m-row--cat .hpm-icon img { width: 18px; height: 18px; }
.hpm-m-row__name { flex: 1 1 auto; }
.hpm-m-row--all { font-size: 16px; color: var(--hpm-green-dark) !important; }
.hpm-m-back {
	min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: 16px; font-weight: 700; color: var(--hpm-navy);
}
.hpm-m-title { margin: 6px 0 4px; font-size: 26px; font-weight: 800; color: var(--hpm-navy); }
.hpm-mobile .hpm-group__title { margin: 16px 0 0; padding: 0; border: 0; font-size: 11px; }
.hpm-m-foot { margin-top: 20px; padding: 16px; border-radius: 6px; background: #f4f5f9; display: flex; flex-direction: column; gap: 12px; }
.hpm-m-phone { text-align: center; font-size: 15px; font-weight: 700; color: var(--hpm-navy) !important; }

@media (prefers-reduced-motion: reduce) {
	.hpm-trigger .hpm-chev, .hpm-cat { transition: none; }
}

/* ── v1.1.0 : neutralise le style des sous-menus du thème dans les panneaux ──
   Le thème masque toute liste imbriquée du menu ordinateur :
   .desktop-navbar ul li ul { display:none; position:fixed; opacity:0; padding:30px 13%… } */
.desktop-navbar .hpm-panel ul,
.desktop-navbar .hpm-panel ul li ul {
	display: block !important; position: static !important; opacity: 1 !important;
	padding: 0 !important; margin: 0 !important; background: transparent !important;
	z-index: auto !important; transition: none !important; left: auto !important; right: auto !important;
}
.desktop-navbar .hpm-panel .hpm-strip ul,
.desktop-navbar .hpm-panel .hpm-feature__links { display: flex !important; }
.desktop-navbar .hpm-panel .hpm-feature__links { flex-direction: column; }
.desktop-navbar .hpm-panel li { font-weight: inherit; text-transform: none; }
.desktop-navbar .hpm-panel .hpm-cat { display: flex !important; }

/* ── v1.1.0 (suite) : le thème stylise aussi les liens et spans des sous-menus
   (.desktop-navbar ul li ul li a, … span { display:flex; justify-content:space-between; width:25%; padding:4px }
   et passe tout en majuscules grasses). On rétablit le rendu de la maquette dans les panneaux. */
.desktop-navbar .hpm-panel,
.desktop-navbar .hpm-panel * { text-transform: none !important; letter-spacing: normal; }
.desktop-navbar .hpm-panel li { font-weight: 400 !important; }
.desktop-navbar .hpm-panel a,
.desktop-navbar .hpm-panel span { width: auto !important; padding: 0 !important; justify-content: normal !important; }
.desktop-navbar .hpm-panel .hpm-cat { padding: 8px 10px !important; align-items: flex-start !important; }
.desktop-navbar .hpm-panel .hpm-cat__body { display: flex !important; flex-direction: column; align-items: flex-start !important; }
.desktop-navbar .hpm-panel .hpm-cat__name { display: inline !important; font-weight: 700 !important; }
.desktop-navbar .hpm-panel .hpm-cat__subs { display: block !important; }
.desktop-navbar .hpm-panel .hpm-cat__subs a,
.desktop-navbar .hpm-panel .hpm-cat__subs span { display: inline !important; }
.desktop-navbar .hpm-panel .hpm-icon { display: flex !important; justify-content: center !important; align-items: center !important; width: 40px !important; }
.desktop-navbar .hpm-panel .hpm-icon--lg { width: 56px !important; }
.desktop-navbar .hpm-panel .hpm-group__title,
.desktop-navbar .hpm-panel .hpm-badge { text-transform: uppercase !important; letter-spacing: 1.5px !important; font-weight: 800 !important; }
.desktop-navbar .hpm-panel .hpm-badge { padding: 3px 10px !important; letter-spacing: 1px !important; }
.desktop-navbar .hpm-panel .hpm-btn { display: flex !important; justify-content: center !important; padding: 0 16px !important; font-weight: 800 !important; }
.desktop-navbar .hpm-panel .hpm-feature__links a,
.desktop-navbar .hpm-panel .hpm-feature__foot a,
.desktop-navbar .hpm-panel .hpm-feature__foot span,
.desktop-navbar .hpm-panel .hpm-strip > a { display: inline !important; }
.desktop-navbar .hpm-panel .hpm-feature__links a,
.desktop-navbar .hpm-panel .hpm-feature__foot a,
.desktop-navbar .hpm-panel .hpm-strip > a { font-weight: 700 !important; }
.desktop-navbar .hpm-panel .hpm-strip li { font-weight: 400 !important; }
.desktop-navbar .hpm-panel .hpm-row { display: flex !important; align-items: center !important; justify-content: flex-start !important; width: 100% !important; padding: 16px 0 !important; }
.desktop-navbar .hpm-panel .hpm-row__name { display: block !important; flex: 1 1 auto; font-weight: 800 !important; }
.desktop-navbar .hpm-panel .hpm-row__more { display: flex !important; align-items: center !important; font-weight: 700 !important; }
.desktop-navbar .hpm-panel,
.desktop-navbar .hpm-panel * { white-space: normal !important; }
.desktop-navbar .hpm-panel .hpm-btn,
.desktop-navbar .hpm-panel .hpm-badge { white-space: nowrap !important; }

/* ── v1.2.0 : bordure verte du thème sur les listes, panneau plus compact ── */
.desktop-navbar .hpm-panel ul,
.desktop-navbar .hpm-panel ul li ul { border: 0 !important; }
.desktop-navbar .hpm-panel .hpm-catalog { padding-top: 24px; }
.desktop-navbar .hpm-panel .hpm-groups { gap: 18px 52px; }
.desktop-navbar .hpm-panel .hpm-cat { padding: 6px 10px !important; }
.desktop-navbar .hpm-panel .hpm-feature { padding: 28px 30px; gap: 14px; }
.desktop-navbar .hpm-panel .hpm-strip { margin-top: 16px; min-height: 52px; }
.hpm-panel__inner { max-height: calc(100vh - 120px); }

/* ── v1.2.0 : menu mobile en panneau plein écran ─────────────────────────
   Le thème transforme toute liste du menu mobile en calque fixe
   (.mobile-navbar ul { position:fixed; left:0; right:0; bottom:0; padding:15px; z-index:999999 }
   et .mobile-navbar ul li { padding:15px; text-transform:uppercase; font-weight:bold }).
   C'est maintenant tout le bloc .hpm-mobile qui fait calque, sous l'en-tête. */
.mobile-navbar .hpm-mobile {
	position: fixed; left: 0; right: 0; bottom: 0; top: var(--hpm-top, 120px);
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	background: #fff; z-index: 999999; padding: 8px 20px 24px !important;
	border-top: 1px solid #e3e3e3;
}
.mobile-navbar .hpm-mobile,
.mobile-navbar .hpm-mobile * { text-transform: none !important; letter-spacing: normal; }
.mobile-navbar .hpm-mobile ul {
	position: static !important; padding: 0 !important; margin: 0 !important;
	overflow: visible !important; background: transparent !important; z-index: auto !important;
}
.mobile-navbar .hpm-mobile ul li { padding: 0 !important; width: 100%; font-weight: inherit !important; }
.mobile-navbar .hpm-mobile ul li a,
.mobile-navbar .hpm-mobile ul li button { margin: 0 !important; }
.mobile-navbar .hpm-mobile .hpm-m-row { font-weight: 700 !important; }
.mobile-navbar .hpm-mobile .hpm-m-row--light { font-weight: 600 !important; }
.mobile-navbar .hpm-mobile .hpm-m-row--cat { font-weight: 700 !important; }
.mobile-navbar .hpm-mobile .hpm-group__title,
.mobile-navbar .hpm-mobile .hpm-badge { text-transform: uppercase !important; letter-spacing: 1.5px; font-weight: 800 !important; }
.mobile-navbar .hpm-mobile .hpm-badge { letter-spacing: 1px; }
.mobile-navbar .hpm-mobile .hpm-icon { display: flex !important; justify-content: center; align-items: center; }

/* ── v1.4.0 : le trait vert venait d'une règle plus spécifique du thème
   (header#main-header .top-wrapper .main-menu-wrapper .desktop-navbar ul li ul { border-top: 1px solid #28a745 !important }).
   Sélecteur à 4 classes pour la surpasser. */
#main-header .main-menu-wrapper .desktop-navbar .hpm-panel .hpm-panel__inner ul { border: 0 !important; }

/* ── v1.5.0 : texte blanc sur fond vert (boutons et badge « Nouveau ») ── */
.hpm-btn--green, .hpm-btn--green:hover,
.desktop-navbar .hpm-panel .hpm-btn--green, .desktop-navbar .hpm-panel .hpm-btn--green:hover,
.mobile-navbar .hpm-mobile .hpm-btn--green, .mobile-navbar .hpm-mobile .hpm-btn--green:hover { color: #ffffff !important; }
.hpm-badge,
.desktop-navbar .hpm-panel .hpm-badge,
.mobile-navbar .hpm-mobile .hpm-badge { color: #ffffff !important; }
