/* public/css/style.css */

/* ================================
   PERMISLEAD - DESIGN TOKENS
================================ */

:root {
    --color-primary: #123047;
    --color-primary-light: #1E4E6D;
    --color-accent: #F97316;
    --color-success: #16A34A;
    --color-danger: #DC2626;

    --color-bg: #F6F7F9;
    --color-surface: #FFFFFF;
    --color-border: #DDE2E8;
    --color-text: #0F172A;
    --color-muted: #64748B;
    --color-soft: #EEF2F6;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);

    --font-title: 'Roboto Condensed', 'Inter', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
}

/* ================================
   GLOBAL RESET
================================ */

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0;
}

h2 {
    font-size: 30px;
    line-height: 1.2;
}

a {
    color: inherit;
}

/* ================================
   SHARED COMPONENTS
================================ */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
}

.badge-info {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge-success {
    background: #DCFCE7;
    color: #166534;
}

.badge-warning {
    background: #FFEDD5;
    color: #9A3412;
}

.badge-muted {
    background: #F1F5F9;
    color: #475569;
}

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

.table th {
    text-align: left;
    font-size: 13px;
    color: var(--color-muted);
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
}

.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
}

/* ================================
   PUBLIC BUTTONS - MARKETING
   Usage: .pl-btn .pl-btn-primary
================================ */

.pl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.pl-btn:hover {
    transform: translateY(-2px);
}

.pl-btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
}

.pl-btn-primary:hover {
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.38);
}

.pl-btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.04);
}

.pl-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.34);
}

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

.pl-btn-outline:hover {
    background: var(--color-soft);
}

/* ================================
   APP LAYOUT
================================ */

.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--color-primary);
    color: white;
    padding: 24px;
}

.sidebar a {
    color: #EEF2F6;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    font-weight: 600;
}

.main-content {
    padding: 32px;
}

/* ================================
   APP BUTTONS - DASHBOARD
   Usage: .app-btn .app-btn-primary
================================ */

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

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

.app-btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.app-btn-primary:hover {
    background: var(--color-primary-light);
}

.app-btn-accent {
    background: var(--color-accent);
    color: #fff;
}

.app-btn-accent:hover {
    background: #EA580C;
}

.app-btn-outline {
    background: #fff;
    border-color: var(--color-border);
    color: var(--color-primary);
}

.app-btn-outline:hover {
    border-color: var(--color-primary-light);
    background: var(--color-soft);
}

.app-btn-danger-link {
    color: var(--color-danger);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* ================================
   HOME PAGE
================================ */

.home-page {
    background: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
}

.home-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.home-hero {
    position: relative;
    padding: 72px 0 96px;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.16), transparent 28%),
        linear-gradient(135deg, var(--color-primary) 0%, #0F172A 100%);
    color: #fff;
    border-radius: 0 0 42px 42px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
    align-items: center;
}

.home-hero-content {
    position: relative;
    z-index: 2;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 28px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    color: #CBD5E1;
    font-size: 14px;
    font-weight: 700;
}

.home-eyebrow span {
    width: 9px;
    height: 9px;
    background: var(--color-accent);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(249,115,22,0.16);
}

.home-hero-title {
    margin: 0 0 24px;
    font-size: clamp(2.4rem, 4.6vw, 4.3rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 900;
    color: #fff;
}

.home-hero-title span {
    display: block;
    color: #E2E8F0;
}

.home-hero-title strong {
    display: block;
    color: var(--color-accent);
    font-weight: 900;
}

.home-hero-text {
    max-width: 640px;
    margin: 0 0 34px;
    color: #D6DEE9;
    font-size: 1.18rem;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.home-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: #CBD5E1;
    font-size: 14px;
}

.home-trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Home product preview */
.home-product-card {
    background: rgba(255,255,255,0.96);
    color: var(--color-text);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 14px 35px rgba(15,23,42,0.12);
    border: 1px solid rgba(255,255,255,0.6);
    transform: translateY(8px);
}

.home-product-header,
.home-lead-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.home-product-header {
    margin-bottom: 18px;
}

.home-product-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

.home-product-subtitle {
    margin: 5px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.home-lead-list {
    display: grid;
    gap: 12px;
}

.home-lead-item {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
}

.home-lead-item h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--color-text);
}

.home-lead-item p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.home-score {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #DCFCE7;
    color: #166534;
    font-weight: 900;
}

.home-lead-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.home-lead-actions a {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    background: var(--color-soft);
    color: var(--color-primary);
}

/* Home sections */
.home-section {
    padding: 92px 0;
}

.home-section-header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-kicker {
    margin: 0 0 10px;
    color: var(--color-accent);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.home-section-header h2,
.home-sample-box h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 900;
    color: var(--color-text);
}

.home-section-header p,
.home-sample-box p {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.home-card-grid,
.home-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.home-feature-card,
.home-price-card {
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-feature-card:hover,
.home-price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.home-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    background: #FFEDD5;
    color: var(--color-accent);
    font-size: 28px;
    font-weight: 900;
}

.home-feature-card h3,
.home-price-card h3 {
    margin: 0 0 10px;
    font-size: 1.22rem;
    font-weight: 900;
    color: var(--color-text);
}

.home-feature-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

/* Home workflow */
.home-workflow {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.home-step {
    padding: 24px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.home-step span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 900;
}

.home-step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 900;
    color: var(--color-text);
}

.home-step p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 14px;
}

/* Home sample block */
.home-sample-box {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
    padding: 34px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 28px;
}

.home-sample-box h2 {
    color: #fff;
}

.home-sample-box p {
    color: #CBD5E1;
}

.home-sample-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.home-sample-form input,
.home-sample-form select {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 14px;
    margin-bottom: 12px;
    font: inherit;
    color: var(--color-text);
    background: #fff;
}

.home-sample-form input:focus,
.home-sample-form select:focus {
    outline: 3px solid rgba(249,115,22,0.20);
    border-color: var(--color-accent);
}

.home-sample-form button {
    width: 100%;
    border: 0;
    cursor: pointer;
    min-height: 50px;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
}

.home-sample-form p {
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Home pricing */
.home-price-card.featured {
    border-color: rgba(249,115,22,0.55);
    box-shadow: 0 18px 40px rgba(249,115,22,0.14);
}

.home-price {
    margin: 18px 0;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.home-price small {
    font-size: 0.9rem;
    color: var(--color-muted);
    font-weight: 700;
}

.home-price-card ul {
    padding: 0;
    margin: 18px 0 24px;
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--color-muted);
}

/* ================================
   PRICING PAGE
================================ */

.pricing-page {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Hero */

.pricing-hero {
    padding: 140px 0 76px;
    text-align: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.14), transparent 26%),
        linear-gradient(135deg, var(--color-primary) 0%, #0F172A 100%);
    color: #fff;
    border-radius: 0 0 42px 42px;
}

.pricing-hero .section-kicker {
    color: var(--color-accent);
}

.pricing-hero h1 {
    max-width: 860px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.pricing-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #D6DEE9;
    font-size: 1.15rem;
    line-height: 1.75;
}

.pricing-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.pricing-hero .pl-btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.pricing-hero .pl-btn-outline:hover {
    background: rgba(255, 255, 255, 0.10);
}

/* Sections */

.pricing-section {
    padding: 88px 0;
}

/* Pricing cards */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

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

.pricing-card-featured {
    border-color: rgba(249, 115, 22, 0.58);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.14);
}

.pricing-card-featured:hover {
    transform: translateY(-6px);
}

.pricing-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    margin-bottom: 20px;
}

.pricing-card-top .badge {
    white-space: nowrap;
}

.pricing-badge-featured {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    flex-shrink: 0;
}

.pricing-card h2 {
    margin: 0 0 16px;
    color: var(--color-text);
    font-size: 1.65rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 900;
    min-height: 64px;
}

.pricing-description {
    margin: 0 0 24px;
    color: var(--color-muted);
    line-height: 1.65;
    min-height: 104px;
}

.pricing-price {
    margin: 8px 0 20px;
    color: var(--color-text);
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.pricing-price small {
    color: var(--color-muted);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: normal;
}

.pricing-description {
    margin: 0 0 24px;
    color: var(--color-muted);
    line-height: 1.65;
}

.pricing-features {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
    color: var(--color-muted);
}

.pricing-features li {
    position: relative;
    padding-left: 28px;
    line-height: 1.45;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    background: #DCFCE7;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.pricing-btn {
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    box-sizing: border-box;
    text-align: center;
}

/* ROI block */

.pricing-roi-section {
    padding-top: 0;
}

.pricing-roi-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
    padding: 38px;
    border-radius: 28px;
    background: var(--color-primary);
    color: #fff;
}

.pricing-roi-box .section-kicker {
    color: var(--color-accent);
}

.pricing-roi-box h2 {
    max-width: 680px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.pricing-roi-box p {
    max-width: 720px;
    margin: 0;
    color: #CBD5E1;
    line-height: 1.75;
}

.pricing-roi-card {
    padding: 26px;
    border-radius: 22px;
    background: #fff;
    color: var(--color-text);
    box-shadow: var(--shadow-md);
}

.pricing-roi-card h3 {
    margin: 18px 0 6px;
    color: var(--color-text);
    font-size: 1.3rem;
    font-weight: 900;
}

.pricing-roi-price {
    margin: 0 0 12px !important;
    color: var(--color-success) !important;
    font-size: 3rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.pricing-roi-card p {
    color: var(--color-muted);
}

/* FAQ */

.pricing-faq-header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.pricing-faq-header h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.pricing-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.pricing-faq-item {
    padding: 26px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pricing-faq-item h3 {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 900;
}

.pricing-faq-item p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

/* Responsive pricing */

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin: 0 auto;
    }

    .pricing-roi-box,
    .pricing-faq-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card h2,
    .pricing-description {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .pricing-hero {
        padding: 118px 0 56px;
        border-radius: 0 0 30px 30px;
    }

    .pricing-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-section {
        padding: 70px 0;
    }

    .pricing-card,
    .pricing-roi-box,
    .pricing-roi-card,
    .pricing-faq-item {
        padding: 22px;
    }

    .pricing-card-top {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pricing-price {
        font-size: 2.7rem;
    }
}
/* ================================
   SAMPLE PAGE
================================ */

.sample-page {
    background: var(--color-bg);
    color: var(--color-text);
}

.sample-hero {
    padding: 82px 0 92px;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.12), transparent 26%),
        linear-gradient(135deg, var(--color-primary) 0%, #0F172A 100%);
    color: #fff;
    border-radius: 0 0 42px 42px;
}

.sample-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 54px;
    align-items: center;
}

.sample-content h1 {
    max-width: 680px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(2.5rem, 4.6vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.sample-content > p {
    max-width: 660px;
    margin: 0 0 34px;
    color: #D6DEE9;
    font-size: 1.16rem;
    line-height: 1.75;
}

.sample-benefits {
    display: grid;
    gap: 16px;
}

.sample-benefit {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.06);
}

.sample-benefit span {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.18);
    color: #86EFAC;
    font-weight: 900;
}

.sample-benefit h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.sample-benefit p {
    margin: 0;
    color: #CBD5E1;
    line-height: 1.55;
    font-size: 14px;
}

.sample-card {
    padding: 30px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    color: var(--color-text);
}

.sample-card-header {
    margin-bottom: 24px;
}

.sample-card-header h2 {
    margin: 18px 0 10px;
    color: var(--color-text);
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.sample-card-header p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.sample-form {
    display: grid;
    gap: 16px;
}

.sample-form .form-group {
    display: grid;
    gap: 7px;
}

.sample-form .form-group label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
}

.sample-form .form-group input,
.sample-form .form-group select {
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-text);
    font: inherit;
}

