/* Bandeau d'installation, cloches de notification par rabbin, toast (static/js/pwa.js).
   Meme fichier cote site audio, seules les couleurs du bloc :root changent. */
:root {
  --pwa-surface: #2a3548;
  --pwa-border: #3a455a;
  --pwa-text: #f1f1f1;
  --pwa-muted: #aaaaaa;
  --pwa-accent: #38bdf8;
  --pwa-accent-text: #0b1220;
  --pwa-accent-soft: rgba(56, 189, 248, 0.12);
}

.pwa-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--pwa-surface);
  border: 1px solid var(--pwa-border);
  border-radius: 14px;
  color: var(--pwa-text);
}
.pwa-banner__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.pwa-banner__text { flex: 1; margin: 0; font-size: 14px; line-height: 1.45; }
.pwa-banner__share { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; color: var(--pwa-accent); }
.pwa-banner__install {
  flex: none;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--pwa-accent);
  color: var(--pwa-accent-text);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.pwa-banner__close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--pwa-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.push-bell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  border: 1px solid var(--pwa-accent);
  border-radius: 999px;
  background: none;
  color: var(--pwa-accent);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.push-bell[hidden] { display: none; }
.push-bell:hover { background: var(--pwa-accent-soft); }
.push-bell.is-on { background: var(--pwa-accent); color: var(--pwa-accent-text); }
.push-bell:disabled { opacity: 0.6; cursor: wait; }
.push-bell svg { flex: none; }

/* Variante en ligne avec d'autres boutons. */
.push-bell--inline { margin-top: 0; }

/* Variante pages cours : icone seule a cote du nom du rabbin. */
.push-bell--compact { margin: 0 4px 0 0; padding: 3px; border-color: transparent; }
.push-bell--compact .push-bell__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.push-bell--compact.is-on { border-color: var(--pwa-accent); }

.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  z-index: 1000;
  max-width: min(92vw, 420px);
  padding: 10px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.pwa-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
