/**
 * L'Atelier Invisible - Version Dark Élégant
 */

/* ========================================
   FIX OPACITY (critique!)
   ======================================== */

.atelier-vip-locked {
    opacity: 1 !important;
}

/* ========================================
   FOND BLANC
   ======================================== */

.atelier-vip-locked .kb-row-layout-wrap {
    background-color: #ffffff !important;
}

/* ========================================
   WRAPPER IMAGE KADENCE
   ======================================== */

.atelier-vip-locked .kwt-image-wrap {
    position: relative;
    overflow: visible;
    aspect-ratio: 300 / 360;
}

/* ========================================
   FOND FLOU MULTI-COUCHES
   ======================================== */

.atelier-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.atelier-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: linear-gradient(135deg, #e8e8e8 0%, #808080 50%, #3a3a3a 100%);
    filter: blur(37px);
    z-index: 1;
}

.atelier-gradient-bg::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: 
        radial-gradient(circle at 54% 9%, rgba(255, 255, 255, 1) 0%, transparent 47%),
        radial-gradient(circle at 70% 58%, rgba(80, 80, 80, 0.65) 0%, transparent 49%),
        radial-gradient(circle at 27% 88%, rgba(40, 40, 40, 0.9) 0%, transparent 40%),
        radial-gradient(circle at 51% 50%, rgba(200, 200, 200, 0) 0%, transparent 55%);
    filter: blur(18px);
    z-index: 2;
}

/* ========================================
   OVERLAY
   ======================================== */

.atelier-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    z-index: 3;
    pointer-events: none;
}

/* ========================================
   BADGE - DARK ÉLÉGANT 🌙
   ======================================== */

.atelier-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 4;
    text-align: center;
}

.atelier-badge-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.3));
}

.atelier-badge-text {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

/* ========================================
   ÉTOILE VIP
   ======================================== */

.vip-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.vip-product-badge .dashicons {
    font-size: 40px;
    color: #ffd700;
}

/* ========================================
   TEXTES - Utiliser les couleurs Kadence
   ======================================== */

.atelier-vip-locked .woocommerce-loop-product__title,
.atelier-vip-locked .woocommerce-loop-product__title a {
    color: var(--global-palette3) !important;
}

.atelier-vip-locked .kwt-price-wrap {
    color: var(--global-palette3) !important;
}

/* ========================================
   CURSOR
   ======================================== */

.atelier-vip-locked {
    cursor: pointer;
}

/* ========================================
   POP-UP
   ======================================== */

.atelier-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.atelier-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.atelier-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 5px 10px;
}

.atelier-popup-close:hover {
    color: #333;
}

.atelier-popup-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

.atelier-popup-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

.atelier-popup-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.atelier-popup-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #555;
}

.atelier-popup-features li:last-child {
    border-bottom: none;
}

.atelier-popup-features li:before {
    content: "✓";
    display: inline-block;
    margin-right: 10px;
    color: #667eea;
    font-weight: bold;
}

.atelier-popup-cta {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.atelier-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white;
}

.atelier-popup-later {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.atelier-popup-later:hover {
    color: #666;
}

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

@media (max-width: 768px) {
    .atelier-badge {
        padding: 12px 18px;
        border-radius: 10px;
    }
    
    .atelier-badge-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .atelier-badge-text {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .atelier-popup-content {
        padding: 30px 20px;
        width: 95%;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .atelier-badge {
        padding: 10px 15px;
        border-radius: 8px;
    }
    
    .atelier-badge-icon {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .atelier-badge-text {
        font-size: 10px;
        line-height: 1.3;
    }
}


/* Masquer wishlist sur produits VIP */
.atelier-vip-locked .wlfmc-add-to-wishlist {
    display: none !important;
    pointer-events: none !important;
}

/* Lien connexion membres existants */
.atelier-popup-login {
    font-size: 13px;
    color: #888;
    margin: 18px 0 0;
    text-align: center;
}

.atelier-popup-login a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.2s ease;
}

.atelier-popup-login a:hover {
    color: #e8c547;
    text-decoration: underline;
}