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

:root {
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-border: #E5E7EB;
    --color-text: #0B1220;
    --color-muted: #475569;
    --color-primary: #2563EB;
    --color-primary-600: #2563EB;
    --color-primary-700: #1D4ED8;
    --color-accent: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-bg);
    min-height: 100vh;
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 10000;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
}

/* Smooth scroll with offset for sticky header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for sticky header */
}

/* Pas de scroll offset sur mobile (header non-sticky) */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 0;
    }
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform 200ms ease;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
    margin-left: 0;
    margin-right: 0.25rem;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-position: 45% 0%; /* déplacer vers la droite */
    object-fit: cover;
    border-radius: 10px;
    transform: translateX(2px); /* décalage fin vers la droite */
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    line-height: 1.2;
}

.logo-tagline {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-menu-overlay {
        display: none !important;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--color-muted);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Desktop navbar polish */
@media (min-width: 769px) {
    .header {
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: saturate(180%) blur(16px);
        box-shadow: none;
    }

    .logo {
        padding-right: 1rem;
        margin-right: 1rem;
        border-right: 1px solid rgba(15, 23, 42, 0.06);
    }

    .nav-menu {
        gap: 1.25rem;
    }

    .nav-link {
        color: #334155;
        font-weight: 600;
        padding: 0.6rem 1rem;
        border-radius: 10px;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 0.4rem;
        height: 2px;
        background: linear-gradient(90deg, #2563EB, #0ea5e9);
        border-radius: 9999px;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 200ms ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleX(1);
    }
}

.nav-link i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-1px);
}

.nav-link:hover i,
.nav-link.active i {
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}







@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
    background: radial-gradient(1000px 300px at 50% -100px, #E0E7FF 0%, rgba(224,231,255,0) 60%);
    padding-top: 1rem;
    position: relative; /* enable decorative layers */
}

.hero-shapes {
    position: relative;
    height: 0;
}

.shape {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 24px;
    filter: blur(12px);
    opacity: 0.5;
    transform: translateZ(0);
}

.shape-1 {
    left: -60px;
    top: -60px;
    background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(99,102,241,0.2));
    animation: float1 16s ease-in-out infinite alternate;
}

.shape-2 {
    right: -80px;
    top: -40px;
    background: linear-gradient(135deg, rgba(16,185,129,0.22), rgba(59,130,246,0.18));
    animation: float2 18s ease-in-out infinite alternate;
}

.shape-3 {
    left: 50%;
    transform: translateX(-50%);
    top: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 70% 30%, rgba(245,158,11,0.16), rgba(37,99,235,0.14));
    animation: float3 20s ease-in-out infinite alternate;
}

@keyframes float1 { 0% { transform: translate(0,0); } 100% { transform: translate(12px,-10px); } }
@keyframes float2 { 0% { transform: translate(0,0); } 100% { transform: translate(-8px,-12px); } }
@keyframes float3 { 0% { transform: translate(-50%,0); } 100% { transform: translate(-50%,-8px); } }

/* Ultra-professional governmental background */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
      linear-gradient(135deg, rgba(15,23,42,0.03) 0%, rgba(37,99,235,0.02) 50%, rgba(15,23,42,0.03) 100%),
      radial-gradient(circle at 30% 20%, rgba(37,99,235,0.04) 0%, transparent 50%),
      radial-gradient(circle at 70% 80%, rgba(16,185,129,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #0b1220 0%, #334155 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

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

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-section {
    margin-top: 2rem;
    text-align: center;
}

.cta-btn {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 60%, #0ea5e9 120%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 30%, transparent 60%);
    transform: translateX(-100%);
}

.cta-btn:hover::after {
    transform: translateX(100%);
    transition: transform 700ms ease;
}

.cta-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    color: var(--color-muted);
}

.trust-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.trust-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
}

.form-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
    transition: transform 400ms ease, box-shadow 300ms ease;
}

.form-container.tilted {
    transform: perspective(1200px) rotateX(2deg) rotateY(-2deg) translateY(-2px);
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.16);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.pricing-info {
    text-align: right;
}

.price-tag {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: inline-block;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
}

.price-label {
    font-size: 0.875rem;
    opacity: 0.9;
    display: block;
}

