/* MemoMilo — application installable (PWA), version web. */

/* Ressenti « application » : pas de rebond, pas de zoom au double-toucher, pas de surbrillance grise. */
html.mq-web, html.mq-web body { overscroll-behavior: none; }
html.mq-web .mq-shell { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.mq-web .mq-shell img { -webkit-user-drag: none; -webkit-touch-callout: none; }

/* Application installée : fond du jeu derrière les zones système, aucune trace du site autour. */
html.mq-pwa, html.mq-pwa body { background: #63cdf2 !important; }
html.mq-pwa body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.mq-pwa #wpadminbar { display: none !important; }
html.mq-pwa { margin-top: 0 !important; }
html.mq-pwa .mq-shell input, html.mq-pwa .mq-shell textarea { -webkit-user-select: text; user-select: text; }
:fullscreen body, :fullscreen .mq-shell { background-color: #63cdf2; }

/* ---------------- Feuille d'installation ---------------- */
.mqp-layer { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; pointer-events: none;
	font-family: inherit; color: #153c7a; -webkit-font-smoothing: antialiased; }
.mqp-layer.is-open { pointer-events: auto; }
.mqp-scrim { position: absolute; inset: 0; background: rgba(9, 32, 72, .42); opacity: 0; transition: opacity .24s ease; }
.mqp-layer.is-open .mqp-scrim { opacity: 1; }
.mqp-sheet { position: relative; width: min(100%, 460px); box-sizing: border-box; margin: 0 auto;
	padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0;
	background: linear-gradient(180deg, #ffffff 0%, #f2fbff 100%); box-shadow: 0 -18px 50px rgba(9, 32, 72, .28);
	transform: translate3d(0, 105%, 0); transition: transform .32s cubic-bezier(.2, .9, .25, 1); will-change: transform; }
.mqp-layer.is-open .mqp-sheet { transform: translate3d(0, 0, 0); }
.mqp-grab { display: block; width: 44px; height: 5px; border-radius: 9px; background: #cfe1ef; margin: 0 auto 12px; }
.mqp-sheet header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mqp-sheet header img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 16px rgba(21, 60, 122, .25); flex: none; }
.mqp-sheet header div { flex: 1; min-width: 0; }
.mqp-sheet header small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #0fa3b4; }
.mqp-sheet h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.15; font-weight: 900; color: #153c7a; }
.mqp-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e8f3fb; color: #55719c; font-size: 24px; line-height: 1; cursor: pointer; }
.mqp-benefits { list-style: none; margin: 0 0 14px; padding: 12px 14px; border-radius: 18px; background: #e9f8fd; display: grid; gap: 8px; }
.mqp-benefits li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; }
.mqp-benefits svg { width: 20px; height: 20px; color: #0fa3b4; flex: none; }
.mqp-note { margin: -4px 2px 14px; font-size: 12.5px; line-height: 1.4; font-weight: 600; color: #55719c; }
.mqp-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.mqp-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.5; }
.mqp-steps small { display: block; font-size: 12.5px; font-weight: 500; color: #55719c; }
.mqp-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff;
	background: linear-gradient(105deg, #16c4ce 0%, #2e86e0 100%); }
.mqp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 9px; background: #eef4fa; border: 1px solid #d6e5f2; font-weight: 800; white-space: nowrap; }
.mqp-chip svg, .mqp-lead svg { width: 17px; height: 17px; color: #2e86e0; vertical-align: -3px; }
.mqp-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.5; font-weight: 600; }
.mqp-actions { display: grid; gap: 8px; }
.mqp-primary, .mqp-ghost { appearance: none; border: 0; border-radius: 999px; min-height: 52px; font: inherit; font-size: 17px; font-weight: 900; cursor: pointer; }
.mqp-primary { color: #fff; background: linear-gradient(105deg, #16c4ce 0%, #2e86e0 100%); box-shadow: 0 5px 0 #1f6ac0; }
.mqp-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #1f6ac0; }
.mqp-ghost { background: transparent; color: #55719c; min-height: 44px; font-size: 15px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .mqp-sheet, .mqp-scrim { transition: none; } }
