/* Styles pour la page Tarifs - Responsive Design */

/* Variables CSS */
:root {
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-color: #48bb78;
    --success-gradient: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --warning-color: #fbb040;
    --danger-color: #ff6b6b;
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    --light-blue: #f8f9ff;
    --light-green: #f0fff4;
    --border-color: #e2e8f0;
    --text-gray: #666;
    --text-dark: #2d3748;
}

/* Section Hero */
.hero-section {
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    padding: 2.5rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.hero-price-box {
    background: rgba(255,255,255,0.2);
    padding: 1.25rem;
    border-radius: 8px;
    display: inline-block;
}

.hero-price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.hero-price-desc {
    font-size: 1.1rem;
}

/* Cartes de tarifs */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pricing-card {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.pricing-card-base {
    background: var(--light-blue);
    border: 2px solid var(--primary-color);
}

.pricing-card-extra {
    background: var(--light-green);
    border: 2px solid var(--success-color);
}

.pricing-badge {
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.badge-primary {
    background: var(--primary-color);
}

.badge-success {
    background: var(--success-color);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: bold;
    margin: 0.6rem 0;
}

.amount-primary {
    color: var(--primary-color);
}

.amount-success {
    color: var(--success-color);
}

.pricing-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.pricing-features {
    text-align: left;
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.pricing-features div {
    margin-bottom: 0.5rem;
}

/* Section Titles */
.section-title-centered {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 2.5rem 0 1.25rem 0;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Grille des durées */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.duration-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease;
}

.duration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.duration-card.premium {
    border-color: var(--success-color);
}

.duration-card.warning {
    border-color: var(--warning-color);
}

.duration-card.info {
    border-color: #f093fb;
}

.duration-label {
    font-weight: bold;
    margin-bottom: 0.6rem;
}

.duration-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.duration-desc {
    color: #718096;
    font-size: 0.9rem;
}

.premium-badge {
    background: var(--success-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    position: absolute;
    top: -8px;
    right: 10px;
}

/* Distance Section */
.distance-container {
    max-width: 600px;
    margin: 0 auto;
}

.distance-free-zone {
    background: var(--success-gradient);
    color: white;
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
}

.distance-free-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.distance-free-time {
    font-size: 1.5rem;
    font-weight: bold;
}

.distance-free-desc {
    opacity: 0.9;
    margin-top: 0.3rem;
}

.distance-grid {
    display: grid;
    gap: 0.6rem;
}

.distance-item {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.distance-yellow {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.distance-orange {
    background: #ffeaa7;
    border-left: 4px solid #fdcb6e;
}

.distance-red {
    background: #ffb3ba;
    border-left: 4px solid #e17055;
}

.distance-dark-red {
    background: #ff7675;
    border-left: 4px solid #d63031;
}

.distance-black {
    background: #2d3436;
    color: white;
    text-align: center;
}

.distance-price {
    font-size: 1.2rem;
    font-weight: bold;
}

.distance-example {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

/* Treatment Section */
.treatment-container {
    max-width: 700px;
    margin: 0 auto;
}

.treatment-price-card {
    background: var(--danger-gradient);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.treatment-price-label {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.treatment-price-amount {
    font-size: 3rem;
    font-weight: bold;
    margin: 0.6rem 0;
}

.treatment-price-desc {
    opacity: 0.9;
}

.treatment-calculator {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.treatment-calc-title {
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
}

.treatment-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.treatment-example {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
}

.treatment-example-freq {
    font-weight: bold;
    color: var(--primary-color);
}

.treatment-example-calc {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.treatment-example-price {
    font-size: 1.3rem;
    font-weight: bold;
}

.treatment-formula {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed var(--primary-color);
}

.treatment-types {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

.treatment-types-title {
    margin-top: 0;
    color: var(--primary-color);
}

.treatment-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
}

.treatment-type-item {
    padding: 0.5rem;
    background: var(--light-blue);
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
}

/* Loyalty Section */
.loyalty-section {
    background: var(--success-gradient);
    color: white;
    padding: 2.5rem 1.25rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.loyalty-decoration-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(255,255,255,0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.5;
}

.loyalty-decoration-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: rgba(255,255,255,0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.3;
}

.loyalty-title {
    color: white;
    margin: 0 0 1.25rem 0;
    font-size: 2.2rem;
}

.loyalty-highlight {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 1.25rem 0;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
}

.loyalty-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.loyalty-example {
    background: rgba(255,255,255,0.15);
    padding: 1.25rem;
    border-radius: 10px;
}

.loyalty-example-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.6rem;
}

.loyalty-example-content {
    text-align: left;
}

.loyalty-example-calc {
    border-top: 1px solid rgba(255,255,255,0.3);
    margin: 0.6rem 0;
    padding-top: 0.6rem;
}

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 1.25rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-title {
    color: white;
    margin: 0 0 1.25rem 0;
    font-size: 2.5rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin: 1rem 0 2rem 0;
    opacity: 0.9;
}

.cta-features {
    background: rgba(255,255,255,0.1);
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1.25rem 0;
    display: inline-block;
}

.cta-features-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.cta-features-list {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    margin-top: 1.25rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-disclaimer {
    margin-top: 1rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Services supplémentaires - style existant maintenu */
.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.plants-item {
    background: var(--light-blue);
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.plants-title {
    color: var(--primary-color);
    margin: 15px 0 10px 0;
}

.plants-calc {
    color: var(--text-gray);
}

/* Services inclus */
.services-subtitle {
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

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

.services-list li {
    padding: 3px 0;
}

/* Conditions et règles */
.rules-danger {
    background: #fed7d7;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
}

.rules-title {
    color: #e53e3e;
    margin-top: 0;
}

/* Classes supplémentaires pour les labels de durée */
.duration-label-primary {
    color: var(--primary-color) !important;
}

.duration-label-warning {
    color: var(--warning-color) !important;
}

.duration-label-info {
    color: #f093fb !important;
}

.duration-label-success {
    color: var(--success-color) !important;
}

/* Classes pour les prix de distance */
.distance-price-yellow {
    color: #856404;
}

.distance-price-red {
    color: #d63031;
}

.distance-price-dark {
    color: #2d3436;
}

.distance-forbidden {
    font-size: 1.1em;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-price {
        font-size: 1.5rem;
    }
    
    .section-title-centered {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-amount {
        font-size: 2.5rem;
    }
    
    .duration-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .duration-price {
        font-size: 2rem;
    }
    
    .distance-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .distance-price {
        font-size: 1.1rem;
    }
    
    .treatment-price-amount {
        font-size: 2.5rem;
    }
    
    .treatment-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .loyalty-title {
        font-size: 1.8rem;
    }
    
    .loyalty-highlight {
        font-size: 1.5rem;
        padding: 0.8rem;
    }
    
    .loyalty-examples {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-features-list {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .cta-button {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title-centered {
        font-size: 1.3rem;
    }
    
    .pricing-amount {
        font-size: 2.2rem;
    }
    
    .duration-grid {
        grid-template-columns: 1fr;
    }
    
    .distance-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .treatment-price-amount {
        font-size: 2.2rem;
    }
    
    .loyalty-title {
        font-size: 1.6rem;
    }
    
    .loyalty-highlight {
        font-size: 1.3rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-features-list {
        flex-direction: column;
        gap: 0.5rem;
    }
}