.sample-form .form-group input:focus,
.sample-form .form-group select:focus {
    outline: 3px solid rgba(249, 115, 22, 0.20);
    border-color: var(--color-accent);
}

.sample-submit {
    min-height: 54px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sample-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.34);
}

.sample-privacy-note {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.sample-preview-section {
    padding: 88px 0;
}

.sample-preview-header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.sample-preview-header h2 {
    margin: 0 0 14px;
    color: var(--color-text);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.sample-preview-header p {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.sample-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.sample-preview-card {
    padding: 26px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sample-preview-card h3 {
    margin: 18px 0 10px;
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 900;
}

.sample-preview-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

/* ================================
   LOGIN PAGE
================================ */

.login-page {
    background: var(--color-bg);
    color: var(--color-text);
}

.login-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 80px 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.12), transparent 26%),
        linear-gradient(135deg, var(--color-primary) 0%, #0F172A 100%);
}

.login-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.86fr;
    gap: 56px;
    align-items: center;
}

.login-content {
    color: #fff;
}

.login-content h1 {
    max-width: 680px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(2.5rem, 4.6vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.login-content > p {
    max-width: 640px;
    margin: 0 0 34px;
    color: #D6DEE9;
    font-size: 1.16rem;
    line-height: 1.75;
}

.login-benefits {
    display: grid;
    gap: 14px;
    max-width: 560px;
}

.login-benefit {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.06);
}

.login-benefit span {
    display: grid;
    place-items: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.18);
    color: #86EFAC;
    font-weight: 900;
}

.login-benefit p {
    margin: 0;
    color: #CBD5E1;
    line-height: 1.55;
}

.login-card {
    padding: 32px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20);
    color: var(--color-text);
}

.login-card-header {
    margin-bottom: 26px;
}

.login-card-header h2 {
    margin: 18px 0 10px;
    color: var(--color-text);
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.login-card-header p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.login-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: #FEE2E2;
    color: #991B1B;
    font-size: 14px;
    font-weight: 700;
}

.login-info {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--color-soft);
    color: var(--color-muted);
    font-size: 14px;
}

.login-info a {
    color: var(--color-accent);
    font-weight: 800;
    text-decoration: none;
}

.login-form {
    display: grid;
    gap: 17px;
}

.login-form .form-group {
    display: grid;
    gap: 7px;
}

.login-form .form-group label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
}

.login-form .form-group input {
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-text);
    font: inherit;
}

.login-form .form-group input:focus {
    outline: 3px solid rgba(249, 115, 22, 0.20);
    border-color: var(--color-accent);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 14px;
    cursor: pointer;
}

.login-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
}

.login-forgot {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.login-forgot:hover {
    color: var(--color-accent);
}

.login-submit {
    min-height: 54px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.34);
}

.login-footer-note {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.login-footer-note a {
    color: var(--color-accent);
    font-weight: 900;
    text-decoration: none;
}

.login-footer-note a:hover {
    text-decoration: underline;
}

/* ================================
   DASHBOARD CLIENT
================================ */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.dashboard-header h2 {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 900;
}

.dashboard-header p {
    margin: 0;
    color: var(--color-muted);
}

/* KPI */

.app-kpi-card {
    padding: 20px;
}

.app-kpi-label {
    margin-bottom: 10px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 800;
}

.app-kpi-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
}

.app-kpi-primary {
    color: var(--color-primary);
}

.app-kpi-success {
    color: var(--color-success);
}

.app-kpi-accent {
    color: var(--color-accent);
}

/* Filtres */

.dashboard-filter-card {
    padding: 18px;
}

.dashboard-filter-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.dashboard-filter-field {
    flex: 1;
    min-width: 220px;
    display: grid;
    gap: 6px;
}

.dashboard-filter-field label {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-filter-field input,
.dashboard-filter-field select {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    color: var(--color-text);
    background: #fff;
}

.dashboard-filter-field input:focus,
.dashboard-filter-field select:focus {
    outline: 3px solid rgba(249, 115, 22, 0.18);
    border-color: var(--color-accent);
}

.dashboard-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr)) auto;
    gap: 18px;
    align-items: start;
}

.dashboard-filter-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-filter-field label {
    min-height: 24px;
}

.dashboard-filter-field input,
.dashboard-filter-field select {
    width: 100%;
    min-height: 48px;
}

.dashboard-filter-field small {
    display: block;
    margin-top: 8px;
    line-height: 1.35;
    color: var(--color-muted);
}

.dashboard-filter-actions {
    align-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
}

@media (max-width: 1200px) {
    .dashboard-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    .dashboard-filter-form {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-actions {
        justify-content: stretch;
    }

    .dashboard-filter-actions .app-btn {
        width: 100%;
    }
}

.dashboard-mail-campaign-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
}

.dashboard-mail-campaign-bar div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-mail-campaign-bar span {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.dashboard-lead-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
}

.dashboard-lead-select input {
    width: 18px;
    height: 18px;
}

.mail-campaign-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 20px;
}

.mail-campaign-header {
    margin-bottom: 24px;
}

.mail-campaign-letter {
    background: #ffffff;
    color: #000000;
    padding: 48px;
    margin-bottom: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    page-break-after: always;
}

.mail-campaign-letter-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.mail-campaign-letter-company {
    line-height: 1.6;
    margin-bottom: 32px;
}

.mail-campaign-letter-date {
    text-align: right;
    margin-bottom: 32px;
}

.mail-campaign-letter-content {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.75;
    color: #000000;
    background: transparent;
    border: 0;
    padding: 0;
}

@media print {
    .navbar,
    .no-print,
    .dashboard-sidebar,
    .app-sidebar {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .mail-campaign-page {
        max-width: none;
        padding: 0;
    }

    .mail-campaign-letter {
        border: 0;
        border-radius: 0;
        margin: 0;
        padding: 32mm 24mm;
        min-height: 100vh;
    }
}

/* Header de carte */

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-card-header h3 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 900;
}

.dashboard-card-subtitle {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* État vide */

.dashboard-empty-state {
    padding: 28px;
    text-align: center;
    color: var(--color-muted);
    background: var(--color-soft);
    border-radius: var(--radius-md);
}

/* Liste de leads en cartes */

.dashboard-leads-list {
    display: grid;
    gap: 16px;
}

.dashboard-lead-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr) auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}

.dashboard-lead-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dashboard-lead-main {
    min-width: 0;
}

.dashboard-lead-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.dashboard-lead-title {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 900;
}

.dashboard-lead-location {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--color-text);
    font-size: 15px;
}

.dashboard-lead-location span {
    color: var(--color-muted);
}

.dashboard-lead-reasons {
    margin-top: 8px;
    color: var(--color-accent);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 800;
}

/* Métadonnées lead */

.dashboard-lead-meta {
    display: grid;
    grid-template-columns: minmax(72px, 0.8fr) minmax(82px, 0.9fr) minmax(105px, 1.1fr);
    gap: 12px;
}

.dashboard-lead-meta div {
    min-width: 0;
}

.dashboard-lead-meta strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-lead-meta div:last-child {
    min-width: 105px;
}

.dashboard-lead-meta div {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--color-soft);
}

.dashboard-lead-meta span {
    display: block;
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-lead-meta strong {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

/* Action */

.dashboard-lead-action {
    display: flex;
    justify-content: flex-end;
    white-space: nowrap;
}

/* Classes conservées si utilisées ailleurs */

.dashboard-muted {
    color: var(--color-muted);
    font-size: 14px;
}

.dashboard-action-cell {
    text-align: right;
    white-space: nowrap;
}

/* Ancienne table : à garder si tu réutilises une vue tableau plus tard */

.dashboard-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* =========================================================
   Dashboard leads - correction affichage grand écran
   ========================================================= */

.dashboard-leads-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-lead-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) auto;
    gap: 24px;
    align-items: start;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}

.dashboard-lead-select {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 0 6px 0;
    font-weight: 700;
    color: var(--color-primary);
}

.dashboard-lead-select input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.dashboard-lead-main {
    grid-column: 1 / 2;
    min-width: 0;
}

.dashboard-lead-meta {
    grid-column: 2 / 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-self: center;
}

.dashboard-lead-action {
    grid-column: 3 / 4;
    align-self: center;
    display: flex;
    justify-content: flex-end;
}

.dashboard-lead-reasons {
    max-width: 720px;
    line-height: 1.55;
}

/* Évite les cartes trop étirées sur très grands écrans */
@media (min-width: 1500px) {
    .dashboard-lead-card {
        grid-template-columns: minmax(0, 1fr) 390px 170px;
    }
}

