/* push.css — Bannière d'activation des notifications push (push.js) */

.push-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 140%);
  z-index: 9999;
  width: min(560px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  border: 1px solid rgba(0, 0, 0, .06);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}

.push-banner.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.push-banner-icon {
  font-size: 20px;
  flex: 0 0 auto;
}

.push-banner-text {
  flex: 1 1 auto;
  min-width: 0;
}

.push-banner-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity .15s ease, transform .1s ease;
}
.push-banner-btn:hover { opacity: .88; }
.push-banner-btn:active { transform: scale(.97); }

.push-banner-close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: inherit;
  opacity: .5;
  font-size: 15px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
}
.push-banner-close:hover { opacity: .9; }

@media (prefers-color-scheme: dark) {
  .push-banner {
    background: #1f1f22;
    color: #f2f2f2;
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  }
  .push-banner-btn {
    background: #f2f2f2;
    color: #1a1a1a;
  }
}
