/* Palladium.Pwa — « Installer l'application » button placed by the page builder
   (PwaInstallButton widget). Hidden until the browser offers installation. */
.pd-pwa-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.2rem; border-radius: .5rem; border: 1px solid transparent; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.pd-pwa-btn[hidden] { display: none; }
.pd-pwa-btn svg { width: 18px; height: 18px; flex: none; }
.pd-pwa-btn--primary { background: var(--pd-emerald, #1AD598); border-color: var(--pd-emerald, #1AD598); color: #0B1929; }
.pd-pwa-btn--primary:hover { background: var(--pd-emerald-hover, #15B880); border-color: var(--pd-emerald-hover, #15B880); }
.pd-pwa-btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.pd-pwa-btn--outline:hover { background: rgba(148, 163, 184, .12); }
.pd-pwa-btn--text { background: transparent; padding-left: 0; padding-right: 0; color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.pd-pwa-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.pd-pwa-ioshint { display: block; margin-top: .4rem; font-size: .85rem; opacity: .8; }
/* Page builder canvas: the button must stay visible while editing. */
[data-gjs-type="PwaInstallButton"][hidden] { display: inline-flex; }

/* « Installer l'application » chip (bottom right, dismissable) — settings option, shown when no button was placed in the page. */
.pd-pwa-install {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1060;
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .3rem .3rem .3rem .4rem;
    border-radius: 999px;
    background: var(--surface, #fff);
    color: var(--fg, #1e293b);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    font-family: inherit;
}
.pd-pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem .5rem .8rem;
    border: none;
    border-radius: 999px;
    background: var(--pd-emerald, #1AD598);
    color: #0B1929;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}
.pd-pwa-install-btn:hover { background: var(--pd-emerald-hover, #15B880); }
.pd-pwa-install-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--fg-muted, #64748B);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.pd-pwa-install-close:hover { background: rgba(148, 163, 184, .18); }
/* iPhone / iPad: steps shown above the chip on tap. */
.pd-pwa-install-hint {
    position: fixed;
    right: 1rem;
    bottom: 4.4rem;
    z-index: 1060;
    max-width: min(320px, calc(100vw - 2rem));
    padding: .7rem .9rem;
    border-radius: .75rem;
    background: var(--surface, #fff);
    color: var(--fg, #1e293b);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    font-family: inherit;
    font-size: .9rem;
    line-height: 1.35;
}
.pd-pwa-install-btn:focus-visible, .pd-pwa-install-close:focus-visible { outline: 2px solid #0B1929; outline-offset: 2px; }
@media (max-width: 560px) {
    .pd-pwa-install { right: .6rem; bottom: .6rem; left: auto; }
    .pd-pwa-install-hint { right: .6rem; bottom: 4rem; }
}
