/* ── Landing page styles ─────────────────────────────────────────────────── */
/* Loaded only on the Home page via <HeadContent> to avoid polluting the     */
/* global stylesheet. All classes are prefixed with .cv- to avoid conflicts. */

html { scroll-behavior: smooth; }

.mud-main-content { padding: 0 !important; margin-top: 0 !important; }
body, .mud-layout { background: white !important; }
.mud-appbar { background: #1E1B4B !important; }

/* ── Hero ── */
.cv-hero {
    background: linear-gradient(135deg, #1E1B4B 0%, #2D2870 40%, #1A1745 100%);
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 70px 24px 50px;
    box-sizing: border-box;
    max-width: 100vw;
}
/* Grille de points subtile */
.cv-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(165,180,252,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
/* Glow spots */
.cv-hero::after {
    content: '';
    position: absolute; top: -20%; right: 5%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 65%);
    pointer-events: none;
}
.cv-hero-glow-bottom {
    position: absolute; bottom: -10%; left: 10%;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(8,145,178,0.15) 0%, transparent 65%);
    pointer-events: none;
}
.cv-hero-inner { position:relative; z-index:1; max-width:1400px; margin:0 auto; width:100%; box-sizing:border-box; }
.cv-hero-grid { display:grid; grid-template-columns:1fr 2fr; gap:48px; align-items:start; width:100%; box-sizing:border-box; }
.cv-hero-badge {
    display:inline-flex; align-items:center; gap:8px;
    background:rgba(99,102,241,0.2); border:1px solid rgba(99,102,241,0.4);
    border-radius:100px; padding:6px 16px;
    color:#A5B4FC; font-size:13px; font-weight:600; margin-bottom:24px;
}
.cv-hero-title {
    font-size: clamp(2.2rem,5vw,3.8rem);
    font-weight:800; color:#FFFFFF; line-height:1.15;
    margin:0 0 20px; letter-spacing:-1px;
}
.cv-hero-title .accent { color:#818CF8; }
.cv-hero-subtitle {
    font-size:clamp(1rem,2vw,1.2rem); color:#CBD5E1;
    max-width:560px; line-height:1.7; margin:0 0 36px;
    box-sizing:border-box;
}
.cv-hero-cta { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:52px; }
.cv-btn-hero {
    padding:14px 32px; border-radius:10px;
    font-size:16px; font-weight:700; border:none; cursor:pointer;
    text-decoration:none; display:inline-flex; align-items:center; gap:8px;
    transition:all .2s;
}
.cv-btn-hero.primary {
    background:#4F46E5; color:white;
    box-shadow:0 4px 20px rgba(79,70,229,0.4);
}
.cv-btn-hero.primary:hover { background:#4338CA; transform:translateY(-2px); box-shadow:0 8px 30px rgba(79,70,229,0.5); }
.cv-btn-hero.ghost {
    background:rgba(255,255,255,0.12); color:white;
    border:1.5px solid rgba(255,255,255,0.45);
    box-shadow:0 2px 12px rgba(255,255,255,0.08);
}
.cv-btn-hero.ghost:hover { background:rgba(255,255,255,0.2); border-color:rgba(255,255,255,0.7); transform:translateY(-2px); }

/* ── Stats ── */
.cv-stats { display:flex; gap:36px; flex-wrap:wrap; padding:24px 0; border-top:1px solid rgba(255,255,255,0.1); }
.cv-stat-val { font-size:1.8rem; font-weight:800; color:#FFFFFF; line-height:1; }
.cv-stat-lbl { font-size:0.78rem; color:#94A3B8; margin-top:4px; }

/* ── App window mockup ── */
.cv-app-window {
    background: #0F1629;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(99,102,241,0.15);
    position: relative;
}

/* Barre titre */
.cv-app-titlebar {
    background: #1A1F35;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cv-app-urlbar {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 10px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 280px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
}

/* Layout sidebar + content */
.cv-app-layout {
    display: grid;
    grid-template-columns: 52px 1fr;
    height: 340px;
}

/* Sidebar */
.cv-app-sidebar {
    background: #111827;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 2px;
}
.cv-app-logo {
    padding: 4px 0 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}
.cv-app-nav-item {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all .15s;
}
.cv-app-nav-item span:last-child { font-size: 6px; font-weight: 600; }
.cv-app-nav-item.active {
    background: rgba(99,102,241,0.18);
    color: #818CF8;
}

/* Content area */
.cv-app-content {
    background: #0D1117;
    padding: 12px 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Page header */
.cv-app-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.cv-app-page-title {
    font-size: 12px;
    font-weight: 700;
    color: #F1F5F9;
}
.cv-app-page-sub {
    font-size: 9px;
    color: #475569;
    margin-top: 1px;
}
.cv-app-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    color: #10B981;
    white-space: nowrap;
    flex-shrink: 0;
}

/* KPIs */
.cv-app-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}
.cv-app-kpi {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 8px 10px;
}
.cv-app-kpi--accent {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.2);
}
.cv-app-kpi-lbl {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #475569;
    margin-bottom: 3px;
}
.cv-app-kpi-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #F1F5F9;
    line-height: 1;
}
.cv-app-kpi-unit { font-size: .6rem; font-weight: 500; color: #64748B; }
.cv-app-kpi-trend { font-size: 9px; font-weight: 600; margin-top: 3px; }

/* Chart card */
.cv-app-chart-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 8px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.cv-app-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cv-app-chart-title { font-size: 9px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .8px; }
.cv-app-chart-range { font-size: 9px; color: #334155; }

.cv-app-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    min-height: 48px;
}
.cv-app-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 100%;
    justify-content: flex-end;
}
.cv-app-bar-label {
    font-size: 7px;
    color: #818CF8;
    font-weight: 700;
    white-space: nowrap;
}
.cv-app-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #6366F1 0%, #4F46E5 100%);
    opacity: .65;
    transition: opacity .2s;
    min-height: 3px;
}
.cv-app-bar.last {
    opacity: 1;
    background: linear-gradient(180deg, #818CF8 0%, #6366F1 100%);
    box-shadow: 0 0 10px rgba(99,102,241,0.4);
}
.cv-app-bar-yr { font-size: 7px; color: #334155; white-space: nowrap; }

/* Table card */
.cv-app-table-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 8px 10px;
}
.cv-app-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cv-app-table-row {
    display: grid;
    grid-template-columns: 2fr .8fr 1fr .9fr;
    gap: 4px;
    align-items: center;
    padding: 5px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 9px;
}
.cv-app-table-addr { color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-app-table-surf { color: #64748B; }
.cv-app-table-prix { color: #818CF8; font-weight: 700; }
.cv-app-table-date { color: #334155; text-align: right; }

/* Pulse animation */
@keyframes cv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* Scroll bounce animation */
@keyframes cv-bounce {
    0%, 100% { transform: translateY(0); opacity: .7; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* ── Sections ── */
.cv-sec { padding:80px 24px; }
.cv-sec-inner { max-width:1200px; margin:0 auto; }
.cv-sec-title {
    font-size:clamp(1.6rem,3vw,2.3rem); font-weight:800; color:#0F172A;
    text-align:center; margin:0 0 12px; letter-spacing:-0.5px;
}
.cv-sec-sub {
    font-size:1rem; color:#475569; text-align:center;
    max-width:540px; margin:0 auto 52px; line-height:1.7;
}
.cv-bg-light { background:#F8FAFC; }
.cv-bg-white { background:white; }

/* ── Feature cards ── */
.cv-grid-3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:22px; }
.cv-card {
    background:white; border:1px solid #E2E8F0;
    border-radius:16px; padding:28px;
    transition:all .25s; position:relative; overflow:hidden;
}
.cv-card::before {
    content:''; position:absolute; top:0; left:0; right:0;
    height:3px; background:linear-gradient(90deg,#4F46E5,#0891B2);
}
.cv-card:hover { box-shadow:0 12px 40px rgba(79,70,229,0.1); transform:translateY(-4px); }
.cv-card-icon {
    width:48px; height:48px; border-radius:12px;
    background:linear-gradient(135deg,#EEF2FF,#E0F2FE);
    display:flex; align-items:center; justify-content:center;
    font-size:22px; margin-bottom:18px;
}
.cv-card-title { font-size:1rem; font-weight:700; color:#0F172A; margin-bottom:8px; }
.cv-card-desc { font-size:0.875rem; color:#475569; line-height:1.7; }
.cv-card-link { text-decoration:none; display:block; color:inherit; }
.cv-card-link:hover { color:inherit; }
.cv-card-cta { font-size:.82rem; font-weight:700; color:#0891B2; margin-top:14px; }
@media(max-width:768px) { .cv-marche-grid { grid-template-columns:1fr !important; } }

/* ── Marche dept grid ── */
.cv-marche-dept-grid { display:grid; grid-template-columns:1fr 1fr; gap:4px; }
@media(max-width:480px) { .cv-marche-dept-grid { grid-template-columns:1fr; } }

/* ── How-to steps CTA ── */
.cv-how-cta { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.cv-how-cta a { flex:1; min-width:200px; max-width:300px; }

/* ── Use cases grid ── */
.cv-usecases-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; }

/* ── Pricing trust badges ── */
.cv-pricing-badges { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 16px; margin:28px 0 36px; }
.cv-pricing-badge { display:inline-flex; align-items:center; gap:7px; background:#fff; border:1px solid #E2E8F0; border-radius:9px; padding:7px 14px; font-size:0.84rem; font-weight:600; color:#1E293B; box-shadow:0 1px 3px rgba(0,0,0,0.05); }

/* ── FAQ ── */
.cv-faq-btn-icon { width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background .2s; }

/* ── CTA final ── */
.cv-cta-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.cv-cta-btns a { flex:1; min-width:160px; max-width:260px; text-align:center; justify-content:center; }

/* ── Footer bottom bar ── */
.cv-footer-bottom { border-top:1px solid #E2E8F0; padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
@media(max-width:640px) { .cv-footer-bottom { flex-direction:column; gap:6px; text-align:center; } }

/* ── Steps ── */
.cv-grid-4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:28px; }
.cv-step { text-align:center; }
.cv-step-num {
    width:52px; height:52px; border-radius:50%;
    background:linear-gradient(135deg,#4F46E5,#0891B2);
    color:white; font-size:1.3rem; font-weight:800;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 18px; box-shadow:0 8px 24px rgba(79,70,229,0.3);
}
.cv-step-title { font-size:1rem; font-weight:700; color:#0F172A; margin-bottom:8px; }
.cv-step-desc { font-size:0.84rem; color:#475569; line-height:1.7; }

/* ── Pricing ── */
.cv-grid-pricing { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:22px; }
.cv-plan {
    background:white; border:2px solid #E2E8F0;
    border-radius:16px; padding:30px;
    transition:all .25s; position:relative;
}
.cv-plan.featured { border-color:#4F46E5; box-shadow:0 0 0 4px rgba(79,70,229,0.07); }
.cv-plan-badge {
    position:absolute; top:-12px; left:50%; transform:translateX(-50%);
    background:#4F46E5; color:white;
    padding:4px 16px; border-radius:100px; font-size:12px; font-weight:700;
}
.cv-plan-name { font-size:.9rem; font-weight:700; color:#4F46E5; text-transform:uppercase; letter-spacing:1px; margin-bottom:6px; }
.cv-plan-price { font-size:2.2rem; font-weight:800; color:#0F172A; line-height:1; }
.cv-plan-price small { font-size:.9rem; font-weight:400; color:#475569; }
.cv-plan-desc { font-size:.84rem; color:#475569; margin:10px 0 22px; }
.cv-plan-list { list-style:none; padding:0; margin:0 0 24px; display:flex; flex-direction:column; gap:9px; }
.cv-plan-list li { display:flex; align-items:center; gap:9px; font-size:.84rem; color:#334155; }
.cv-plan-list li::before { content:'\2713'; color:#059669; font-weight:700; flex-shrink:0; }
.cv-plan-btn {
    display:block; text-align:center; padding:12px 20px; border-radius:10px;
    font-weight:700; font-size:.875rem; text-decoration:none;
    transition:all .2s; cursor:pointer; border:none; width:100%;
}
.cv-plan-btn.prim { background:#4F46E5; color:white; box-shadow:0 4px 14px rgba(79,70,229,0.3); }
.cv-plan-btn.prim:hover { background:#4338CA; transform:translateY(-1px); }
.cv-plan-btn.out { background:transparent; color:#4F46E5; border:2px solid #4F46E5; }
.cv-plan-btn.out:hover { background:#EEF2FF; }

/* ── Final CTA ── */
.cv-cta-band {
    background:linear-gradient(135deg,#1E1B4B 0%,#312E81 100%);
    padding:80px 24px; text-align:center;
}
.cv-cta-title { font-size:clamp(1.6rem,3vw,2.3rem); font-weight:800; color:white; margin:0 0 14px; }
.cv-cta-sub { color:#CBD5E1; font-size:1rem; margin:0 0 36px; }

/* ── Pain points ── */
.cv-pain-band {
    background:linear-gradient(135deg, #0C2340 0%, #0F3460 100%);
    padding:72px 24px;
}
.cv-pain-inner { max-width:1100px; margin:0 auto; }
.cv-pain-header { text-align:center; margin-bottom:48px; }
.cv-pain-eyebrow {
    display:inline-block;
    background:rgba(239,68,68,0.15); color:#FCA5A5;
    font-size:0.72rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
    padding:5px 14px; border-radius:20px; margin-bottom:14px;
}
.cv-pain-title {
    font-size:clamp(1.5rem,3vw,2.2rem); font-weight:800; color:#F1F5F9;
    margin:0; line-height:1.2;
}
.cv-pain-grid {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:20px;
}
.cv-pain-card {
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px; padding:28px 24px;
    display:flex; flex-direction:column; gap:8px;
    transition:border-color .2s;
}
.cv-pain-card:hover { border-color:rgba(239,68,68,0.3); }
.cv-pain-card--solution {
    background:rgba(5,150,105,0.08);
    border-color:rgba(5,150,105,0.25);
}
.cv-pain-card--solution:hover { border-color:rgba(5,150,105,0.5); }
.cv-pain-num {
    font-size:2.4rem; font-weight:900; color:#EF4444; line-height:1;
}
.cv-pain-num--green { color:#10B981; }
.cv-pain-label {
    font-size:0.95rem; font-weight:700; color:#F1F5F9;
}
.cv-pain-desc {
    font-size:0.82rem; color:#94A3B8; line-height:1.6;
}
.cv-pain-cta {
    display:inline-flex; align-items:center; gap:4px;
    margin-top:8px; font-size:0.82rem; font-weight:700;
    color:#10B981; text-decoration:none;
}
.cv-pain-cta:hover { color:#34D399; }
.cv-pain-source {
    font-size:0.68rem; color:rgba(255,255,255,0.38); margin-top:auto; padding-top:10px;
    border-top:1px solid rgba(255,255,255,0.06);
}

/* ── Hero trust badges row ── */
.cv-hero-trust-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
}
.cv-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #A5B4FC;
}

/* ── Hero right column (desktop window mockup) ── */
.cv-hero-right-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

/* Stats mobile hero — shown only on small screens */
.cv-hero-stats-mobile {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 28px;
}
.cv-hero-stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
}
.cv-hero-stat-card .cv-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.5px;
}
.cv-hero-stat-card .cv-stat-desc {
    font-size: 11px;
    color: #A5B4FC;
    margin-top: 5px;
    line-height: 1.4;
}

@media (max-width:768px) {
    /* Prevent any horizontal scroll */
    html, body { overflow-x: hidden; max-width: 100%; }
    /* Hero */
    .cv-hero { padding:88px 16px 48px; min-height:auto; overflow:hidden; }
    .cv-hero-inner { padding:0; }
    .cv-hero-grid { grid-template-columns:1fr; gap:0; }
    .cv-hero-title { font-size:clamp(1.9rem,8vw,2.6rem); letter-spacing:-0.5px; }
    .cv-hero-subtitle { font-size:0.95rem; margin-bottom:24px; max-width:100%; }
    .cv-hero-cta { gap:10px; margin-bottom:20px; flex-direction:column; }
    .cv-btn-hero { padding:14px 22px; font-size:15px; width:100%; justify-content:center; box-sizing:border-box; }
    .cv-mock { display:none; }
    /* Hide the desktop window mockup on mobile */
    .cv-hero-right-col { display:none !important; }
    /* Hide the desktop scroll button (redundant without the window) */
    .cv-hero-scroll-btn { display:none !important; }
    /* Show mobile stats cards */
    .cv-hero-stats-mobile { display:grid; }
    /* Stats */
    .cv-stats { gap:20px; padding:20px 0; }
    .cv-stat-val { font-size:1.4rem; }
    /* Trust badges hero */
    .cv-hero > .cv-hero-inner > div:first-child > div[style*="flex-wrap"] { gap:8px !important; }
    /* Sections */
    .cv-sec { padding:48px 16px; }
    .cv-sec-title { font-size:clamp(1.4rem,6vw,1.8rem); }
    .cv-sec-sub { font-size:0.9rem; margin-bottom:32px; }
    /* Feature cards */
    .cv-grid-3 { grid-template-columns:1fr; gap:14px; }
    .cv-card { padding:20px; }
    /* Pain band */
    .cv-pain-band { padding:48px 16px; }
    .cv-pain-grid { grid-template-columns:1fr; gap:14px; }
    .cv-pain-num { font-size:1.9rem; }
    /* Trust section */
    .cv-trust-grid { grid-template-columns:1fr !important; gap:28px !important; }
    /* Footer */
    .cv-footer-grid { grid-template-columns:1fr !important; gap:28px !important; }
    /* CTA band */
    .cv-cta-band { padding:56px 16px; }
    /* Marché grid */
    .cv-marche-grid { grid-template-columns:1fr !important; }
}

@media (max-width:480px) {
    .cv-hero { padding:80px 14px 40px; }
    .cv-hero-title { font-size:clamp(1.7rem,9vw,2.2rem); }
    .cv-sec { padding:40px 14px; }
    .cv-pain-band { padding:40px 14px; }
    .cv-cta-band { padding:48px 14px; }
    .cv-stats { flex-wrap:wrap; gap:16px 28px; }
    .cv-stat-val { font-size:1.25rem; }
}
