/* ═══════════════════════════════════════════════════════════
   POPUP 5 ANS OUEST-DIGIT — 2021/2026
   Mode image — affichage 1 fois / appareil (localStorage)
   ═══════════════════════════════════════════════════════════ */

.od-pop5 {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.od-pop5.is-open { display: flex; }

.od-pop5__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 9, 28, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: od-pop5-fade 0.4s ease-out;
}

.od-pop5__card {
  position: relative;
  display: inline-block;
  max-width: min(90vw, 720px);
  max-height: 88vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: od-pop5-rise 0.55s cubic-bezier(.22,.61,.36,1);
  background: #151634;
}

.od-pop5__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  cursor: pointer;
}

.od-pop5__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}
.od-pop5__close:hover {
  background: rgba(242,182,0,0.9);
  color: #151634;
  transform: rotate(90deg);
}

@keyframes od-pop5-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes od-pop5-rise {
  0%   { opacity: 0; transform: translateY(40px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
