/* Bouton « Installer l'app » (header) + explications (voir class-pwa.php). */
.avtr-install:not([hidden]),
.avtr-share {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px;
	margin-right: 4px;
	border: 1px solid var(--ad-primary-color, #E25822);
	border-radius: 999px;
	background: transparent;
	color: var(--ad-primary-color, #E25822);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}
.avtr-install:hover,
.avtr-install:focus-visible,
.avtr-share:hover,
.avtr-share:focus-visible {
	background: var(--ad-primary-color, #E25822);
	color: #fff;
}
/* Mobile : icône seule, comme les icônes messages / notifications. */
@media (max-width: 782px) {
	.avtr-install:not([hidden]),
	.avtr-share {
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		margin: 0;
		border: 0;
		border-radius: 8px;
	}
	.avtr-install svg, .avtr-share svg { width: 22px; height: 22px; }
	.avtr-install span, .avtr-share span { display: none; }
	.avtr-install:hover,
	.avtr-install:focus-visible,
	.avtr-share:hover,
	.avtr-share:focus-visible { background: var(--ad-content-alt-background, #f3f4f6); color: var(--ad-primary-color, #E25822); }
}

.avtr-install-help {
	width: min(420px, calc(100vw - 32px));
	padding: 24px;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	color: #1f2937;
	font-size: 15px;
	line-height: 1.5;
}
.avtr-install-help::backdrop { background: rgba(17, 24, 39, .45); }
.avtr-install-help h2 { margin: 0 0 8px; font-size: 18px; }
.avtr-install-help__lead { margin: 0 0 12px; color: #4b5563; }
.avtr-install-help ol { margin: 0 0 16px; padding-left: 20px; }
.avtr-install-help ol[hidden] { display: none; }
.avtr-install-help li { margin: 6px 0; }
.avtr-install-help li svg { vertical-align: -3px; }
.avtr-install-help form { margin: 0; }
.avtr-install-help__close {
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 10px;
	background: var(--ad-primary-color, #E25822);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Fenêtre « Partager » (ordinateur). */
.avtr-share-help__row { display: flex; gap: 8px; margin: 0 0 12px; }
.avtr-share-help__row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-size: 14px; color: #1f2937; background: #f9fafb; }
.avtr-share-help__copy { padding: 0 14px; border: 1px solid var(--ad-primary-color, #E25822); border-radius: 10px; background: #fff; color: var(--ad-primary-color, #E25822); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.avtr-share-help__apps { display: flex; gap: 8px; margin: 0 0 16px; }
.avtr-share-help__apps a { flex: 1; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; color: #1f2937; text-align: center; text-decoration: none; font-weight: 600; }
.avtr-share-help__apps a:hover { background: #f3f4f6; }

/* QR plein écran du bouton « Partager » (même rendu que les cartes de visite). */
.avtr-qr {
	position: fixed; inset: 0; z-index: 100001; background: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
	color: #1E293B; font-family: inherit;
}
.avtr-qr canvas { width: min(86vw, 62vh); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.avtr-qr__name { font-size: 24px; font-weight: 800; text-align: center; }
.avtr-qr__hint { color: #475569; text-align: center; }
.avtr-qr__close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #F4F1EE; color: #1E293B; display: grid; place-items: center; cursor: pointer; padding: 0; }
.avtr-qr__share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: #E25822; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.avtr-qr__share:hover { background: #c94c1c; }
html.avtr-qr-open, html.avtr-qr-open body { overflow: hidden; }
