/* Promo calendrier + neige décembre — charte Koala (#c38abb / #f4a646) */
.kg-snow {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important; /* au-dessus Elementor / sticky, sous popups critiques */
  pointer-events: none !important;
  overflow: hidden !important;
  opacity: 0;
  transition: opacity .4s ease;
}
.kg-snow.is-on { opacity: 1; }
.kg-snow i {
  position: absolute;
  top: -16px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 1px rgba(195, 138, 187, 0.35);
  animation-name: kg-snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0.95;
  will-change: transform;
}
.kg-snow i.is-soft {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}
@keyframes kg-snow-fall {
  0% {
    transform: translate3d(0, -8vh, 0);
    opacity: 0;
  }
  8% { opacity: 1; }
  100% {
    transform: translate3d(var(--kg-drift, 16px), 110vh, 0);
    opacity: 0.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kg-snow { display: none !important; }
}

.kg-avent-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.kg-avent-popup[hidden] { display: none !important; }
.kg-avent-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 28, 0.58);
  backdrop-filter: blur(5px);
}

/* Image gauche entière + texte droite (pas de crop) */
.kg-avent-popup__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr);
  align-items: center;
  width: min(980px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.32),
    0 0 0 3px rgba(195, 138, 187, 0.4);
  animation: kg-avent-pop 0.35s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes kg-avent-pop {
  from { transform: scale(0.94) translateY(12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.kg-avent-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #c38abb;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(91, 42, 86, 0.25);
}
.kg-avent-popup__close:hover { filter: brightness(1.05); }

.kg-avent-popup__media {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
  padding: 14px 8px 14px 14px;
  background: #fff;
  overflow: visible;
}
.kg-avent-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(84vh, 640px);
  object-fit: contain; /* image complète, sans coupe */
  object-position: center center;
}

.kg-avent-popup__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 36px 28px 20px;
  text-align: left;
  min-width: 0;
  box-sizing: border-box;
}
.kg-avent-popup__kicker {
  margin: 0 0 8px;
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #f4a646;
  border-radius: 999px;
}
.kg-avent-popup__body h2 {
  margin: 0 0 10px;
  padding-right: 28px;
  font-family: Nunito, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  color: #5b2a56;
}
.kg-avent-popup__lead {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a3a48;
  font-weight: 600;
}
.kg-avent-popup__points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  width: 100%;
}
.kg-avent-popup__points li {
  position: relative;
  margin: 0 0 8px;
  padding: 8px 12px 8px 34px;
  background: #fbf4fa;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  color: #5b2a56;
}
.kg-avent-popup__points li::before {
  content: '✓';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c38abb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
}
.kg-avent-popup__points li strong { color: #d96510; }
.kg-avent-popup__slogan { display: none; }
.kg-avent-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 12px 18px 12px 20px;
  background: #c38abb;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(91, 42, 86, 0.25);
  box-sizing: border-box;
}
.kg-avent-popup__cta span {
  min-width: 0;
}
.kg-avent-popup__cta::after {
  content: '';
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #f4a646 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}
.kg-avent-popup__cta:hover { filter: brightness(1.05); }
.kg-avent-popup__skip {
  display: inline-block;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #8a7a88;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kg-avent-popup__skip:hover { color: #5b2a56; }

@media (max-width: 760px) {
  .kg-avent-popup {
    padding: 12px;
    align-items: flex-end;
  }
  .kg-avent-popup__card {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: min(92vh, 720px);
    overflow: auto;
    border-radius: 18px 18px 14px 14px;
  }
  .kg-avent-popup__media {
    padding: 12px 12px 0;
  }
  .kg-avent-popup__media img {
    max-height: 42vh;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .kg-avent-popup__body {
    align-items: center;
    text-align: center;
    padding: 14px 16px 18px;
  }
  .kg-avent-popup__body h2 {
    padding-right: 0;
  }
}
