/* Encart « Restez prévenus » (notifications), page d'accueil. Rempli par assets/notifs.js. */
.notifs { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
.notifs__card {
  position: relative; max-width: 46rem; padding: clamp(1.3rem, 4vw, 2rem);
  background: var(--paper); border: 2px solid var(--brown); border-radius: 22px; box-shadow: 6px 6px 0 var(--teal);
}
.notifs__ico { color: var(--teal-deep); margin-bottom: .6rem; }
.notifs__card > p, .notifs__card #notifs-root p { max-width: 60ch; }
.notifs__topics { border: 0; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .15rem; }
.notifs__topics legend { font-weight: 800; padding: 0; margin-bottom: .35rem; }
.notifs__check { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 600; cursor: pointer; }
.notifs__check input { flex: none; width: 1.25rem; height: 1.25rem; accent-color: var(--brown); }
.notifs__steps { margin: 0 0 1rem; padding-left: 1.4rem; display: grid; gap: .45rem; }
.notifs__on { font-weight: 800; color: var(--teal-deep); }
.notifs__warn { padding: .8rem 1rem; border: 2px dashed var(--brown); border-radius: 14px; }
.notifs__msg { font-weight: 700; min-height: 0; }
.notifs__msg:empty { display: none; }
.notifs__install { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.notifs__install summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.notifs__install p:last-child { margin-bottom: 0; }
.notifs .btn:disabled { opacity: .55; cursor: not-allowed; }

/* Bandeau du haut : installer l'appli / activer les notifications. Remplace le bandeau d'inscription tant qu'il s'affiche. */
.has-appbar #signup { display: none !important; }
.appbar { background: var(--brown-deep); color: var(--cream); }
.appbar__in { display: flex; align-items: center; gap: .6rem 1rem; padding-block: .7rem; position: relative; padding-right: 2.6rem; }
.appbar__ico { flex: none; border-radius: 11px; }
.appbar__text { margin: 0; max-width: none; display: grid; gap: .05rem; line-height: 1.35; flex: 1 1 auto; min-width: 0; }
.appbar__text strong { font-size: 1.02rem; }
.appbar__text span { font-size: .92rem; opacity: .9; }
.appbar__text .appbar__msg { font-weight: 700; color: var(--teal); opacity: 1; }
.appbar__actions { display: flex; flex-wrap: wrap; gap: .5rem; flex: none; }
.appbar .btn { min-height: 44px; background: var(--cream); border-color: var(--cream); color: var(--brown-deep); }
.appbar .btn:hover { background: var(--teal); border-color: var(--teal); color: var(--brown-deep); }
.appbar .btn--ghost { background: transparent; color: var(--cream); }
.appbar .btn:disabled { opacity: .6; cursor: wait; }
.appbar :focus-visible { outline-color: var(--teal); }
.appbar__close {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .8;
}
.appbar__close:hover { opacity: 1; }
@media (max-width: 700px) {
  .appbar__in { flex-wrap: wrap; align-items: flex-start; }
  .appbar__text { flex: 1 1 0; }
  .appbar__ico { width: 40px; height: 40px; }
  .appbar__close { top: .4rem; transform: none; }
  .appbar__actions { width: 100%; }
  .appbar__actions .btn { flex: 1 1 auto; }
}
.notifs__warn p:last-child { margin-bottom: 0; }
.notifs__warn { margin-bottom: 1rem; }
.appbar a.btn { text-decoration: none; }
.appbar__qr { flex: none; width: 96px; height: 96px; border-radius: 8px; background: var(--paper); image-rendering: pixelated; }
.appbar__actions:empty { display: none; }

/* Demande d'autorisation à l'ouverture de l'appli */
.modal.notif-ask {
  width: min(100% - 2rem, 420px); height: fit-content; max-height: calc(100dvh - 2rem); margin: auto; text-align: center;
  border: 2px solid var(--brown); border-radius: 22px; box-shadow: 6px 6px 0 var(--brown);
}
.notif-ask .modal__body { padding: 1.6rem 1.4rem 1.4rem; }
.notif-ask__ico { margin: 0 auto .8rem; border-radius: 16px; }
.notif-ask__title { font-size: 1.6rem; margin-bottom: .6rem; }
.notif-ask p { margin-inline: auto; }
.notif-ask__actions { display: grid; gap: .6rem; margin-top: 1.2rem; }
