/*
 * Nom de l'application : Jurisprudence AI
 * Description : Styles Landing Page Hyper-Premium
 * Produit de : MOA Digital Agency, www.myoneart.com
 * Fait par : Aisance KALONJI, www.aisancekalonji.com
 * Auditer par : La CyberConfiance, www.cyberconfiance.com
 */

/* --- Variables & Premium Theme --- */
:root {
    /* Brand Colors Extended */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-text: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);

    /* Neutrals */
    --bg-body: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Spacing */
    --container-max: 1280px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

.btn-primary-landing {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary-landing:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(0,0,0,0.05);
}

.btn-primary-lg {
    background: var(--primary-dark);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
}

.btn-primary-lg:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-secondary-lg {
    background: white;
    color: var(--text-main);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.btn-secondary-lg:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    color: var(--text-main);
}

.btn-white {
    background: white;
    color: var(--primary-dark);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.icon-hover-move i {
    transition: transform 0.3s ease;
}

.icon-hover-move:hover i {
    transform: translateX(4px);
}

.text-center { text-align: center; }
.hide-mobile { display: flex; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-buttons-mobile {
    display: none;
}

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

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.05) 50%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
}

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

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: #eff6ff;
    color: var(--primary-dark);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid #bfdbfe;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.visual-card-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.visual-card-wrapper:hover {
    transform: rotateY(0) rotateX(0);
}

.visual-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.card-dots span:nth-child(1) { background: #ef4444; }
.card-dots span:nth-child(2) { background: #eab308; }
.card-dots span:nth-child(3) { background: #22c55e; }

.card-search-bar {
    flex: 1;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skeleton-line {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin-bottom: 0.75rem;
}

.w-75 { width: 75%; }
.w-50 { width: 50%; }

.result-item {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.result-item.active {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.result-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.result-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.result-tags {
    display: flex;
    gap: 0.5rem;
}

.result-tags span {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    background: #f1f5f9;
    color: var(--text-muted);
    border-radius: 4px;
}

.result-score {
    font-weight: 700;
    color: #16a34a;
    font-size: 0.9rem;
}

.floating-badge {
    position: absolute;
    bottom: 2rem;
    right: -1rem;
    background: var(--text-main);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
    animation: float 3s ease-in-out infinite;
}

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

.visual-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: #60a5fa;
    top: -50px;
    right: -50px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: #a78bfa;
    bottom: -50px;
    left: -50px;
}

/* --- Social Proof --- */
.social-proof {
    padding: 2rem 0;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.social-proof-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-item {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    color: var(--primary);
    opacity: 1;
}

/* --- Features (Bento Grid) --- */
.features {
    padding: 6rem 0;
    background: #fff; /* or light gradient */
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
    border-color: var(--primary-light);
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-wide {
    grid-column: span 3;
}

.card-content {
    z-index: 2;
    height: 100%;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-green { background: #f0fdf4; color: #16a34a; }
.icon-orange { background: #fff7ed; color: #ea580c; }
.icon-red { background: #fef2f2; color: #dc2626; }

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Feature Specific Visuals */
.feature-search {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.feature-visual-mini {
    margin-top: 2rem;
    position: relative;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-bubble {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.arrow-down {
    color: var(--primary);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.results-stack span {
    display: block;
    background: white;
    padding: 0.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    border-left: 4px solid var(--primary);
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.text-part { flex: 1; }
.visual-part { flex: 1; display: flex; justify-content: center; }

.shield-badge {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: 2px dashed #dc2626;
}

/* --- How it Works --- */
.how-it-works {
    padding: 6rem 0;
    background: #f8fafc;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 4rem;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

.step-connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: 30px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: 2rem;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

/* --- Footer --- */
.footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #94a3b8;
    margin: 1.5rem 0;
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

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

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 1.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .card-large { grid-column: span 2; }
    .card-wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    .header-container { padding: 0 1rem; }
    .nav-list, .header-actions .hide-mobile { display: none; }
    .burger-menu { display: flex; }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid #e2e8f0;
    }

    .nav-menu.active .nav-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .nav-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn { width: 100%; }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

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

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        display: none;
    }

    .bento-grid { grid-template-columns: 1fr; }
    .card-large, .card-wide { grid-column: span 1; grid-row: span 1; }
    .flex-row { flex-direction: column; }
    .visual-part { margin-top: 1.5rem; }
}

/* Graph bars */
.bar-40 { height: 40%; }
.bar-80 { height: 80%; }
.bar-60 { height: 60%; }
