.user-profile-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 25px;
    font-size: 14px;
}

.user-profile-btn.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.premium-badge-mini {
    font-size: 12px;
}

.logout-link {
    color: #666;
    text-decoration: underline;
    font-size: 12px;
}

.banner-connect-btn {
    background: white;
    color: #FF424D;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.banner-connect-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

/* Bouton flottant en bas à droite */
.floating-premium-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.floating-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
    display: inline-flex;  /* AJOUT */
    align-items: center;    /* AJOUT */
    justify-content: center; /* AJOUT */
    vertical-align: middle; /* Force l'alignement vertical au milieu */
    line-height: 1;
    margin-bottom: -18px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Responsive : sur mobile, réduire la taille */
@media (max-width: 768px) {
    .floating-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-premium-btn {
        bottom: 10px;
        right: 10px;
    }
}

.premium-cta-btn {
    display: inline-block; /* Au lieu de flex */
    background: linear-gradient(135deg, #FF424D 0%, #d63640 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center; /* Centrer le texte */
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 66, 77, 0.4);
}

.premium-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 66, 77, 0.4);
    background: #fff;
    color: #d63640;
}

.premium-cta-btn .premium-icon {
    font-size: 16px;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.premium-cta-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.premium-cta-btn.disabled:hover {
    transform: none;
}

/* 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;
}

premium-unlock-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.premium-unlock-modal .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 */
.premium-unlock-modal .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;
}

/* new */
/* Styles pour les options LLM Premium désactivées */
select option.premium-llm-option {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #ff424bad !important;
    font-weight: 600;
    font-style: italic;
}

/* Style pour le select quand une option premium est survolée */
select option.premium-llm-option:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    cursor: not-allowed;
}

/* Badge d'icône de cadenas pour les options premium */
select option.premium-llm-option::before {
    content: "🔒 ";
    margin-right: 5px;
}

/* Message d'info contextuel sous le select LLM */
.llm-premium-notice {
    display: block;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-left: 3px solid #FF424D;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.llm-premium-notice strong {
    color: #FF424D;
    font-weight: 600;
}

.llm-premium-notice a {
    color: #FF424D;
    text-decoration: underline;
    font-weight: 600;
}

.llm-premium-notice a:hover {
    color: #d63640;
}

/* ========================================
   BANDEAU PREMIUM
======================================== */
.premium-status-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.premium-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.premium-icon {
    font-size: 24px;
    animation: sparkle 2s infinite;
}

.premium-info {
    display: flex;
    flex-direction: column;
}

.premium-info strong {
    font-size: 16px;
    font-weight: 600;
}

.premium-subtitle {
    font-size: 13px;
    opacity: 0.9;
}

.premium-subtitleB {
    font-size: 12px;
    opacity: 0.9;
    display: inline-block;
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   BANDEAU UTILISATEUR NON-PREMIUM
======================================== */
.user-status-banner {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    font-size: 28px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .user-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.user-subtitle {
    font-size: 12px;
    color: #666;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upgrade-btn {
    background: #FF424D;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.upgrade-btn:hover {
    background: #d63640;
    transform: translateY(-1px);
}

.logout-btn-small {
    color: #666;
    text-decoration: underline;
    font-size: 12px;
}

/* ========================================
   BANDEAU CONNEXION PATREON
======================================== */
.patreon-connect-banner {
    background: linear-gradient(135deg, #8e24aa 0%, #d63640 100%);
    color: white;
    padding: 15px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 66, 77, 0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-icon {
    font-size: 22px;
}

.banner-text {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.patreon-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #FF424D;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.patreon-login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.patreon-icon {
    width: 18px;
    height: 18px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .premium-status-banner,
    .user-status-banner,
    .patreon-connect-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .upgrade-btn {
        width: 100%;
    }
    
    .banner-text {
        font-size: 13px;
    }
}

/* Animation pour l'icône premium */
@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .premium-unlock-modal .modal-content {
        padding: 25px;
        max-width: 95%;
    }
    
    .premium-unlock-modal .modal-content h2 {
        font-size: 22px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .benefits-list li {
        font-size: 14px;
    }
    
    .trust-signals {
        flex-direction: column;
        gap: 10px;
    }
}
