/* ═══════════════════════════════════════════════════════════════════════════════
   ✨ PREMIUM V2 - Complete Page Revolution
   Design inspiration: Stripe, Linear, Vercel - world-class SaaS aesthetics
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────────
   1. ENHANCED DESIGN TOKENS
   ─────────────────────────────────────────────────────────────────────────────── */
:root {
    /* Enhanced Color Palette */
    --primary-600: #4f46e5;
    --primary-500: #6366f1;
    --primary-400: #818cf8;
    --primary-100: #e0e7ff;
    --primary-50: #eef2ff;

    --accent-violet: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    /* Sophisticated Grays */
    --gray-950: #0c0a09;
    --gray-900: #1c1917;
    --gray-800: #292524;
    --gray-700: #44403c;
    --gray-600: #57534e;
    --gray-500: #78716c;
    --gray-400: #a8a29e;
    --gray-300: #d6d3d1;
    --gray-200: #e7e5e4;
    --gray-100: #f5f5f4;
    --gray-50: #fafaf9;

    /* Premium Surfaces */
    --surface-elevated: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.7);
    --surface-subtle: rgba(255, 255, 255, 0.5);

    /* Refined Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.12);

    /* Glow Effects */
    --glow-primary: 0 0 40px rgba(79, 70, 229, 0.15), 0 0 80px rgba(79, 70, 229, 0.08);
    --glow-emerald: 0 0 40px rgba(16, 185, 129, 0.15);
    --glow-violet: 0 0 40px rgba(139, 92, 246, 0.15);

    /* Animation Curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1400px;
    --section-spacing: 8rem;
    --card-radius: 20px;
    --card-radius-sm: 12px;
}

/* ───────────────────────────────────────────────────────────────────────────────
   2. GLOBAL PAGE BACKGROUND - Animated Gradient Mesh
   ─────────────────────────────────────────────────────────────────────────────── */
body {
    background: #fafaf9;
    min-height: 100vh;
}

.hero-modern {
    background:
        /* Subtle Grid */
        linear-gradient(rgba(79, 70, 229, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.04) 1px, transparent 1px),
        /* Mesh Gradients */
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 10% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
        /* Base Gradient */
        linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    position: relative;
    overflow: hidden;
}

/* ───────────────────────────────────────────────────────────────────────────────
   3. HERO HEADER BADGES
   ─────────────────────────────────────────────────────────────────────────────── */
.hero-header-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-header-badges .badge-new,
.hero-header-badges .trust-badge {
    margin: 0 !important;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
}

/* ───────────────────────────────────────────────────────────────────────────────
   4. SECTION BASE STYLES & LAYOUT BREATHING (Premium Air)
   ─────────────────────────────────────────────────────────────────────────────── */
.hero-modern {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
    /* 🚀 Balanced breathing room */
}

section.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Section Headers - Unified Style */
section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    /* 🚀 Bolder headers */
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--gray-950) 0%, var(--gray-700) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

section h2+p {
    color: var(--gray-500);
    font-size: 1.2rem;
    max-width: 800px;
    /* 🚀 Slightly wider for better balance */
    margin: 0 0 4rem !important;
    /* 🚀 Force left alignment */
    text-align: left !important;
    /* 🚀 Kill any inherited centering */
}

/* ───────────────────────────────────────────────────────────────────────────────
   4. SOCIAL PROOF SECTION - Floating Stats Bar
   ─────────────────────────────────────────────────────────────────────────────── */
.social-proof-section {
    background: var(--surface-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    padding: 1.5rem 4rem;
    max-width: 750px;
    margin: 8rem auto;
    /* 🚀 High breathing room */
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-2xl), var(--glow-primary);
}

.social-proof-section p {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    letter-spacing: 0.1em;
    color: var(--gray-800);
    text-transform: uppercase;
}

.social-proof-section p::before {
    content: '✦';
    color: var(--primary-500);
    font-size: 1.2rem;
}

/* ───────────────────────────────────────────────────────────────────────────────
   5. TVA SEO BOX - Premium Gradient Card
   ─────────────────────────────────────────────────────────────────────────────── */
