/* ========================================
   POPUP PRELAUNCH - INSCRIPTION EMAIL
   ======================================== */

/* Overlay sombre semi-transparent */
.prelaunch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 31, 38, 0.85); /* --color-dark-bg avec opacité */
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prelaunch-overlay.active {
    display: flex;
    opacity: 1;
}

/* Conteneur du popup */
.prelaunch-popup {
    position: relative;
    background: linear-gradient(135deg, #1a2a33 0%, #0d1f26 100%);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(237, 162, 52, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(237, 162, 52, 0.2);
}

.prelaunch-overlay.active .prelaunch-popup {
    transform: scale(1) translateY(0);
}

/* Bouton de fermeture X */
.prelaunch-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(237, 162, 52, 0.1);
    color: var(--color-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 1;
}

.prelaunch-close:hover {
    background: rgba(237, 162, 52, 0.2);
    transform: rotate(90deg);
}

.prelaunch-close:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Contenu du popup */
.prelaunch-content {
    text-align: center;
}

.prelaunch-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.prelaunch-message {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Formulaire */
.prelaunch-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prelaunch-input-group {
    position: relative;
}

.prelaunch-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(237, 162, 52, 0.3);
    border-radius: 12px;
    color: var(--color-text-light);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.prelaunch-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(237, 162, 52, 0.1);
}

.prelaunch-input::placeholder {
    color: rgba(236, 240, 241, 0.5);
}

.prelaunch-input:invalid {
    border-color: rgba(231, 76, 60, 0.5);
}

/* Bouton de soumission */
.prelaunch-submit {
    background: linear-gradient(135deg, #eda234 0%, #f4c86f 100%);
    color: #1a1a1a;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(237, 162, 52, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.prelaunch-submit:hover {
    box-shadow: 
        0 0 30px rgba(237, 162, 52, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.prelaunch-submit:active {
    transform: translateY(0);
}

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

/* Lien "Non merci" */
.prelaunch-cancel {
    display: inline-block;
    margin-top: 1rem;
    color: rgba(236, 240, 241, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.prelaunch-cancel:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* Message de succès */
.prelaunch-success {
    display: none;
    text-align: center;
    padding: 1rem 0;
}

.prelaunch-success.active {
    display: block;
}

.prelaunch-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.prelaunch-success-message {
    font-size: 1.1rem;
    color: var(--color-gold);
    line-height: 1.6;
    font-weight: 500;
}

/* Message d'erreur */
.prelaunch-error {
    display: none;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: left;
}

.prelaunch-error.active {
    display: block;
}

/* Masquer le formulaire quand succès */
.prelaunch-form.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .prelaunch-popup {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .prelaunch-title {
        font-size: 1.5rem;
    }
    
    .prelaunch-message {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .prelaunch-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .prelaunch-popup {
        padding: 1.5rem 1rem;
    }
    
    .prelaunch-title {
        font-size: 1.25rem;
    }
    
    .prelaunch-input,
    .prelaunch-submit {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}


