/* ===============================================
   DRIP BLACK FRIDAY VIP - STYLES DE LA POP-UP
   =============================================== */

/* Variables de couleurs DRIP DKR */
:root {
    --drip-gold: #D4AF37;
    --drip-gold-light: #E8D5A0;
    --drip-gold-dark: #B8941F;
    --drip-black: #1a1a1a;
    --drip-white: #ffffff;
    --drip-bg-light: #F5F5F5;
    --drip-success: #10b981;
    --drip-error: #ef4444;
    --drip-shadow: rgba(0, 0, 0, 0.3);
}

/* Overlay (fond sombre) */
.drip-bf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drip-bf-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Pop-up principale */
.drip-bf-popup {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 55vh;
    background: linear-gradient(135deg, var(--drip-gold-light) 0%, var(--drip-bg-light) 100%);
    border-radius: 30px 30px 0 0;
    padding: 40px 30px;
    box-shadow: 0 -10px 40px var(--drip-shadow);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.drip-bf-overlay.active .drip-bf-popup {
    transform: translateY(0);
}

/* Bouton de fermeture */
.drip-bf-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--drip-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.drip-bf-close:hover {
    background-color: var(--drip-black);
    color: var(--drip-white);
    transform: rotate(90deg);
}

.drip-bf-close svg {
    width: 20px;
    height: 20px;
}

/* Contenu de la pop-up */
.drip-bf-content {
    text-align: center;
    padding: 20px 0;
}

/* Titre principal */
.drip-bf-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--drip-gold-dark);
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Emoji */
.drip-bf-emoji {
    font-size: 80px;
    margin: 20px 0;
    animation: bounce 2s ease-in-out infinite;
}

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

/* Texte principal */
.drip-bf-text {
    margin: 25px 0 35px 0;
    color: var(--drip-black);
}

.drip-bf-text p {
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.6;
}

.drip-bf-text strong {
    font-weight: 700;
    color: var(--drip-black);
}

/* Bouton CTA principal */
.drip-bf-cta-button {
    background: linear-gradient(135deg, var(--drip-gold) 0%, var(--drip-gold-dark) 100%);
    color: var(--drip-white);
    font-size: 18px;
    font-weight: 700;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drip-bf-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, var(--drip-gold-dark) 0%, var(--drip-gold) 100%);
}

.drip-bf-cta-button:active {
    transform: translateY(-1px);
}

/* ===============================================
   FORMULAIRE D'INSCRIPTION
   =============================================== */

.drip-bf-form-popup {
    background: var(--drip-white);
    max-height: 65vh;
}

/* En-tête du formulaire */
.drip-bf-form-header {
    background: linear-gradient(135deg, var(--drip-gold) 0%, var(--drip-gold-dark) 100%);
    color: var(--drip-white);
    margin: -40px -30px 30px -30px;
    padding: 30px 30px 25px 30px;
    border-radius: 30px 30px 0 0;
    text-align: center;
}

.drip-bf-form-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

/* Contenu du formulaire */
.drip-bf-form-content {
    padding: 10px 0;
}

/* Groupe de champ */
.drip-bf-form-group {
    margin-bottom: 20px;
}

/* Champs de saisie */
.drip-bf-form-group input {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background-color: var(--drip-bg-light);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.drip-bf-form-group input:focus {
    outline: none;
    border-color: var(--drip-gold);
    background-color: var(--drip-white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.drip-bf-form-group input::placeholder {
    color: #999;
}

/* Bouton de soumission */
.drip-bf-submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--drip-gold) 0%, var(--drip-gold-dark) 100%);
    color: var(--drip-white);
    font-size: 20px;
    font-weight: 700;
    padding: 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.drip-bf-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.drip-bf-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner de chargement */
.drip-bf-spinner {
    animation: rotate 1s linear infinite;
    width: 24px;
    height: 24px;
}

.drip-bf-spinner .path {
    stroke: var(--drip-white);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Messages de feedback */
.drip-bf-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drip-bf-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid var(--drip-success);
}

.drip-bf-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 2px solid var(--drip-error);
}

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

@media (max-width: 768px) {
    .drip-bf-popup {
        max-height: 70vh;
        padding: 35px 25px;
        border-radius: 25px 25px 0 0;
    }
    
    .drip-bf-title {
        font-size: 26px;
    }
    
    .drip-bf-emoji {
        font-size: 60px;
    }
    
    .drip-bf-text p {
        font-size: 15px;
    }
    
    .drip-bf-cta-button {
        font-size: 16px;
        padding: 16px 35px;
    }
    
    .drip-bf-form-header {
        margin: -35px -25px 25px -25px;
        padding: 25px 25px 20px 25px;
    }
    
    .drip-bf-form-header h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .drip-bf-popup {
        padding: 30px 20px;
        max-height: 75vh;
    }
    
    .drip-bf-title {
        font-size: 22px;
        letter-spacing: 1px;
    }
    
    .drip-bf-emoji {
        font-size: 50px;
        margin: 15px 0;
    }
    
    .drip-bf-text p {
        font-size: 14px;
        margin: 12px 0;
    }
    
    .drip-bf-cta-button {
        font-size: 15px;
        padding: 15px 30px;
    }
    
    .drip-bf-close {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }
}

/* Amélioration du scrollbar pour webkit */
.drip-bf-popup::-webkit-scrollbar {
    width: 8px;
}

.drip-bf-popup::-webkit-scrollbar-track {
    background: transparent;
}

.drip-bf-popup::-webkit-scrollbar-thumb {
    background: var(--drip-gold);
    border-radius: 4px;
}

.drip-bf-popup::-webkit-scrollbar-thumb:hover {
    background: var(--drip-gold-dark);
}