.tva-seo-box {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(238, 242, 255, 0.95) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: var(--card-radius);
    padding: 4rem;
    /* 🚀 More internal padding */
    box-shadow: var(--shadow-2xl), var(--glow-primary);
    position: relative;
    overflow: hidden;
    margin-top: 12rem;
    /* 🚀 Massive space between stats and this card */
}

.tva-seo-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-violet));
}

.tva-seo-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.tva-seo-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.tva-seo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-violet));
    color: white !important;
    -webkit-text-fill-color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    box-shadow: var(--shadow-md);
}

.tva-seo-formulas {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tva-seo-formulas p {
    background: var(--gray-900);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--card-radius-sm);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1rem;
    margin: 0;
    box-shadow: var(--shadow-lg);
}

.tva-seo-text {
    position: relative;
    z-index: 1;
}

.tva-seo-text p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ───────────────────────────────────────────────────────────────────────────────
   6. FEATURES GRID - Premium Glass Cards
   ─────────────────────────────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--surface-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--card-radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-md);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(79, 70, 229, 0.03) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border-color: rgba(79, 70, 229, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
    border-radius: var(--card-radius-sm);
    margin-bottom: 1.5rem;
    color: var(--primary-600);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-violet) 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ───────────────────────────────────────────────────────────────────────────────
   7. ARTICLE SECTIONS - Modern Documentation Style
   ─────────────────────────────────────────────────────────────────────────────── */
.article {
    background: var(--surface-elevated);
    border: 1px solid var(--gray-200);
    border-radius: var(--card-radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.3), transparent);
}

.article h2 {
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem !important;
}

.article>p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.example-box {
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-left: 4px solid var(--primary-500);
    border-radius: 0 var(--card-radius-sm) var(--card-radius-sm) 0;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.example-box:hover {
    background: linear-gradient(135deg, var(--primary-100) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-left-color: var(--accent-violet);
    box-shadow: var(--shadow-md);
}

.example-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-box h3::before {
    content: '→';
    color: var(--primary-500);
    font-weight: 800;
}

.example-box p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.example-box code {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 0.25em 0.6em;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.example-box ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.example-box li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ───────────────────────────────────────────────────────────────────────────────
   8. TVA EXAMPLES LIST - Interactive Rows
   ─────────────────────────────────────────────────────────────────────────────── */
.tva-examples {
    background: var(--surface-elevated);
    border: 1px solid var(--gray-200);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tva-ex-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.tva-ex-row:last-child {
    border-bottom: none;
}

.tva-ex-row:hover {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.04) 0%, transparent 100%);
    padding-left: 2rem;
}

.tva-ex-rate {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-violet));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.tva-ex-values {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ───────────────────────────────────────────────────────────────────────────────
   9. RATES TABLE - Premium Data Table
   ─────────────────────────────────────────────────────────────────────────────── */
.rates-table {
    background: var(--surface-elevated);
    border: 1px solid var(--gray-200);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.rates-table thead {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.rates-table th {
    padding: 1.25rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
}

.rates-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
    transition: all 0.2s ease;
}

.rates-table tr:hover td {
    background: rgba(79, 70, 229, 0.02);
}

.rates-table .rate-percent {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-violet) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rates-table .table-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary-500);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rates-table .table-link:hover {
    color: var(--accent-violet);
    gap: 0.6rem;
}

/* ───────────────────────────────────────────────────────────────────────────────
   10. GUIDES GRID - Premium Card Links
   ─────────────────────────────────────────────────────────────────────────────── */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

.guide-card {
    background: var(--surface-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    /* Reduced padding */
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.guide-card:hover {
    transform: translateY(-4px);
    /* Reduced hover lift */
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border-color: rgba(79, 70, 229, 0.15);
    text-decoration: none;
}

.guide-card:hover::after {
    transform: scaleX(1);
}

.guide-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
    border-radius: var(--card-radius-sm);
    margin-bottom: 1rem;
    color: var(--primary-600);
    transition: all 0.4s var(--ease-out-expo);
    font-size: 1.1rem;
}

.guide-card:hover .guide-icon {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-violet) 100%);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-lg);
}

.guide-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.guide-card:hover h3 {
    color: var(--primary-600);
}

