/* 
 * Paywall Engageant - CSS pour intégration WordPress
 * Couleurs: Background #ff5703, Texte #ffffff
 * Utilisation: Ajouter cette classe .paywall à votre élément de paywall existant
 */

/* Import des polices Google Fonts (ajouter dans <head> si nécessaire) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+Pro:wght@400;600&display=swap');

:root {
    --primary-orange: #ff5703;
    --text-white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --accent-glow: rgba(255, 255, 255, 0.2);
    --hover-orange: #e64a02;
}

.paywall {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff6b1a  50%, var(--primary-orange) 100%);
    color: var(--text-white);
    padding: 60px 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.paywall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    pointer-events: none;
}

.paywall-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.paywall-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.paywall-icon::before {
    content: "🔒";
    font-size: 32px;
    filter: sepia(1) hue-rotate(0deg) brightness(2);
}

.paywall-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.paywall-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.5;
}

.paywall-benefits {
    list-style: none;
    margin-bottom: 40px;
    padding-left: 0;
}

.paywall-benefits li {
    font-size: 16px;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    opacity: 0.9;
}

.paywall-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-white);
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.paywall-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.paywall-btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    color: var(--primary-orange);
    background: var(--text-white);
    
    font-weight: 600;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    text-align: center;
}

.content a.paywall-secondary {
    color: #ffffff;
    text-decoration: underline;
}

.paywall-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.paywall-btn:hover::before {
    left: 100%;
}

.paywall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.paywall-btn.secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.paywall-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.paywall-price {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 8px;
    font-style: italic;
}

/* Animations */




/* Design responsive */
@media (max-width: 768px) {
    .paywall {
        padding: 40px 20px;
        margin: 20px 0;
        border-radius: 16px;
    }

    .paywall-buttons {
        gap: 12px;
    }

    .paywall-btn {
        padding: 16px 30px;
        min-width: 260px;
        font-size: 15px;
    }

    .paywall-benefits li {
        font-size: 15px;
        margin-bottom: 10px;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .paywall,
    .paywall-icon,
    .paywall-title,
    .paywall-subtitle,
    .paywall-benefits,
    .paywall-buttons {
        animation: none;
    }
}

/* États de focus pour l'accessibilité */
.paywall-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

/* Override pour éviter les conflits avec les styles WordPress */
.paywall * {
    box-sizing: border-box;
}

.paywall p {
    margin: 0;
}

.paywall a {
    text-decoration: none;
}

.paywall ul {
    margin: 0;
    padding: 0;
}
