/* =========================
   OVERLAY SYSTEM
========================= */

/* POPUP */
.overlay-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.overlay-popup.visible {
    display: block;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(14px);
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    background: rgba(15,15,20,0.92);
    border-radius: 24px;
    padding: 30px;
    max-width: 520px;
    width: 92%;
    color: white;
    transition: all 0.35s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.overlay-popup.visible .overlay-content {
    transform: translate(-50%, -50%) scale(1);
}

/* bouton close */
.overlay-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* =========================
   BANNER
========================= */

.overlay-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9998;
    background: linear-gradient(90deg,#0f172a,#1e293b);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
}

.banner-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* =========================
   MARQUEE
========================= */

.overlay-marquee {
    position: fixed;
    top: 0;
    width: 100%;
    overflow: hidden;
    z-index: 9997;
    background: #0f172a;
    color: white;
    padding: 6px 0;
}

.marquee-track {
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .overlay-content {
        padding: 22px;
    }

    .banner-inner {
        flex-direction: column;
        gap: 8px;
    }
}