/* =============================================
   Fiscavia Landing Page Styles
   ============================================= */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Professional Financial Services Palette */
:root {
    --primary: #1A365D;           /* Bleu marine profond - confiance, stabilité */
    --primary-dark: #0F2744;
    --primary-light: #2C5282;
    --secondary: #1A202C;
    --accent: #B7791F;            /* Or mat - expertise, prestige */
    --accent-light: #D69E2E;
    --success: #276749;           /* Vert émeraude - fiabilité */
    --text: #1A202C;
    --text-light: #4A5568;
    --text-muted: #718096;
    --bg: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-gradient: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 50%, #F7FAFC 100%);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.65;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   Navigation
   ============================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid #E2E8F0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text .primary {
    color: var(--primary);
}

.logo-text .secondary {
    color: var(--secondary);
}

sup {
    font-size: 0.5em;
    vertical-align: super;
    margin-left: 1px;
}

.logo-text sup {
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    padding: 100px 24px 40px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow-y: auto;
}

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

.mobile-menu a {
    display: block;
    padding: 16px 24px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--secondary);
    text-decoration: none;
    text-align: center;
    width: 100%;
    max-width: 300px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.mobile-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mobile-menu .btn-primary {
    margin-top: 16px;
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    padding: 140px 0 100px;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 54, 93, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(183, 121, 31, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--secondary);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    transform: perspective(1200px) rotateY(-3deg);
    transition: transform 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.hero-image-wrapper:hover {
    transform: perspective(1200px) rotateY(0deg);
}

.hero-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.hero-image {
    width: 100%;
    border-radius: 0;
    background: #FAFBFD;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
}

/* Mockup — Fiscavia app illustration */
.mockup {
    width: 100%;
    flex: 1;
    min-height: 0;
    background: #FAFBFD;
    display: flex;
    flex-direction: row;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding-left: 46px;
}

/* Title bar */
.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #F1F3F6;
    border-bottom: 1px solid #E2E6ED;
    flex-shrink: 0;
}

.mockup-titlebar-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 0.02em;
}

/* App body (titlebar + main, takes remaining width) */
.mockup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

/* Sidebar */
.mockup-sidebar-nav {
    width: 46px;
    height: 100%;
    background: #FFFFFF;
    border-right: 1px solid #E8ECF1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 8px;
    gap: 6px;
    flex-shrink: 0;
    align-self: stretch;
}

.mockup-sidebar-logo {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4F46E5;
    margin-bottom: 8px;
}

.mockup-sidebar-logo svg {
    width: 18px;
    height: 18px;
}

.mockup-sidebar-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #94A3B8;
    transition: background 0.15s, color 0.15s;
}

.mockup-sidebar-icon svg {
    width: 16px;
    height: 16px;
}

.mockup-sidebar-icon.active {
    background: #EEF2FF;
    color: #4F46E5;
}

/* Main area */
.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 14px 8px;
    min-width: 0;
    overflow: hidden;
}

/* Top bar */
.mockup-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    flex-shrink: 0;
}

.mockup-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1E293B;
    white-space: nowrap;
}

.mockup-badge-all {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 0.55rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
}

.mockup-search {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #F1F5F9;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    color: #94A3B8;
    font-size: 0.55rem;
    white-space: nowrap;
}

.mockup-search svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Table */
.mockup-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.mockup-table-row {
    display: grid;
    grid-template-columns: 18px 20px 1.4fr 0.7fr 0.8fr 0.55fr 0.55fr;
    align-items: center;
    gap: 4px;
    padding: 5px 4px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.55rem;
    color: #1E293B;
    min-height: 0;
}

.mockup-table-header {
    color: #8B95A5;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.48rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #E8ECF1;
    padding-bottom: 6px;
}

.mockup-table-header .mockup-col-check,
.mockup-table-header .mockup-col-avatar {
    visibility: hidden;
}

/* Columns */
.mockup-col-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-checkbox {
    display: block;
    width: 11px;
    height: 11px;
    border: 1.5px solid #CBD5E1;
    border-radius: 2px;
    background: #FFF;
}

.mockup-col-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.38rem;
    font-weight: 700;
    color: #FFF;
    flex-shrink: 0;
}

