/* Selecteurs de langue et de monnaie - Exoride
   ---------------------------------------------------------------------------
   Deux menus deroulants de meme facture, cote a cote, chacun precede d'une
   icone : un globe pour la langue, une piece pour la monnaie. Sans ces icones,
   deux boutons voisins affichant "FR" et "CHF" ne se distinguent pas au premier
   regard - c'est precisement ce qui rendait la liste de drapeaux et le menu des
   devises confus une fois reunis.
   --------------------------------------------------------------------------- */

.exo-switches {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 13px;
	line-height: 1;
}

.exo-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.exo-switch__toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 7px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.exo-switch__toggle:hover,
.exo-switch__toggle[aria-expanded="true"] {
	color: #f16f56;
}

/* Icone du menu, posee en masque : elle prend la couleur du texte, donc suit le
   survol sans qu'aucune teinte soit ecrite ici. */
.exo-switch__icon {
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask-image: var(--exo-icon);
	mask-image: var(--exo-icon);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	flex: none;
}

.exo-switch__label {
	font-weight: 500;
	letter-spacing: .02em;
}

/* Chevron, meme technique que les icones. */
.exo-switch__toggle::after {
	content: "";
	width: .5em;
	height: .34em;
	background-color: currentColor;
	opacity: .7;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: transform .15s ease;
	flex: none;
}

.exo-switch__toggle[aria-expanded="true"]::after {
	transform: rotate(180deg);
}

.exo-switch__menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	min-width: 100%;
	margin-top: 5px;
	padding: 4px;
	border-radius: 4px;
	background: #1c1917;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
	white-space: nowrap;
}

/* Le menu des monnaies est le plus a droite : on l'aligne par la droite pour
   qu'il ne deborde pas du bandeau. */
.exo-switch--currency .exo-switch__menu {
	left: auto;
	right: 0;
}

.exo-switch__item {
	padding: 6px 10px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #c9c5c2;
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.exo-switch__item:hover {
	color: #fff;
	background: #2a2622;
	text-decoration: none;
}

.exo-switch__item.is-active {
	color: #fff;
	font-weight: 600;
}

/* Menu hamburger : les deux selecteurs centres, plus grands au doigt, et les
   listes qui s'ouvrent vers le haut puisqu'ils sont en bas du panneau. */
.exo-switches--mobile {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 15px;
}

.exo-switches--mobile .exo-switch__toggle {
	padding: 9px 14px;
	border: 1px solid #4a453f;
	border-radius: 4px;
}

.exo-switches--mobile .exo-switch__menu {
	top: auto;
	bottom: 100%;
	left: 0;
	right: auto;
	margin: 0 0 5px;
}

.exo-switches--mobile .exo-switch--currency .exo-switch__menu {
	left: auto;
	right: 0;
}

/* ---------------------------------------------------------------------------
   Prix convertis
   --------------------------------------------------------------------------- */

/* Aucune decoration : le montant doit rester aussi lisible qu'avant. Le curseur
   d'aide signale l'infobulle, qui rappelle le montant en francs et le caractere
   indicatif de la conversion. */
.exo-price {
	cursor: help;
}

/* Mention "changer de devise", affichee seulement tant que la monnaie a ete
   devinee. Discrete par construction : c'est une correction possible, pas un
   appel a l'action. */
.exo-price-hint {
	display: inline-block;
	margin-left: .4em;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	opacity: .6;
	font-size: .62em;
	font-weight: 400;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: underline dotted;
	text-underline-offset: 2px;
	cursor: pointer;
	vertical-align: middle;
}

.exo-price-hint:hover {
	opacity: 1;
}

.exo-price-picker {
	display: inline-flex;
	gap: 2px;
	margin-left: .4em;
	vertical-align: middle;
}

.exo-price-picker button {
	padding: 1px 5px;
	border: 1px solid currentColor;
	border-radius: 3px;
	background: none;
	color: inherit;
	font-size: .62em;
	line-height: 1.4;
	cursor: pointer;
	opacity: .7;
}

.exo-price-picker button:hover,
.exo-price-picker button.is-active {
	opacity: 1;
	font-weight: 600;
}