.form-title i {
    color: var(--color-primary-600);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #111827;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

/* Visible focus for accessibility */
*:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
    border-radius: 8px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.field-icon {
    position: absolute;
    left: 1rem;
    top: 2.8rem; /* Descendu un peu */
    color: #9ca3af;
    pointer-events: none;
}

.search-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-btn {
    background: linear-gradient(135deg, #0070ba 0%, #005ea6 100%);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.payment-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-info i {
    color: #0070ba;
}

.error-message {
    margin-top: 0.375rem;
    font-size: 0.85rem;
    color: #B91C1C;
    min-height: 1rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 112, 186, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn.loading span {
    opacity: 0;
}

.search-btn.loading .fas {
    opacity: 0;
}

.btn-loader {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    margin-bottom: 3rem;
}

.results-container {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

/* Skeleton loaders */
.skeleton-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.skeleton-line {
    height: 12px;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #edf2f7 25%, #e5e7eb 37%, #edf2f7 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-line.short { width: 45%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.tiny { width: 25%; }
.skeleton-gap { height: 10px; }

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #4338ca;
}

.result-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.result-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-found {
    background: #dcfce7;
    color: #166534;
}

.status-not-found {
    background: #fef2f2;
    color: #991b1b;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: #374151;
}

.result-source {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.source-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.source-link:hover {
    text-decoration: underline;
}

.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10000;
}

.notification {
    background: #DBEAFE;
    color: #1E40AF;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-error { background: #FEE2E2; color: #991B1B; }
.notification-success { background: #DCFCE7; color: #166534; }
.notification-hide { animation: slideOutRight 0.3s ease; }



/* Pricing Section */
.pricing-section {
    margin-bottom: 3rem;
}

.features-section, .steps-section {
    margin-bottom: 3rem;
}

.features-container, .steps-container {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

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

.feature-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(37,99,235,0.1);
    color: var(--color-primary);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

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

.step-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(16,185,129,0.1);
    color: #059669;
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pricing-container {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.pricing-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #4338ca;
    text-align: center;
    justify-content: center;
}

.pricing-subtitle {
    text-align: center;
    color: var(--color-muted);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge i { color: #0ea5e9; }

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

.benefit-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

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

.benefit-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(37,99,235,0.1);
    color: var(--color-primary);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.benefit-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.benefit-text {
    color: #475569;
    font-size: 0.95rem;
}

.cta-strip {
    margin-top: 1.5rem;
    text-align: center;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.cta-link:hover { box-shadow: var(--shadow-md); }

.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

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

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6b7280;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
}

.footer {
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
    background: #FFFFFF;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1.1rem;
    letter-spacing: 0.3px;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--color-muted);
    text-decoration: none;
    padding: 0.55rem 0;
    line-height: 1.9;
    letter-spacing: 0.2px;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1rem 2rem;
    color: var(--color-muted);
    text-align: center;
}

.pricing-features {
    /* spacing handled by children; keep selector for future extension */
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature i {
    color: #10b981;
    font-size: 1.1rem;
}

.feature span {
    color: #374151;
    font-weight: 500;
}

/* Demo Section */
.demo-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #4338ca;
}

.demo-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.demo-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.demo-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.demo-table tr:hover {
    background: #f9fafb;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-verified {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.precision-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.precision-strong {
    background: #dbeafe;
    color: #1e40af;
}

.precision-weak {
    background: #fee2e2;
    color: #dc2626;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.hamburger-line {
    width: 20px !important;
    height: 2px !important;
    background-color: var(--color-text) !important;
    transition: all 0.3s ease !important;
    border-radius: 1px !important;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999;
    transition: right 0.3s ease !important;
    backdrop-filter: blur(4px) !important;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    color: var(--color-text);
    font-size: 1.25rem;
}

.mobile-menu-close:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.mobile-nav {
    padding: 1rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--color-primary);
}

.mobile-nav-link.active {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

.mobile-nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Body scroll lock */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header non-sticky sur mobile */
    .header {
        position: relative;
        backdrop-filter: none;
        background: #FFFFFF;
    }
    /* Keep consistent mobile navbar width */
    .nav-container {
        max-width: 1100px; /* consistent with desktop, harmless on mobile */
    }
    
    /* Header mobile optimizations */
    .nav-container {
        padding: 0 1rem;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Hide desktop nav on mobile */
    .desktop-nav {
        display: none;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Logo compact sur mobile */
    .logo {
        flex-shrink: 0;
        gap: 0.5rem;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .logo-name {
        font-size: 0.9rem;
        line-height: 1.1;
    }

    .logo-tagline {
        font-size: 0.6rem;
        line-height: 1;
        margin-top: 0.1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* Hero section mobile */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        /* Match desktop gradient */
        background: linear-gradient(180deg, #0b1220 0%, #334155 100%);
        -webkit-background-clip: text;
                background-clip: text;
        color: transparent;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        color: #475569;
    }

    .stats-row {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    /* Main content mobile */
    .content-wrapper {
        padding: 0 1rem;
    }

    .main-content {
        padding: 1rem 0;
    }

    /* Form mobile optimizations */
    .form-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 16px;
    }

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

    .search-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .pricing-info {
        text-align: center;
    }

    .price {
        font-size: 1.25rem;
    }

    .form-group input,
    .form-group select {
        padding: 1rem 1rem 1rem 2.5rem;
        font-size: 1rem;
    }

    .field-icon {
        left: 0.75rem;
        top: 2.8rem; /* Descendu un peu pour mobile */
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
        background: linear-gradient(135deg, #0070ba 0%, #005ea6 100%);
        box-shadow: 0 10px 24px rgba(0, 112, 186, 0.25);
    }

    .payment-info {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }

    /* Results section mobile */
    .results-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 16px;
    }

    .result-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Demo table mobile */
    .demo-table-container {
        border-radius: 8px;
    }

    .demo-table th,
    .demo-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .demo-table th {
        font-size: 0.75rem;
    }

    /* Trust badges mobile */
    .trust-badges {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .trust-badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    /* CTA section mobile */
    .cta-btn {
        width: 100%;
        padding: 0.9rem 1.1rem;
        font-size: 0.95rem;
        justify-content: center;
        border-radius: 14px;
        background: linear-gradient(135deg, #2563EB 0%, #0ea5e9 60%, #10B981 120%);
    }

    .cta-subtitle {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    /* Features and benefits mobile */
    .features-grid,
    .benefits-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card,
    .benefit-card,
    .step-card {
        padding: 1rem;
    }

    /* Footer mobile */
    .footer-inner {
        padding: 1.5rem 1rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-bottom {
        padding: 1rem;
        font-size: 0.85rem;
    }

    /* Notifications mobile */
    .notifications {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .notification {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        max-width: none;
    }

    /* Shapes hide on mobile for performance */
    .hero-shapes {
        display: none;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 56px;
    }

    /* Logo encore plus compact */
    .logo {
        gap: 0.4rem;
    }

    .logo-name {
        font-size: 0.85rem;
    }

    .logo-tagline {
        font-size: 0.55rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    /* Mobile menu content plus compact */
    .mobile-menu-content {
        width: 260px;
    }

    .mobile-nav-link {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .mobile-nav-link i {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .form-container {
        margin: 0 0.25rem;
        padding: 1.25rem 0.75rem;
    }

    .results-container {
        margin: 0 0.25rem;
        padding: 1.25rem 0.75rem;
    }

    .content-wrapper {
        padding: 0 0.75rem;
    }

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

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

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------
   Mobile polish: hero glow, stats cards, badges
---------------------------------------------- */
@media (max-width: 768px) {
    /* Hero section full screen mobile */
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
        margin-bottom: 0;
        padding: 2rem 1rem;
        background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 50%, #F8FAFC 100%);
    }

    /* Full screen background that extends everywhere */
    .hero-section::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: 
            radial-gradient(1200px 400px at 50% -100px, rgba(224,231,255,0.4) 0%, rgba(224,231,255,0) 70%),
            linear-gradient(135deg, rgba(15,23,42,0.02) 0%, rgba(37,99,235,0.03) 50%, rgba(15,23,42,0.02) 100%);
        z-index: -2;
        pointer-events: none;
    }

    /* Animated glow overlay */
    .hero-section::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background:
          radial-gradient(40% 30% at 20% 30%, rgba(37, 99, 235, 0.08), transparent 60%),
          radial-gradient(30% 25% at 85% 20%, rgba(16, 185, 129, 0.06), transparent 60%),
          radial-gradient(35% 28% at 60% 85%, rgba(245, 158, 11, 0.05), transparent 60%);
        filter: blur(0.5px);
        animation: mobileGlow 10s ease-in-out infinite alternate;
        pointer-events: none;
        z-index: -1;
    }

    @keyframes mobileGlow {
        0% { transform: translateY(0) translateX(0); opacity: 0.9; }
        100% { transform: translateY(-8px) translateX(-6px); opacity: 1; }
    }

    /* Elevate content above animated glow */
    .hero-section > * { position: relative; z-index: 1; }

    /* Stats typography on mobile (no white pills) */
    .stats-row { width: 100%; gap: 0.375rem; }
    .stat-item {
        width: 100%;
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0.25rem 0;
        box-shadow: none;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
    }
    .stat-item + .stat-item { border-top: 1px solid rgba(15, 23, 42, 0.08); padding-top: 0.5rem; }
    .stat-number {
        font-size: 1.15rem;
        font-weight: 800;
        letter-spacing: 0.01em;
        color: #F59E0B !important; /* mobile numbers: $0.99, <2s, 50M+ */
    }
    .stat-label { font-size: 0.8rem; color: #64748b; letter-spacing: 0.02em; }

    /* Trust badges: horizontal scroll with snap */
    .trust-badges {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .trust-badge {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

/* Motion reduction for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-section::after,
    .cta-btn::after,
    .skeleton-line { animation: none !important; }
    .nav-link, .cta-btn, .trust-badge { transition: none !important; }
}