/* Tablette / laptop moyen */
@media (max-width: 1200px) {
    .dashboard-lead-card {
        grid-template-columns: 1fr;
    }

    .dashboard-lead-select,
    .dashboard-lead-main,
    .dashboard-lead-meta,
    .dashboard-lead-action {
        grid-column: 1 / -1;
    }

    .dashboard-lead-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-lead-action {
        justify-content: flex-start;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .dashboard-lead-card {
        padding: 18px;
        gap: 18px;
    }

    .dashboard-lead-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-lead-action .app-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   LEAD SHOW / FICHE OPPORTUNITÉ
================================ */

.lead-show-page {
    display: grid;
    gap: 24px;
}

.lead-show-topbar {
    display: flex;
    align-items: center;
}

.lead-show-back {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.lead-show-back:hover {
    color: var(--color-accent);
}

.lead-show-flash {
    background: #DCFCE7;
    color: #166534;
    border: none;
    font-weight: 800;
}

.lead-show-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 4px;
}

.lead-show-header h1 {
    max-width: 860px;
    margin: 12px 0 10px;
    color: var(--color-text);
    font-size: clamp(2rem, 3.5vw, 3.3rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.lead-show-header p {
    margin: 0;
    color: var(--color-muted);
    font-size: 1rem;
}

.lead-show-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lead-show-score-card {
    flex: 0 0 150px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 24px;
    border-radius: 22px;
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.lead-show-score-card span {
    color: #CBD5E1;
    font-size: 13px;
    font-weight: 800;
}

.lead-show-score-card strong {
    margin-top: 6px;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 950;
}

.lead-show-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.lead-show-main,
.lead-show-sidebar {
    display: grid;
    gap: 24px;
}

.lead-show-card {
    margin-bottom: 0;
}

.lead-show-card-header {
    margin-bottom: 22px;
}

.lead-show-card-header h2,
.lead-show-recommendation h2,
.lead-show-premium-muted h2 {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 900;
}

.lead-show-card-header p,
.lead-show-recommendation p,
.lead-show-premium-muted p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.lead-show-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lead-show-metric {
    min-width: 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
}

.lead-show-metric span,
.lead-show-location-box span {
    display: block;
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lead-show-metric strong,
.lead-show-location-box strong {
    display: block;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.lead-show-location-box {
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
}

.lead-show-location-box p {
    margin: 6px 0 0;
    color: var(--color-muted);
}

.lead-show-cadastre-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
}

.lead-show-reasons {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lead-show-reasons li {
    position: relative;
    padding: 12px 14px 12px 38px;
    border-radius: var(--radius-md);
    background: var(--color-soft);
    color: var(--color-text);
    font-weight: 700;
}

.lead-show-reasons li::before {
    content: "✓";
    position: absolute;
    top: 12px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #DCFCE7;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.lead-show-empty {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--color-soft);
    color: var(--color-muted);
    text-align: center;
}

.lead-show-form {
    display: grid;
    gap: 14px;
}

.lead-show-field {
    display: grid;
    gap: 7px;
}

.lead-show-field label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 900;
}

.lead-show-field select,
.lead-show-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
}

.lead-show-field select {
    min-height: 46px;
    padding: 0 12px;
}

.lead-show-field textarea {
    min-height: 130px;
    padding: 12px;
    resize: vertical;
}

.lead-show-field select:focus,
.lead-show-field textarea:focus {
    outline: 3px solid rgba(249, 115, 22, 0.18);
    border-color: var(--color-accent);
}

.lead-show-full-btn {
    width: 100%;
}

.lead-show-recommendation {
    border-color: rgba(249, 115, 22, 0.28);
    background: #FFF7ED;
}

.lead-show-recommendation .badge {
    margin-bottom: 16px;
}

.lead-show-premium-muted {
    background: var(--color-soft);
}

.lead-show-premium-muted .badge {
    margin-bottom: 16px;
}

@media (max-width: 1180px) {
    .lead-show-grid {
        grid-template-columns: 1fr;
    }

    .lead-show-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .lead-show-header {
        flex-direction: column;
    }

    .lead-show-score-card {
        width: 100%;
        box-sizing: border-box;
    }

    .lead-show-metrics-grid,
    .lead-show-cadastre-grid,
    .lead-show-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Couleurs des statuts commerciaux */

.lead-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.lead-status-new {
    background: #DBEAFE;
    color: #1D4ED8;
}

.lead-status-to-contact {
    background: #FFEDD5;
    color: #C2410C;
}

.lead-status-contacted {
    background: #FEF3C7;
    color: #92400E;
}

.lead-status-followup {
    background: #EDE9FE;
    color: #6D28D9;
}

.lead-status-quote {
    background: #CCFBF1;
    color: #0F766E;
}

.lead-status-won {
    background: #DCFCE7;
    color: #166534;
}

.lead-status-lost {
    background: #FEE2E2;
    color: #991B1B;
}

.lead-status-default {
    background: #F1F5F9;
    color: #475569;
}

.lead-current-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
}

.lead-current-status span {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 900;
}

/* Cartes plus colorées */

.lead-show-score-card {
    background:
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.28), transparent 34%),
        linear-gradient(135deg, var(--color-primary) 0%, #0F172A 100%);
}

.lead-show-card {
    border-top: 4px solid transparent;
}

.lead-show-main .lead-show-card:nth-child(1) {
    border-top-color: var(--color-accent);
}

.lead-show-main .lead-show-card:nth-child(2) {
    border-top-color: var(--color-primary-light);
}

.lead-show-main .lead-show-card:nth-child(3) {
    border-top-color: var(--color-success);
}

.lead-show-metric {
    border: 1px solid transparent;
}

.lead-show-metrics-grid .lead-show-metric:nth-child(1) {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.lead-show-metrics-grid .lead-show-metric:nth-child(2) {
    background: #FFF7ED;
    border-color: #FED7AA;
}

.lead-show-metrics-grid .lead-show-metric:nth-child(3) {
    background: #F0FDFA;
    border-color: #99F6E4;
}

.lead-show-metrics-grid .lead-show-metric:nth-child(4) {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.lead-show-metrics-grid .lead-show-metric:nth-child(5) {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.lead-show-metrics-grid .lead-show-metric:nth-child(6) {
    background: #FEF3C7;
    border-color: #FDE68A;
}

/* Notes plus grandes et plus visibles */

.lead-show-notes-card {
    border-top-color: var(--color-primary);
    background:
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.lead-show-notes-card .lead-show-field textarea {
    min-height: 240px;
    line-height: 1.6;
}

.lead-show-notes-card .lead-show-card-header h2 {
    color: var(--color-primary);
}

/* Sidebar plus lisible */

.lead-show-sidebar .lead-show-card {
    border-top-color: rgba(18, 48, 71, 0.22);
}

.lead-show-recommendation {
    border-top-color: var(--color-accent);
    background:
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.16), transparent 30%),
        #FFF7ED;
}

/* Enrichissement B2B */

.lead-show-b2b-card {
    border-top-color: var(--color-primary-light);
}

.lead-show-b2b-card h2 {
    margin: 14px 0 10px;
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 900;
}

.lead-show-b2b-card p {
    margin: 12px 0 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.lead-show-b2b-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.lead-show-b2b-list div {
    padding: 12px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--color-border);
}

.lead-show-b2b-list span {
    display: block;
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lead-show-b2b-list strong {
    display: block;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.lead-show-b2b-enriched {
    background: #F0FDF4;
    border-color: #BBF7D0;
    border-top-color: var(--color-success);
}

.lead-show-b2b-pending_enrichment {
    background: #FFF7ED;
    border-color: #FED7AA;
    border-top-color: var(--color-accent);
}

.lead-show-b2b-not_company {
    background: #F8FAFC;
    border-color: #CBD5E1;
    border-top-color: var(--color-muted);
}

.lead-show-b2b-missing_applicant {
    background: var(--color-soft);
    border-color: var(--color-border);
    border-top-color: #CBD5E1;
}

.lead-show-approach-card {
    border-top-color: var(--color-accent);
    background:
        radial-gradient(circle at 92% 10%, rgba(249, 115, 22, 0.12), transparent 30%),
        #FFFFFF;
}

.lead-show-approach-card textarea {
    min-height: 260px;
    line-height: 1.6;
    background: #FFFBF7;
}

/* ================================
   SUBSCRIPTION PAGE
================================ */

.subscription-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.subscription-main-card,
.subscription-upgrade-card,
.subscription-info-card {
    margin-bottom: 0;
}

.subscription-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.subscription-plan-header h3,
.subscription-upgrade-card h3,
.subscription-info-card h3 {
    margin: 14px 0 8px;
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 900;
}

.subscription-plan-header p,
.subscription-upgrade-card p,
.subscription-info-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.subscription-status-pill {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--color-soft);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.subscription-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.subscription-metrics div {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
}

.subscription-metrics span,
.subscription-trial-box span {
    display: block;
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.subscription-metrics strong,
.subscription-trial-box strong {
    display: block;
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.25;
    font-weight: 900;
}

.subscription-trial-box {
    padding: 20px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.15), transparent 30%),
        #FFF7ED;
    border: 1px solid #FED7AA;
}

.subscription-trial-box p {
    margin: 6px 0 0;
    color: var(--color-muted);
}

.subscription-upgrade-card {
    border-top: 4px solid var(--color-accent);
}

.subscription-price {
    margin: 20px 0;
    color: var(--color-text);
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.subscription-price small {
    color: var(--color-muted);
    font-size: 1rem;
    font-weight: 700;
}

.subscription-upgrade-card ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
    color: var(--color-muted);
}

.subscription-upgrade-card li {
    position: relative;
    padding-left: 26px;
    line-height: 1.45;
}

.subscription-upgrade-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #DCFCE7;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.subscription-full-btn {
    width: 100%;
    box-sizing: border-box;
}

.subscription-note {
    margin-top: 14px !important;
    font-size: 13px;
}

.subscription-info-card {
    margin-top: 24px;
}

.subscription-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.subscription-info-grid div {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
}

.subscription-info-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text);
    font-weight: 900;
}

@media (max-width: 1100px) {
    .subscription-grid,
    .subscription-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .subscription-plan-header {
        flex-direction: column;
    }

    .subscription-metrics {
        grid-template-columns: 1fr;
    }
}

.lead-reminder-list,
.lead-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.lead-reminder-item,
.lead-activity-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--gris-structure);
    border-radius: 14px;
    background: var(--blanc-pur);
}

.lead-reminder-item strong,
.lead-activity-item strong {
    display: block;
    color: var(--gris-anthracite);
    font-size: 0.95rem;
}

.lead-reminder-item span,
.lead-activity-item span {
    display: block;
    color: var(--gris-moyen);
    font-size: 0.82rem;
    white-space: nowrap;
}

.lead-reminder-item p,
.lead-activity-item p {
    margin: 6px 0 0;
    color: var(--gris-moyen);
    font-size: 0.88rem;
    line-height: 1.45;
}

.lead-reminder-done {
    opacity: 0.65;
}

.lead-reminder-done strong {
    text-decoration: line-through;
}

.lead-show-reminders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.lead-show-reminder-item {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.lead-show-reminder-item strong {
    display: block;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 6px;
}

.lead-show-reminder-item p {
    margin: 4px 0;
    color: #475569;
    font-size: 0.92rem;
}

.lead-show-reminder-late {
    border-color: #f97316;
    background: #fff7ed;
}

.lead-show-reminder-late strong {
    color: #c2410c;
}

.lead-show-done-reminders {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.lead-show-done-reminders h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 10px;
}

.lead-show-done-reminder {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0;
    color: #64748b;
    font-size: 0.9rem;
}

.lead-show-done-reminder span {
    text-decoration: line-through;
}

.app-btn-small {
    padding: 7px 12px;
    font-size: 0.85rem;
}

.app-kpi-danger {
    color: #dc2626;
}

.dashboard-crm-card {
    margin-bottom: 24px;
}

.dashboard-crm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.dashboard-crm-column {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
}

.dashboard-crm-column h4 {
    margin: 0 0 14px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-crm-danger {
    border-top: 4px solid #dc2626;
}

.dashboard-crm-warning {
    border-top: 4px solid #f59e0b;
}

.dashboard-crm-info {
    border-top: 4px solid #2563eb;
}

.dashboard-reminder-link {
    display: block;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.dashboard-reminder-link:hover {
    transform: translateY(-1px);
    background: #eef2ff;
}

.dashboard-reminder-link strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.dashboard-reminder-link span {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.dashboard-crm-empty {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
}

.dashboard-crm-locked {
    margin-top: 18px;
    padding: 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.dashboard-crm-locked p {
    margin: 8px 0 16px;
    color: #64748b;
}

@media (max-width: 900px) {
    .dashboard-crm-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-commercial-metrics-card {
    margin-bottom: 2rem;
}

.dashboard-commercial-metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.commercial-metric-card {
    padding: 1.2rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.commercial-metric-card span {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.commercial-metric-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.commercial-metric-card small {
    color: #64748b;
    font-weight: 600;
}

.commercial-metric-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.commercial-metric-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.commercial-metric-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.commercial-metric-accent {
    background: #fff7ed;
    border-color: #fed7aa;
}

.commercial-metric-danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.dashboard-commercial-rates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.commercial-rate-box {
    padding: 1.2rem;
    border-radius: 18px;
    background: #0f172a;
    color: white;
}

.commercial-rate-box span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.commercial-rate-box strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.commercial-rate-box p {
    margin: 0;
    color: #cbd5e1;
}

.dashboard-commercial-breakdown {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-commercial-breakdown h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #0f172a;
}

.commercial-breakdown-list,
.commercial-city-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.commercial-breakdown-row,
.commercial-city-row {
    padding: 0.9rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.commercial-breakdown-row > div:first-child,
.commercial-city-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.commercial-breakdown-row span,
.commercial-city-row span {
    font-size: 0.85rem;
    font-weight: 800;
    color: #475569;
}

.commercial-breakdown-row strong,
.commercial-city-row strong {
    color: #0f172a;
}

.commercial-breakdown-bar {
    height: 7px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 0.7rem;
}

.commercial-breakdown-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #0f172a;
}

@media (max-width: 1200px) {
    .dashboard-commercial-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-commercial-metrics-grid,
    .dashboard-commercial-rates,
    .dashboard-commercial-breakdown {
        grid-template-columns: 1fr;
    }
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(260px, 1fr));
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 18px;
}

.kanban-column {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    min-height: 520px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.kanban-column-header {
    padding: 18px;
    border-top: 5px solid #1D3557;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.kanban-column-header h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    text-transform: uppercase;
}

.kanban-column-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.kanban-column-header span {
    background: #f1f5f9;
    color: #0f172a;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.kanban-column-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-empty {
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

.kanban-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.kanban-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.kanban-card-top strong {
    font-size: 0.9rem;
    color: #0f172a;
}

.kanban-card h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.25;
}

.kanban-card-location {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 0.9rem;
}

.kanban-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.kanban-card-meta span {
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 700;
}

.kanban-card-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin: 10px 0;
}

.kanban-card-link {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.kanban-new .kanban-column-header {
    border-top-color: #2563eb;
}

.kanban-to-contact .kanban-column-header {
    border-top-color: #f59e0b;
}

.kanban-contacted .kanban-column-header {
    border-top-color: #0ea5e9;
}

.kanban-followup .kanban-column-header {
    border-top-color: #8b5cf6;
}

.kanban-quote .kanban-column-header {
    border-top-color: #f97316;
}

.kanban-won .kanban-column-header {
    border-top-color: #22c55e;
}

.kanban-lost .kanban-column-header {
    border-top-color: #ef4444;
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(7, 280px);
    }
}

.kanban-lead-card {
    cursor: grab;
}

.kanban-lead-card:active {
    cursor: grabbing;
}

.kanban-card-dragging {
    opacity: 0.55;
    transform: rotate(1deg);
}

.kanban-dropzone {
    min-height: 140px;
    transition: background-color 0.2s ease, outline 0.2s ease;
}

.kanban-dropzone-active {
    background: rgba(37, 99, 235, 0.06);
    outline: 2px dashed rgba(37, 99, 235, 0.35);
    outline-offset: -6px;
}


/* ================================
   SETTINGS PAGE
================================ */

.settings-form {
    display: grid;
    gap: 22px;
}

.settings-field {
    display: grid;
    gap: 7px;
}

.settings-field label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 900;
}

.settings-field input {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    color: var(--color-text);
    background: #fff;
}

.settings-field input:focus {
    outline: 3px solid rgba(249, 115, 22, 0.18);
    border-color: var(--color-accent);
}

.settings-field small {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.5;
}

.settings-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.settings-checkbox label {
    color: var(--color-text);
    font-weight: 900;
    cursor: pointer;
}

.settings-submit {
    width: 100%;
    min-height: 50px;
}

/* Responsive dashboard */

@media (max-width: 1250px) {
    .dashboard-lead-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .dashboard-lead-action {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-filter-actions {
        width: 100%;
    }

    .dashboard-filter-actions .app-btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .dashboard-lead-card {
        padding: 16px;
    }

    .dashboard-lead-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-filter-field {
        min-width: 100%;
    }


}


/* ================================
   ANIMATIONS
================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   APP SIDEBAR
================================ */

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--color-bg);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--color-primary);
    color: white;
    padding: 28px 22px;
    box-sizing: border-box;
    overflow: hidden;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    margin-bottom: 42px;
    text-decoration: none;
}

.sidebar-logo img {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
}



.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: #D6DEE9;
    text-decoration: none;
    font-weight: 800;
    transition: background .2s ease, color .2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.sidebar-logout {
    margin-top: 36px;
    color: var(--color-accent) !important;
}

.main-content {
    min-width: 0;
    padding: 42px 38px;
    overflow-x: hidden;
}

/* ================================
   PUBLIC NAVBAR
================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 80px;
    background: transparent;

    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    padding: 15px 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    display: block;
    width: auto;
    height: 44px;
    max-width: 190px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-btn {
    background: var(--color-accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 900;
    transition: transform 0.3s ease, background 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.05);
    background: #EA580C;
}

/* ================================
   ANIMATIONS
================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 920px) {
    .home-hero-grid,
    .home-sample-box,
    .pricing-grid,
    .pricing-roi-box,
    .pricing-faq-grid,
    .sample-grid,
    .sample-preview-grid,
    .login-container {
        grid-template-columns: 1fr;
    }

    .home-card-grid,
    .home-pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .home-product-card,
    .pricing-card-featured {
        transform: none;
    }

    .pricing-card-featured:hover {
        transform: translateY(-6px);
    }

    .login-content {
        text-align: center;
    }

    .login-content > p,
    .login-benefits {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 760px) {
    .navbar {
        padding: 16px 20px;
    }

    .navbar.scrolled {
        padding: 14px 20px;
    }

    .nav-logo img {
        height: 36px;
        max-width: 150px;
    }

    .nav-links {
        gap: 14px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-link,
    .nav-btn {
        font-size: 13px;
    }

    .nav-btn {
        padding: 9px 14px;
    }

    .dashboard-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-filter-actions {
        width: 100%;
    }

    .dashboard-filter-actions .app-btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .home-container,
    .login-container {
        width: min(100% - 28px, 1120px);
    }

    .home-hero {
        padding: 48px 0 64px;
        border-radius: 0 0 30px 30px;
    }

    .pricing-hero {
        padding: 64px 0 52px;
        border-radius: 0 0 30px 30px;
    }

    .sample-hero {
        padding: 64px 0 70px;
        border-radius: 0 0 30px 30px;
    }

    .login-section {
        padding: 64px 0;
        align-items: flex-start;
    }

    .home-hero-actions,
    .pricing-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pl-btn {
        width: 100%;
    }

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

    .home-product-card,
    .home-sample-box,
    .pricing-card,
    .pricing-roi-box,
    .pricing-roi-card,
    .pricing-faq-item,
    .sample-card,
    .login-card {
        padding: 22px;
    }

    .home-section,
    .pricing-section,
    .sample-preview-section {
        padding: 70px 0;
    }

    .login-card {
        border-radius: 22px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    }

/* ================================
   FIX FINAL - LEAD SHOW
================================ */

.lead-show-page .lead-show-field {
    display: grid;
    gap: 8px;
}

.lead-show-page .lead-show-field label {
    display: block;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 900;
}

.lead-show-page .lead-show-field textarea,
.lead-show-page .lead-show-field select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
}

.lead-show-page .lead-show-field textarea {
    min-height: 240px;
    padding: 14px;
    resize: vertical;
    line-height: 1.6;
}

.lead-show-page .lead-show-field select {
    min-height: 46px;
    padding: 0 12px;
}

.lead-show-page .lead-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.lead-show-page .lead-status-new {
    background: #DBEAFE;
    color: #1D4ED8;
}

.lead-show-page .lead-status-to-contact {
    background: #FFEDD5;
    color: #C2410C;
}

.lead-show-page .lead-status-contacted {
    background: #FEF3C7;
    color: #92400E;
}

.lead-show-page .lead-status-followup {
    background: #EDE9FE;
    color: #6D28D9;
}

.lead-show-page .lead-status-quote {
    background: #CCFBF1;
    color: #0F766E;
}

.lead-show-page .lead-status-won {
    background: #DCFCE7;
    color: #166534;
}

.lead-show-page .lead-status-lost {
    background: #FEE2E2;
    color: #991B1B;
}

.lead-show-page .lead-status-default {
    background: #F1F5F9;
    color: #475569;
}

.lead-show-page .lead-current-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
}

.lead-show-page .lead-show-notes-card {
    border-top: 4px solid var(--color-primary);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.lead-show-page .lead-show-recommendation {
    border-top: 4px solid var(--color-accent);
    background:
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.16), transparent 30%),
        #FFF7ED;
}

/* ================================
   RESPONSIVE FINAL - APP GLOBAL
   À placer tout en bas du fichier
================================ */

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

* {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

/* Corrige les anciennes variables non définies utilisées plus bas */
.lead-reminder-item,
.lead-activity-item {
    border-color: var(--color-border);
    background: var(--color-surface);
}

.lead-reminder-item strong,
.lead-activity-item strong {
    color: var(--color-text);
}

.lead-reminder-item span,
.lead-activity-item span,
.lead-reminder-item p,
.lead-activity-item p {
    color: var(--color-muted);
}

/* ================================
   TABLETTE / PETIT LAPTOP
================================ */

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .sidebar {
        padding: 24px 16px;
    }

    .sidebar-logo img {
        width: 150px;
    }

    .main-content {
        padding: 32px 24px;
    }

    .dashboard-commercial-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lead-show-grid {
        grid-template-columns: 1fr;
    }

    .lead-show-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ================================
   MOBILE LARGE
================================ */

@media (max-width: 900px) {
    .app-shell {
        display: block;
        min-height: 100vh;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 1000;
        height: auto;
        width: 100%;
        padding: 12px 14px;
        overflow-x: auto;
        overflow-y: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .sidebar-logo {
        margin-bottom: 10px;
    }

    .sidebar-logo img {
        width: 130px;
    }

    .sidebar-nav {
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .sidebar-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 10px;
    }

    .sidebar-logout {
        margin-top: 0;
    }

    .main-content {
        padding: 24px 16px;
        overflow-x: hidden;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .dashboard-header .app-btn {
        width: 100%;
    }

    .dashboard-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-card-header .app-btn {
        width: 100%;
    }

    .dashboard-filter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-filter-field {
        min-width: 0;
    }

    .dashboard-filter-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-filter-actions .app-btn,
    .dashboard-filter-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .dashboard-lead-card {
        grid-template-columns: 1fr;
    }

    .dashboard-lead-action {
        justify-content: stretch;
    }

    .dashboard-lead-action .app-btn {
        width: 100%;
    }

    .dashboard-crm-grid,
    .dashboard-commercial-metrics-grid,
    .dashboard-commercial-rates,
    .dashboard-commercial-breakdown {
        grid-template-columns: 1fr;
    }

    .lead-show-header {
        flex-direction: column;
    }

    .lead-show-score-card {
        width: 100%;
        flex: none;
    }

    .lead-show-sidebar {
        grid-template-columns: 1fr;
    }

    .lead-show-metrics-grid,
    .lead-show-cadastre-grid {
        grid-template-columns: 1fr;
    }

    .subscription-grid,
    .subscription-info-grid,
    .subscription-metrics {
        grid-template-columns: 1fr;
    }

    .subscription-plan-header {
        flex-direction: column;
    }
}

/* ================================
   MOBILE CLASSIQUE
================================ */

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    h2 {
        font-size: 26px;
    }

    .main-content {
        padding: 18px 12px;
    }

    .card {
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .app-btn,
    .pl-btn {
        width: 100%;
        min-height: 46px;
    }

    .badge,
    .lead-status-badge {
        font-size: 12px;
    }

    .sidebar {
        padding: 10px 10px;
    }

    .sidebar-logo {
        justify-content: center;
        margin-bottom: 8px;
    }

    .sidebar-logo img {
        width: 118px;
    }

    .sidebar-nav a {
        font-size: 13px;
        padding: 9px 10px;
    }

    .dashboard-header h2 {
        font-size: 1.75rem;
    }

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

    .app-kpi-value {
        font-size: 30px;
    }

    .dashboard-lead-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-lead-card {
        padding: 14px;
    }

    .dashboard-lead-title {
        font-size: 1.08rem;
    }

    .lead-show-page {
        gap: 16px;
    }

    .lead-show-header h1 {
        font-size: 2rem;
        line-height: 1.05;
    }

    .lead-show-header p {
        font-size: 0.95rem;
    }

    .lead-show-score-card {
        padding: 20px;
        border-radius: 18px;
    }

    .lead-show-score-card strong {
        font-size: 2rem;
    }

    .lead-show-card-header h2,
    .lead-show-recommendation h2,
    .lead-show-b2b-card h2 {
        font-size: 1.2rem;
    }

    .lead-show-field textarea {
        min-height: 170px;
    }

    .lead-show-approach-card textarea {
        min-height: 220px;
    }

    .lead-current-status {
        flex-direction: column;
        align-items: flex-start;
    }

    .lead-activity-item,
    .lead-reminder-item {
        flex-direction: column;
    }

    .lead-activity-item span,
    .lead-reminder-item span {
        white-space: normal;
    }

    .commercial-metric-card strong,
    .commercial-rate-box strong {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 12px 12px;
        gap: 10px;
    }

    .navbar.scrolled {
        padding: 10px 12px;
    }

    .nav-logo img {
        height: 32px;
        max-width: 125px;
    }

    .nav-links {
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 3px;
    }

    .nav-link,
    .nav-btn {
        flex: 0 0 auto;
        font-size: 12px;
    }

    .nav-btn {
        padding: 8px 11px;
    }
}

/* ================================
   KANBAN RESPONSIVE
================================ */

@media (max-width: 900px) {
    .kanban-board {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding: 4px 4px 18px;
        scroll-snap-type: x mandatory;
    }

    .kanban-column {
        flex: 0 0 82vw;
        min-height: 480px;
        scroll-snap-align: start;
    }
}

@media (max-width: 520px) {
    .kanban-column {
        flex-basis: 88vw;
    }

    .kanban-column-header {
        padding: 14px;
    }

    .kanban-column-body {
        padding: 12px;
    }

    .kanban-card {
        padding: 12px;
    }
}

/* ================================
   PUBLIC PAGES RESPONSIVE
================================ */

@media (max-width: 920px) {
    .home-hero-grid,
    .home-card-grid,
    .home-pricing-grid,
    .home-steps,
    .home-sample-box,
    .sample-grid,
    .sample-preview-grid,
    .login-container,
    .pricing-grid,
    .pricing-roi-box,
    .pricing-faq-grid {
        grid-template-columns: 1fr;
    }

    .home-product-card {
        transform: none;
    }
}

@media (max-width: 640px) {
    .home-container,
    .login-container {
        width: min(100% - 24px, 1120px);
    }

    .home-hero,
    .sample-hero,
    .pricing-hero {
        padding-left: 0;
        padding-right: 0;
        border-radius: 0 0 28px 28px;
    }

    .home-hero {
        padding-top: 72px;
        padding-bottom: 58px;
    }

    .sample-hero,
    .pricing-hero {
        padding-top: 86px;
        padding-bottom: 58px;
    }

    .home-hero-actions,
    .pricing-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-section,
    .pricing-section,
    .sample-preview-section {
        padding: 58px 0;
    }

    .home-product-card,
    .home-feature-card,
    .home-price-card,
    .home-sample-box,
    .sample-card,
    .sample-preview-card,
    .login-card,
    .pricing-card,
    .pricing-roi-box,
    .pricing-roi-card,
    .pricing-faq-item {
        padding: 18px;
        border-radius: 18px;
    }
}

/* ================================
   FIX FINAL - PUBLIC NAVBAR MOBILE
   À placer tout en bas du fichier
================================ */

.navbar {
    max-width: 100vw;
    box-sizing: border-box;
}

.nav-logo,
.nav-logo img {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
}

@media (max-width: 760px) {
    .navbar {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        padding: 12px 14px;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
        box-sizing: border-box;
    }

    .navbar.scrolled {
        padding: 12px 14px;
        background: rgba(15, 23, 42, 0.96);
    }

    .nav-logo img {
        height: 36px;
        max-width: 145px;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        cursor: pointer;
        flex-shrink: 0;
    }

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .navbar.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
        overflow: visible;
        white-space: normal;
    }

    .navbar.nav-open .nav-links {
        display: flex;
    }

    .nav-link,
    .nav-btn {
        width: 100%;
        box-sizing: border-box;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 14px;
    }

    .nav-link {
        background: rgba(255, 255, 255, 0.06);
        color: #E2E8F0;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.10);
        color: #fff;
    }

    .nav-btn {
        padding: 0 16px;
        background: var(--color-accent);
        color: #fff;
    }

    .public-content {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 420px) {
    .nav-logo img {
        height: 32px;
        max-width: 128px;
    }

    .navbar {
        padding: 10px 12px;
    }

    .navbar.scrolled {
        padding: 10px 12px;
    }

    .nav-links {
        left: 12px;
        right: 12px;
    }
}

/* ================================
   COMMERCIAL TEMPLATES
================================ */

.lead-show-commercial-templates-card {
    border-top-color: var(--color-primary-light);
    background:
        radial-gradient(circle at 92% 8%, rgba(30, 78, 109, 0.10), transparent 30%),
        #FFFFFF;
}

.commercial-template-list {
    display: grid;
    gap: 18px;
}

.commercial-template-item {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #F8FAFC;
}

.commercial-template-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.commercial-template-header h3 {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 900;
}

.commercial-template-item textarea {
    width: 100%;
    min-height: 220px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #FFFFFF;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

@media (max-width: 760px) {
    .commercial-template-header {
        align-items: stretch;
        flex-direction: column;
    }

    .commercial-template-header .app-btn {
        width: 100%;
    }
}

/* ================================
   HELP PAGE
================================ */

.help-page {
    display: grid;
    gap: 24px;
}

.help-hero-card {
    border-top: 4px solid var(--color-accent);
    background:
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.12), transparent 32%),
        #ffffff;
}

.help-hero-card h3 {
    margin: 16px 0 10px;
    color: var(--color-text);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 900;
}

.help-hero-card p {
    max-width: 860px;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.help-card {
    position: relative;
    margin-bottom: 0;
}

.help-card h3 {
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 900;
}

.help-card p {
    margin: 0 0 14px;
    color: var(--color-muted);
    line-height: 1.65;
}

.help-step {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 900;
}

.help-tip {
    padding: 14px;
    border-radius: var(--radius-md);
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #9A3412;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.help-list,
.help-checklist {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.help-list li,
.help-checklist li {
    position: relative;
    padding-left: 28px;
    color: var(--color-muted);
    line-height: 1.5;
}

.help-list li::before,
.help-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #DCFCE7;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.help-wide-card {
    border-top: 4px solid var(--color-primary-light);
}

.help-routine-grid,
.help-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.help-routine-grid div,
.help-features-grid div {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
    border: 1px solid var(--color-border);
}

.help-routine-grid strong,
.help-features-grid strong {
    display: block;
    color: var(--color-text);
    font-weight: 900;
}

.help-routine-grid p {
    margin: 8px 0 0;
}

.help-features-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .help-grid,
    .help-routine-grid,
    .help-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   FIX KANBAN DESKTOP HORIZONTAL SCROLL
================================ */

.main-content {
    overflow-x: visible;
}

.kanban-board {
    width: 100%;
    max-width: calc(100vw - 260px - 76px);
    display: grid;
    grid-template-columns: repeat(7, 280px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 22px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.kanban-column {
    min-width: 280px;
}

.kanban-board::-webkit-scrollbar {
    height: 12px;
}

.kanban-board::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 999px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: #123047;
    border-radius: 999px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
    background: #1E4E6D;
}

@media (max-width: 920px) {
    .kanban-board {
        max-width: calc(100vw - 32px);
        grid-template-columns: repeat(7, 280px);
    }
}

@media (max-width: 760px) {
    .kanban-board {
        max-width: 100%;
        grid-template-columns: repeat(7, 260px);
    }

    .kanban-column {
        min-width: 260px;
    }
}

/* ================================
   FIX GLOBAL BOUTONS
================================ */

.app-btn,
.pl-btn {
    box-sizing: border-box;
    max-width: 100%;
}

.kanban-card-link {
    width: 100%;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
}

.kanban-card {
    min-width: 0;
    overflow: hidden;
}

.kanban-card h4,
.kanban-card-location,
.kanban-card-note {
    overflow-wrap: anywhere;
}

/* ================================
   KANBAN SCROLL CONTROLS
================================ */

.kanban-scroll-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 0;
    background: var(--color-bg);
}

.kanban-board {
    width: 100%;
    max-width: calc(100vw - 260px - 76px);
    overflow-x: auto;
    overflow-y: hidden;
    display: grid;
    grid-template-columns: repeat(7, 280px);
    gap: 18px;
    padding-bottom: 22px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.kanban-column {
    min-width: 280px;
}

.kanban-board::-webkit-scrollbar {
    height: 14px;
}

.kanban-board::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 999px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: #123047;
    border-radius: 999px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
    background: #1E4E6D;
}

@media (max-width: 920px) {
    .kanban-scroll-toolbar {
        justify-content: stretch;
    }

    .kanban-scroll-toolbar .app-btn {
        flex: 1;
    }

    .kanban-board {
        max-width: calc(100vw - 32px);
        grid-template-columns: repeat(7, 270px);
    }

    .kanban-column {
        min-width: 270px;
    }
}

@media (max-width: 640px) {
    .kanban-scroll-toolbar {
        flex-direction: column;
    }

    .kanban-board {
        max-width: 100%;
        grid-template-columns: repeat(7, 260px);
    }

    .kanban-column {
        min-width: 260px;
    }
}

/* ================================
   FIX FINAL - KANBAN BUTTON OVERFLOW
================================ */

.kanban-column,
.kanban-column-body,
.kanban-card {
    box-sizing: border-box;
    min-width: 0;
}

.kanban-card {
    width: 100%;
    overflow: hidden;
}

.kanban-card-link,
.kanban-card a.kanban-card-link,
.kanban-card .app-btn.kanban-card-link {
    display: flex;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin: 12px 0 0 0;
    padding-left: 12px;
    padding-right: 12px;
}

.kanban-card .app-btn {
    box-sizing: border-box;
}

/* ================================
   FIX SIDEBAR STICKY DESKTOP
================================ */

@media (min-width: 901px) {
    .app-shell {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        min-height: 100vh;
        align-items: start;
    }

    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 50;
    }

    .main-content {
        min-width: 0;
    }
}

/* ================================
   FIX KANBAN VERTICAL SCROLL
================================ */

@media (min-width: 901px) {
    .kanban-board {
        align-items: start;
    }

    .kanban-column {
        height: calc(100vh - 210px);
        min-height: 520px;
        display: flex;
        flex-direction: column;
    }

    .kanban-column-header {
        flex: 0 0 auto;
    }

    .kanban-column-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 10px;
    }

    .kanban-column-body::-webkit-scrollbar {
        width: 8px;
    }

    .kanban-column-body::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 999px;
    }

    .kanban-column-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

.kanban-column-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
}

/* ================================
   FIX FINAL - KANBAN CARD HEIGHT
================================ */

    /* ================================
   FIX FINAL - KANBAN CARD HEIGHT
================================ */

.kanban-column {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 260px);
    min-height: 540px;
}

.kanban-column-header {
    flex: 0 0 auto;
}

.kanban-column-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-card,
.kanban-empty,
.kanban-hidden-count {
    flex: 0 0 auto;
}

.kanban-card {
    height: auto;
    min-height: auto;
    overflow: visible;
}

.kanban-card-link {
    width: 100%;
    box-sizing: border-box;
}

.lead-show-b2b-enriched {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-top-color: #16a34a;
}

.lead-show-b2b-to_verify {
    background: #fffbeb;
    border-color: #fde68a;
    border-top-color: #f59e0b;
}

.lead-show-b2b-professional_probable {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-top-color: #2563eb;
}

.lead-show-b2b-api_error {
    background: #fff7ed;
    border-color: #fed7aa;
    border-top-color: #f97316;
}

/* ================================
   B2B ENRICHMENT CARD
================================ */

.lead-show-b2b-card {
    border-top: 4px solid var(--color-primary-light);
}

.lead-show-b2b-card h2 {
    margin: 14px 0 10px;
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 900;
}

.lead-show-b2b-card p {
    margin: 12px 0 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.lead-show-b2b-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.lead-show-b2b-list div {
    padding: 12px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--color-border);
}

.lead-show-b2b-list span {
    display: block;
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lead-show-b2b-list strong {
    display: block;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.lead-show-b2b-insight {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: #F8FAFC;
    border: 1px solid var(--color-border);
}

.lead-show-b2b-insight strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 900;
}

.lead-show-b2b-insight p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.55;
}

.lead-show-b2b-enriched {
    background: #F0FDF4;
    border-color: #BBF7D0;
    border-top-color: var(--color-success);
}

.lead-show-b2b-skipped_public {
    background: #EFF6FF;
    border-color: #BFDBFE;
    border-top-color: #2563EB;
}

.lead-show-b2b-missing_applicant {
    background: #F8FAFC;
    border-color: #CBD5E1;
    border-top-color: #94A3B8;
}

.lead-show-b2b-not_company {
    background: #F8FAFC;
    border-color: #CBD5E1;
    border-top-color: var(--color-muted);
}

.lead-show-b2b-api_error {
    background: #FFF7ED;
    border-color: #FED7AA;
    border-top-color: var(--color-accent);
}

.lead-show-b2b-locked {
    background: var(--color-soft);
    border-style: dashed;
    border-top-color: var(--color-primary-light);
}

/* ================================
   DASHBOARD B2B BADGES
================================ */

.dashboard-b2b-badge {
    font-size: 12px;
    white-space: nowrap;
}

/* ================================
   DASHBOARD B2B ENRICHMENT
================================ */

.dashboard-b2b-badge {
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-filter-field select option[value="enriched"] {
    font-weight: 800;
}

@media (max-width: 760px) {
    .dashboard-b2b-badge {
        white-space: normal;
    }
}

/* ================================
   FIX STRUCTURE - LEAD SHOW PAGE
================================ */

.lead-show-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}

.commercial-template-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.commercial-template-tab {
    width: auto;
}

.commercial-template-panels {
    display: grid;
    gap: 16px;
}

.commercial-template-panel textarea {
    width: 100%;
    min-height: 280px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #FFFFFF;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

@media (max-width: 1180px) {
    .lead-show-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .commercial-template-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .commercial-template-tab {
        width: 100%;
    }

    .commercial-template-panel textarea {
        min-height: 240px;
    }
}

/* ================================
   AI COMMERCIAL APPROACH
================================ */

.lead-show-ai-card {
    border-top-color: var(--color-accent);
    background:
        radial-gradient(circle at 92% 8%, rgba(249, 115, 22, 0.12), transparent 30%),
        #FFFFFF;
}

.lead-show-ai-result {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #F8FAFC;
}

.lead-show-ai-result textarea {
    width: 100%;
    min-height: 360px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #FFFFFF;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

@media (max-width: 760px) {
    .lead-show-ai-result textarea {
        min-height: 300px;
    }
}

/* ================================
   LEAD AI ANALYSIS
================================ */

.lead-show-ai-card {
    border-top-color: #7C3AED;
    background:
        radial-gradient(circle at 92% 8%, rgba(124, 58, 237, 0.10), transparent 30%),
        #FFFFFF;
}

.lead-show-ai-score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.lead-show-ai-score-box {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: #F5F3FF;
    border: 1px solid #DDD6FE;
}

.lead-show-ai-score-box span {
    display: block;
    margin-bottom: 6px;
    color: #6D28D9;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lead-show-ai-score-box strong {
    display: block;
    color: #2E1065;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 950;
}

.lead-show-ai-summary {
    padding: 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    background: #FAFAFF;
    border: 1px solid #EDE9FE;
}

.lead-show-ai-summary strong,
.lead-show-ai-section strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 900;
}

.lead-show-ai-summary p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.lead-show-ai-section {
    margin-top: 18px;
}

.lead-show-ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lead-show-ai-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #EDE9FE;
    color: #5B21B6;
    font-size: 13px;
    font-weight: 800;
}

.lead-show-ai-warnings {
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #FFF7ED;
    border: 1px solid #FED7AA;
}

.lead-show-ai-warnings ul {
    display: grid;
    gap: 8px;
    padding-left: 20px;
    margin: 0;
    color: #9A3412;
}

.lead-show-ai-trades {
    display: grid;
    gap: 10px;
}

.lead-show-ai-trades div {
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--color-soft);
    border: 1px solid var(--color-border);
}

.lead-show-ai-trades span {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.lead-show-ai-trades strong {
    margin: 4px 0;
    color: var(--color-text);
    font-size: 1.2rem;
}

.lead-show-ai-trades p {
    margin: 6px 0 0;
    color: var(--color-muted);
    line-height: 1.5;
}

.lead-show-ai-empty {
    opacity: 0.9;
}

@media (max-width: 900px) {
    .lead-show-ai-score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .lead-show-ai-score-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   DASHBOARD AI BADGE
================================ */

.dashboard-ai-badge {
    background: #EDE9FE;
    color: #5B21B6;
}

.dashboard-ai-score-note {
    display: block;
    margin-top: 6px;
    color: #6D28D9;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 900;
}

/* ================================
   FIX DÉFINITIF NAVBAR RESPONSIVE
   Passage en hamburger plus tôt
================================ */

.nav-toggle {
    display: none !important;
}

@media (max-width: 1500px) {
    .navbar {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 14px 24px !important;
        background: rgba(15, 23, 42, 0.96) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
        box-sizing: border-box;
    }

    .navbar.scrolled {
        padding: 14px 24px !important;
        background: rgba(15, 23, 42, 0.96) !important;
    }

    .nav-logo {
        flex-shrink: 0;
    }

    .nav-logo img {
        height: 38px !important;
        max-width: 150px !important;
    }

    .navbar .nav-toggle {
        display: inline-flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        cursor: pointer;
        flex-shrink: 0;
        margin-left: auto;
    }

    .navbar .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
    }

    .navbar .nav-links {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 24px !important;
        right: 24px !important;
        display: none !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px !important;
        border-radius: 18px !important;
        background: rgba(15, 23, 42, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28) !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .navbar.nav-open .nav-links {
        display: flex !important;
    }

    .navbar .nav-link,
    .navbar .nav-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 46px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .navbar .nav-link {
        background: rgba(255, 255, 255, 0.06) !important;
        color: #E2E8F0 !important;
    }

    .navbar .nav-btn {
        padding: 0 16px !important;
        background: var(--color-accent) !important;
        color: #fff !important;
    }
}

/* ================================
   DASHBOARD MAP
================================ */

.dashboard-map-card {
    overflow: visible;
}

.dashboard-opportunities-map {
    display: block;
    width: 100%;
    height: 460px;
    min-height: 460px;
    margin-top: 18px;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #E5E7EB;
}

.dashboard-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.map-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.map-dot-high {
    background: #16A34A;
}

.map-dot-medium {
    background: #F97316;
}

.map-dot-low {
    background: #64748B;
}

.map-dot-company {
    background: #2563EB;
}

.map-marker {
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 3px solid #FFFFFF;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 950;
}

.map-marker span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.map-marker-high {
    background: #16A34A;
}

.map-marker-medium {
    background: #F97316;
}

.map-marker-low {
    background: #64748B;
}

.map-marker-company {
    background: #2563EB;
    font-size: 18px;
}

.map-popup {
    min-width: 210px;
}

.map-popup strong {
    display: block;
    color: #0F172A;
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.map-popup p {
    margin: 5px 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
}

.map-popup p strong {
    display: inline;
    margin: 0;
    font-size: 13px;
}

.map-popup a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 10px;
    padding: 0 12px;
    border-radius: 9px;
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.leaflet-container {
    font-family: var(--font-body);
}

@media (max-width: 760px) {
    .dashboard-opportunities-map {
        height: 380px;
        min-height: 380px;
        border-radius: 14px;
    }

    .dashboard-map-legend {
        flex-direction: column;
        gap: 8px;
    }
}

/* ================================
   DASHBOARD MAP CLUSTERS - VERSION CLAIRE
================================ */

.dashboard-cluster-marker {
    background: transparent !important;
    border: none !important;
}

.dashboard-cluster-marker div {
    display: grid;
    place-items: center;
    min-width: 78px;
    height: 42px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #123047;
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
    box-sizing: border-box;
}

.dashboard-cluster-marker strong {
    display: block;
    font-size: 15px;
    line-height: 1;
    font-weight: 950;
}

.dashboard-cluster-marker span {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.dashboard-cluster-small div {
    background: #123047;
}

.dashboard-cluster-medium div {
    background: #1E4E6D;
}

.dashboard-cluster-large div {
    background: #0F172A;
}

/* ================================
   WEEKLY PRIORITIES
================================ */

.dashboard-weekly-priorities-card {
    border-top: 4px solid var(--color-accent);
    background:
        radial-gradient(circle at 92% 8%, rgba(249, 115, 22, 0.10), transparent 28%),
        #FFFFFF;
}

.dashboard-weekly-priorities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-weekly-priority-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #F8FAFC;
}

.dashboard-weekly-priority-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.dashboard-weekly-priority-top strong {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 900;
}

.dashboard-weekly-priority-item h4 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 900;
}

.dashboard-weekly-priority-location {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.4;
}

.dashboard-weekly-priority-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-weekly-priority-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-weekly-priority-reasons {
    display: grid;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dashboard-weekly-priority-reasons li {
    position: relative;
    padding-left: 22px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.dashboard-weekly-priority-reasons li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-success);
    font-weight: 900;
}

.dashboard-weekly-priority-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.dashboard-weekly-priority-action span {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .dashboard-weekly-priorities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-weekly-priorities-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-weekly-priority-action {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-weekly-priority-action .app-btn {
        width: 100%;
    }
}

/* ================================
   HOME V1.5 HERO
================================ */

.home-hero-v15 {
    padding: 128px 0 96px;
}

.home-hero-v15 .home-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 54px;
}

.home-hero-visual {
    position: relative;
    z-index: 2;
}

.home-hero-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.36);
    background: rgba(255, 255, 255, 0.08);
}

.home-hero-image {
    display: block;
    width: 100%;
    height: min(520px, 52vw);
    object-fit: cover;
}

.home-hero-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.28)),
        radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.18), transparent 28%);
    pointer-events: none;
}

