/* Popup Black Friday */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.promo-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.promo-popup {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 2px solid #ff6b35;
}

.promo-popup-overlay.show .promo-popup {
    transform: scale(1);
}

/* Badge Black Friday animé */
.promo-popup-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 0 20px 0 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Bouton fermer */
.promo-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.promo-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Contenu */
.promo-popup-content {
    padding: 50px 40px 40px;
    text-align: center;
    color: white;
}

.promo-popup-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.promo-popup-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.promo-popup-subtitle {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 500;
}

.promo-popup-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Formulaire */
.promo-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo-popup-input {
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.promo-popup-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.15);
}

.promo-popup-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.promo-popup-submit {
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.promo-popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.promo-popup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Message de succès */
.promo-popup-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.promo-popup-success.show {
    display: flex;
}

.promo-code-display {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed #ff6b35;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.promo-code-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.promo-code-value {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b35;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.promo-popup-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .promo-popup {
        max-width: 90%;
    }
    
    .promo-popup-content {
        padding: 40px 25px 30px;
    }
    
    .promo-popup-title {
        font-size: 24px;
    }
    
    .promo-popup-subtitle {
        font-size: 16px;
    }
    
    .promo-popup-icon {
        font-size: 50px;
    }
}

/* Animation d'entrée */
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.promo-popup-overlay.show .promo-popup-content > * {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.promo-popup-overlay.show .promo-popup-icon { animation-delay: 0.1s; }
.promo-popup-overlay.show .promo-popup-title { animation-delay: 0.2s; }
.promo-popup-overlay.show .promo-popup-subtitle { animation-delay: 0.3s; }
.promo-popup-overlay.show .promo-popup-description { animation-delay: 0.4s; }
.promo-popup-overlay.show .promo-popup-form { animation-delay: 0.5s; }

/* Icône flottante pour rouvrir la popup */
.promo-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    animation: pulse-float 2s infinite;
}

.promo-floating-btn.show {
    display: flex;
}

.promo-floating-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

.promo-floating-btn:active {
    transform: translateY(-1px) scale(1.05);
}

@keyframes pulse-float {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
    50% { 
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 12px 30px rgba(255, 107, 53, 0.5);
    }
}

/* Badge "PROMO" sur l'icône flottante */
.promo-floating-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffd93d;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: badge-bounce 1s infinite;
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive mobile pour icône flottante */
@media (max-width: 768px) {
    .promo-floating-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .promo-floating-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

