/* ==========================================================================
   PRICING SECTIONS - Tarification et comparaisons
   04-sections/pricing.css
   ========================================================================== */

/* Section principale de tarification */
.pricing-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Grille des cartes de prix */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Cartes de prix */
.pricing-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.pricing-card.recommended {
    border-color: #28a745;
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.recommended::before {
    content: "RECOMMANDÉ";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Éléments des cartes de prix */
.quantity {
    font-size: 2.5rem;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1;
}

.unit-price {
    font-size: 2rem;
    color: #28a745;
    font-weight: bold;
    margin: 20px 0;
    line-height: 1;
}

.power-rating {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin: 15px 0;
    line-height: 1;
}

.price {
    font-size: 1.8rem;
    color: #28a745;
    font-weight: bold;
    margin: 15px 0;
    line-height: 1;
}

/* Badges d'économies */
.savings {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: bold;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
}

.savings-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
}

/* Grille de remises */
.discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.discount-card {
    background: white;
    padding: 30px 25px;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.discount-card:hover {
    transform: translateY(-10px);
    border-color: #007bff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.quantity-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #007bff;
    margin-bottom: 15px;
    line-height: 1;
}

.discount-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 25px;
    display: inline-block;
}

/* Badge prix spéciaux */
.price-badge {
    background: linear-gradient(135deg, var(--accent), #f39c12);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(251, 188, 5, 0.3);
    margin-bottom: 20px;
    display: inline-block;
}

/* Tableaux de comparaison */
.comparison-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

/* Lignes de mise en évidence */
.highlight-row {
    background: #e8f5e8 !important;
    font-weight: bold;
    border: 2px solid #28a745;
}

.highlight-row td {
    border-top: 2px solid #28a745;
    border-bottom: 2px solid #28a745;
    color: #155724;
    font-weight: 600;
}

.highlight-row td:first-child {
    border-left: 2px solid #28a745;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.highlight-row td:last-child {
    border-right: 2px solid #28a745;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Exemples de prix */
.examples-section {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    position: relative;
}

.examples-section::before {
    content: "💡";
    position: absolute;
    top: -15px;
    left: 30px;
    background: #fff3cd;
    padding: 8px 12px;
    font-size: 1.5rem;
    border-radius: 50%;
}

.examples-title {
    font-size: 1.6rem;
    color: #856404;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.example-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #f39c12;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.example-product {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f39c12;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    font-weight: bold;
    background: #f8f9fa;
    margin: 15px -10px 0;
    padding: 15px 10px;
    border-radius: 8px;
}

.price-label {
    font-weight: 600;
    color: #495057;
}

.price-value {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

/* Budget sections spécialisées */
.budget-summary {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1.1rem;
}

.budget-item:last-child {
    border-bottom: 2px solid rgba(255,255,255,0.3);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Grilles de vignettes budget */
.budget-vignettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.budget-vignette {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.budget-vignette:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.budget-vignette.starter { border-top-color: #28a745; }
.budget-vignette.intermediate { border-top-color: #fd7e14; }
.budget-vignette.professional { border-top-color: #6f42c1; }

.budget-vignette-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px 25px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.budget-vignette-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.budget-vignette.starter .budget-vignette-icon { color: #28a745; }
.budget-vignette.intermediate .budget-vignette-icon { color: #fd7e14; }
.budget-vignette.professional .budget-vignette-icon { color: #6f42c1; }

.budget-vignette-header h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.budget-amount {
    background: linear-gradient(135deg, #1a73e8, #0d5bbc);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
}

.budget-vignette-content {
    padding: 30px 25px;
}

.budget-vignette-content h4 {
    color: #1a73e8;
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .pricing-grid,
    .discount-grid,
    .budget-vignettes-grid,
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card.recommended {
        transform: none;
    }
    
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .price-value {
        align-self: flex-end;
    }
    
    .quantity-number {
        font-size: 2.5rem;
    }
    
    .discount-value {
        font-size: 1.5rem;
        padding: 10px 15px;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .comparison-table th,
    .comparison-table td {
        min-width: 120px;
        font-size: 0.9rem;
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 30px 0;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .quantity {
        font-size: 2rem;
    }
    
    .unit-price,
    .power-rating {
        font-size: 1.6rem;
    }
    
    .examples-section {
        padding: 25px 20px;
    }
    
    .examples-title {
        font-size: 1.3rem;
    }
    
    .budget-summary {
        padding: 25px 20px;
    }
    
    .budget-vignette-header {
        padding: 25px 20px;
    }
    
    .budget-vignette-content {
        padding: 25px 20px;
    }
}