.home-hero-floating-card {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-text);
    border: 1px solid rgba(221, 226, 232, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(10px);
}

.home-hero-floating-card strong {
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1.1;
    font-weight: 950;
}

.home-hero-floating-card small,
.home-hero-floating-card span:not(.badge) {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

.home-hero-floating-card-top {
    top: 22px;
    left: 22px;
    max-width: 250px;
}

.home-hero-floating-card-bottom {
    right: 22px;
    bottom: 22px;
    max-width: 280px;
}

.home-product-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-product-proof-card {
    padding: 28px;
    border-radius: 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.home-product-proof-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #FFF7ED;
    color: var(--color-accent);
    font-size: 24px;
}

.home-product-proof-card h3 {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 950;
}

.home-product-proof-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.home-demo-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.home-demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
    gap: 38px;
    align-items: center;
}

.home-demo-content h2 {
    margin: 0 0 16px;
    color: var(--color-text);
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 950;
}

.home-demo-content p {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

@media (max-width: 1100px) {
    .home-hero-v15 .home-hero-grid,
    .home-demo-grid {
        grid-template-columns: 1fr;
    }

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

    .home-hero-image {
        height: auto;
        min-height: 360px;
    }
}

@media (max-width: 920px) {
    .home-product-proof-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero-v15 {
        padding: 92px 0 64px;
    }

    .home-hero-image-wrap {
        border-radius: 22px;
    }

    .home-hero-image {
        min-height: 300px;
    }

    .home-hero-floating-card {
        position: static;
        margin: 12px;
    }

    .home-hero-image-wrap::after {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.18));
    }
}

