#pwaInstallButton{position:fixed;right:18px;bottom:18px;z-index:9998;border:0;border-radius:14px;padding:11px 15px;background:#335e6a;color:#fff;font-weight:800;box-shadow:0 10px 28px rgba(15,23,42,.20);cursor:pointer;display:none;align-items:center;gap:8px;font-family:Arial,Helvetica,sans-serif}#pwaInstallButton:hover{filter:brightness(.96)}#pwaInstallButton.visible{display:flex}.pwa-modal{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.48);display:none;align-items:center;justify-content:center;padding:18px;font-family:Arial,Helvetica,sans-serif}.pwa-modal.open{display:flex}.pwa-card{width:min(520px,100%);background:#fff;border-radius:20px;padding:22px;box-shadow:0 24px 70px rgba(15,23,42,.25);color:#23324a}.pwa-card h2{margin:0 0 8px}.pwa-card p{line-height:1.5;color:#5f6f7d}.pwa-steps{background:#f4f7f8;border-radius:14px;padding:14px 16px;line-height:1.65}.pwa-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.pwa-actions button{border:0;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}.pwa-close{background:#eaf0f2;color:#23324a}.pwa-primary{background:#335e6a;color:white}@media(max-width:640px){#pwaInstallButton{right:12px;bottom:12px;max-width:calc(100vw - 24px)}}
.pwa-modal{overflow-y:auto;align-items:flex-start;overscroll-behavior:contain}.pwa-modal>*{margin-block:auto}
/* V6.99.402 : sur la page de connexion, la loupe de zoom se place AU-DESSUS du bouton « Installer l'application » (distance mesurée par pwa-install.js). */
body:has(#pwaInstallButton.visible) #gdlScaleBox{bottom:calc(var(--pwa-install-clearance,72px) + 10px)!important}
/* V6.99.406 : sur téléphone, le bouton « Installer l'application » reste EN BAS, à gauche, juste au-dessus de l'indicateur serveur ; la loupe reste seule
   en bas à droite. L'écran d'accueil réserve la place du bouton et se compacte un peu (icônes et marges) pour que le lien
   « Un souci d'affichage ? » reste visible au-dessus, sans défilement sur un téléphone courant. */
@media(max-width:700px){
 html body.gdl-auth-open #pwaInstallButton,html body:not(.gdl-auth-open) #pwaInstallButton{left:8px!important;right:auto!important;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 44px)!important;white-space:nowrap;max-width:calc(100vw - 16px);padding:9px 13px}
 html body:has(#pwaInstallButton.visible) #gdlScaleBox{bottom:max(8px,env(safe-area-inset-bottom))!important}
 html body:has(#pwaInstallButton.visible) .auth-screen{padding-bottom:calc(max(8px,env(safe-area-inset-bottom)) + 104px)!important;padding-top:12px!important}
 html body:has(#pwaInstallButton.visible) .portal-brand{margin-bottom:14px}
 html body:has(#pwaInstallButton.visible) .portal-brand h1{font-size:30px;margin-top:8px}
 html body:has(#pwaInstallButton.visible) .portal-choice-grid{gap:12px}
 html body:has(#pwaInstallButton.visible) .portal-choice{padding:14px 18px}
 html body:has(#pwaInstallButton.visible) .portal-choice img{width:44px;height:44px;margin-bottom:8px}
 html body:has(#pwaInstallButton.visible) .portal-choice span{margin-top:4px;line-height:1.35}
}
