/* ==========================================================================
   Pokegourou Menu Mobile (menu « Menu mobile 2026 »)
   Un seul onglet : rubriques avec icônes, produits scellés ouverts,
   puis « Infos et aide » en boutons. Ne s'applique qu'à ce menu.
   ========================================================================== */

/* Largeur du panneau */
.mobile-nav:has(#menu-menu-mobile-2026) {
	--wd-side-hidden-w: 320px;
}

/* Un seul onglet : on masque Menu / Catégories et le second menu */
.mobile-nav:has(#menu-menu-mobile-2026) .wd-nav-mob-tab,
.mobile-nav:has(#menu-menu-mobile-2026) .mobile-categories-menu {
	display: none !important;
}
.mobile-nav:has(#menu-menu-mobile-2026) #menu-menu-mobile-2026 {
	display: flex !important;
}

/* En-tête : logo et bouton fermer */
.mobile-nav .pg-mm-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 12px 4px 20px;
}
.mobile-nav .pg-mm-logo {
	display: flex;
	align-items: center;
}
.mobile-nav .pg-mm-logo img {
	display: block;
	width: auto;
	height: 30px;
}
.mobile-nav .pg-mm-close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, .06);
	color: #E6EEF5;
	box-shadow: none;
	cursor: pointer;
	transition: color .2s;
}
.mobile-nav .pg-mm-close:hover,
.mobile-nav .pg-mm-close:focus-visible {
	background: rgba(255, 255, 255, .06);
	color: var(--pg-orange, #F37823);
}

/* Recherche */
.mobile-nav:has(#menu-menu-mobile-2026) .wd-search-form {
	padding: 12px 14px !important;
	border: 0 !important;
}
.mobile-nav:has(#menu-menu-mobile-2026) .wd-search-form input.s {
	height: 46px !important;
	padding-left: 14px !important;
	padding-right: 44px !important;
	border: 1px solid rgba(255, 255, 255, .09) !important;
	border-radius: 10px !important;
	background: var(--pg-field, #0C2638) !important;
	color: #FFFFFF !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	text-overflow: ellipsis;
}

/* Liste */
#menu-menu-mobile-2026 {
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 0 !important;
	padding: 0 8px 24px !important;
}
#menu-menu-mobile-2026 > li {
	flex: 0 0 100% !important;
	width: 100%;
	border: 0 !important;
}
#menu-menu-mobile-2026 > li > a {
	display: flex !important;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 48px !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 10px;
	color: #E6EEF5 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	transition: color .2s, background-color .2s;
}
#menu-menu-mobile-2026 > li > a .nav-link-text {
	flex-grow: 1;
}

/* Icône devant chaque rubrique */
#menu-menu-mobile-2026 > li > a::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background-color: #8AA0B6;
	-webkit-mask: var(--pg-ico) center / contain no-repeat;
	mask: var(--pg-ico) center / contain no-repeat;
	transition: background-color .2s;
}
/* Flèche à droite */
#menu-menu-mobile-2026 > li > a::after {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background-color: #5E7890;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: background-color .2s;
}

#menu-menu-mobile-2026 a[href*="/lots-de-cartes-pokemon/"] { --pg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='12' height='15' rx='2'/%3E%3Cpath d='M8 3h11a2 2 0 0 1 2 2v13'/%3E%3C/svg%3E"); }
#menu-menu-mobile-2026 a[href*="/mystery-pack/"] { --pg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z'/%3E%3Cpath d='M3 7h18v4H3z'/%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M12 7C10.5 3.5 6.5 3.8 7 6.2 7.3 7 9 7 12 7zM12 7c1.5-3.5 5.5-3.2 5 -0.8C16.7 7 15 7 12 7z'/%3E%3C/svg%3E"); }
#menu-menu-mobile-2026 a[href*="/cartes-pokemon-promo/"] { --pg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.4 6.7 19.4l1.2-6L3.4 9.3l6-.7z'/%3E%3C/svg%3E"); }
#menu-menu-mobile-2026 a[href*="/cartes-pokemon-gradees/"] { --pg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2.5' width='14' height='19' rx='2'/%3E%3Cpath d='M5 7h14'/%3E%3Cpath d='M9 4.7h6'/%3E%3C/svg%3E"); }
#menu-menu-mobile-2026 a[href="#produits-scelles"] { --pg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
#menu-menu-mobile-2026 a[href*="/codes-jcc-pokemon-online/"] { --pg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Cpath d='M14 14h3v3M21 14v.01M14 21h.01M17.5 21H21v-3.5' /%3E%3Crect x='5.8' y='5.8' width='1.4' height='1.4' fill='black' stroke='none'/%3E%3Crect x='16.8' y='5.8' width='1.4' height='1.4' fill='black' stroke='none'/%3E%3Crect x='5.8' y='16.8' width='1.4' height='1.4' fill='black' stroke='none'/%3E%3C/svg%3E"); }
#menu-menu-mobile-2026 a[href*="/proteges-cartes/"] { --pg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8 8 9 4.6-1 8-4.5 8-9V6z'/%3E%3C/svg%3E"); }