/* ================================
   PRICING PAGE - V1.5 VISUAL
================================ */

.pricing-hero-with-visual {
    text-align: left;
}

.pricing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 48px;
    align-items: center;
}

.pricing-hero-content h1,
.pricing-hero-content p {
    margin-left: 0;
    margin-right: 0;
}

.pricing-hero-content h1 {
    max-width: 760px;
}

.pricing-hero-content > p {
    max-width: 680px;
}

.pricing-hero-content .pricing-hero-actions {
    justify-content: flex-start;
}

.pricing-hero-proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
    color: #CBD5E1;
    font-size: 14px;
    font-weight: 800;
}

.pricing-hero-visual {
    position: relative;
    padding: 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.34);
}

.pricing-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    object-fit: cover;
}

.pricing-visual-badge {
    position: absolute;
    display: grid;
    gap: 2px;
    max-width: 230px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-text);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(221, 226, 232, 0.9);
}

.pricing-visual-badge strong {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 950;
}

.pricing-visual-badge span {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.pricing-visual-badge-top {
    top: 28px;
    left: -18px;
}

.pricing-visual-badge-bottom {
    right: -18px;
    bottom: 28px;
}

.pricing-value-section {
    padding-bottom: 0;
}

.pricing-value-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    padding: 38px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.pricing-value-box h2 {
    margin: 0 0 14px;
    color: var(--color-text);
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.pricing-value-box p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.pricing-value-grid {
    display: grid;
    gap: 14px;
}

.pricing-value-grid div {
    padding: 18px;
    border-radius: 18px;
    background: var(--color-soft);
    border: 1px solid var(--color-border);
}

.pricing-value-grid span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 950;
}

.pricing-value-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 950;
}

