/**
 * ==================================================================================
 * PAGE TARIFS - VERSION OPTIMISÉE
 * ==================================================================================
 * 
 * Design professionnel et moderne pour la page tarifs
 * Les composants globaux (FAQ, CTA, variables) sont dans styles.css
 * 
 * SECTIONS :
 * 1. Hero Tarifs
 * 2. Comparison Cards
 * 3. Section Calcul - Design amélioré
 * 4. Formules
 * 5. Services à la carte
 * 6. Why Transparent
 * 7. Responsive
 * 
 * Date : Janvier 2025 - Version 3.0 Optimisée
 * ==================================================================================
 */

/* ==================================================================================
   1. HERO TARIFS
   ================================================================================== */

.tarifs-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tarifs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.tarifs-hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.tarifs-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.tarifs-hero h1 .highlight {
    color: var(--success-light);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
}

/* ==================================================================================
   2. COMPARISON CARDS
   ================================================================================== */

.section-comparison {
    background: var(--white-color);
    padding: 80px 0;
    overflow-x: hidden;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.comparison-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

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

.competitor-card {
    border: 2px solid var(--border-color);
}

.our-card {
    border: 3px solid var(--success-color);
}

.our-card.featured {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

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

.card-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.price-badge {
    display: inline-block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-badge.bad {
    color: var(--danger-color);
}

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

.price-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

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

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    font-size: 20px;
    margin-top: 2px;
}

.feature-negative i {
    color: var(--danger-color);
}

.feature-positive i {
    color: var(--success-color);
}

.card-note {
    margin-top: 20px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

.card-footer {
    margin-top: 30px;
    text-align: center;
}

/* ==================================================================================
   3. SECTION CALCUL - DESIGN AMÉLIORÉ
   ================================================================================== */

.calculation-example {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 24px;
    padding: 60px 40px;
    margin-top: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.calculation-example::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.calculation-example h3 {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.calculation-example h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Grid des cards de calcul */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 35px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* VS Badge entre les deux cards */
.calc-grid::before {
    content: 'VS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    z-index: 10;
    border: 4px solid white;
}

/* Cards de calcul - Design moderne */
.calc-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.calc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

/* Card concurrent - Style rouge amélioré */
.calc-card.competitor {
    border: 2px solid #fecaca;
}

.calc-card.competitor::before {
    content: '❌';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.3;
    z-index: 1;
}

/* Card notre offre - Style vert amélioré */
.calc-card.ours {
    border: 2px solid #86efac;
    position: relative;
}

.calc-card.ours::before {
    content: '✓';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #10b981;
    opacity: 0.2;
    z-index: 1;
    font-weight: 900;
}

.calc-card.ours::after {
    content: 'MEILLEURE OFFRE';
    position: absolute;
    top: -12px;
    right: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Header des cards de calcul */
.calc-header {
    padding: 28px 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.calc-card.competitor .calc-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.calc-card.ours .calc-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.calc-header h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calc-rate {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 600;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Body des cards de calcul */
.calc-body {
    padding: 32px 30px;
    position: relative;
    z-index: 2;
}

/* Lignes de calcul - Design amélioré */
.calc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 2px dashed #e2e8f0;
    transition: all 0.2s ease;
}

.calc-line:hover {
    background: #f8fafc;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
}

.calc-line:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.calc-line > span:first-child {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
}

.calc-line .amount {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* Ligne négative (commission) */
.calc-line.negative .amount {
    color: #ef4444;
    font-size: 19px;
}

.calc-line.negative {
    background: linear-gradient(90deg, transparent 0%, #fef2f2 50%, transparent 100%);
    border-color: #fecaca;
}

/* Ligne neutre */
.calc-line.neutral .amount {
    color: #64748b;
    font-size: 15px;
}

.calc-line small {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 3px;
}

/* Total - Design impactant */
.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    margin-top: 20px;
    border-top: 3px solid #0f172a;
    font-weight: 700;
    font-size: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.calc-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.calc-total > span:first-child {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.calc-total .amount {
    font-size: 28px;
    position: relative;
    z-index: 1;
}

/* Total mauvais (concurrent) */
.calc-total.bad {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-top-color: #ef4444;
}

.calc-total.bad .amount {
    color: #dc2626;
}

/* Total bon (notre offre) */
.calc-total.good {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-top-color: #10b981;
}

.calc-total.good .amount {
    color: #059669;
}

/* Highlight économies - Design spectaculaire */
.economy-highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 35px 40px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.economy-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 30px) rotate(360deg); }
}

.economy-highlight i {
    font-size: 48px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.economy-highlight strong {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.economy-highlight small {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.9;
}

/* ==================================================================================
   4. FORMULES - PROFESSIONAL REDESIGN
   ================================================================================== */

.section-formules {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8fafc, #eff6ff);
    position: relative;
    overflow-x: hidden;
}

.section-formules .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
}

.section-formules .section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-formules .section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.formules-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 20px; /* Espace pour l'ombre */
}

.formule-card {
    flex: 1;
    min-width: min(100%, 340px);
    max-width: 500px;
    background: white;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.formule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Recommended Card Styling */
.formule-card.recommended {
    border: 2px solid var(--success-color);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
}

.formule-card.recommended:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 30px 70px rgba(16, 185, 129, 0.2);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    white-space: nowrap;
}

.formule-header {
    padding: 50px 40px 40px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    background: white;
    border-radius: 24px 24px 0 0;
}

.formule-card.recommended .formule-header {
    background: linear-gradient(to bottom, #f0fdf4, #ffffff);
}

.formule-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.formule-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.formule-price .price {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.formule-card.recommended .formule-price .price {
    color: var(--success-color);
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.formule-price .price-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 5px;
}

.formule-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
}

.formule-body {
    padding: 40px;
    flex-grow: 1;
    background: white;
}

.formule-body h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

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

.services-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.5;
}

.services-list li:last-child {
    margin-bottom: 0;
}

.services-list i {
    color: var(--success-color);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    background: #f0fdf4;
    padding: 4px;
    border-radius: 50%;
}

.services-list.premium i {
    color: #f59e0b;
    background: #fffbeb;
}

.formule-note {
    margin-top: 30px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    border: 1px dashed #cbd5e1;
}

.formule-note i {
    font-size: 16px;
    color: var(--primary-color);
    margin-top: 2px;
}

.formule-highlight {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border-radius: 12px;
    border: 1px solid #fcd34d;
    display: flex;
    gap: 15px;
}

.formule-highlight i {
    font-size: 24px;
    color: #d97706;
}

.formule-highlight strong {
    display: block;
    color: #92400e;
    margin-bottom: 5px;
    font-size: 15px;
}

.formule-highlight p {
    font-size: 13px;
    color: #b45309;
    margin: 0;
    line-height: 1.5;
}

.formule-footer {
    padding: 0 40px 50px;
    text-align: center;
    background: white;
    border-radius: 0 0 24px 24px;
}

.formule-card .btn-primary, .btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.formule-card .btn-primary {
    background: var(--success-color);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.formule-card .btn-primary:hover {
    background: #059669;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.formule-card .btn-secondary {
    background: var(--dark-color);
    color: white;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.formule-card .btn-secondary:hover {
    background: var(--dark-light);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-formules {
        padding: 60px 0;
    }

    .formules-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .formule-card {
        width: 100%;
        max-width: 100%;
    }

    .formule-card.recommended {
        transform: scale(1);
    }

    .formule-card.recommended:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .section-formules .section-header h2 {
        font-size: 28px;
    }
    
    .formule-header {
        padding: 40px 25px 30px;
    }
    
    .formule-price .price {
        font-size: 52px;
    }
    
    .formule-body {
        padding: 30px 25px;
    }
    
    .formule-footer {
        padding: 0 25px 40px;
    }
}

/* ==================================================================================
   5. SERVICES À LA CARTE
   ================================================================================== */

.section-services-carte {
    padding: 80px 0;
    background: white;
    overflow-x: hidden;
}

.services-carte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 30px;
}

.service-carte-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--light-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-carte-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 36px;
    color: white;
}

.service-carte-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-carte-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==================================================================================
   6. WHY TRANSPARENT
   ================================================================================== */

.section-why-transparent {
    background: var(--light-color);
    padding: 80px 0;
    overflow-x: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 60px;
}

.why-content h3,
.why-engagements h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.why-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.philosophy-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.philosophy-list li:last-child {
    border-bottom: none;
}

.philosophy-list i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 2px;
}

.engagement-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.engagement-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.engagement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.engagement-icon i {
    font-size: 28px;
    color: white;
}

.engagement-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.engagement-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==================================================================================
   7. RESPONSIVE
   ================================================================================== */

@media (max-width: 992px) {
    .calc-grid::before {
        top: auto;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }
}

@media (max-width: 768px) {
    .tarifs-hero {
        padding: 60px 0 40px;
    }

    .tarifs-hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-comparison,
    .section-formules,
    .section-services-carte,
    .section-why-transparent {
        padding: 60px 10px;
    }

    .comparison-cards,
    .calc-grid,
    .services-carte-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 0;
    }

    .formules-grid {
        padding: 0;
        gap: 30px;
    }

    .comparison-card {
        padding: 30px 15px;
    }

    .our-card.featured {
        transform: scale(1);
    }

    .formule-card {
        max-width: 100%;
    }

    .why-grid {
        gap: 30px;
    }

    .calculation-example {
        padding: 40px 25px;
    }

    .calculation-example h3 {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .calc-grid {
        gap: 50px;
    }

    .calc-grid::before {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .calc-header {
        padding: 24px 20px;
    }

    .calc-header h4 {
        font-size: 20px;
    }

    .calc-body {
        padding: 28px 20px;
    }

    .calc-line {
        padding: 14px 0;
    }

    .calc-line > span:first-child {
        font-size: 14px;
    }

    .calc-line .amount {
        font-size: 16px;
    }

    .calc-total {
        padding: 20px 16px;
        font-size: 18px;
    }

    .calc-total .amount {
        font-size: 24px;
    }

    .economy-highlight {
        flex-direction: column;
        padding: 30px 25px;
        gap: 15px;
    }

    .economy-highlight i {
        font-size: 40px;
    }

    .economy-highlight strong {
        font-size: 20px;
    }

    .economy-highlight small {
        font-size: 14px;
    }

    .calc-card.ours::after {
        font-size: 10px;
        padding: 5px 12px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .tarifs-hero h1 {
        font-size: 28px;
    }

    .price-badge {
        font-size: 40px;
    }

    .formule-price {
        font-size: 48px;
    }

    .calculation-example {
        padding: 30px 20px;
    }

    .calculation-example h3 {
        font-size: 20px;
    }

    .calc-header h4 {
        font-size: 18px;
    }

    .calc-rate {
        font-size: 13px;
        padding: 5px 12px;
    }

    .calc-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .calc-line .amount {
        font-size: 15px;
    }

    .calc-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .calc-total .amount {
        font-size: 22px;
    }

    .economy-highlight strong {
        font-size: 18px;
    }
}

/* ==================================================================================
   8. ANIMATIONS
   ================================================================================== */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.calc-card {
    animation: fadeInScale 0.6s ease-out backwards;
}

.calc-card.competitor {
    animation-delay: 0.1s;
}

.calc-card.ours {
    animation-delay: 0.2s;
}

.economy-highlight {
    animation: fadeInScale 0.6s ease-out 0.4s backwards;
}

/* Désactiver les animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    .calc-card,
    .economy-highlight,
    .economy-highlight i {
        animation: none;
    }
    
    .calc-total::before,
    .economy-highlight::before {
        animation: none;
    }
}