/* ============================================================
   POPUPS — Cookie RGPD + Annonce Concours
   ============================================================ */

/* --- OVERLAY ANNONCE --- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: popupFadeIn 0.4s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes popupFadeOut {
    to { opacity: 0; transform: scale(0.95); }
}

/* --- MODAL ANNONCE --- */
.popup-annonce {
    background: #0D0D0D;
    border: 1px solid rgba(254, 85, 22, 0.25);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 460px;
    width: 100%;
    position: relative;
    animation: popupSlideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(254, 85, 22, 0.1);
}

@keyframes popupSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Bouton fermer */
.popup-annonce-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.popup-annonce-close:hover {
    background: rgba(254, 85, 22, 0.15);
    border-color: rgba(254, 85, 22, 0.3);
    color: #FE5516;
}

/* Badge */
.popup-annonce-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(254, 85, 22, 0.15), rgba(254, 85, 22, 0.04));
    border: 1px solid rgba(254, 85, 22, 0.35);
    color: #FE5516;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
}

/* Logo */
.popup-annonce-logo {
    height: 38px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Titre */
.popup-annonce-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 0.4rem;
    text-transform: uppercase;
}
.popup-annonce-title span { color: #FE5516; }

/* Sous-titre */
.popup-annonce-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

/* Séparateur */
.popup-annonce-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(254, 85, 22, 0.3), transparent);
    margin-bottom: 1.5rem;
}

/* Prix */
.popup-annonce-prizes {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.popup-annonce-prize {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    min-width: 90px;
    text-align: center;
    flex: 1;
}
.popup-annonce-prize.gold {
    border-color: rgba(255, 200, 0, 0.25);
    background: rgba(255, 200, 0, 0.04);
}
.popup-annonce-prize .rank {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.25rem;
}
.popup-annonce-prize .amount {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.popup-annonce-prize.gold .amount { color: #FFC800; }

/* Catégories */
.popup-annonce-cats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.popup-annonce-cat {
    background: rgba(254, 85, 22, 0.07);
    border: 1px solid rgba(254, 85, 22, 0.18);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
}

/* CTA */
.popup-annonce-cta {
    display: block;
    width: 100%;
    background: #FE5516;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.95rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}
.popup-annonce-cta:hover {
    background: #e64d10;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(254, 85, 22, 0.45);
}

/* Lien "pas maintenant" */
.popup-annonce-skip {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.2s;
    width: 100%;
    text-align: center;
}
.popup-annonce-skip:hover { color: rgba(255, 255, 255, 0.55); }


/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    max-width: 580px;
    width: calc(100% - 2rem);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
    animation: cookieSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cookieSlideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);     opacity: 1; }
}

.cookie-icon { font-size: 1.4rem; flex-shrink: 0; }

.cookie-text { flex: 1; }
.cookie-text p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
}
.cookie-text a {
    color: #FE5516;
    text-decoration: none;
}
.cookie-text a:hover { text-decoration: underline; }

.cookie-btns {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: #FE5516;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 0.5rem 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.cookie-btn-accept:hover { background: #e64d10; }

.cookie-btn-refuse {
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    padding: 0.5rem 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.cookie-btn-refuse:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.65);
}

/* Responsive mobile */
@media (max-width: 520px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    .cookie-btns {
        width: 100%;
    }
    .cookie-btn-accept,
    .cookie-btn-refuse {
        flex: 1;
        text-align: center;
    }
    .popup-annonce {
        padding: 2rem 1.25rem;
    }
    .popup-annonce-prizes {
        gap: 0.4rem;
    }
    .popup-annonce-prize {
        min-width: 70px;
        padding: 0.5rem 0.6rem;
    }
}