/* Drapeaux */
#menu-menu-mobile-2026 > li > a[href*="/cartes-pokemon-a-lunite/"]::before,
#menu-menu-mobile-2026 > li > a[href*="/cartes-pokemon-japonaises/"]::before {
	height: 14px;
	border-radius: 2px;
	-webkit-mask: none;
	mask: none;
}
#menu-menu-mobile-2026 > li > a[href*="/cartes-pokemon-a-lunite/"]::before {
	background: linear-gradient(90deg, #2B59C3 33.3%, #FFFFFF 33.3% 66.6%, #D63A3A 66.6%) !important;
}
#menu-menu-mobile-2026 > li > a[href*="/cartes-pokemon-japonaises/"]::before {
	background: radial-gradient(circle, #D63A3A 3.5px, #FFFFFF 4px) !important;
}

/* Survol et page en cours : orange du site */
#menu-menu-mobile-2026 > li > a:hover,
#menu-menu-mobile-2026 .wd-sub-menu a:hover {
	color: var(--pg-orange, #F37823) !important;
}
#menu-menu-mobile-2026 > li > a:hover::before,
#menu-menu-mobile-2026 > li > a:hover::after {
	background-color: var(--pg-orange, #F37823);
}
#menu-menu-mobile-2026 > li.current-menu-item > a,
#menu-menu-mobile-2026 > li.current-menu-ancestor > a {
	background-color: rgba(243, 120, 35, .10);
	color: var(--pg-orange, #F37823) !important;
	font-weight: 600 !important;
}
#menu-menu-mobile-2026 > li.current-menu-item > a::before,
#menu-menu-mobile-2026 > li.current-menu-item > a::after {
	background-color: var(--pg-orange, #F37823);
}

/* Produits scellés : fermé de base, s'ouvre au clic sur toute la ligne */
#menu-menu-mobile-2026 > li.menu-item-has-children {
	position: relative;
	border-radius: 10px;
	transition: background-color .2s;
}
#menu-menu-mobile-2026 > li.menu-item-has-children.opener-page {
	background: #13263A;
}
#menu-menu-mobile-2026 > li.menu-item-has-children > a::after {
	transition: transform .2s, background-color .2s;
	transform: rotate(90deg);
}
#menu-menu-mobile-2026 > li.menu-item-has-children.opener-page > a::after {
	background-color: #E6EEF5;
	transform: rotate(-90deg);
}
/* Le bouton d'ouverture de WoodMart couvre toute la ligne, invisible */
#menu-menu-mobile-2026 > li.menu-item-has-children > .wd-nav-opener {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: auto !important;
	height: 48px !important;
	border: 0 !important;
	background: transparent !important;
	opacity: 0;
	z-index: 2;
	cursor: pointer;
}
#menu-menu-mobile-2026 > li.menu-item-has-children > .wd-sub-menu {
	width: 100%;
	padding: 0 12px 8px 46px !important;
	background: transparent !important;
}
#menu-menu-mobile-2026 .wd-sub-menu li {
	border: 0 !important;
}
#menu-menu-mobile-2026 .wd-sub-menu li > a {
	display: flex !important;
	align-items: center;
	min-height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	color: #B9C7D4 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	text-transform: none !important;
}
#menu-menu-mobile-2026 .wd-sub-menu li.current-menu-item > a {
	color: var(--pg-orange, #F37823) !important;
	font-weight: 600 !important;
}

/* « Infos et aide » : petit titre, puis liens en boutons */
#menu-menu-mobile-2026 > li > a[href="#infos-aide"] {
	min-height: 0 !important;
	padding: 18px 12px 10px !important;
	color: #8AA0B6 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 1.2px !important;
	text-transform: uppercase !important;
	pointer-events: none;
}
#menu-menu-mobile-2026 > li > a[href="#infos-aide"]::before,
#menu-menu-mobile-2026 > li > a[href="#infos-aide"]::after,
#menu-menu-mobile-2026 > li:has(> a[href="#infos-aide"]) ~ li > a::before,
#menu-menu-mobile-2026 > li:has(> a[href="#infos-aide"]) ~ li > a::after {
	display: none;
}
#menu-menu-mobile-2026 > li:has(> a[href="#infos-aide"]) ~ li {
	flex: 0 0 auto !important;
	width: auto;
	/* 12px à gauche pour l'alignement, -4px à droite : 8px entre deux boutons */
	margin: 0 -4px 8px 12px;
}
#menu-menu-mobile-2026 > li:has(> a[href="#infos-aide"]) ~ li > a {
	min-height: 40px !important;
	padding: 0 14px !important;
	border: 1px solid rgba(255, 255, 255, .12) !important;
	border-radius: 8px;
	font-size: 13px !important;
	font-weight: 400 !important;
}
#menu-menu-mobile-2026 > li:has(> a[href="#infos-aide"]) ~ li > a:hover {
	border-color: var(--pg-orange, #F37823) !important;
}

/* Lien « Connexion » ajouté par WoodMart : l'icône du header suffit */
#menu-menu-mobile-2026 > li.menu-item-account {
	display: none !important;
}


/* Bulle de chat Crisp masquée tant que le menu est ouvert */
body:has(.mobile-nav.wd-opened) .crisp-client {
	display: none !important;
}
