/* ===========================
   Tarifs Page Specific Styles
   =========================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Pricing Intro */
.pricing-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.pricing-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-intro h2 {
    margin-bottom: 1rem;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: white;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.pricing-card.featured::before {
    content: "PLUS POPULAIRE";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header {
    background: var(--bg-light);
    padding: 2rem;
    text-align: center;
}

.pricing-card.featured .card-header {
    padding-top: 3rem;
}

.card-header h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
}

.price-after {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-body {
    padding: 2rem;
}

.card-body ul {
    list-style: none;
}

.card-body li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.card-body li:last-child {
    border-bottom: none;
}

/* Tax Advantage Section */
.tax-advantage {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.tax-advantage h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.tax-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tax-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.tax-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tax-faq {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--bg-light);
}

.tax-faq h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.tax-faq-infographic {
    max-width: 1000px;
    margin: 3rem auto 0;
    text-align: center;
}

.tax-faq-infographic img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.tax-faq .faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tax-faq .faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tax-faq .faq-item .note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 129, 201, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.tax-faq .faq-item .external-link {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.tax-faq .faq-item a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.tax-faq .faq-item a:hover {
    color: var(--secondary-color);
}

/* Tax Calculator */
.tax-calculator {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.tax-calculator h2 {
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
}

.tax-calculator > p {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-group input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.2);
}

.calculator-result {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 2rem;
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.calculator-results h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.calculator-results p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
}

.calculator-results .net-cost {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid rgba(255,255,255,0.3);
}

/* Additional Rates Table */
.additional-rates {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.additional-rates h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.rates-table thead {
    background: var(--bg-light);
}

.rates-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.rates-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.rates-table tbody tr:hover {
    background: rgba(129, 230, 217, 0.05);
}

/* Comparison Section */
.comparison-section {
    margin-bottom: 3rem;
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.comparison-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.comparison-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.comparison-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.price-range {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.comparison-card ul {
    text-align: left;
}

.comparison-card li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
}

.comparison-card li.plus {
    color: var(--primary-color);
}

.comparison-card li.minus {
    color: #E53E3E;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.faq-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Pricing CTA */
.pricing-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
}

.pricing-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.pricing-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.pricing-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .pricing-intro {
        margin-bottom: 2rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        margin: 0;
    }

    .card-header {
        padding: 1.75rem 1.5rem;
    }

    .pricing-card.featured .card-header {
        padding-top: 2.75rem;
    }

    .card-body {
        padding: 1.75rem 1.5rem;
    }

    .comparison-card.featured {
        transform: none;
    }

    .calculator-form {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        grid-template-columns: 1fr;
    }

    .rates-table {
        font-size: 0.9rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }

    .rates-table th,
    .rates-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        word-break: break-word;
    }

    .tax-advantage,
    .additional-rates,
    .faq-section {
        padding: 2.5rem 1.5rem;
    }

    .tax-faq {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .tax-faq h3 {
        font-size: 1.3rem;
    }

    .tax-faq-infographic {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.75rem 0.75rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .pricing-intro h2 {
        font-size: 1.4rem;
    }

    .pricing-cards {
        gap: 1.25rem;
    }

    .pricing-card.featured::before {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .card-header {
        padding: 1.5rem 1.25rem;
    }

    .pricing-card.featured .card-header {
        padding-top: 2.5rem;
    }

    .card-header h3 {
        font-size: 1.15rem;
    }

    .pricing-card .price .amount {
        font-size: 2rem;
    }

    .price .period {
        font-size: 0.95rem;
    }

    .price-after {
        font-size: 0.85rem;
    }

    .card-body {
        padding: 1.5rem 1.25rem;
    }

    .card-body li {
        padding: 0.65rem 0;
        font-size: 0.9rem;
    }

    .tax-calculator {
        padding: 2rem 1.25rem;
    }

    .tax-calculator h2 {
        font-size: 1.3rem;
    }

    .tax-calculator > p {
        font-size: 0.95rem;
    }

    .calculator-result {
        padding: 1.5rem;
    }

    .calculator-results h4 {
        font-size: 1.1rem;
    }

    .calculator-results p {
        font-size: 0.9rem;
    }

    .calculator-results .net-cost {
        font-size: 1.2rem;
    }

    .additional-rates {
        padding: 2rem 1.25rem;
    }

    .additional-rates h2 {
        font-size: 1.3rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .faq-item h3 {
        font-size: 1rem;
    }

    .rates-table th,
    .rates-table td {
        padding: 0.6rem 0.35rem;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .tax-info,
    .comparison-grid {
        gap: 1.25rem;
    }

    .tax-card,
    .comparison-card {
        padding: 1.25rem;
    }
}

/* Très petits écrans (360px et moins) */
@media (max-width: 360px) {
    .page-header {
        padding: 1.5rem 0.5rem;
    }

    .page-header h1 {
        font-size: 1.35rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .pricing-cards {
        gap: 1rem;
    }

    .pricing-card {
        border-radius: 8px;
    }

    .pricing-card.featured::before {
        font-size: 0.7rem;
        padding: 0.35rem;
    }

    .card-header {
        padding: 1.25rem 1rem;
    }

    .pricing-card.featured .card-header {
        padding-top: 2.25rem;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .pricing-card .price .amount {
        font-size: 1.75rem;
    }

    .price .period {
        font-size: 0.9rem;
    }

    .price-after {
        font-size: 0.8rem;
    }

    .card-body {
        padding: 1.25rem 1rem;
    }

    .card-body li {
        padding: 0.6rem 0;
        font-size: 0.85rem;
    }

    .tax-calculator,
    .additional-rates,
    .faq-section {
        padding: 1.5rem 1rem;
    }

    .tax-calculator h2,
    .additional-rates h2 {
        font-size: 1.2rem;
    }

    .tax-faq {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .tax-faq h3 {
        font-size: 1.2rem;
    }

    .tax-faq-infographic {
        margin-top: 1.5rem;
    }

    .tax-faq .faq-item h4 {
        font-size: 1rem;
    }

    .calculator-results h4 {
        font-size: 1rem;
    }

    .calculator-results .net-cost {
        font-size: 1.1rem;
    }

    .rates-table th,
    .rates-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-item h3 {
        font-size: 0.95rem;
    }

    .faq-item p {
        font-size: 0.85rem;
    }
}