/* Push marketing — fenêtres du site. Couleurs, polices et arrondis : thème (variables Bootstrap). */
.eg-push { --eg-push-w: 560px; --eg-push-bg: var(--bs-body-bg, #fff); --eg-push-fg: var(--bs-body-color, #212529); --eg-push-r: var(--bs-border-radius-xl, 1rem);
  position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; padding: 1rem; pointer-events: none; }
.eg-push[hidden] { display: none; }
.eg-push--sm { --eg-push-w: 420px; }
.eg-push--lg { --eg-push-w: 760px; }
.eg-push--t-dark { --eg-push-bg: #12161f; --eg-push-fg: #f3f4f6; }
.eg-push--t-primary { --eg-push-bg: var(--bs-primary, #0d6efd); --eg-push-fg: #fff; }

.eg-push__backdrop { position: absolute; inset: 0; background: rgba(10, 14, 22, var(--eg-push-overlay, .6)); opacity: 0; transition: opacity .35s ease; pointer-events: auto; }
.eg-push.is-open .eg-push__backdrop { opacity: 1; }

.eg-push__box { position: relative; pointer-events: auto; width: 100%; max-width: var(--eg-push-w); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: auto;
  display: flex; flex-direction: column; background: var(--eg-push-bg); color: var(--eg-push-fg); border-radius: var(--eg-push-r);
  box-shadow: 0 1.5rem 4rem rgba(16, 24, 40, .3); opacity: 0; transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1); outline: 0; }
.eg-push--a-zoom .eg-push__box { transform: scale(.9); }
.eg-push--a-slide-up .eg-push__box { transform: translateY(48px); }
.eg-push--a-slide-down .eg-push__box { transform: translateY(-48px); }
.eg-push.is-open .eg-push__box { opacity: 1; transform: none; }

.eg-push__close { position: absolute; top: .65rem; right: .65rem; z-index: 3; width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(127, 127, 127, .16); color: inherit; font-size: .95rem; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.eg-push__close:hover { background: rgba(127, 127, 127, .3); transform: rotate(90deg); }
.eg-push__close:focus-visible, .eg-push__dismiss:focus-visible, .eg-push-teaser:focus-visible { outline: 3px solid rgba(var(--bs-primary-rgb, 13, 110, 253), .45); outline-offset: 2px; }
.eg-push--m-top .eg-push__close, .eg-push--m-right .eg-push__close { background: rgba(255, 255, 255, .88); color: #111; }

.eg-push__media { flex: 0 0 auto; background: rgba(127, 127, 127, .15) center / cover no-repeat; }
.eg-push--m-top .eg-push__media { aspect-ratio: 16 / 8; }
.eg-push--m-left .eg-push__box, .eg-push--m-right .eg-push__box { flex-direction: row; }
.eg-push--m-right .eg-push__box { flex-direction: row-reverse; }
.eg-push--m-left .eg-push__media, .eg-push--m-right .eg-push__media { flex: 0 0 42%; min-height: 320px; }
.eg-push--m-background .eg-push__media { position: absolute; inset: 0; }
.eg-push--m-background .eg-push__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .7)); }
.eg-push--m-background .eg-push__box { color: #fff; min-height: 360px; justify-content: flex-end; }
.eg-push--m-background .eg-push__body { position: relative; z-index: 1; }
.eg-push--m-background .eg-push__title { color: #fff; }

.eg-push__body { padding: 2rem 2rem 1.75rem; min-width: 0; flex: 1 1 auto; }
.eg-push--al-center .eg-push__body { text-align: center; }
.eg-push__title { margin: 0 0 .65rem; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.eg-push--sm .eg-push__title { font-size: 1.35rem; }
.eg-push--t-dark .eg-push__title, .eg-push--t-primary .eg-push__title { color: inherit; }
.eg-push__text { font-size: 1rem; line-height: 1.6; opacity: .92; }
.eg-push__text > :last-child { margin-bottom: 0; }
.eg-push__text img { max-width: 100%; height: auto; border-radius: var(--bs-border-radius, .375rem); }
.eg-push--t-dark .eg-push__text a, .eg-push--t-primary .eg-push__text a, .eg-push--m-background .eg-push__text a { color: inherit; }
.eg-push__form { margin-top: 1.25rem; text-align: left; }
.eg-push__actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.eg-push--al-center .eg-push__actions { justify-content: center; }
.eg-push__actions .btn { padding: .65rem 1.4rem; font-weight: 600; }
.eg-push__dismiss { border: 0; background: none; padding: .25rem; color: inherit; opacity: .7; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.eg-push__dismiss:hover { opacity: 1; }

/* Panneau en coin : discret, sans fond grisé */
.eg-push--slidein { --eg-push-w: 380px; inset: auto 1.25rem 1.25rem auto; padding: 0; width: min(var(--eg-push-w), calc(100vw - 2rem)); display: block; }
.eg-push--slidein.eg-push--sm { --eg-push-w: 320px; }
.eg-push--slidein.eg-push--lg { --eg-push-w: 440px; }
.eg-push--slidein.eg-push--bottom-left { inset: auto auto 1.25rem 1.25rem; }
.eg-push--slidein .eg-push__box { max-height: calc(100vh - 2.5rem); transform: translateY(32px); }
.eg-push--slidein .eg-push__body { padding: 1.5rem 1.5rem 1.35rem; }
.eg-push--slidein .eg-push__title { font-size: 1.2rem; padding-right: 1.75rem; }
.eg-push--slidein.eg-push--m-top .eg-push__title { padding-right: 0; }
.eg-push--slidein .eg-push__text { font-size: .95rem; }

/* Bandeaux haut et bas */
.eg-push--bar-bottom, .eg-push--bar-top { inset: auto 0 0 0; padding: 0; display: block; }
.eg-push--bar-top { inset: 0 0 auto 0; }
.eg-push--bar-bottom .eg-push__box, .eg-push--bar-top .eg-push__box { max-width: none; border-radius: 0; transform: translateY(100%); box-shadow: 0 -.5rem 2rem rgba(16, 24, 40, .18); }
.eg-push--bar-top .eg-push__box { transform: translateY(-100%); box-shadow: 0 .5rem 2rem rgba(16, 24, 40, .18); }
.eg-push--bar-bottom .eg-push__body, .eg-push--bar-top .eg-push__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem 1.25rem; padding: .9rem 3.75rem .9rem 1.25rem; text-align: left; }
.eg-push--bar-bottom .eg-push__title, .eg-push--bar-top .eg-push__title { font-size: 1.05rem; margin: 0; }
.eg-push--bar-bottom .eg-push__text, .eg-push--bar-top .eg-push__text { font-size: .95rem; }
.eg-push--bar-bottom .eg-push__text p, .eg-push--bar-top .eg-push__text p { margin: 0; }
.eg-push--bar-bottom .eg-push__actions, .eg-push--bar-top .eg-push__actions { margin: 0; }
.eg-push--bar-bottom .eg-push__actions .btn, .eg-push--bar-top .eg-push__actions .btn { padding: .45rem 1.1rem; }
.eg-push--bar-bottom .eg-push__form, .eg-push--bar-top .eg-push__form { margin: 0; flex: 1 1 100%; max-width: 640px; }
.eg-push--bar-bottom .eg-push__close, .eg-push--bar-top .eg-push__close { top: 50%; margin-top: -1.125rem; }

/* Plein écran */
.eg-push--fullscreen { padding: 0; }
.eg-push--fullscreen .eg-push__box { max-width: none; width: 100%; height: 100%; max-height: none; border-radius: 0; }
.eg-push--fullscreen .eg-push__body { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 720px; margin: 0 auto; padding: 4rem 2rem; }
.eg-push--fullscreen.eg-push--al-center .eg-push__body { align-items: stretch; }
.eg-push--fullscreen .eg-push__title { font-size: clamp(1.8rem, 4vw, 3rem); }
.eg-push--fullscreen .eg-push__text { font-size: 1.15rem; }
.eg-push--fullscreen.eg-push--m-top .eg-push__media { aspect-ratio: auto; height: 42vh; }
.eg-push--fullscreen.eg-push--m-left .eg-push__media, .eg-push--fullscreen.eg-push--m-right .eg-push__media { flex-basis: 50%; }
.eg-push--fullscreen.eg-push--m-background .eg-push__box { justify-content: center; }

html.eg-push-lock, html.eg-push-lock body { overflow: hidden; }

/* Onglet de rappel (après fermeture) */
.eg-push-teaser { position: fixed; left: 0; top: 42%; z-index: 1070; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem .9rem .7rem .8rem; border: 0;
  border-radius: 0 var(--bs-border-radius-lg, .75rem) var(--bs-border-radius-lg, .75rem) 0; background: var(--bs-primary, #0d6efd); color: #fff; font-weight: 600; font-size: .9rem;
  box-shadow: 0 .5rem 1.5rem rgba(16, 24, 40, .25); cursor: pointer; transform: translateX(-110%); transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .2s; }
.eg-push-teaser[hidden] { display: none; }
.eg-push-teaser.is-in { transform: none; }
.eg-push-teaser:hover { filter: brightness(.93); }
.eg-push-teaser i { font-size: 1.25rem; line-height: 1; }
.eg-push-teaser.is-in i { animation: eg-push-wiggle 2.4s ease-in-out 1s 2; }
.eg-push-teaser--right { left: auto; right: 0; border-radius: var(--bs-border-radius-lg, .75rem) 0 0 var(--bs-border-radius-lg, .75rem); transform: translateX(110%); padding: .7rem .8rem .7rem .9rem; }
.eg-push-teaser.eg-push--t-dark { background: #12161f; }
@keyframes eg-push-wiggle { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }

@media (max-width: 575.98px) {
  .eg-push__body { padding: 1.6rem 1.35rem 1.4rem; }
  .eg-push__title { font-size: 1.35rem; }
  .eg-push--m-left .eg-push__box, .eg-push--m-right .eg-push__box { flex-direction: column; }
  .eg-push--m-left .eg-push__media, .eg-push--m-right .eg-push__media { flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 8; }
  .eg-push--slidein, .eg-push--slidein.eg-push--bottom-left { inset: auto .75rem .75rem .75rem; width: auto; }
  .eg-push--bar-bottom .eg-push__body, .eg-push--bar-top .eg-push__body { justify-content: flex-start; }
  .eg-push-teaser span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-push__box, .eg-push__backdrop, .eg-push-teaser { transition: opacity .2s ease; }
  .eg-push__box { transform: none !important; }
  .eg-push-teaser.is-in i { animation: none; }
}
