/* 🏆 CHAMPIONSHIP BUNDLE v9 */

/* --- assets/css/style.css --- */
:root {
    /* 🎨 Palette "Claude/Linear" (Modern & Vibrant) */
    /* Primary: Indigo to Violet Gradients */
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-hover: #4338ca;
    /* Indigo 700 */
    --primary-light: #e0e7ff;
    /* Indigo 100 */
    --accent-color: #8b5cf6;
    /* Violet 500 */

    /* Neutral / Surface */
    --background-color: #f8fafc;
    /* Slate 50 (Warm white) */
    --surface-color: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.7);
    /* For Glassmorphism */

    /* Text */
    --text-main: #0f172a;
    /* Slate 900 (Deep, not black) */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* Borders & Lines */
    --border-color: #e2e8f0;
    /* Slate 200 */
    --focus-ring: rgba(79, 70, 229, 0.25);

    /* ✨ Pastel Chips Colors */
    --pastel-red-bg: #fef2f2;
    --pastel-red-text: #ef4444;
    --pastel-orange-bg: #fff7ed;
    --pastel-orange-text: #f97316;
    --pastel-green-bg: #f0fdf4;
    --pastel-green-text: #22c55e;
    --pastel-blue-bg: #eff6ff;
    --pastel-blue-text: #3b82f6;
    --pastel-purple-bg: #faf5ff;
    --pastel-purple-text: #a855f7;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows (Soft & Colored) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.01);
    --shadow-glow: 0 0 50px -10px rgba(79, 70, 229, 0.15);
    /* Indigo Glow */

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    /* For Calculator */
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

main {
    flex: 1;
    padding-top: 0;
    /* removed to avoid gap between sticky header and first section (hero) */
    padding-bottom: var(--spacing-lg);
}

/* Header */
.header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    text-decoration: none;
}