.guide-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.guide-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(79, 70, 229, 0.05);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    color: var(--primary-500);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.guide-card:hover .guide-arrow {
    gap: 0.5rem;
    color: #fff;
    background: var(--primary-600);
}

/* "Voir tous les guides" button */
section>div:last-child>a.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-violet));
    color: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg), var(--glow-primary);
    transition: all 0.3s ease;
}

section>div:last-child>a.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--glow-violet);
}

/* ───────────────────────────────────────────────────────────────────────────────
   11. FAQ SECTION - Modern Accordion
   ─────────────────────────────────────────────────────────────────────────────── */
.faq-section {
    max-width: 800px;
    margin: var(--section-spacing) auto;
    padding: 0 2rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem !important;
    margin-bottom: 3rem !important;
}

.faq-item {
    background: var(--surface-elevated);
    border: 1px solid var(--gray-200);
    border-radius: var(--card-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-600);
}

.faq-icon {
    font-size: 0.75rem;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-500);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--ease-out-expo);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1rem;
}

.faq-answer a {
    color: var(--primary-500);
    font-weight: 600;
}

.faq-answer a:hover {
    color: var(--accent-violet);
}

/* ───────────────────────────────────────────────────────────────────────────────
   12. FOOTER - Premium Minimal
   ─────────────────────────────────────────────────────────────────────────────── */
.footer {
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
    border-top: 1px solid var(--gray-200);
    padding: 5rem 0 3rem;
    margin-top: var(--section-spacing);
}

.footer .container {
    max-width: var(--container-max);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 500px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-500);
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ───────────────────────────────────────────────────────────────────────────────
   13. SCROLL ANIMATIONS
   ─────────────────────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to sections */
section.container,
.faq-section,
.tva-seo-box,
.social-proof-section {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.feature-card,
.guide-card {
    animation: scaleIn 0.6s var(--ease-out-expo) forwards;
}

/* Staggered animation delays */
.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.guide-card:nth-child(1) {
    animation-delay: 0.05s;
}

.guide-card:nth-child(2) {
    animation-delay: 0.1s;
}

.guide-card:nth-child(3) {
    animation-delay: 0.15s;
}

.guide-card:nth-child(4) {
    animation-delay: 0.2s;
}

.guide-card:nth-child(5) {
    animation-delay: 0.25s;
}

.guide-card:nth-child(6) {
    animation-delay: 0.3s;
}

/* ───────────────────────────────────────────────────────────────────────────────
   14. MICRO-INTERACTIONS & POLISH
   ─────────────────────────────────────────────────────────────────────────────── */

/* Selection color */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: var(--gray-900);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Link underline animation */
.article a,
.tva-seo-text a {
    color: var(--primary-500);
    text-decoration: none;
    position: relative;
    font-weight: 600;
}

/* Fix: Restore white text and weight for buttons in articles */
.article a.btn-primary,
.tva-seo-text a.btn-primary {
    color: #ffffff !important;
    font-weight: 700;
}

.article a.btn-primary:hover,
.tva-seo-text a.btn-primary:hover {
    color: #ffffff !important;
}

.article a::after,
.tva-seo-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-violet));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* Fix: Remove underline effect for buttons in articles */
.article a.btn::after,
.tva-seo-text a.btn::after {
    display: none;
}

.article a:hover::after,
.tva-seo-text a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Button press effect */
button:active,
.btn:active {
    transform: scale(0.98);
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ───────────────────────────────────────────────────────────────────────────────
   15. COMPACT CALCULATOR LAYOUT (Optimization)
   ─────────────────────────────────────────────────────────────────────────────── */

/* 2-Column Inputs on Desktop */
@media (min-width: 641px) {
    .input-glass {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .input-glass .input-group {
        margin-bottom: 0 !important;
    }
}

/* Compact Result Box */
.calculator-glass .result-box {
    padding: 1.25rem !important;
    margin-top: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.result-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    margin: 0.25rem 0;
}

.calculator-glass .result-value {
    font-size: 2.25rem !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.calculator-glass .copy-tva-btn {
    margin-top: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
}

/* Final nudge for retention message visibility */
.retention-mini.visible {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
}

.calculator-glass {
    padding: 2rem !important;
    /* Slightly less padding to pull everything up */
}

/* Hide Number Input Spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}