/* ═══════════════════════════════════════════════════════════════
   CZENSPA — pop-up « Offre temporaire » ([czen_offre]).
   Autonome : il ne dépend d'aucun jeton des sections, parce qu'il
   peut être posé sur une page qui n'en porte aucune.
   ═══════════════════════════════════════════════════════════════ */

.czenOffre[hidden] { display: none; }

.czenOffre {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Jost", system-ui, -apple-system, sans-serif;
}

.czenOffre__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 5, .68);
  animation: czenOffreFade .25s ease both;
}

.czenOffre__card {
  position: relative;
  max-width: min(560px, 100%);
  /* La carte ne dépasse jamais l'écran : une affiche haute sur un
     téléphone en paysage serait autrement coupée, bouton compris. */
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  animation: czenOffrePop .3s cubic-bezier(.4, 0, .2, 1) both;
}

.czenOffre__titre {
  margin: 0;
  padding: 16px 52px 12px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #1e1b16;
}

.czenOffre__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.czenOffre__titre + .czenOffre__lien .czenOffre__img,
.czenOffre__titre + .czenOffre__img { border-radius: 0 0 16px 16px; }

.czenOffre__lien { display: block; text-decoration: none; }

.czenOffre__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  /* 44 px : la cible tactile minimale. En dessous, on rate le bouton
     et l'on clique l'affiche — donc on part sur le lien sans l'avoir voulu. */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  font-size: 15px;
  line-height: 1;
  color: #1e1b16;
  cursor: pointer;
}
.czenOffre__close:hover { background: #fff; }
.czenOffre__close:focus-visible { outline: 2px solid #b8924a; outline-offset: 2px; }

@keyframes czenOffreFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes czenOffrePop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .czenOffre { padding: 12px; }
  .czenOffre__card { max-height: calc(100vh - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .czenOffre__overlay, .czenOffre__card { animation: none; }
}
