.pwa-install {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(79, 70, 229, .18);
    border-radius: 11px;
    background: rgba(79, 70, 229, .07);
    color: #4338ca;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.pwa-install:hover { background: rgba(79, 70, 229, .12); box-shadow: 0 8px 20px rgba(79, 70, 229, .12); transform: translateY(-1px); }
.pwa-install:active { transform: translateY(0); }
.pwa-install[hidden] { display: none !important; }
.pwa-install i { font-size: 17px; }
.pwa-install--guest { width: 100%; margin-top: 14px; min-height: 44px; }
.pwa-install.pwa-install--topbar {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--TM, #6b7280);
    box-shadow: none;
}
.pwa-install.pwa-install--topbar:hover,
.pwa-install.pwa-install--topbar:focus-visible {
    background: var(--PL, rgba(79, 70, 229, .10));
    color: var(--P, #4338ca);
    box-shadow: none;
}
.pwa-install.pwa-install--launcher {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50%;
}
.pwa-install--launcher i { font-size: 17px; }
.pwa-install__libelle-visuel {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.pwa-install[data-pwa-label]::after {
    content: attr(data-pwa-label);
    position: absolute;
    z-index: 5100;
    top: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: min(220px, 80vw);
    padding: 7px 10px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    box-shadow: 0 9px 24px rgba(15, 23, 42, .18);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -4px);
    transition: opacity .15s ease, transform .15s ease;
}
.pwa-install[data-pwa-label]:hover::after,
.pwa-install[data-pwa-label]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.pwa-guide[hidden] { display: none !important; }
.pwa-guide { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, .48); backdrop-filter: blur(5px); }
.pwa-guide__carte { width: min(430px, 100%); padding: 24px; border: 1px solid rgba(148, 163, 184, .25); border-radius: 20px; background: #fff; color: #172033; box-shadow: 0 24px 70px rgba(15, 23, 42, .24); }
.pwa-guide__icone { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 15px; background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: #4f46e5; font-size: 25px; }
.pwa-guide__carte h2 { margin: 0 0 8px; font-size: 21px; }
.pwa-guide__carte p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.65; }
.pwa-guide__etapes { margin: 16px 0 20px; padding-left: 22px; color: #334155; font-size: 14px; line-height: 1.75; }
.pwa-guide__fermer { width: 100%; min-height: 42px; border: 0; border-radius: 11px; background: #4f46e5; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 720px) {
    .pwa-install.pwa-install--topbar { flex-basis: 30px; width: 30px; height: 30px; min-height: 30px; }
    .pwa-install[data-pwa-label]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pwa-install { transition: none; } }