.pricing-comparison-section {
    padding-top: 0;
}

.pricing-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pricing-comparison-grid article {
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.pricing-comparison-grid h3 {
    margin: 18px 0 10px;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 950;
}

.pricing-comparison-grid p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

@media (max-width: 1180px) {
    .pricing-hero-grid,
    .pricing-value-box,
    .pricing-comparison-grid {
        grid-template-columns: 1fr;
    }

    .pricing-hero-with-visual {
        text-align: center;
    }

    .pricing-hero-content h1,
    .pricing-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-hero-content .pricing-hero-actions,
    .pricing-hero-proof-list {
        justify-content: center;
    }

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

@media (max-width: 760px) {
    .pricing-hero-grid {
        gap: 32px;
    }

    .pricing-hero-visual {
        padding: 8px;
        border-radius: 22px;
    }

    .pricing-hero-visual img {
        border-radius: 16px;
    }

    .pricing-visual-badge {
        position: static;
        max-width: none;
        margin-top: 10px;
    }

    .pricing-value-box,
    .pricing-comparison-grid article {
        padding: 22px;
        border-radius: 20px;
    }
}

.pricing-secondary-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.pricing-secondary-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* =========================================================
   Historique campagnes courrier - UX améliorée
   ========================================================= */

.mail-campaign-history-card {
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 24px;
    background: #ffffff;
}

.mail-campaign-history-top {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.mail-campaign-history-main {
    min-width: 0;
    max-width: 720px;
}

.mail-campaign-history-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mail-campaign-history-top h3 {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 1.35rem;
}

.mail-campaign-file-name {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    word-break: break-word;
}

.mail-campaign-history-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.mail-campaign-history-stats div {
    min-width: 112px;
    padding: 16px;
    border-radius: 16px;
    background: var(--color-soft);
    text-align: center;
}

.mail-campaign-history-stats span {
    display: block;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.mail-campaign-history-stats strong {
    display: block;
    margin-top: 6px;
    color: var(--color-primary);
    font-size: 1.6rem;
    line-height: 1;
}

.mail-campaign-history-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin: 18px 0 20px;
}

.mail-campaign-postal-status {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mail-campaign-postal-status strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.mail-campaign-postal-status span {
    color: var(--color-muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.mail-campaign-postal-provider {
    flex-shrink: 0;
    color: var(--color-muted);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.mail-campaign-history-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.mail-campaign-history-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mail-campaign-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg);
}

.mail-campaign-history-item-main {
    min-width: 0;
}

.mail-campaign-history-item-main strong {
    display: block;
    color: var(--color-text);
}

.mail-campaign-history-item-main span {
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.mail-campaign-history-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.badge-sherlock {
    background: #eef2ff;
    color: #3730a3;
}

@media (max-width: 1100px) {
    .mail-campaign-history-top,
    .mail-campaign-history-actions-row {
        flex-direction: column;
    }

    .mail-campaign-history-stats {
        width: 100%;
    }

    .mail-campaign-history-stats div {
        flex: 1;
    }

    .mail-campaign-history-actions {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .mail-campaign-history-card {
        padding: 18px;
    }

    .mail-campaign-history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .mail-campaign-history-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .mail-campaign-postal-status {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   Détail envoi postal
   ========================================================= */

.postal-shipment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    margin-bottom: 20px;
}

.postal-shipment-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.postal-shipment-kpi-grid div,
.postal-shipment-tech-list div {
    padding: 14px;
    border-radius: 14px;
    background: var(--color-soft);
}

.postal-shipment-kpi-grid span,
.postal-shipment-tech-list span {
    display: block;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.postal-shipment-kpi-grid strong,
.postal-shipment-tech-list strong {
    color: var(--color-primary);
}

.postal-shipment-batch-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
}

.postal-shipment-batch-box span {
    display: block;
    color: var(--color-muted);
    font-weight: 800;
    margin-bottom: 4px;
}

.postal-shipment-batch-box strong {
    word-break: break-word;
    color: var(--color-primary);
}

.postal-shipment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.postal-shipment-tech-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.postal-shipment-items-card,
.postal-shipment-payload-card {
    margin-bottom: 20px;
}

.postal-shipment-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.postal-shipment-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg);
}

.postal-shipment-item strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 4px;
}

.postal-shipment-item span {
    display: block;
    color: var(--color-muted);
    line-height: 1.5;
}

.postal-shipment-item small {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-weight: 700;
}

.postal-shipment-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.postal-shipment-payload {
    max-height: 520px;
    overflow: auto;
    padding: 16px;
    border-radius: 14px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

@media (max-width: 1100px) {
    .postal-shipment-grid {
        grid-template-columns: 1fr;
    }

    .postal-shipment-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .postal-shipment-kpi-grid {
        grid-template-columns: 1fr;
    }

    .postal-shipment-item {
        flex-direction: column;
    }

    .postal-shipment-item-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   Envoi réel Maileva désactivé
   ========================================================= */

.postal-shipment-real-send-card {
    margin-bottom: 20px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
}

.postal-shipment-real-send-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
}

.postal-shipment-real-send-status strong {
    display: block;
    color: #9a3412;
    margin-bottom: 6px;
}

.postal-shipment-real-send-status p {
    margin: 0;
    color: #7c2d12;
    line-height: 1.6;
}

.postal-shipment-real-send-status code {
    background: #ffedd5;
    color: #9a3412;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 800;
}

.app-btn-disabled,
.app-btn-disabled:hover {
    background: #e5e7eb;
    color: #6b7280;
    border: 1px solid #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 800px) {
    .postal-shipment-real-send-status {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   Navbar - état actif
   ========================================================= */

.nav-link,
.nav-btn {
    position: relative;
}

.nav-link.is-active {
    color: var(--color-accent);
    font-weight: 800;
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: var(--color-accent);
}

.nav-btn.is-active {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.nav-btn.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-accent);
    transform: translateX(-50%);
}

/* Navbar après scroll */
.navbar.scrolled .nav-link.is-active {
    color: var(--color-accent);
}

.navbar.scrolled .nav-link.is-active::after {
    background: var(--color-accent);
}

/* Mobile */
@media (max-width: 900px) {
    .nav-link.is-active::after,
    .nav-btn.is-active::after {
        display: none;
    }

    .nav-link.is-active {
        background: rgba(249, 115, 22, 0.08);
        border-radius: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav-btn.is-active {
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
    }
}

/* =========================================================
   Sherlock+ — Investigation commerciale avancée
   ========================================================= */

.dashboard-sherlock-plus-card {
    border: 1px solid rgba(249, 115, 22, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.sherlock-plus-summary {
    margin-top: 18px;
}

.sherlock-plus-confidence {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    font-weight: 800;
}

.sherlock-plus-confidence span {
    font-size: 13px;
    color: #9a3412;
}

.sherlock-plus-confidence strong {
    font-size: 15px;
}

.sherlock-plus-list {
    display: grid;
    gap: 8px;
    margin: 10px 0 22px;
    padding: 0;
    list-style: none;
}

.sherlock-plus-list li {
    position: relative;
    padding: 10px 12px 10px 34px;
    border: 1px solid #dde2e8;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    line-height: 1.5;
}

.sherlock-plus-list li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 10px;
    color: #16a34a;
    font-weight: 900;
}

.sherlock-plus-warning-list li::before {
    content: "!";
    color: #f97316;
}

.sherlock-plus-verdict {
    margin-top: 22px;
    padding: 18px;
    border-radius: 16px;
    background: #123047;
    color: #ffffff;
}

.sherlock-plus-verdict strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.sherlock-plus-verdict p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.sherlock-plus-intro {
    margin-top: 16px;
    padding: 18px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.sherlock-plus-intro p {
    margin: 0 0 16px;
    color: #7c2d12;
    line-height: 1.6;
}

.sherlock-plus-action-form {
    margin-top: 18px;
}

@media (max-width: 800px) {
    .sherlock-plus-confidence {
        width: 100%;
        justify-content: space-between;
        border-radius: 14px;
    }
}

/* =========================================================
   Sherlock / Sherlock+ - affichage desktop propre
   ========================================================= */

.dashboard-sherlock-card,
.dashboard-sherlock-plus-card {
    width: 100%;
    overflow: hidden;
}

.dashboard-sherlock-card .dashboard-card-header,
.dashboard-sherlock-plus-card .dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.dashboard-sherlock-card .dashboard-card-header > div,
.dashboard-sherlock-plus-card .dashboard-card-header > div {
    min-width: 0;
    flex: 1 1 520px;
}

.dashboard-sherlock-card .dashboard-card-header h3,
.dashboard-sherlock-plus-card .dashboard-card-header h3 {
    margin-bottom: 8px;
    line-height: 1.15;
}

.dashboard-sherlock-card .dashboard-card-subtitle,
.dashboard-sherlock-plus-card .dashboard-card-subtitle {
    max-width: 780px;
    line-height: 1.55;
}

/* KPI Sherlock+ */
.sherlock-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 22px;
    max-width: 960px;
}

.sherlock-metric-card {
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid #dde2e8;
    border-radius: 18px;
    background: #f8fafc;
}

.sherlock-metric-card span {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.sherlock-metric-card strong {
    display: block;
    color: #001b3a;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 900;
    line-height: 1.05;
    word-break: keep-all;
}

/* Blocs texte Sherlock / Sherlock+ */
.dashboard-sherlock-card .lead-show-b2b-insight,
.dashboard-sherlock-plus-card .lead-show-b2b-insight {
    max-width: 100%;
    margin-top: 18px;
}

.dashboard-sherlock-card .lead-show-b2b-insight p,
.dashboard-sherlock-plus-card .lead-show-b2b-insight p {
    max-width: 980px;
    line-height: 1.65;
}

/* Listes Sherlock+ */
.sherlock-plus-list {
    max-width: 980px;
}

.sherlock-plus-list li {
    min-width: 0;
}

/* Badge confiance */
.sherlock-plus-confidence {
    max-width: max-content;
}

/* Desktop intermédiaire */
@media (max-width: 1200px) {
    .sherlock-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .sherlock-metrics-grid {
        grid-template-columns: 1fr;
    }

    .sherlock-metric-card strong {
        font-size: 28px;
    }

    .dashboard-sherlock-card .dashboard-card-header,
    .dashboard-sherlock-plus-card .dashboard-card-header {
        display: block;
    }
}

/* =========================================================
   Sherlock standard - informations techniques compactes
   ========================================================= */

.sherlock-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 26px;
    max-width: 980px;
}

.sherlock-info-card {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid #dde2e8;
    border-radius: 18px;
    background: #f8fafc;
}

.sherlock-info-card span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
}

.sherlock-info-card strong {
    display: block;
    max-width: 100%;
    color: #001b3a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sherlock+ KPI : grosses valeurs, mais contrôlées */
.sherlock-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 22px;
    max-width: 960px;
}

.sherlock-metric-card {
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid #dde2e8;
    border-radius: 18px;
    background: #f8fafc;
}

.sherlock-metric-card span {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.sherlock-metric-card strong {
    display: block;
    color: #001b3a;
    font-size: clamp(24px, 2.1vw, 34px);
    font-weight: 900;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 1200px) {
    .sherlock-info-grid,
    .sherlock-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
}

@media (max-width: 700px) {
    .sherlock-info-grid,
    .sherlock-metrics-grid {
        grid-template-columns: 1fr;
    }

    .sherlock-info-card strong {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        word-break: break-word;
    }

    .sherlock-metric-card strong {
        font-size: 28px;
    }
}

/* =========================================================
   Lead show - meilleur usage grand écran
   ========================================================= */

.lead-show-page {
    max-width: min(1480px, calc(100vw - 64px));
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1200px) {
    .lead-show-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 28px;
        align-items: start;
    }

    .lead-show-main {
        min-width: 0;
    }

    .lead-show-sidebar {
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .lead-show-page {
        max-width: none;
    }
}

/* =========================================================
   Sherlock / Sherlock+ - grilles adaptatives sans troncature
   ========================================================= */

.dashboard-sherlock-card,
.dashboard-sherlock-plus-card {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.sherlock-info-grid,
.sherlock-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: none !important;
    margin: 24px 0 26px;
}

.sherlock-info-card,
.sherlock-metric-card {
    min-width: 0;
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #dde2e8;
    border-radius: 18px;
    background: #f8fafc;
}

.sherlock-info-card span,
.sherlock-metric-card span {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.sherlock-info-card strong,
.sherlock-metric-card strong {
    display: block;
    max-width: 100%;
    color: #001b3a;
    font-weight: 900;
    line-height: 1.12;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
    word-break: normal;
}

.sherlock-info-card strong {
    font-size: 20px;
}

.sherlock-metric-card strong {
    font-size: clamp(26px, 2vw, 34px);
}

/* Source Sherlock : éviter les valeurs trop longues */
.sherlock-info-card strong[title*="Recherche"],
.sherlock-info-card strong[title*="api_"] {
    font-size: 18px;
    word-break: break-word;
}

/* Les blocs texte prennent toute la largeur disponible */
.dashboard-sherlock-card .lead-show-b2b-insight,
.dashboard-sherlock-plus-card .lead-show-b2b-insight,
.dashboard-sherlock-card .lead-show-b2b-list,
.dashboard-sherlock-plus-card .lead-show-b2b-list,
.sherlock-plus-list,
.sherlock-plus-verdict {
    max-width: none !important;
    width: 100%;
}

.dashboard-sherlock-card .lead-show-b2b-insight p,
.dashboard-sherlock-plus-card .lead-show-b2b-insight p {
    max-width: none !important;
}

/* Mobile */
@media (max-width: 700px) {
    .sherlock-info-grid,
    .sherlock-metrics-grid {
        grid-template-columns: 1fr;
    }

    .sherlock-info-card strong,
    .sherlock-metric-card strong {
        font-size: 26px;
    }
}

/* =========================================================
   Sherlock+ - action prioritaire
   ========================================================= */

.sherlock-plus-action-box {
    margin: 22px 0;
    padding: 20px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.sherlock-plus-action-box strong {
    display: block;
    margin-bottom: 8px;
    color: #9a3412;
    font-weight: 900;
}

.sherlock-plus-action-box p {
    margin: 0;
    color: #7c2d12;
    line-height: 1.65;
}

/* =========================================================
   Correctif Sherlock+ - suppression espace vide header
   ========================================================= */

.dashboard-sherlock-card .dashboard-card-header,
.dashboard-sherlock-plus-card .dashboard-card-header {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 24px !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

.dashboard-sherlock-card .dashboard-card-header > div,
.dashboard-sherlock-plus-card .dashboard-card-header > div {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.dashboard-sherlock-card .dashboard-card-header .badge,
.dashboard-sherlock-plus-card .dashboard-card-header .badge {
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    margin: 0 !important;
}

/* Les grilles doivent suivre directement le header */
.dashboard-sherlock-card .sherlock-summary,
.dashboard-sherlock-plus-card .sherlock-plus-summary {
    margin-top: 0 !important;
}

.dashboard-sherlock-plus-card .sherlock-metrics-grid {
    margin-top: 0 !important;
}

/* Mobile */
@media (max-width: 700px) {
    .dashboard-sherlock-card .dashboard-card-header,
    .dashboard-sherlock-plus-card .dashboard-card-header {
        display: block !important;
    }

    .dashboard-sherlock-card .dashboard-card-header .badge,
    .dashboard-sherlock-plus-card .dashboard-card-header .badge {
        display: inline-flex !important;
        margin-top: 14px !important;
    }
}

/* ================================
   PERMISLEAD CHATBOT MAISON
================================ */

#pl-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3000;
    font-family: var(--font-body);
}

.pl-chatbot-launcher {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255,255,255,0.22), transparent 28%),
        var(--color-accent);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
    transition: transform .2s ease, box-shadow .2s ease;
}

.pl-chatbot-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(249, 115, 22, 0.44);
}

.pl-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 82px;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 620px;
    max-height: calc(100vh - 120px);
    display: none;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid rgba(221, 226, 232, 0.9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

#pl-chatbot.is-open .pl-chatbot-panel {
    display: grid;
}

.pl-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background:
        radial-gradient(circle at 92% 10%, rgba(249, 115, 22, 0.22), transparent 28%),
        linear-gradient(135deg, var(--color-primary) 0%, #0F172A 100%);
    color: #fff;
}

.pl-chatbot-header strong {
    display: block;
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.1;
}

.pl-chatbot-header span {
    display: block;
    margin-top: 3px;
    color: #CBD5E1;
    font-size: 13px;
    font-weight: 700;
}

.pl-chatbot-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.pl-chatbot-body {
    padding: 18px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 90% 8%, rgba(249, 115, 22, 0.07), transparent 22%),
        #F8FAFC;
}

.pl-chatbot-message {
    max-width: 88%;
    margin-bottom: 12px;
    padding: 13px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    animation: plChatIn .22s ease both;
}

.pl-chatbot-message-bot {
    margin-right: auto;
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 8px;
}

.pl-chatbot-message-user {
    margin-left: auto;
    background: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: 8px;
}

.pl-chatbot-message a {
    color: var(--color-accent);
    font-weight: 900;
    text-decoration: none;
}

.pl-chatbot-message a:hover {
    text-decoration: underline;
}

.pl-chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 4px 0 16px;
    animation: plChatIn .22s ease both;
}

.pl-chatbot-options button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #FED7AA;
    border-radius: 999px;
    background: #FFF7ED;
    color: #9A3412;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.pl-chatbot-options button:hover {
    transform: translateY(-1px);
    background: #FFEDD5;
    border-color: var(--color-accent);
}

.pl-chatbot-input-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.pl-chatbot-input-form[hidden] {
    display: none;
}

.pl-chatbot-input {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    font: inherit;
}

.pl-chatbot-input:focus {
    outline: 3px solid rgba(249, 115, 22, 0.18);
    border-color: var(--color-accent);
}

.pl-chatbot-input-form button {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.pl-chatbot-typing {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 14px 15px;
}

.pl-chatbot-typing span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #CBD5E1;
    animation: plTyping 1s infinite ease-in-out;
}

.pl-chatbot-typing span:nth-child(2) {
    animation-delay: .15s;
}

.pl-chatbot-typing span:nth-child(3) {
    animation-delay: .3s;
}

.pl-chatbot-ended {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 4px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.pl-chatbot-ended::before,
.pl-chatbot-ended::after {
    content: "";
    width: 54px;
    height: 1px;
    margin: 0 10px;
    background: var(--color-border);
}

@keyframes plTyping {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: .45;
    }

    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes plChatIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@media (max-width: 640px) {
    #pl-chatbot {
        right: 14px;
        bottom: 14px;
    }

    .pl-chatbot-launcher {
        width: 58px;
        height: 58px;
    }

    .pl-chatbot-panel {
        right: -2px;
        bottom: 74px;
        width: calc(100vw - 24px);
        height: min(640px, calc(100vh - 96px));
        border-radius: 22px;
    }

    .pl-chatbot-options {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pl-chatbot-options button {
        width: 100%;
        border-radius: 12px;
    }

    .pl-chatbot-message {
        max-width: 94%;
    }
}

/* ================================
   LEGAL PAGES
================================ */

.legal-page {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
}

.legal-hero {
    padding: 132px 0 56px;
    background:
        radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.14), transparent 26%),
        linear-gradient(135deg, var(--color-primary) 0%, #0F172A 100%);
    color: #fff;
    border-radius: 0 0 42px 42px;
}

.legal-hero .section-kicker {
    color: var(--color-accent);
}

.legal-hero h1 {
    max-width: 780px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2.4rem, 4.4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 950;
}

.legal-hero p {
    max-width: 720px;
    margin: 0;
    color: #CBD5E1;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-section {
    padding: 72px 0;
}

.legal-content {
    max-width: 940px;
    margin: 0 auto;
    padding: 38px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.legal-content h2 {
    margin: 34px 0 14px;
    color: var(--color-text);
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 950;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.legal-content strong {
    color: var(--color-text);
    font-weight: 900;
}

.legal-content ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 28px;
    padding: 18px;
    list-style: none;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
    border: 1px solid var(--color-border);
}

.legal-content li {
    position: relative;
    padding-left: 24px;
    color: var(--color-muted);
    line-height: 1.55;
}

.legal-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-success);
    font-weight: 950;
}

.legal-content a {
    color: var(--color-accent);
    font-weight: 900;
    text-decoration: none;
}

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

/* ================================
   SITE FOOTER
================================ */

.site-footer {
    margin-top: 0;
    padding: 42px 0;
    background:
        radial-gradient(circle at 92% 12%, rgba(249, 115, 22, 0.13), transparent 24%),
        linear-gradient(135deg, var(--color-primary) 0%, #0F172A 100%);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.site-footer-brand {
    max-width: 360px;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none;
}

.site-footer-logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 180px;
}

.site-footer-brand strong {
    display: block;
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 950;
}

.site-footer p {
    margin: 8px 0 0;
    color: #CBD5E1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #E2E8F0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.site-footer-links a:hover {
    transform: translateY(-1px);
    background: rgba(249, 115, 22, 0.16);
    color: #fff;
}

/* Responsive legal/footer */

@media (max-width: 760px) {
    .legal-hero {
        padding: 104px 0 46px;
        border-radius: 0 0 30px 30px;
    }

    .legal-section {
        padding: 46px 0;
    }

    .legal-content {
        padding: 22px;
        border-radius: 20px;
    }

    .legal-content ul {
        padding: 14px;
    }

    .site-footer {
        padding: 34px 0;
    }

    .site-footer-inner {
        flex-direction: column;
    }

    .site-footer-links {
        width: 100%;
        justify-content: flex-start;
    }

    .site-footer-links a {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.mail-preview-premium-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #DDE2E8;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.mail-preview-premium-logo img {
    max-width: 180px;
    max-height: 80px;
    display: block;
}

.mail-preview-premium-company {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #334155;
}

.mail-preview-premium-company strong {
    font-size: 1.2rem;
}

.mail-preview-premium-company em {
    color: #64748B;
}

.mail-preview-signature {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #DDE2E8;
    line-height: 1.6;
}

.mail-preview-professional-mentions {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: #F8FAFC;
    color: #475569;
    font-size: 0.95rem;
}
