/* =============================================
   COSMOS YOPOUGON — promo-popup.css
   Popup marketing & promotions
   ============================================= */

/* ---- OVERLAY ---- */
.promo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.promo-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ---- CARD ---- */
.promo-card {
    background: #111;
    border-radius: 24px;
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, .06);
    transform: translateY(40px) scale(.95);
    transition: transform .4s cubic-bezier(.175, .885, .32, 1.275);
}

.promo-overlay.visible .promo-card {
    transform: translateY(0) scale(1);
}

/* ---- HEADER BANNER ---- */
.promo-banner {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.55);
    transition: transform 8s ease;
}

.promo-overlay.visible .promo-banner-img {
    transform: scale(1.06);
}

.promo-banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, #111 100%);
}

/* Floating badge */
.promo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #f5a623, #e08010);
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 4px 12px rgba(245, 166, 35, .4);
    animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(245, 166, 35, .4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(245, 166, 35, .8);
    }
}

.promo-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    line-height: 1;
}

.promo-close-btn:hover {
    background: rgba(255, 255, 255, .15);
}

/* Resto emoji on banner */
.promo-banner-emoji {
    font-size: 4rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6));
    animation: floatEmoji 3s ease-in-out infinite;
}

@keyframes floatEmoji {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ---- BODY ---- */
.promo-body {
    padding: 20px 22px 22px;
}

.promo-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #f5a623;
    margin-bottom: 6px;
}

.promo-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 8px;
}

.promo-desc {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Discount highlight */
.promo-discount {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(245, 166, 35, .12), rgba(245, 166, 35, .05));
    border: 1px solid rgba(245, 166, 35, .25);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.promo-discount-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #f5a623;
    line-height: 1;
    white-space: nowrap;
}

.promo-discount-text {
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.4;
}

/* Countdown */
.promo-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 16px;
}

.promo-countdown .dot {
    color: #f5a623;
    font-size: 0.5rem;
}

#promoCountdownTimer {
    color: #f5a623;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* CTA */
.promo-cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f5a623, #d4840a);
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 6px 20px rgba(245, 166, 35, .35);
    margin-bottom: 10px;
}

.promo-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, .5);
}

.promo-skip-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #666;
    border: none;
    font-size: 0.78rem;
    cursor: pointer;
    text-align: center;
    transition: color .2s;
}

.promo-skip-btn:hover {
    color: #aaa;
}

/* ---- CONFETTI dots (déco) ---- */
.promo-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    overflow: hidden;
}

.promo-confetti span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: .6;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: .7;
    }

    100% {
        transform: translateY(200px) rotate(360deg);
        opacity: 0;
    }
}

/* ---- NOTIFICATION TEASER (mini) ---- */
.promo-teaser {
    position: fixed;
    bottom: 80px;
    left: 16px;
    background: #1a1a1a;
    border: 1px solid rgba(245, 166, 35, .3);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    cursor: pointer;
    z-index: 9000;
    transform: translateX(-120%);
    transition: transform .4s cubic-bezier(.175, .885, .32, 1.275);
}

.promo-teaser.visible {
    transform: translateX(0);
}

.promo-teaser-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.promo-teaser-text p {
    font-size: 0.72rem;
    color: #888;
    margin: 0;
}

.promo-teaser-text strong {
    font-size: 0.82rem;
    color: #fff;
    display: block;
}

.promo-teaser-close {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: none;
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}