/**
 * ie24 — Encadré « application de l'App Store » (appareils Apple) : carte en verre.
 *
 * Téléphone et tablette : carte flottante en bas d'écran. Mac : même carte en bas à droite.
 * Fond papier translucide et flou ; repli opaque quand le navigateur ne sait pas flouter,
 * pour que le texte du site ne se lise jamais à travers. Le thème n'a pas de mode nuit.
 *
 * @package ie24
 */
.lj-appstore {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 110;
	padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
	-webkit-font-smoothing: antialiased;
}
.lj-appstore * { box-sizing: border-box; }
/* Web app déjà installée : l'encadré se pose au-dessus de la barre d'onglets. */
html.is-pwa .lj-appstore { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); padding-bottom: 0.6rem; }

.lj-appstore[hidden],
.lj-appstore [hidden] { display: none !important; }

.lj-appstore-box {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	max-width: 34rem;
	margin: 0 auto;
	padding: 16px 44px 16px 16px;
	border-radius: 22px;
	background: #f7f5ee; /* repli opaque */
	border: 1px solid rgba(255, 255, 255, 0.65);
	box-shadow: 0 18px 50px rgba(22, 20, 13, 0.22), 0 2px 8px rgba(22, 20, 13, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
	transform: translateY(130%);
	opacity: 0;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.lj-appstore-box {
		background: rgba(247, 245, 238, 0.96); /* le texte du site ne se devine plus à travers la carte */
		-webkit-backdrop-filter: blur(24px) saturate(1.7);
		backdrop-filter: blur(24px) saturate(1.7);
	}
}
.lj-appstore.is-visible .lj-appstore-box {
	transform: translateY(0);
	opacity: 1;
}

.lj-appstore-ico {
	display: block;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 13px;
	box-shadow: 0 0 0 1px rgba(22, 20, 13, 0.12), 0 2px 6px rgba(22, 20, 13, 0.18);
}
.lj-appstore-corps { min-width: 0; flex: 1; }

.lj-appstore-titre {
	margin: 0;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
}
.lj-appstore-texte {
	margin: 3px 0 0;
	font-family: var(--font-sans);
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--ink-soft);
}
.lj-appstore-mac {
	margin: 4px 0 0;
	font-family: var(--font-sans);
	font-size: 12.5px;
	color: var(--ink-mute);
}

.lj-appstore-lien {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 10px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background var(--dur-fast) var(--ease);
}
.lj-appstore-lien:hover { background: var(--accent-ink); color: #fff; }
.lj-appstore-lien:focus-visible,
.lj-appstore-fermer:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* Croix : zone de toucher de 44 px, disque visible de 28 px. */
.lj-appstore-fermer {
	position: absolute;
	top: 2px;
	right: 2px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	appearance: none;
	background: none;
	color: var(--ink);
	cursor: pointer;
}
.lj-appstore-fermer::before {
	content: "";
	position: absolute;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(22, 20, 13, 0.09);
}
.lj-appstore-fermer svg { position: relative; display: block; width: 16px; height: 16px; stroke-width: 2; }

/* Mac : carte en bas à droite. */
.lj-appstore--mac {
	left: auto;
	right: 24px;
	bottom: 24px;
	width: 380px;
	max-width: calc(100vw - 2.5rem);
	padding: 0;
}
.lj-appstore--mac .lj-appstore-box { max-width: none; margin: 0; padding: 18px 46px 18px 18px; }
@media (max-width: 560px) {
	/* Fenêtre de Mac très étroite : retour à la feuille. */
	.lj-appstore--mac { left: 0; right: 0; bottom: 0; width: auto; max-width: none; padding: 0 12px 12px; }
	.lj-appstore--mac .lj-appstore-box { max-width: 34rem; margin: 0 auto; padding: 16px 44px 16px 16px; }
}

/* Le sélecteur de langue flottant (GTranslate) remonte au-dessus de l'encadré, sur tous les
   appareils : --lj-appstore-h est la distance entre le bas de l'écran et le haut de l'encadré,
   mesurée par le script (Mac, téléphone, tablette, web app). Sa liste de langues suit, ancrée
   au-dessus du bouton comme d'habitude (44 px d'écart, components.css). Sélecteurs renforcés :
   ils doivent l'emporter sur components.css et sur la règle de la web app (pwa.css). */
html.lj-appstore-visible .gtranslate_wrapper .gt_switcher_wrapper,
html.lj-appstore-visible .gt_switcher_wrapper {
	bottom: calc(var(--lj-appstore-h, 160px) + 10px) !important;
	right: var(--lj-appstore-d, 18px) !important;
	top: auto !important;
	transition: bottom 0.3s ease;
}
/* Le bord droit du bouton et de sa liste s'aligne sur celui de l'encadré (--lj-appstore-d, mesuré). */
html.lj-appstore-visible body .gtranslate_wrapper .gt_white_content {
	bottom: calc(var(--lj-appstore-h, 160px) + 54px) !important;
	right: var(--lj-appstore-d, 18px) !important;
}

@media print {
	.lj-appstore { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.lj-appstore-box { transition: none; transform: none; }
}
