/* appmobile – bandeaux d'installation et de notifications */
.amob-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 99999;
  background: #fff;
  color: #1d1d1b;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 14px 14px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
  max-width: 520px;
  margin: 0 auto;
}
.amob-banner.amob-in { transform: translateY(0); opacity: 1; }
.amob-banner.amob-hide { transform: translateY(120%); opacity: 0; }
.amob-banner * { box-sizing: border-box; }
.amob-row { display: flex; align-items: flex-start; gap: 12px; }
.amob-icon { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px; object-fit: cover; }
.amob-texts { flex: 1 1 auto; min-width: 0; padding-right: 20px; }
.amob-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.amob-text { color: #555; }
.amob-close {
  position: absolute; top: 6px; right: 8px; border: 0; background: transparent; color: #999;
  font-size: 24px; line-height: 1; padding: 4px 8px; cursor: pointer;
}
.amob-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.amob-btn {
  font: inherit; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 9px 18px; cursor: pointer; border: 1px solid transparent;
}
.amob-btn.amob-main { background: var(--amob-color, #1d1d1b); color: #fff; }
.amob-btn.amob-later { background: transparent; color: #666; border-color: #ddd; }
.amob-share { vertical-align: -5px; margin: 0 2px; color: #007aff; }
.amob-where { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #ddd; font-size: 13px; color: #444; }
.amob-ios-bottom .amob-where::after {
  content: ""; display: block; width: 14px; height: 14px; margin: 8px auto 0; border-right: 3px solid #007aff; border-bottom: 3px solid #007aff;
  transform: rotate(45deg); animation: amob-bounce 1.2s ease-in-out infinite;
}
@keyframes amob-bounce { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(6px) rotate(45deg); } }
.amob-ios .amob-actions { margin-top: 8px; }
.amob-ios .amob-text { color: #333; }
.amob-ios-bottom::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; background: #fff;
  transform: translateX(-50%) rotate(45deg); box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.08);
}
@media (min-width: 992px) {
  .amob-banner { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .amob-ios-bottom::after { display: none; }
}
@media (prefers-color-scheme: dark) {
  .amob-banner { background: #1e1e1e; color: #f2f2f2; }
  .amob-text { color: #c8c8c8; }
  .amob-ios-bottom::after { background: #1e1e1e; }
  .amob-btn.amob-later { color: #ccc; border-color: #444; }
}
/* bloc « Mon compte » */
.amob-account { margin-top: 20px; }
.amob-account .amob-state { margin: 6px 0 10px; color: #666; }
.amob-account.amob-on .amob-state { color: #2e8b57; }
/* bouton de thème facultatif : masqué tant que l'installation n'est pas proposable */
.js-amob-install { display: none; }
html.amob-installable .js-amob-install, html.amob-ios .js-amob-install { display: inline-block; }
.amob-account .amob-account-inner { display: block; background: #fff; padding: 1rem; margin-bottom: 1rem; text-transform: none; font-weight: normal; }
.amob-account .amob-account-inner strong { display: block; font-size: 1.1em; margin: 6px 0 4px; }
.amob-account .amob-account-inner .material-icons { font-size: 2.5rem; color: #7a7a7a; }
.amob-account .amob-text { margin: 0 0 6px; color: #555; }
