/* Styles pour la section Pricing moderne - Version améliorée et intuitive */
.pricing-modern {
    position: relative;
    padding: 80px 0;
}

.pricing-toggle-modern {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pricing-toggle-modern:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.toggle-label {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.toggle-label.active {
    color: var(--color-brand-1, #024430);
}

.badge-save {
    display: inline-block;
    background: var(--color-brand-1, #024430);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 36px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--color-brand-1, #024430);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Cartes de pricing - Design moderne et intuitif */
.pricing-card-modern {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.pricing-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--color-brand-1, #024430);
}

.pricing-card-featured {
    border: 3px solid var(--color-brand-1, #024430);
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

.popular-badge {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-brand-1, #024430);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.popular-badge i {
    font-size: 0.75rem;
}

.pricing-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.pricing-card-featured .pricing-header {
    padding-top: 56px;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-description {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 25px;
    font-weight: 500;
}

.pricing-amount {
    margin-top: 20px;
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-brand-1, #024430);
    line-height: 1;
    letter-spacing: -1px;
}

.price-currency {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-brand-1, #024430);
    opacity: 0.8;
}

.price-period {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 500;
    margin-left: 4px;
}

.price-note {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 12px;
    margin-bottom: 0;
    font-weight: 500;
}

.price-free {
    text-align: center;
}

.price-free .price-value {
    font-size: 3rem;
    color: #10b981;
}

.price-free .price-period {
    display: block;
    font-size: 1rem;
    margin-top: 8px;
    color: #64748b;
}

.pricing-features {
    flex: 1;
    padding: 30px;
    background: #ffffff;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    padding-left: 4px;
    color: #1e293b;
}

.feature-item.included {
    color: #1e293b;
}

.feature-item.excluded {
    color: #94a3b8;
    opacity: 0.6;
    text-decoration: line-through;
}

.feature-icon {
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-item.included .feature-icon {
    color: var(--color-brand-2, #FFE7BB);
}

.feature-item.excluded .feature-icon {
    color: #ef4444;
}

.pricing-footer {
    margin-top: auto;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid #e2e8f0;
}

.btn-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 14px 28px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-pricing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-pricing:hover::before {
    width: 300px;
    height: 300px;
}

.btn-pricing-primary {
    background: var(--color-brand-1, #024430);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--color-brand-1, #024430);
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    background: var(--color-brand-1-hover, #012F20);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border-color: var(--color-brand-1-hover, #012F20);
}

.btn-pricing-secondary {
    background: #ffffff;
    color: var(--color-brand-1, #024430);
    border: 2px solid var(--color-brand-1, #024430);
}

.btn-pricing-secondary:hover {
    background: var(--color-brand-1, #024430);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-12px);
    }
    
    .pricing-modern {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .pricing-modern {
        padding: 50px 0;
    }
    
    .pricing-card-modern {
        margin-bottom: 30px;
        border-radius: 20px;
    }
    
    .pricing-header {
        padding: 30px 20px 25px;
    }
    
    .pricing-features {
        padding: 25px 20px;
    }
    
    .pricing-footer {
        padding: 25px 20px;
    }
    
    .price-value {
        font-size: 2.75rem;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .btn-pricing {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 0.9375rem;
    }
    
    .pricing-toggle-modern {
        padding: 8px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .toggle-switch {
        width: 56px;
        height: 32px;
    }
    
    .toggle-slider:before {
        height: 24px;
        width: 24px;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }
}
