/* Posturise — sélecteur langue et monnaie (maquette « Langues et marchés »). Couleurs du thème Posturise, avec repli. */
.pz-lm { position: relative; display: inline-flex; }
.pz-lm__bouton {
	display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 8px;
	border: 0; border-radius: var(--radius-pill, 999px); background: transparent;
	color: var(--on-deep, #f1f4ec); font: 600 13px/1 var(--font-sans, inherit); cursor: pointer; white-space: nowrap;
}
.pz-lm__bouton:hover, .pz-lm__bouton[aria-expanded="true"] { background: rgba(255, 255, 255, .14); }
.pz-lm__bouton:focus-visible, .pz-lm__option:focus-visible, .pz-lm-mobile__ligne:focus-visible, .pz-lm-ecran__retour:focus-visible { outline: 2px solid var(--focus, #151a15); outline-offset: 2px; }
.pz-lm__carte {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 1000; width: 280px; max-width: calc(100vw - 24px);
	box-sizing: border-box; padding: 12px; border-radius: var(--radius-lg, 16px);
	background: var(--surface, #fff); border: 1px solid var(--border, #e3e5dc); box-shadow: var(--shadow-md, 0 12px 32px rgba(0,0,0,.12));
	color: var(--ink, #151a15); line-height: 1.25; text-align: left;
	max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain;
}
.pz-lm__carte[hidden], .pz-lm-ecran[hidden] { display: none; }
.pz-lm__carte--menu { width: 220px; padding: 6px; overflow: visible; max-height: none; }
.pz-lm__menu, .pz-lm__sous { list-style: none; margin: 0; padding: 0; }
.pz-lm__groupe { position: relative; }
.pz-lm__langue {
	display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 0 10px 0 12px; box-sizing: border-box;
	border: 0; border-radius: var(--radius-md, 10px); background: transparent; color: var(--ink, #151a15);
	font: 600 15px/1.2 var(--font-sans, inherit); text-align: left; cursor: pointer;
}
.pz-lm__libelle { flex: 1; }
.pz-lm__fleche { display: inline-flex; color: var(--ink-muted, #5a6056); }
.pz-lm__langue:hover, .pz-lm__groupe.is-open > .pz-lm__langue { background: var(--surface-soft, #eef0e8); }
.pz-lm__langue:focus-visible { outline: 2px solid var(--focus, #151a15); outline-offset: -2px; }
/* 2e niveau : à gauche de la carte (le bouton est dans l'angle droit) */
.pz-lm__sous {
	position: absolute; top: -7px; right: calc(100% + 12px); display: none; width: 230px; padding: 6px; box-sizing: border-box;
	border-radius: var(--radius-lg, 16px); background: var(--surface, #fff); border: 1px solid var(--border, #e3e5dc); box-shadow: var(--shadow-md, 0 12px 32px rgba(0,0,0,.12));
}
.pz-lm__sous::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 14px; } /* passerelle pour la souris */
/* Côté d'ouverture choisi par le script : à droite (côté de la flèche) si la place le permet */
.pz-lm__sous.is-droite { right: auto; left: calc(100% + 12px); }
.pz-lm__sous.is-droite::after { left: auto; right: 100%; }
/* Carte trop près du bord gauche (pied de page sur mobile) : elle s'ancre à gauche du bouton */
.pz-lm__carte.is-ancre-gauche { right: auto; left: 0; }
/* Pas la place à côté (petit écran) : les monnaies se déplient sous la langue */
.pz-lm__carte.is-empile { width: 260px; }
.pz-lm__carte.is-empile .pz-lm__sous { position: static; width: auto; margin: 2px 0 6px 14px; padding: 0 0 0 6px; border: 0; border-left: 2px solid var(--border, #e3e5dc); border-radius: 0; box-shadow: none; }
.pz-lm__carte.is-empile .pz-lm__sous::after { display: none; }
.pz-lm__carte.is-empile .pz-lm__fleche { transition: transform .15s; }
.pz-lm__carte.is-empile .pz-lm__groupe.is-open .pz-lm__fleche { transform: rotate(90deg); }
.pz-lm__groupe.is-open > .pz-lm__sous { display: block; }
.pz-lm--haut .pz-lm__sous { top: auto; bottom: -7px; }
.pz-lm__carte--menu .pz-lm__option { min-height: 42px; padding: 4px 10px 4px 6px; gap: 10px; }
.pz-lm__nom { font-size: 15px; font-weight: 600; }
.pz-lm__nom small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-muted, #5a6056); }
/* Mobile : le 2e niveau s'ouvre en dessous */
.pz-lm-ecran .pz-lm__menu { display: flex; flex-direction: column; gap: 4px; }
.pz-lm-ecran .pz-lm__langue { min-height: 52px; font-size: 16px; background: var(--surface, #fff); }
.pz-lm-ecran .pz-lm__fleche { transition: transform .15s; }
.pz-lm-ecran .pz-lm__groupe.is-open .pz-lm__fleche { transform: rotate(90deg); }
.pz-lm-ecran .pz-lm__sous { position: static; width: auto; margin: 4px 0 8px 12px; box-shadow: none; }
.pz-lm-ecran .pz-lm__sous::after { display: none; }
.pz-lm__option {
	display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; box-sizing: border-box;
	border-radius: var(--radius-md, 10px); text-decoration: none; color: var(--ink, #151a15);
}
.pz-lm__option:hover { background: var(--surface-soft, #eef0e8); }
.pz-lm__option.is-current { background: var(--primary-soft, #f1fbcc); }
.pz-lm__nom { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pz-lm__monnaie {
	display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 8px; box-sizing: border-box;
	border-radius: var(--radius-pill, 999px); background: var(--surface-soft, #eef0e8); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.pz-lm__option.is-current .pz-lm__monnaie { background: var(--surface, #fff); }
.pz-lm__coche { display: inline-flex; color: var(--primary-strong, #5f7a00); }
.pz-lm__note { margin: 10px 8px 4px; padding-top: 10px; border-top: 1px solid var(--border, #e3e5dc); font-size: 13px; line-height: 18px; color: var(--ink-muted, #5a6056); }

/* Mobile : ligne du menu burger et écran plein */
.pz-lm-mobile__ligne {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; box-sizing: border-box;
	border: 0; border-radius: var(--radius-md, 10px); background: var(--surface-soft, #eef0e8); color: var(--ink, #151a15);
	font: 15px/1.2 var(--font-sans, inherit); cursor: pointer; text-align: left;
}
.pz-lm-mobile__libelle { flex: 1; font-weight: 600; }
.pz-lm-mobile__actuel { color: var(--ink-muted, #5a6056); }
.pz-lm-ecran { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0; z-index: 10000; overflow-y: auto; background: var(--bg, #f5f6f1); color: var(--ink, #151a15); }
.pz-lm-ecran__tete {
	position: sticky; top: 0; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 18px 0 10px; box-sizing: border-box;
	background: var(--surface, #fff); border-bottom: 1px solid var(--border, #e3e5dc); font-size: 17px; font-weight: 700;
}
.pz-lm-ecran__retour { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-soft, #eef0e8); color: inherit; cursor: pointer; }
.pz-lm-ecran__corps { padding: 8px 12px 24px; }
body.pz-lm-ouvert { overflow: hidden; }

/* Pied de page : bouton clair, carte ouverte vers le haut */
.pz-lm--clair .pz-lm__bouton { height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--border, #e3e5dc); background: var(--surface, #fff); color: var(--ink, #151a15); }
.pz-lm--clair .pz-lm__bouton:hover, .pz-lm--clair .pz-lm__bouton[aria-expanded="true"] { background: var(--surface-soft, #eef0e8); }
.pz-lm--haut .pz-lm__carte { top: auto; bottom: calc(100% + 8px); }
/* Écran mobile ouvert : l'en-tête qui le contient passe devant tout, le bandeau du haut derrière */
body.pz-lm-ouvert .offer-bar { z-index: 0 !important; }
body.pz-lm-ouvert .main-bar-sticky, body.pz-lm-ouvert .site-header, body.pz-lm-ouvert header.wp-block-template-part { z-index: 100000 !important; }