.header-buttons {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(26, 86, 219, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

@media (min-width: 769px) {
    .header-buttons {
        display: flex;
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.hamburger:hover {
    background-color: var(--background-color);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0.5rem;
    z-index: 60;
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem 1rem;
    background-color: var(--surface-color);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.hero-seo-content {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: left;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Space between hero and the next container (calculator) */
.hero+.container {
    margin-top: calc(var(--spacing-lg) * 2);
}

.hero-seo-content p {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-seo-content p:last-child {
    margin-bottom: 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecfdf5;
    color: #047857;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid #d1fae5;
}

/* Calculator Component */
.calculator-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
}

.calculator-v2 {
    width: 100%;
    max-width: 600px;
    background: var(--surface-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    margin: 0 auto;
}

/* Rate Chips */
.rate-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.rate-chips input[type="radio"] {
    display: none;
}

.chip {
    padding: 0.5rem 1rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    user-select: none;
}

.rate-chips input[type="radio"]:checked+.chip {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rate-chips input[type="radio"]:checked+.chip:hover {
    color: white;
}

/* Input Groups */
.input-group {
    margin-bottom: var(--spacing-md);
    position: relative;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    /* Space for currency/icon */
    font-size: var(--font-size-xl);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: monospace;
    /* Better for numbers */
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.currency-symbol {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

/* Result Box */
.result-box {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.result-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0369a1;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0c4a6e;
    line-height: 1;
}

/* Article Styles */
.article {
    max-width: 100%;
    margin: 0 auto;
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.article h1 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.article .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-lg);
}

.article h2 {
    font-size: 1.75rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
}

.article h3 {
    font-size: 1.25rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--text-main);
}

.article p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.article ul,
.article ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.article li {
    margin-bottom: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--spacing-sm) 0;
    background-color: var(--background-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Table of Contents (Sommaire) */
.sommaire {
    background-color: #f1f5f9;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.sommaire strong {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--text-main);
}

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

.sommaire li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.sommaire li::before {
    content: "\2022";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-color);
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

/* Info Boxes */
.info-box,
.highlight-box,
.example-box,
.cta-box {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid transparent;
}

.info-box {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
}

.highlight-box {
    background-color: #fff7ed;
    border-left-color: #f97316;
}

.example-box {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
}

.cta-box {
    background-color: #f0f9ff;
    border-left-color: #0ea5e9;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.footer h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-page {
    max-width: 600px;
    margin: 0 auto;
}

form {
    background: var(--surface-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

form input,
form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-family: inherit;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: var(--primary-hover);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--text-main);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 3.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero-feature {
        width: auto;
        font-size: 0.925rem;
    }

    .article {
        padding: var(--spacing-md);
    }

    .calculator-v2 {
        padding: var(--spacing-md);
    }

    .result-value {
        font-size: 2rem;
    }
}


.footer-links a:hover {
    color: var(--primary-color);
}

/* Toast styles (small, centered stack) */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
    font-size: 0.95rem;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.hide {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    transition: opacity 250ms ease, transform 250ms ease;
}

/* Focus outlines for accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

/* Final Hero Overrides for Readability & SEO Block */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem 1rem;
    background-color: var(--surface-color) !important;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main) !important;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted) !important;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.hero-seo-content {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: left;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.hero-seo-content p {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-seo-content p:last-child {
    margin-bottom: 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecfdf5;
    color: #047857;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid #d1fae5;
}


/* =========================================
   MISSING BASE STYLES (Restored)
   ========================================= */

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-feature svg {
    color: var(--success-color);
}

/* Features Grid (Avantages) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

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

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

.feature-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s;
}

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

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-flex;
    padding: 12px;
    background: #eff6ff;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s;
    height: 100%;
}

.guide-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.guide-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.guide-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.guide-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.guide-arrow {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Examples List */
.tva-examples {
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tva-ex-row {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

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

.tva-ex-rate {
    min-width: 80px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.tva-ex-values {
    color: var(--text-main);
    font-family: monospace;
    font-size: 0.95rem;
}

/* FAQ */
.faq-section {
    margin: 3rem 0 4rem;
}

.faq-section h2 {
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1.5rem;
    color: var(--text-main);
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.faq-item.active .faq-question {
    color: var(--text-main);
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}

.faq-answer p {
    padding: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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


/* Copy Buttons */
.copy-icon {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.copy-icon:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

.copy-icon:active {
    transform: scale(0.95);
}

.copy-tva-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(26, 86, 219, 0.2);
}

.copy-tva-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(26, 86, 219, 0.3);
    transform: translateY(-1px);
}

.copy-tva-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 86, 219, 0.2);
}

/* TVA Info Box */
.tva-seo-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 3rem 2.3rem 2.6rem;
    max-width: 1024px;
    margin: 4rem auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.tva-seo-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.tva-seo-badge {
    display: inline-block;
    background: #eef2f7;
    color: #475569;
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid #d8dee9;
    margin-bottom: 1rem;
}

.tva-seo-formulas {
    margin-top: 0.8rem;
}

.tva-seo-formulas p {
    margin: 0.35rem 0;
    font-family: "Georgia", serif;
    font-style: italic;
    font-size: 1.22rem;
    color: #334155;
    line-height: 1.5;
}

.tva-seo-text {
    max-width: 760px;
    margin: 0 auto;
}

.tva-seo-text p {
    font-size: 1.04rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.article {
    padding-top: 1.5rem;
}



/* Calculator Section */
.calculator-section {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#calculator-title {
    scroll-margin-top: 120px;
}

@media (max-width: 767px) {
    #calculator-title {
        scroll-margin-top: 90px;
    }
}

/* Trust Badge Container */
.trust-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecfdf5;
    color: #047857;
    /* Darker green for better contrast */
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #d1fae5;
}

.trust-sources {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}


/* TVA Formula Intro */
.tva-formula-intro {
    margin: 0.25rem auto 0;
    font-size: 0.8rem;
    color: #a0aec0;
    max-width: 380px;
    text-align: center;
    letter-spacing: 0.1px;
}

/* Table Links */
.table-link {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 0.25rem;
}

/* Skip link (accessibility): hidden by default, visible on keyboard focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ffffff;
    color: #1a56db;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.2s;
    z-index: 1000;
}

.skip-link:focus {
    top: 10px;
    /* Devient visible */
}

/* SEO & Harmony Fixes - Overrides */
.hero {
    padding-bottom: 1rem;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero-subtitle {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.trust-badge-container {
    margin-bottom: 0;
}

.hero+.container {
    margin-top: 2rem;
}


/* Accessibility Improvements */
.article a,
.tva-seo-text a,
.hero-seo-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Fix: Prevent buttons from inheriting article underlines */
.article a.btn,
.tva-seo-text a.btn,
.hero-seo-content a.btn {
    text-decoration: none !important;
}

.article a:hover,
.tva-seo-text a:hover,
.hero-seo-content a:hover {
    text-decoration-thickness: 2px;
}
/* --- assets/css/redesign.css --- */
/* 
   🎨 MODERN HERO & GLASSMORPHISM STYLES 
   Added for "Claude-Level" Redesign
*/

/* Animated Background Blobs */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-light), transparent);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #f3e8ff, transparent);
    /* Violet light */
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.1);
    }
}

/* Modern Hero Layout */
.hero-modern {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-sm) var(--spacing-xl);
    text-align: center;
    background: transparent;
    /* Background handled by body/blobs */
}

.hero-modern h1 {
    font-size: 3.5rem;
    /* Massive Title */
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-main) 0%, #4338ca 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-modern .badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
    animation: slideDown 0.8s ease-out;
}

/* Glass Calculator */
.calculator-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 40px -10px rgba(79, 70, 229, 0.15),
        /* Indigo Glow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Inner Light */
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-glass:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 25px 50px -12px rgba(79, 70, 229, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Pastel Chips */
.rate-pills {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.rate-pills input[type="radio"] {
    display: none;
}

.pill {
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

/* Specific Colors for Rates */
.pill[for*="20"] {
    --pill-bg: var(--pastel-red-bg);
    --pill-color: var(--pastel-red-text);
}

.pill[for*="10"] {
    --pill-bg: var(--pastel-orange-bg);
    --pill-color: var(--pastel-orange-text);
}

.pill[for*="55"] {
    --pill-bg: var(--pastel-green-bg);
    --pill-color: var(--pastel-green-text);
}

.pill[for*="85"] {
    --pill-bg: var(--pastel-blue-bg);
    --pill-color: var(--pastel-blue-text);
}

.pill[for*="21"] {
    --pill-bg: var(--pastel-purple-bg);
    --pill-color: var(--pastel-purple-text);
}

.rate-pills input:checked+.pill {
    background-color: var(--pill-bg, var(--primary-light));
    color: var(--pill-color, var(--primary-color));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle lift */
    transform: scale(1.05);
}

.pill:hover {
    transform: translateY(-1px);
    border-color: var(--text-light);
}

/* Giant Inputs */
.input-glass input {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
    /* Huge numbers */
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.input-glass input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--focus-ring);
    transform: translateY(-1px);
}

.input-glass label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.animate-entry {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-modern h1 {
        font-size: 2.25rem;
    }

    .calculator-glass {
        padding: var(--spacing-md);
    }

    .pill {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 
   ✅ HERO BENEFITS LIST 
   Added to fill visual space on Desktop
*/

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-main);
    opacity: 0.9;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

/* 
   ⭐ INTEGRATED RETENTION MINI
   Appears inside the result box
*/
.retention-mini {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0;
}

.retention-mini.visible {
    max-height: 200px;
    opacity: 1;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(79, 70, 229, 0.15);
}

.mini-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.mini-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.mini-content p {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

.mini-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

@media (min-width: 1024px) {}
/* --- assets/css/desktop-layout.css --- */
/* 
   🖥️ DESKTOP SPLIT LAYOUT
   Added for better UX on large screens (80% traffic)
*/

@media (min-width: 1024px) {
    .hero-split-layout {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--spacing-xl);
        text-align: left;
        /* Align text to left */
        max-width: 1200px;
        /* Wider container */
    }

    .hero-text-content {
        padding-right: var(--spacing-lg);
        animation: slideRight 0.8s ease-out;
    }

    /* Override centered text styles for desktop ONLY in split layout */
    .hero-split-layout h1 {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-split-layout .hero-subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    /* Calculator stays on the right */
    .calculator-glass {
        margin: 0;
        /* Remove auto margins */
        justify-self: end;
        width: 100%;
        max-width: 550px;
        /* Slightly tighter on right col */
    }

    /* Adjust Badge alignment */
    .hero-modern .badge-new {
        margin-left: 0;
    }

    /* 📌 STICKY TABLE OF CONTENTS */
    .sommaire {
        position: sticky;
        top: 2rem;
        align-self: start;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
        /* Scroll if too long */
        margin-left: auto;
        /* Push to right if in flex/grid */
    }

    /* Layout adjustment for sticky TOC */
    .article {
        display: grid;
        grid-template-columns: 1fr 280px;
        /* Content | TOC */
        gap: 3rem;
        align-items: start;
    }

    .article>* {
        grid-column: 1;
        /* Everything defaults to left col */
    }

    .article .sommaire {
        grid-column: 2;
        grid-row: 1 / span 10;
        /* Span vertically */
        margin: 0;
        width: 100%;
    }

    /* Mobile-first override: default article is block */
}

@keyframes slideRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* --- assets/css/premium.css --- */
/* ══════════════════════════════════════════════════════════════════════════════
   🎨 PREMIUM DESIGN SYSTEM - SaaS Premium Style (Stripe-inspired)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   1. CSS VARIABLES - Design Tokens
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Premium Colors */
    --premium-bg: #fafbfc;
    --premium-surface: #ffffff;
    --premium-border: #e5e7eb;
    --premium-border-light: #f3f4f6;

    /* Gradient Accents */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-subtle: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    --gradient-glow: linear-gradient(180deg, rgba(79, 70, 229, 0.08) 0%, transparent 100%);

    /* Premium 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.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-glow-indigo: 0 0 60px -15px rgba(79, 70, 229, 0.25);
    --shadow-glow-violet: 0 0 80px -20px rgba(139, 92, 246, 0.20);

    /* Border Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Typography */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;

    /* Layout */
    --container-max: 1400px;
    --container-content: 1200px;
    --hero-min-height: calc(100vh - 80px);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. BODY & GLOBAL RESETS
   ═══════════════════════════════════════════════════════════════════════════════ */
body {
    background: var(--premium-bg);
    background-image: var(--gradient-glow);
    background-attachment: fixed;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. PREMIUM HEADER
   ═══════════════════════════════════════════════════════════════════════════════ */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--premium-border-light);
    padding: var(--space-md) 0;
    box-shadow: none;
}

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

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
}

.header-buttons .btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
}

.header-buttons .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-sm);
}

.header-buttons .btn-secondary {
    background: transparent;
    border: 1px solid var(--premium-border);
    color: var(--text-muted);
}

.header-buttons .btn-secondary:hover {
    background: var(--premium-surface);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. HERO SECTION (Desktop-First, Full Viewport)
   ═══════════════════════════════════════════════════════════════════════════════ */
.hero-modern {
    min-height: var(--hero-min-height);
    padding: var(--space-3xl) var(--space-lg);
    display: flex;
    align-items: center;
    background: transparent;
}

.hero-modern .container {
    max-width: var(--container-max);
    width: 100%;
}

/* Desktop Split Layout - Asymmetric 55/45 */
@media (min-width: 1024px) {
    .hero-split-layout {
        display: grid !important;
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
        gap: var(--space-4xl);
        max-width: var(--container-max);
    }

    .hero-text-content {
        padding-right: var(--space-2xl);
    }
}

/* Hero Title - Massive & Gradient */
.hero-modern h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #0f172a 0%, #4f46e5 50%, #7c3aed 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: var(--space-xl);
}

/* Badge */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
}

/* Hero Benefits */
.hero-benefits {
    list-style: none;
    padding: 0;
    margin: var(--space-xl) 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-xl);
}

@media (max-width: 640px) {
    .hero-benefits {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1rem;
    color: var(--text-main);
}

.check-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* Trust Badge Modern */
.trust-badge-container {
    margin-top: var(--space-xl);
}

.trust-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--premium-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   5. CALCULATOR - Premium Glass Effect
   ═══════════════════════════════════════════════════════════════════════════════ */
.calculator-glass {
    background: var(--premium-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow:
        var(--shadow-lg),
        var(--shadow-glow-indigo),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 520px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.calculator-glass:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        var(--shadow-glow-violet),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   6. RATE PILLS - Modern Segment Control
   ═══════════════════════════════════════════════════════════════════════════════ */
.rate-pills {
    display: flex;
    justify-content: stretch;
    gap: 0.25rem;
    flex-wrap: nowrap;
    margin-bottom: var(--space-xl);
    background: var(--premium-bg);
    padding: 0.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--premium-border-light);
}

.pill {
    flex: 1;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: none;
    white-space: nowrap;
}

.pill span[style*="border-radius:50%"] {
    display: none;
}

.rate-pills input:checked+.pill {
    background: var(--premium-surface);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.pill:hover {
    color: var(--text-main);
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   7. INPUT FIELDS - Premium Style
   ═══════════════════════════════════════════════════════════════════════════════ */
.input-glass .input-group {
    margin-bottom: var(--space-lg);
}

.input-glass label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.input-glass input {
    background: var(--premium-bg);
    border: 2px solid var(--premium-border-light);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.input-glass input:focus {
    border-color: var(--primary-color);
    background: var(--premium-surface);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-glass input::placeholder {
    color: var(--text-light);
}

.currency-symbol {
    color: var(--text-light);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   8. RESULT BOX - Premium Highlight
   ═══════════════════════════════════════════════════════════════════════════════ */
.calculator-glass .result-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    text-align: center;
}

.calculator-glass .result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculator-glass .result-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calculator-glass .copy-tva-btn {
    margin-top: var(--space-md);
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.calculator-glass .copy-tva-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   9. SOCIAL PROOF SECTION - Minimalist
   ═══════════════════════════════════════════════════════════════════════════════ */
.social-proof-section {
    text-align: center;
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--premium-border-light);
    border-bottom: 1px solid var(--premium-border-light);
    background: var(--premium-surface);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   10. TVA SEO BOX - Premium Card
   ═══════════════════════════════════════════════════════════════════════════════ */
.tva-seo-box {
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    box-shadow: var(--shadow-sm);
    margin: var(--space-4xl) auto;
    max-width: var(--container-content);
}

.tva-seo-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.tva-seo-badge {
    display: inline-block;
    background: var(--gradient-subtle);
    color: var(--text-main);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--premium-border);
}

.tva-seo-formulas p {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   11. FEATURES GRID - Modern Cards
   ═══════════════════════════════════════════════════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

@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(--premium-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--premium-border-light);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--premium-border);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   12. ARTICLE SECTIONS - Clean Layout
   ═══════════════════════════════════════════════════════════════════════════════ */
.article {
    background: var(--premium-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--premium-border-light);
    box-shadow: var(--shadow-xs);
}

.article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    margin-top: 0;
    margin-bottom: var(--space-lg);
}

.example-box {
    background: var(--gradient-subtle);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--primary-color);
}

.example-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.example-box code {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    padding: 0.2em 0.5em;
    border-radius: var(--radius-xs);
    font-size: 0.9em;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   13. EXAMPLES TABLE - Premium Style
   ═══════════════════════════════════════════════════════════════════════════════ */
.tva-examples {
    background: var(--premium-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--premium-border);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.tva-ex-row {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--premium-border-light);
    transition: background 0.2s ease;
}

.tva-ex-row:hover {
    background: var(--premium-bg);
}

.tva-ex-rate {
    background: var(--gradient-subtle);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    min-width: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   14. RATES TABLE - Clean Design
   ═══════════════════════════════════════════════════════════════════════════════ */
.rates-table {
    background: var(--premium-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--premium-border);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

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

.rates-table th {
    background: var(--premium-bg);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--premium-border);
}

.rates-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--premium-border-light);
    vertical-align: top;
}

.rates-table .rate-percent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.rates-table .table-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   15. GUIDES GRID - Premium Cards
   ═══════════════════════════════════════════════════════════════════════════════ */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    /* Tighter gap */
    margin-top: var(--space-lg);
}

@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(--premium-surface);
    padding: var(--space-lg);
    /* Reduced from xl */
    border-radius: var(--radius-md);
    /* Slightly tighter radius */
    border: 1px solid var(--premium-border-light);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.guide-icon {
    width: 36px;
    /* Smaller icon container */
    height: 36px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    /* Tighter margin */
    color: var(--primary-color);
}

.guide-card h3 {
    font-size: 1rem;
    /* Slightly smaller title */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.guide-card p {
    font-size: 0.85rem;
    /* Smaller body text */
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: var(--space-md);
}

.guide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.guide-arrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(79, 70, 229, 0.05);
    /* Subtle pill bg */
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    margin-top: auto;
    /* Push to bottom */
    align-self: flex-start;
    /* Align left */
}

.guide-card:hover .guide-arrow {
    background: var(--primary-color);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   16. FAQ SECTION - Modern Accordion
   ═══════════════════════════════════════════════════════════════════════════════ */
.faq-section {
    max-width: var(--container-content);
    margin: var(--space-4xl) auto;
    padding: 0 var(--space-lg);
}

.faq-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.faq-item {
    background: var(--premium-surface);
    border: 1px solid var(--premium-border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all 0.2s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--premium-border);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   17. FOOTER - Clean Minimal
   ═══════════════════════════════════════════════════════════════════════════════ */
.footer {
    background: var(--premium-surface);
    border-top: 1px solid var(--premium-border);
    padding: var(--space-3xl) 0 var(--space-2xl);
    margin-top: var(--space-4xl);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

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

.footer h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   18. CONTAINER OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════════ */
.container {
    max-width: var(--container-content);
    padding: 0 var(--space-lg);
}

/* Wider sections */
section.container[style*="margin-top"] {
    max-width: var(--container-content);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   19. MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --hero-min-height: auto;
    }

    .hero-modern {
        min-height: auto;
        padding: var(--space-2xl) var(--space-md);
    }

    .hero-modern h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        max-width: 100%;
    }

    .badge-new {
        justify-content: center;
        width: 100%;
    }

    .hero-benefits {
        align-items: center;
    }

    .hero-benefits li {
        justify-content: flex-start;
        text-align: left;
    }

    .trust-badge-container {
        justify-content: center !important;
    }

    .calculator-glass {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .rate-pills {
        gap: 0.35rem;
    }

    .pill {
        padding: 0.55rem 0.85rem;
        font-size: 0.85rem;
    }

    .input-glass input {
        font-size: 1.25rem;
        padding: 0.85rem 1rem;
    }

    .calculator-glass .result-value {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   20. ANIMATIONS & MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.animate-entry {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered delays - MUST include animation name */
.delay-1 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.delay-2 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.delay-3 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.delay-4 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

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

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.5);
    outline-offset: 2px;
}
/* --- assets/css/premium-final.css --- */
/* ═══════════════════════════════════════════════════════════════════════════════
   ✨ 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;
    margin: 0 auto 4rem;
    text-align: inherit;
}

/* ───────────────────────────────────────────────────────────────────────────────
   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: '\2726';
    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: rgba(79, 70, 229, 0.08);
    /* Slightly more visible */
    color: var(--primary-600) !important;
    -webkit-text-fill-color: var(--primary-600) !important;
    /* Fix inherited transparency */
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

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

.tva-seo-formulas p {
    background: var(--surface-color);
    color: var(--gray-900);
    padding: 1.25rem 2rem;
    border-radius: var(--card-radius-sm);
    border: 1px solid var(--gray-200);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1.1rem;
    margin: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tva-seo-formulas p:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tva-seo-formulas p strong {
    color: var(--primary-600);
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.article-info-badge {
    background: var(--gray-50);
    border-left: 4px solid var(--primary-600);
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-radius: 0 8px 8px 0;
    max-width: fit-content;
}

.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;
    max-width: 800px;
}

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

.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;
    width: 100%;
    max-width: 800px;
    text-align: left;
    /* Keep examples left-aligned for formula readability */
}

.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: '\2192';
    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-color: rgba(79, 70, 229, 0.03);
}

.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;
}

.guide-card:nth-child(7) {
    animation-delay: 0.35s;
}

.guide-card:nth-child(8) {
    animation-delay: 0.4s;
}

/* ───────────────────────────────────────────────────────────────────────────────
   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;
}
/* ACCESSIBILITY OVERRIDEs */
:root { --text-muted: #57534e !important; }