.mockup-avatar.a1 { background: #6366F1; }
.mockup-avatar.a2 { background: #F59E0B; }
.mockup-avatar.a3 { background: #10B981; }
.mockup-avatar.a4 { background: #EF4444; }
.mockup-avatar.a5 { background: #8B5CF6; }
.mockup-avatar.a6 { background: #EC4899; }
.mockup-avatar.a7 { background: #0EA5E9; }
.mockup-avatar.a8 { background: #F97316; }

.mockup-col-name {
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
}

.mockup-col-name strong {
    display: block;
    font-weight: 600;
    font-size: 0.55rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-email {
    color: #6366F1;
    font-size: 0.48rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.mockup-col-siren {
    font-variant-numeric: tabular-nums;
    color: #475569;
    font-size: 0.52rem;
}

.mockup-col-compte {
    color: #475569;
    font-size: 0.52rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-col-docs,
.mockup-col-hab {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-badge-doc {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    font-size: 0.45rem;
    font-weight: 600;
    border-radius: 3px;
    background: #EEF2FF;
    color: #4F46E5;
}

.mockup-badge-hab {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    font-size: 0.45rem;
    font-weight: 600;
    border-radius: 3px;
    background: #ECFDF5;
    color: #059669;
}

/* Pagination */
.mockup-pagination {
    display: flex;
    justify-content: flex-end;
    padding: 6px 4px 2px;
    font-size: 0.5rem;
    color: #8B95A5;
    flex-shrink: 0;
}

/* =============================================
   Social Proof Section
   ============================================= */
.social-proof {
    padding: 40px 0;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.social-proof-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.social-proof-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.proof-stat {
    text-align: center;
}

.proof-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.proof-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: #CBD5E1;
}

@media (max-width: 768px) {
    .social-proof-stats {
        flex-direction: column;
        gap: 24px;
    }

    .proof-divider {
        width: 40px;
        height: 1px;
    }
}

/* =============================================
   Pain Points Section
   ============================================= */
.pain-points {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(26, 54, 93, 0.08);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pain-card {
    padding: 32px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    border-left: 3px solid var(--accent);
    transition: all 0.2s ease;
}

.pain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.pain-icon {
    width: 56px;
    height: 56px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #DC2626;
}

.pain-icon svg {
    width: 24px;
    height: 24px;
}

.pain-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary);
}

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

/* =============================================
   Features Section
   ============================================= */
.features {
    padding: 100px 0;
    background: var(--bg-gradient);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
    border-top: 3px solid transparent;
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-top-color: var(--accent);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
}

/* =============================================
   How It Works Section
   ============================================= */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =============================================
   Prelevement Section
   ============================================= */
.prelevement-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.prelevement-section .section-header h2 {
    color: var(--secondary);
}

.prelevement-section .section-header p {
    color: var(--text-light);
}

.prelevement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.prelevement-card {
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(183, 121, 31, 0.2);
}

.prelevement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.prelevement-icon {
    width: 64px;
    height: 64px;
    background: rgba(183, 121, 31, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
}

.prelevement-icon svg {
    width: 28px;
    height: 28px;
}

.prelevement-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
}

.prelevement-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* =============================================
   Savings Section
   ============================================= */
.savings {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.savings .section-header h2 {
    color: white;
}

.savings .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.savings-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.savings-calculator {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-row:last-child {
    border-bottom: none;
    padding-top: 24px;
}

.calc-label {
    color: rgba(255, 255, 255, 0.8);
}

.calc-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
}

.calc-row.total .calc-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.calc-row.total .calc-value {
    font-size: 2rem;
    color: var(--accent-light);
}

/* Calculator Interactive Inputs */
.calc-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.calc-slider:hover {
    background: rgba(255, 255, 255, 0.25);
}

.calc-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--accent-light);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(214, 158, 46, 0.4);
    border: 2px solid white;
    margin-top: -8px;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(214, 158, 46, 0.6);
}

.calc-slider::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    border: none;
}

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--accent-light);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(214, 158, 46, 0.4);
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(214, 158, 46, 0.6);
}

.calc-input-group .calc-value {
    min-width: 80px;
    text-align: right;
}

.savings-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* =============================================
   Security Section
   ============================================= */
.security {
    padding: 100px 0;
    background: var(--bg-light);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.security-card {
    text-align: center;
    padding: 40px 32px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

.security-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.security-icon {
    width: 72px;
    height: 72px;
    background: rgba(26, 54, 93, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.security-icon svg {
    width: 32px;
    height: 32px;
}

.security-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary);
}

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

/* =============================================
   CTA Section
   ============================================= */
.cta {
    padding: 100px 0;
    background: var(--primary);
    color: white;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text {
    text-align: left;
}

.cta-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-features {
    list-style: none;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1rem;
    opacity: 0.95;
}

.cta-features li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 0.75rem;
}

/* =============================================
   FAQ Section
   ============================================= */
.faq {
    padding: 100px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    font-family: inherit;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-icon svg {
    width: 12px;
    height: 12px;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

/* =============================================
   Footer
   ============================================= */
footer {
    padding: 60px 0 30px;
    background: var(--primary-dark);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text .primary,
.footer-brand .logo-text .secondary {
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* =============================================
   Scroll Reveal Animations
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sequential delays for steps */
.step.reveal.visible:nth-child(1) { transition-delay: 0ms; }
.step.reveal.visible:nth-child(2) { transition-delay: 100ms; }
.step.reveal.visible:nth-child(3) { transition-delay: 200ms; }
.step.reveal.visible:nth-child(4) { transition-delay: 300ms; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal.visible {
        transition: none;
    }
}

/* =============================================
   Responsive - Tablet (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .features-grid,
    .savings-content,
    .prelevement-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps::before {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-text {
        text-align: center;
    }

    .cta-features {
        display: inline-block;
        text-align: left;
    }
}

/* =============================================
   Responsive - Mobile (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    .nav-links,
    nav .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-image-wrapper {
        transform: perspective(1200px) rotateY(0deg);
    }

    .pain-grid,
    .security-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        max-width: 100%;
    }

    .hero-image {
        aspect-ratio: auto;
    }

    .mockup {
        padding-left: 0;
    }

    .mockup-sidebar-nav {
        display: none;
    }

    .mockup-table-row {
        grid-template-columns: 14px 18px 1fr 0.5fr;
        padding: 7px 4px;
    }

    .mockup-col-siren,
    .mockup-col-compte,
    .mockup-col-hab {
        display: none;
    }

    .mockup-table-header .mockup-col-siren,
    .mockup-table-header .mockup-col-compte,
    .mockup-table-header .mockup-col-hab {
        display: none;
    }

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

    /* Calculator responsive */
    .calc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .calc-input-group {
        width: 100%;
    }

    .calc-slider {
        flex: 1;
        width: 100%;
    }

    .calc-input-group .calc-value {
        min-width: 60px;
    }

    .calc-row.total {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* =============================================
   Responsive - Very Small Screens (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero .container {
        min-width: 0;
        max-width: 100%;
    }

    .hero-content {
        min-width: 0;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 16px;
    }

}

/* =============================================
   Legal Pages
   ============================================= */
.legal-content {
    padding: 140px 0 80px;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-light);
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.placeholder {
    background: #FEF3C7;
    padding: 2px 8px;
    border-radius: 4px;
    color: #92400E;
    font-weight: 500;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

.data-table th {
    background: var(--secondary);
    color: white;
    font-weight: 600;
}

.data-table td {
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .data-table {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .legal-content h1 {
        font-size: 2rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

/* =============================================
   Brevo Form Styles
   ============================================= */
@font-face {
    font-display: block;
    font-family: Roboto;
    src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff")
}

@font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 600;
    src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff")
}

@font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 700;
    src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff")
}

#sib-container input {
    color: var(--text-light);
}

#sib-container input:-ms-input-placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
}

#sib-container input::placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
}

#sib-container textarea::placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
}

#sib-container a {
    text-decoration: underline;
    color: #2BB2FC;
}

/* =============================================
   Cookie Consent Banner
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.cookie-banner-text p:first-child {
    color: var(--secondary);
    margin-bottom: 4px;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-refuse {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-cookie-refuse:hover {
    background: var(--bg-light);
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-cookie-accept {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
}

.cookie-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
}

.cookie-settings-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-cookie-refuse,
    .btn-cookie-accept {
        flex: 1;
        max-width: 150px;
    }
}
