/**
 * Dynamic Subscription Pricing - Styles
 * Version: 1.2.0 - Modern Design
 */

/* Conteneur principal */
.dsp-pricing-container {
    background: #ffffff;
    border-radius: 0;
    padding: 40px 60px;
    margin: 30px 0;
    box-shadow: none;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Colonne gauche (curseurs) */
.dsp-pricing-left {
    flex: 1;
}

/* Colonne droite (tarif) */
.dsp-pricing-right {
    width: 300px;
    flex-shrink: 0;
    text-align: center;
}

/* Titre */
.dsp-title {
    color: #2d3748;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 40px 0;
    text-align: left;
    line-height: 1.3;
}

/* Description cachée */
.dsp-description {
    display: none;
}

/* Curseurs */
.dsp-sliders {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}

.dsp-slider-group {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dsp-slider-group:last-child {
    margin-bottom: 0;
}

.dsp-slider-label-wrapper {
    min-width: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dsp-slider-header {
    display: contents;
}

.dsp-slider-label {
    font-size: 16px;
    font-weight: 400;
    color: #2d3748;
    margin: 0;
    flex-shrink: 0;
}

.dsp-slider-value {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    background: transparent;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    text-align: left;
    margin-left: auto;
}

.dsp-slider-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.dsp-slider-max {
    font-size: 14px;
    color: #a0aec0;
    font-weight: 500;
    white-space: nowrap;
}

/* Styles du curseur */
.dsp-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin: 0;
}

.dsp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00a8cc;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 168, 204, 0.3);
    transition: all 0.2s ease;
}

.dsp-slider::-webkit-slider-thumb:hover {
    background: #0090b0;
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 168, 204, 0.5);
}

.dsp-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00a8cc;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 168, 204, 0.3);
    transition: all 0.2s ease;
}

.dsp-slider::-moz-range-thumb:hover {
    background: #0090b0;
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 168, 204, 0.5);
}

/* Track actif */
.dsp-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
}

.dsp-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.dsp-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: #00a8cc;
}

/* Masquer les infos supplémentaires */
.dsp-slider-info {
    display: none;
}

/* Résumé de tarif */
.dsp-price-summary {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.dsp-price-header {
    text-align: center;
    margin-bottom: 30px;
}

.dsp-price-header-label {
    font-size: 16px;
    color: #718096;
    font-weight: 400;
    margin-bottom: 10px;
}

.dsp-total-price-display {
    font-size: 64px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 5px;
}

.dsp-price-period {
    font-size: 18px;
    color: #718096;
    font-weight: 400;
}

/* Boutons de durée */
.dsp-duration-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.dsp-duration-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #00a8cc;
    background: transparent;
    color: #00a8cc;
}

.dsp-duration-btn.active {
    background: #00a8cc;
    color: #ffffff;
}

.dsp-duration-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}

/* Message promotionnel */
.dsp-promo-message {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.5;
    margin-top: 20px;
}

/* Ancien résumé de prix (caché) */
.dsp-price-row {
    display: none;
}

/* Animation de mise à jour du prix */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.dsp-price-updating .dsp-total-price-display {
    animation: pulse 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .dsp-pricing-container {
        flex-direction: column;
        padding: 30px 40px;
    }
    
    .dsp-pricing-right {
        width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .dsp-pricing-container {
        padding: 20px;
        gap: 30px;
    }
    
    .dsp-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .dsp-slider-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .dsp-slider-label-wrapper {
        min-width: 100%;
    }
    
    .dsp-slider-wrapper {
        width: 100%;
    }
    
    .dsp-total-price-display {
        font-size: 48px;
    }
    
    .dsp-duration-buttons {
        margin: 20px 0;
    }
}
/* Badge de remise sur les boutons de durée */
.dsp-discount-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(0, 168, 204, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #00a8cc;
}

.dsp-duration-btn.active .dsp-discount-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}
