/**
 * Citivo — fenêtre « Installer l'application » (0.99.380).
 *
 * ⚠️ z-index 9000 : au-dessus de la carte (Leaflet monte à 1000), SOUS les
 * fiches (99999) — jamais par-dessus une fiche ouverte. Les instructions,
 * ouvertes par un geste, passent au-dessus de tout.
 * ⚠️ Couleurs re-déclarées sur chaque état : le thème colore `button:hover`.
 *
 * @package Citivo
 */

.citivo-pwa-carte {
	position: fixed;
	left: 50%;
	bottom: calc( 16px + env( safe-area-inset-bottom, 0px ) );
	transform: translateX( -50% );
	z-index: 9000;
	display: flex;
	align-items: center;
	gap: 4px;
	width: max-content;
	max-width: calc( 100vw - 32px );
	padding: 6px 6px 6px 10px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba( 0, 0, 0, .22 );
	animation: citivo-pwa-entree .3s ease-out;
}

@keyframes citivo-pwa-entree {
	from { opacity: 0; transform: translate( -50%, 12px ); }
	to   { opacity: 1; transform: translate( -50%, 0 ); }
}

.citivo-pwa-action,
.citivo-pwa-action:hover,
.citivo-pwa-action:focus,
.citivo-pwa-action:active {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 4px;
	background: transparent;
	color: #1d2733;
	border: 0;
	box-shadow: none;
	text-align: left;
	cursor: pointer;
}

.citivo-pwa-icone {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 10px;
}

.citivo-pwa-textes {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.citivo-pwa-titre {
	font-size: var( --citivo-fs-champ, 1rem );
	font-weight: 700;
	line-height: 1.25;
	color: #315ba3;
}

.citivo-pwa-sous-titre {
	font-size: var( --citivo-fs-secondaire, .875rem );
	line-height: 1.3;
	color: #5b6672;
}

.citivo-pwa-fermer,
.citivo-pwa-fermer:hover,
.citivo-pwa-fermer:focus,
.citivo-pwa-fermer:active {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	background: transparent;
	color: #8a949e;
	border: 0;
	box-shadow: none;
	font-size: 1.5rem;
	line-height: 36px;
	cursor: pointer;
}

/* Les instructions (iPhone/iPad, ou Android sans installation directe). */
.citivo-pwa-fond {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba( 0, 0, 0, .45 );
}

.citivo-pwa-boite {
	width: 100%;
	max-width: 360px;
	padding: 20px;
	background: #fff;
	color: #1d2733;
	border-radius: 14px;
	box-shadow: 0 10px 32px rgba( 0, 0, 0, .3 );
}

.citivo-pwa-boite-titre {
	margin: 0 0 12px;
	font-size: var( --citivo-fs-titre, 1.05rem );
	font-weight: 700;
	color: #315ba3;
}

.citivo-pwa-etapes {
	margin: 0 0 16px 1.25em;
	padding: 0;
	font-size: var( --citivo-fs-champ, 1rem );
	line-height: 1.5;
}

.citivo-pwa-etapes li {
	margin: 0 0 8px;
}

.citivo-pwa-partager {
	display: inline-block;
	width: 1.2em;
	height: 1.2em;
	vertical-align: -.2em;
	color: #315ba3;
}

.citivo-pwa-compris,
.citivo-pwa-compris:hover,
.citivo-pwa-compris:focus,
.citivo-pwa-compris:active {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 16px;
	background: #315ba3;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: var( --citivo-fs-champ, 1rem );
	cursor: pointer;
}
