/* GradedHunter — appli installable (PWA) : invitation à installer + réglages du mode appli. Graphisme, 24/11/2026. Voir assets/pwa.*.js. */

/* ---------- mode appli (html.gh-appli, posé par pwa.js en display-mode standalone) ---------- */
html.gh-appli { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }   /* pas de zoom au double-toucher ; le pincement reste */
html.gh-appli body:not(.mp) { padding-bottom: env(safe-area-inset-bottom); }               /* rien sous la barre d'accueil de l'iPhone */
@media (display-mode: standalone) and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }                                                    /* fondu entre deux pages, comme une appli */
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
}

/* ---------- bandeau d'invitation ---------- */
.ghi { position: fixed; left: 12px; right: 12px; bottom: var(--ghi-bas, calc(12px + env(safe-area-inset-bottom))); z-index: 9500;
  display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; padding: 10px 6px 10px 10px;
  background: #171a20; border: 1px solid #2f3742; border-radius: 16px; box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #f2f3f5;
  opacity: 0; transform: translateY(16px); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.ghi.on { opacity: 1; transform: none; pointer-events: auto; }
.ghi-ic { flex: none; display: flex; }
.ghi-ic img { width: 44px; height: 44px; border-radius: 10px; display: block; }
.ghi-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ghi-tx b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ghi-tx span { font-size: 14px; line-height: 1.3; color: #a9b0bb; text-wrap: balance; }
.ghi-go { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: #e3a857; color: #14171d;
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ghi-go:active { transform: scale(.97); }
.ghi-x, .ghs-x { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: #a9b0bb; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ghi-x:hover, .ghs-x:hover { color: #f2f3f5; }
.ghi-go:focus-visible, .ghi-x:focus-visible, .ghs-x:focus-visible, .ghs-ok:focus-visible { outline: 2px solid #e3a857; outline-offset: 2px; }
@media (max-width: 359px) { .ghi-ic { display: none; } .ghi-tx span { display: none; } }

/* ---------- feuille iPhone (Partager → Sur l'écran d'accueil) ---------- */
.ghs-voile { position: fixed; inset: 0; z-index: 9600; background: rgba(5, 7, 10, .6); opacity: 0; transition: opacity .22s ease; }
.ghs-voile.on { opacity: 1; }
.ghs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9601; max-width: 520px; margin: 0 auto; max-height: 92vh; overflow: auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); background: #14171d; border: 1px solid #2a2f38; border-bottom: 0;
  border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .5); color: #f2f3f5;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-align: center;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.ghs.on { transform: none; }
.ghs-x { position: absolute; top: 8px; right: 8px; }
.ghs-ic { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 12px; }
.ghs-ic img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.ghs-ic span { font-size: 12px; color: #a9b0bb; }
.ghs h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.ghs-sous { margin: 0 0 16px; font-size: 14px; color: #a9b0bb; }
.ghs-et { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; background: #1a1e25; border: 1px solid #2a2f38; border-radius: 14px; }
.ghs-et li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px; font-size: 15px; line-height: 1.4; }
.ghs-et li + li { border-top: 1px solid #2a2f38; }
.ghs-et i { flex: none; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(227, 168, 87, .14); color: #e3a857; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; font-style: normal; }
.ghs-et b { font-weight: 600; }
.ghs-et small { display: block; margin-top: 4px; font-size: 14px; color: #a9b0bb; }
.ghi-pic { display: inline-block; vertical-align: -4px; margin: 0 2px; padding: 3px; width: 26px; height: 26px; border-radius: 7px;
  background: #262b33; color: #6fa8ff; }
.ghs-ok { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: #e3a857; color: #14171d;
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ghi, .ghs, .ghs-voile { transition: none; } }
