/* PushPost — front (thème-agnostique). Accent piloté par --pushpost-accent. */
:root { --pushpost-accent: #6D63FF; --pushpost-radius: 50%; --pushpost-halo: #6D63FF; }

.pushpost-cloche { -webkit-appearance: none; appearance: none; margin: 0; padding: 0; line-height: 1; box-sizing: border-box; font-family: inherit; cursor: pointer; border: none !important; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pushpost-accent); box-shadow: none; transition: transform .18s, box-shadow .18s, background .3s; }
.pushpost-cloche svg { width: 20px; height: 20px; }
.pushpost-cloche.on { background: #22C55E; }

/* Flottant */
.pushpost-flottant { position: fixed; width: 56px; height: 56px; padding: 0 !important; border-radius: var(--pushpost-radius) !important; background: var(--pushpost-accent) !important; z-index: 99998; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); }
  .pushpost-flottant.halo-on { animation: pushpost-pulse 2.6s ease-in-out infinite; }
.pushpost-flottant.on { animation: none; background: #22C55E !important; }
.pushpost-flottant:hover { transform: translateY(-2px) scale(1.05); }
.pushpost-flottant svg { width: 24px; height: 24px; }
.pushpost-pos-bas-droite { right: 20px; bottom: 20px; }
.pushpost-pos-bas-gauche { left: 20px; bottom: 20px; }
.pushpost-pos-haut-droite { right: 20px; top: 20px; }
.pushpost-pos-haut-gauche { left: 20px; top: 20px; }
@keyframes pushpost-pulse-doux { 0%,100% { box-shadow: 0 8px 24px -10px rgba(0,0,0,.4); } 50% { box-shadow: 0 8px 26px -10px var(--pushpost-halo); } }
  @keyframes pushpost-pulse-fort { 0%,100% { box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); } 50% { box-shadow: 0 10px 40px 0 var(--pushpost-halo); } }

/* Menu / inline (shortcode) */
.pushpost-menu { width: 40px; height: 40px; border-radius: 10px !important; }
.pushpost-inline { padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; vertical-align: middle; }
.pushpost-inline .pushpost-ic { display: inline-flex; }
.pushpost-menu-item { list-style: none; display: flex; align-items: center; }
.pushpost-badge { display: none; }

/* Overlays (pré-prompt + invite) */
.pushpost-overlay { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; background: rgba(8,12,17,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.pushpost-overlay.show { opacity: 1; pointer-events: auto; }
.pushpost-card { position: relative; z-index: 1; width: min(500px, 94vw); text-align: center; background: #16212e; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 32px 26px 24px; box-shadow: 0 40px 90px -24px rgba(0,0,0,.7); color: #e7eef5; transform: translateY(18px) scale(.96); opacity: 0; transition: transform .38s cubic-bezier(.2,.9,.25,1), opacity .38s; }
.pushpost-overlay.show .pushpost-card { transform: none; opacity: 1; }
.pushpost-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 0 !important; display: flex; align-items: center; justify-content: center; border-radius: 8px !important; border: 1px solid rgba(255,255,255,.14) !important; background: rgba(255,255,255,.06) !important; color: #9fb0c0 !important; font-size: 17px; line-height: 1; cursor: pointer; box-shadow: none !important; }
.pushpost-x:hover { color: #fff; background: rgba(255,255,255,.14); }
.pushpost-card-ic { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--pushpost-accent); box-shadow: 0 14px 30px -12px var(--pushpost-halo); color: #fff; font-size: 26px; }
.pushpost-card-ic.ok { background: #22C55E; box-shadow: 0 14px 34px -10px #22C55E; }
.pushpost-card-ic svg { width: 28px; height: 28px; display: block; }
.pushpost-card-h { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.pushpost-card-p { margin: 0 0 22px; font-size: 14px; line-height: 1.55; color: #8fa3b5; }
.pushpost-acts { display: flex; gap: 10px; }
.pushpost-btn { -webkit-appearance: none; appearance: none; flex: 1; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; border: none !important; border-radius: 11px !important; padding: 12px 16px; color: #fff; background: var(--pushpost-accent) !important; box-shadow: none; }
.pushpost-btn:hover { transform: translateY(-1px); }
.pushpost-btn.ghost { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.16) !important; color: #e7eef5; }

/* Invite « verre » */
.pushpost-glass { background: rgba(8,12,17,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pushpost-glass .pushpost-card { background: rgba(20,31,44,.6); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); }
.pushpost-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pushpost-blobs span { position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; border-radius: 50%; filter: blur(70px); opacity: .5; }
.pushpost-blobs span:nth-child(1) { background: var(--pushpost-accent); animation: pushpost-b1 15s ease-in-out infinite; }
.pushpost-blobs span:nth-child(2) { background: #43C3F5; animation: pushpost-b2 18s ease-in-out infinite; }
.pushpost-blobs span:nth-child(3) { background: #E91E63; opacity: .38; animation: pushpost-b3 21s ease-in-out infinite; }
@keyframes pushpost-b1 { 0%,100% { transform: translate(-72%,-78%); } 50% { transform: translate(-44%,-46%); } }
@keyframes pushpost-b2 { 0%,100% { transform: translate(-24%,-30%); } 50% { transform: translate(-58%,-64%); } }
@keyframes pushpost-b3 { 0%,100% { transform: translate(-50%,-40%); } 50% { transform: translate(-40%,-66%); } }

@media (prefers-reduced-motion: reduce) {
  .pushpost-flottant, .pushpost-blobs span { animation: none; }
}
