/* Popup annonce plein cadre app (#app-container) */
#app-container .annonce-popup-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 12px)) max(12px, env(safe-area-inset-right, 12px))
    max(12px, env(safe-area-inset-bottom, 12px)) max(12px, env(safe-area-inset-left, 12px));
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

#app-container .annonce-popup-overlay-panel {
  position: relative;
  width: 100%;
  max-width: min(340px, 100%);
  max-height: min(78vh, 100%);
  overflow: auto;
  padding: 1.1rem 1rem 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

#app-container .annonce-popup-overlay-panel--minimal {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#app-container .annonce-popup-overlay-panel--accent {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
  box-shadow: 0 12px 36px rgba(180, 134, 11, 0.22);
  border: 2px solid rgba(184, 134, 11, 0.35);
}

#app-container .annonce-popup-overlay-close {
  position: absolute;
  top: 2px;
  right: 4px;
  border: none;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#app-container .annonce-popup-overlay-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0 1.35rem 0.5rem 0;
  line-height: 1.25;
}

#app-container .annonce-popup-overlay-image-wrap {
  margin: 0.35rem 0 0.5rem;
}

#app-container .annonce-popup-overlay-image-wrap img {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
}

#app-container .annonce-popup-overlay-body {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
