/* ===================================
   SUBSCRIPTION PAGE - STYLES COMPLETS
   =================================== */

/* En-tête de présentation */
.subscription-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.subscription-header p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 500;
}

/* Container principal */
.subscription-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Cartes de plans */
.plan-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.plan-card.featured {
    border: 3px solid #6366f1;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--glass-border);
}

.plan-name {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 4.5rem;
    font-weight: 900;
    color: #6366f1;
    margin: 20px 0;
}

.plan-price .currency {
    font-size: 2.8rem;
    vertical-align: super;
}

.plan-price .period {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 15px;
}

/* Liste de features */
.plan-feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.plan-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.6;
}

.plan-feature-list li i {
    color: #10b981;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-available {
    opacity: 1;
}

.feature-unavailable {
    opacity: 0.4;
    text-decoration: line-through;
}

.feature-unavailable i {
    color: #ef4444;
}

/* Sélecteur de durée Premium */
.duration-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.duration-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
    color: var(--text-primary);
}

.duration-btn:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.duration-btn.active {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.duration-btn .duration-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #6366f1;
    display: block;
    margin-bottom: 5px;
}

.duration-btn .duration-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: block;
}

.duration-btn .duration-save {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

/* Boutons d'action */
.plan-cta {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.plan-cta.primary {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.plan-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

.plan-cta.secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.plan-cta.secondary:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .subscription-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .subscription-header h1 {
        font-size: 2.2rem;
    }
    
    .subscription-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .subscription-header {
        padding: 40px 25px;
    }
    
    .subscription-header h1 {
        font-size: 1.8rem;
    }
    
    .plan-card {
        padding: 30px 20px;
    }
    
    .duration-selector {
        grid-template-columns: 1fr;
    }
}

/* Mode RTL */
.rtl .subscription-container {
    direction: rtl;
}

.rtl .plan-feature-list li {
    flex-direction: row-reverse;
}
