/* Notifications push — popup + encadré Actualités */

.bras-push-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: calc(1rem + var(--bras-safe-bottom, 0px));
}

.bras-push-modal[hidden] {
  display: none !important;
}

.bras-push-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 15, 0.48);
  border: 0;
  cursor: pointer;
}

.bras-push-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 22.5rem);
  max-height: min(100%, 100dvh - 2rem);
  overflow-y: auto;
  padding: 1.35rem 1.2rem 1.2rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 16, 15, 0.28);
  text-align: center;
}

.bras-push-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bras-muted, #64605c);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.bras-push-modal__icon {
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
}

.bras-push-modal__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--bras-canvas, #f3f2ef);
}

.bras-push-modal__title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bras-ink, #10100f);
}

.bras-push-modal__lead,
.bras-push-modal__ios {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--bras-muted, #64605c);
}

.bras-push-modal__ios {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(139, 35, 50, 0.07);
  text-align: left;
  font-size: 0.82rem;
  color: var(--bras-ink, #10100f);
}

.bras-push-modal__ios[hidden] {
  display: none !important;
}

.bras-push-prefs {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  text-align: left;
}

.bras-push-prefs__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: var(--bras-canvas, #f3f2ef);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bras-ink, #10100f);
  cursor: pointer;
}

.bras-push-prefs__item input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--bras-red, #8b2332);
}

.bras-push-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bras-push-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.bras-push-modal__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.bras-push-modal__btn--primary {
  background: var(--bras-red, #8b2332);
  color: #fff;
}

.bras-push-modal__btn--primary:hover {
  background: var(--bras-red-dark, #731d2a);
}

.bras-push-modal__btn--ghost {
  background: transparent;
  color: var(--bras-muted, #64605c);
}

.bras-push-modal__btn--ghost:hover {
  color: var(--bras-ink, #10100f);
}

body.bras-push-modal-open {
  overflow: hidden;
}

/* Encadré page Actualités */
.bras-push-box {
  grid-column: 1 / -1;
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 35, 50, 0.08), rgba(243, 242, 239, 0.95));
  border: 1px solid rgba(139, 35, 50, 0.12);
}

.bras-push-box__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bras-ink, #10100f);
}

.bras-push-box__lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--bras-muted, #64605c);
}

.bras-push-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.bras-push-box__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.bras-push-box__btn--primary {
  background: var(--bras-red, #8b2332);
  color: #fff;
}

.bras-push-box__btn--ghost {
  background: transparent;
  color: var(--bras-muted, #64605c);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bras-push-box [hidden] {
  display: none !important;
}

.bras-push-box__unsupported {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--bras-muted, #64605c);
}

/* Popup lecture notice (clic notif) */
.bras-push-notice {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: calc(1rem + var(--bras-safe-bottom, 0px));
}

.bras-push-notice[hidden] {
  display: none !important;
}

.bras-push-notice__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 16, 15, 0.52);
  cursor: pointer;
}

.bras-push-notice__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(100%, 100dvh - 2rem);
  overflow-y: auto;
  padding: 1.2rem 1.15rem 1.15rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 16, 15, 0.28);
}

.bras-push-notice__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bras-muted, #64605c);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.bras-push-notice__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bras-muted, #64605c);
}

.bras-push-notice__brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bras-canvas, #f3f2ef);
}

.bras-push-notice__media {
  margin: 0 0 0.85rem;
}

.bras-push-notice__media[hidden] {
  display: none !important;
}

.bras-push-notice__media img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bras-canvas, #f3f2ef);
}

.bras-push-notice__title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bras-ink, #10100f);
}

.bras-push-notice__body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--bras-text, #2a2622);
}

.bras-push-notice__body p {
  margin: 0 0 0.65rem;
}

.bras-push-notice__body ul,
.bras-push-notice__body ol {
  margin: 0 0 0.65rem 1.1rem;
  padding: 0;
}

.bras-push-notice__body li {
  margin: 0.2rem 0;
}

.bras-push-notice__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}

.bras-push-notice__cta,
.bras-push-notice__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.bras-push-notice__cta {
  background: var(--bras-red, #8b2332);
  color: #fff;
}

.bras-push-notice__cta[hidden] {
  display: none !important;
}

.bras-push-notice__dismiss {
  background: transparent;
  color: var(--bras-muted, #64605c);
}

body.bras-push-notice-open {
  overflow: hidden;
}
