/* Bannière d'installation */
.eb-install{position:fixed;left:12px;right:12px;bottom:12px;z-index:99998;display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:10px 12px;box-shadow:0 6px 24px rgba(0,0,0,.18);transform:translateY(140%);transition:transform .35s ease;font-size:14px;line-height:1.35;color:#222}
.eb-install.eb-visible{transform:none}
.eb-install img{width:44px;height:44px;border-radius:10px;flex:none}
.eb-install-txt{flex:1}
.eb-install-ok{background:#0a3a8c;color:#fff;border:0;border-radius:20px;padding:8px 16px;font-weight:600;cursor:pointer}
.eb-install-x{background:none;border:0;font-size:22px;line-height:1;color:#888;cursor:pointer;padding:4px}
.eb-ios-share{display:inline-block;color:#0a7aff}
.eb-app .eb-install{bottom:80px}

/* Modale choix de branche */
.eb-modale{position:fixed;inset:0;z-index:99999;background:rgba(10,30,70,.55);display:flex;align-items:flex-end;justify-content:center}
.eb-modale-ouverte{overflow:hidden}
.eb-modale-boite{background:#fff;width:100%;max-width:480px;border-radius:20px 20px 0 0;padding:24px 20px calc(20px + env(safe-area-inset-bottom));text-align:center;max-height:90vh;overflow:auto;animation:ebMonte .3s ease}
@media(min-width:600px){.eb-modale{align-items:center}.eb-modale-boite{border-radius:20px}}
@keyframes ebMonte{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.eb-modale-logo{width:72px;height:72px;border-radius:16px;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.eb-modale-boite h2{margin:12px 0 4px;font-size:1.4em;color:#0a3a8c}
.eb-modale-boite p{margin:0 0 16px;color:#555}
.eb-modale-liste{display:flex;flex-direction:column;gap:8px}
.eb-modale-liste button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;background:#f5f7fb;border:1px solid #e3e8f2;border-radius:12px;padding:12px 14px;font-size:1em;color:#222;cursor:pointer}
.eb-modale-liste button span{font-size:.82em;color:#666}
.eb-modale-liste button.eb-mere{border-color:#e46e04;background:#fff7ee}
.eb-modale-liste button.eb-mere span{color:#b45309;font-weight:600}
.eb-modale-liste button:active{transform:scale(.98)}
.eb-modale-plus-tard{margin-top:14px;background:none;border:0;color:#666;text-decoration:underline;cursor:pointer;font-size:.95em}

/* Barre de navigation en mode application */
.eb-app{padding-bottom:calc(64px + env(safe-area-inset-bottom))!important}
.eb-nav{position:fixed;left:0;right:0;bottom:0;z-index:99990;display:flex;background:#fff;border-top:1px solid #e5e7eb;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -2px 12px rgba(0,0,0,.06)}
.eb-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:60px;color:#6b7280;text-decoration:none!important;font-size:11px;font-weight:500}
.eb-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.eb-nav a.eb-actif{color:#0a3a8c}
.eb-nav a.eb-actif svg{stroke-width:2.3}
.eb-nav a.eb-actif::before{content:"";position:absolute;top:0;width:32px;height:3px;border-radius:0 0 3px 3px;background:#e46e04}
.eb-nav a{position:relative}
.eb-app #wpadminbar{display:none!important}
.eb-app.admin-bar{margin-top:0!important}
html:has(.eb-app){margin-top:0!important}
