/* ========================================
   PREMIUM IMAGE UNLOCK - VERSION ADAPTÉE
   ======================================== */

/* Container pour les pages d'images du flipbook */
.image-page {
    position: relative;
}

/* Overlay "Voir l'image" sur les images floutées */
.premium-unlock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
    padding: 10px 10px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: pulse 2s infinite;
    color: white;
    font-weight: 600;
    font-size: 16px;
    pointer-events: auto;
    z-index: 999;
    cursor: pointer;
    border: solid 2px white;
    user-select: none;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05); 
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
    }
}

.premium-unlock-overlay .icon {
    font-size: 24px;
    animation: wiggle 1.5s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Animation au clic */
.image-page.teasing-unlock {
    animation: imagePulse 0.8s ease-in-out;
}

@keyframes imagePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========================================
   MODAL PREMIUM
   ======================================== */

.premium-unlock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.premium-unlock-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
    color: white;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Barre de progression */
.unlock-progress {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-text {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffd700;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Aperçu animé de l'image */
.image-reveal-animation {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px 0;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.3);
}

.blurred-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.reveal-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Titre et description */
.modal-content h2 {
    font-size: 28px;
    margin: 20px 0 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-prop {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

/* Liste des bénéfices */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.benefits-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.benefits-list li:last-child {
    border-bottom: none;
}

/* Pricing box */
.pricing-box {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 25px 0;
    position: relative;
}

.old-price {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    margin-right: 10px;
}

.current-price {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
}

.current-price small {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.discount-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Boutons CTA */
.cta-premium-upgrade,
.cta-preview-next {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.cta-premium-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.cta-premium-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.cta-preview-next {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-preview-next:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Trust signals */
.trust-signals {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.trust-signals span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Urgency banner */
.urgency-banner {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
    font-size: 14px;
}

/* Social proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
}

.premium-unlock-modal .avatars {
    display: flex;
    margin-left: -10px;
}

.premium-unlock-modal .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #1e1e2e;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin-left: -10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
        max-width: 95%;
    }
    
    .modal-content h2 {
        font-size: 22px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .benefits-list li {
        font-size: 14px;
    }
    
    .trust-signals {
        flex-direction: column;
        gap: 10px;
    }
}
