:root {
    --sidebar-w: 17rem;
    --topbar-h: 4.5rem;
    --max-w: 78rem;
    --surface-0: #040a13;
    --surface-1: rgba(8, 15, 28, 0.92);
    --surface-2: rgba(12, 22, 40, 0.9);
    --surface-3: rgba(18, 31, 54, 0.72);
    --surface-4: rgba(255, 255, 255, 0.04);
    --line-soft: rgba(148, 163, 184, 0.12);
    --line-strong: rgba(148, 163, 184, 0.22);
    --text-strong: #f8fafc;
    --text-base: #d7e1ee;
    --text-soft: #96a6bb;
    --text-faint: #65748b;
    --brand-1: #7dd3fc;
    --brand-2: #4ade80;
    --brand-3: #f59e0b;
    --danger: #fb7185;
    --success: #86efac;
    --shadow-1: 0 12px 32px rgba(0, 0, 0, 0.22);
    --shadow-2: 0 20px 80px rgba(0, 0, 0, 0.32);
    --radius-1: 1rem;
    --radius-2: 1.4rem;
    --radius-3: 1.9rem;
    --radius-full: 9999px;
    --tx: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.demande-line-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(4.5rem, 0.85fr) minmax(5.5rem, 1fr) minmax(7rem, 1.25fr) 2.5rem;
    gap: 0.5rem;
    align-items: center;
}

.hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .demande-line-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .demande-line-grid > :first-child,
    .demande-line-grid > :nth-child(4) {
        grid-column: 1 / -1;
    }

    .demande-line-grid > :last-child {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }

    .md\:flex {
        display: flex !important;
    }

    .md\:grid {
        display: grid !important;
    }

    .md\:hidden {
        display: none !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-base);
    background:
        radial-gradient(circle at top left, rgba(74, 222, 128, 0.12), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(125, 211, 252, 0.1), transparent 28%),
        linear-gradient(180deg, #07111f 0%, #081421 48%, #0a1727 100%);
}

a,
button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

button {
    cursor: pointer;
}

img,
svg {
    display: block;
}

code {
    font-family: 'Space Grotesk', monospace;
}

.page-title,
.section-title,
.workspace-hero-title,
.public-logo-name,
.role-card-title,
.feature-title,
.timeline-title,
.contact-card-value,
.metric-strip-value,
.hero-kpi-value {
    font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-full);
}

.glass-panel,
.section-card,
.panel-card,
.board-card,
.role-card,
.timeline-card,
.feature-card,
.workspace-card,
.contact-card,
.legal-card,
.proof-item,
.tree-card,
.priority-card,
.workflow-step,
.stat-chip,
.demand-card {
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-1);
}

.glass-panel {
    background: linear-gradient(180deg, rgba(11, 19, 34, 0.86) 0%, rgba(10, 18, 32, 0.72) 100%);
    backdrop-filter: blur(22px);
    border-radius: var(--radius-3);
}

.section-card,
.panel-card,
.board-card,
.demand-card,
.workspace-card,
.contact-card,
.legal-card,
.proof-item,
.tree-card,
.priority-card,
.workflow-step,
.stat-chip {
    background: linear-gradient(180deg, rgba(10, 18, 33, 0.94) 0%, rgba(9, 16, 30, 0.84) 100%);
    border-radius: var(--radius-2);
}

.glass-panel,
.section-card,
.panel-card,
.board-card,
.priority-card,
.demand-card {
    display: grid;
    gap: 1rem;
}

.page-stack,
.page-cluster {
    display: grid;
    gap: 1.5rem;
}

.public-page {
    display: grid;
    gap: 1.5rem;
}

.hero-grid,
.split-grid,
.board-grid,
.workspace-grid,
.timeline-grid,
.contact-grid,
.legal-grid,
.proof-grid,
.creation-grid,
.stack-grid,
.hero-kpis,
.kpi-grid,
.metric-strip,
.priority-list,
.feature-grid,
.role-grid,
.flow-grid {
    display: grid;
    gap: 1rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.7fr);
}

.public-hero-grid,
.public-bottom-grid,
.public-architecture-grid {
    display: grid;
    gap: 1.25rem;
}

.public-hero-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(22rem, 0.78fr);
}

.public-bottom-grid,
.public-architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-grid,
.workspace-grid,
.feature-grid,
.proof-grid,
.creation-grid,
.board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.creation-grid.is-third {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-grid,
.metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.priority-list,
.stack-grid {
    grid-template-columns: 1fr;
}

.flow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.public-utility-bar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.16) 0%, rgba(125, 211, 252, 0.12) 55%, rgba(245, 158, 11, 0.08) 100%);
}

.public-utility-inner,
.public-header-shell,
.public-main,
.public-footer-inner {
    width: min(100%, var(--max-w));
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.public-utility-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #deefff;
}

.public-utility-links {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    color: rgba(226, 232, 240, 0.88);
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(5, 12, 23, 0.76);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.public-header-shell {
    position: relative;
}

.public-header-inner {
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.public-logo,
.sidebar-brand,
.sidebar-user,
.topbar-link,
.public-nav-link,
.pill-row,
.hero-meta,
.card-meta,
.tree-meta {
    display: flex;
    align-items: center;
}

.public-logo,
.sidebar-brand {
    gap: 0.9rem;
    text-decoration: none;
}

.public-logo-icon,
.sidebar-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #05130b;
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.public-logo-name,
.sidebar-logo-name {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-strong);
    font-weight: 700;
}

.public-logo-sub,
.sidebar-logo-sub,
.topbar-meta,
.section-copy,
.hero-copy,
.metric-strip-detail,
.priority-note,
.tree-meta,
.board-copy,
.role-card-summary,
.contact-card-detail,
.legal-card p,
.proof-item p,
.timeline-copy,
.workflow-step-copy,
.feature-body,
.empty-state,
.data-note {
    color: var(--text-soft);
}

.public-logo-sub,
.sidebar-logo-sub {
    margin: 0.18rem 0 0;
    font-size: 0.72rem;
}

.public-menu-toggle,
.topbar-toggle,
.sidebar-logout-btn,
.impersonation-stop {
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-base);
    transition: background var(--tx), border-color var(--tx), transform var(--tx);
}

.public-menu-toggle,
.topbar-toggle,
.sidebar-logout-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.public-menu-toggle:hover,
.topbar-toggle:hover,
.sidebar-logout-btn:hover,
.impersonation-stop:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-strong);
}

.public-nav-panel {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.public-nav-group,
.public-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.public-nav-link,
.public-nav-cta,
.topbar-link,
.btn {
    text-decoration: none;
}

.public-nav-link {
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-full);
    color: var(--text-soft);
    transition: background var(--tx), color var(--tx);
}

.public-nav-link:hover,
.public-nav-link.is-active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-strong);
}

.public-nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: var(--radius-full);
    transition: background var(--tx), border-color var(--tx), color var(--tx), transform var(--tx), box-shadow var(--tx);
    white-space: nowrap;
}

.public-nav-cta,
.btn-primary {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-1) 100%);
    color: #05120d;
    box-shadow: 0 12px 24px rgba(74, 222, 128, 0.18);
}

.public-nav-cta,
.btn {
    padding: 0.82rem 1.15rem;
    font-weight: 700;
}

.public-nav-cta:hover,
.btn:hover {
    transform: translateY(-1px);
}

.btn {
    border: 1px solid transparent;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-strong);
    border-color: var(--line-soft);
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
    background: transparent;
    color: var(--text-soft);
    border-color: var(--line-soft);
}

.btn-amber {
    background: rgba(245, 158, 11, 0.14);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.22);
}

.btn-danger {
    background: rgba(251, 113, 133, 0.14);
    color: #fecdd3;
    border-color: rgba(251, 113, 133, 0.22);
}

.btn-sm {
    padding: 0.62rem 0.9rem;
    font-size: 0.88rem;
}

.btn-xs {
    padding: 0.48rem 0.75rem;
    font-size: 0.78rem;
}

.btn-full {
    width: 100%;
}

.public-main {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.public-hero-shell {
    position: relative;
}

.public-hero-panel {
    position: relative;
    overflow: hidden;
    padding: 2.2rem;
    min-height: 100%;
}

.public-hero-panel::before {
    content: '';
    position: absolute;
    inset: -10% auto auto -5%;
    width: 18rem;
    height: 18rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.16) 0%, transparent 68%);
    pointer-events: none;
}

.public-hero-panel::after {
    content: '';
    position: absolute;
    inset: auto -5% -15% auto;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.16) 0%, transparent 72%);
    pointer-events: none;
}

.public-stage-stack {
    display: grid;
    gap: 1.25rem;
}

.public-stage-card,
.public-access-card,
.public-trust-band,
.public-process-card,
.public-cta-card,
.public-contact-card,
.public-legal-card {
    position: relative;
    overflow: hidden;
}

.public-stage-card {
    padding: 1.5rem;
    border-radius: var(--radius-3);
    border: 1px solid rgba(125, 211, 252, 0.16);
    background:
        linear-gradient(180deg, rgba(9, 20, 35, 0.94) 0%, rgba(10, 17, 30, 0.88) 100%);
    box-shadow: var(--shadow-2);
}

.public-stage-glow {
    position: absolute;
    inset: -10% 15% auto auto;
    width: 12rem;
    height: 12rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.18) 0%, transparent 72%);
    pointer-events: none;
}

.public-stage-head,
.section-head-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.platform-stage-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.platform-stage-list.compact {
    margin-top: 0;
}

.platform-stage-item {
    position: relative;
    padding: 1rem 1rem 1rem 1.1rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.platform-stage-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 9999px;
    background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand-1) 100%);
}

.platform-stage-item h3 {
    margin: 0.3rem 0 0;
    color: var(--text-strong);
    font-size: 1rem;
}

.platform-stage-item p {
    margin: 0.55rem 0 0;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.9rem;
}

.platform-stage-label {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-1);
    font-weight: 800;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.public-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-base);
    font-size: 0.8rem;
}

.public-chip.is-accent {
    border-color: rgba(74, 222, 128, 0.18);
    background: rgba(74, 222, 128, 0.08);
    color: #dfffea;
}

.hero-proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.hero-proof-strip span {
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.public-auth-form {
    display: grid;
    gap: 0.9rem;
}

.public-trust-band {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1.25rem;
    padding: 1.6rem;
}

.public-trust-copy {
    max-width: 28rem;
}

.public-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.public-trust-item {
    padding: 1rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.public-trust-item h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.98rem;
    line-height: 1.35;
}

.public-trust-item p {
    margin: 0.7rem 0 0;
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.9rem;
}

.public-feature-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.public-role-grid {
    gap: 1.15rem;
}

.public-role-card {
    position: relative;
    overflow: hidden;
}

.public-role-card::after {
    content: '';
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.public-role-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.68rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--text-soft);
    font-size: 0.76rem;
}

.public-timeline-grid {
    gap: 1rem;
}

.public-timeline-card {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(12, 20, 34, 0.96) 0%, rgba(12, 17, 28, 0.86) 100%);
}

.public-cta-card {
    background:
        linear-gradient(145deg, rgba(14, 29, 42, 0.98) 0%, rgba(9, 19, 30, 0.88) 100%);
}

.public-page-hero-wide {
    padding: 2.15rem;
}

.public-runbook-list li {
    font-size: 0.98rem;
}

.public-contact-card,
.public-legal-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.contact-map-visual > p {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
    margin: 0;
    color: #f8fafc;
    font-weight: 600;
}

.public-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(4, 10, 18, 0.72);
}

.public-footer-inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.public-footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.public-footer-links a,
.workspace-card-link,
.role-card-link {
    color: var(--brand-1);
}

.public-footer-brand {
    margin: 0;
    color: var(--text-strong);
    font-weight: 700;
}

.public-footer-copy,
.public-footer-note {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: var(--sidebar-w);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    background: rgba(5, 11, 21, 0.96);
    border-right: 1px solid rgba(148, 163, 184, 0.08);
    z-index: 40;
}

.sidebar-header {
    padding: 1.4rem 1.2rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    display: grid;
    gap: 1rem;
}

.sidebar-section-label {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-1);
}

.sidebar-context-title {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-strong);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.8rem;
    display: grid;
    gap: 0.3rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    color: var(--text-soft);
    text-decoration: none;
    transition: background var(--tx), color var(--tx), transform var(--tx);
}

.sidebar-nav-item:hover,
.sidebar-nav-item.is-active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-strong);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar-user {
    gap: 0.8rem;
    min-width: 0;
}

.sidebar-avatar {
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 2.3rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.14);
    color: var(--success);
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-user-copy {
    min-width: 0;
}

.sidebar-user-name,
.sidebar-user-role {
    margin: 0;
}

.sidebar-user-name {
    color: var(--text-strong);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.76rem;
    color: var(--text-faint);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(1, 7, 13, 0.72);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.sidebar-overlay--visible {
    display: block;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
    background: rgba(5, 11, 21, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(16px);
}

.topbar-context,
.topbar-right,
.impersonation-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-breadcrumb,
.topbar-meta {
    margin: 0;
}

.topbar-breadcrumb {
    font-size: 0.84rem;
    color: var(--text-soft);
}

.topbar-breadcrumb strong {
    color: var(--text-strong);
}

.topbar-meta {
    font-size: 0.8rem;
}

.topbar-link {
    gap: 0.45rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-full);
    color: var(--text-base);
}

.impersonation-pill {
    flex-wrap: wrap;
    padding: 0.42rem 0.55rem 0.42rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    font-size: 0.8rem;
}

.impersonation-stop {
    border-radius: var(--radius-full);
    padding: 0.4rem 0.7rem;
    color: #fde68a;
}

.app-content {
    padding: 1.6rem 1.6rem 3rem;
}

.alert,
.form-result {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.alert {
    margin-bottom: 1rem;
}

.alert-error,
.form-result.is-error {
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.24);
    color: #fecdd3;
}

.alert-success,
.form-result.is-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.24);
    color: #bbf7d0;
}

.form-result {
    margin-top: 0.8rem;
}

.form-result:empty {
    display: none;
}

.section-block,
.hero-panel,
.workspace-hero,
.panel-card,
.public-page-hero,
.section-card {
    padding: 1.6rem;
}

.hero-panel,
.public-page-hero {
    padding: 2rem;
}

.pill-row {
    gap: 0.6rem;
    flex-wrap: wrap;
}

.public-pill,
.badge,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--radius-full);
}

.public-pill {
    padding: 0.55rem 0.85rem;
    background: rgba(8, 31, 39, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.18);
    color: #dff8ff;
    font-size: 0.82rem;
}

.page-title {
    margin: 0.85rem 0 0;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.02;
    color: var(--text-strong);
    letter-spacing: -0.05em;
}

.section-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-1);
    font-weight: 800;
}

.section-title,
.workspace-hero-title {
    margin: 0.45rem 0 0;
    font-size: clamp(1.45rem, 2.3vw, 2.1rem);
    line-height: 1.15;
    color: var(--text-strong);
}

.hero-copy,
.section-copy {
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.hero-meta {
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.hero-kpi-card,
.metric-strip-card {
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-kpi-value,
.metric-strip-value {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-strong);
}

.hero-kpi-label,
.metric-strip-label,
.workflow-step-index,
.stat-chip-label {
    margin: 0.35rem 0 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-2);
    font-weight: 800;
}

.hero-kpi-note,
.metric-strip-detail,
.workflow-step-copy {
    margin: 0.45rem 0 0;
    font-size: 0.86rem;
    line-height: 1.55;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 1.1rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(14, 28, 44, 0.92) 0%, rgba(12, 20, 36, 0.86) 100%);
    border: 1px solid rgba(74, 222, 128, 0.18);
}

.metric-card::after {
    content: '';
    position: absolute;
    width: 7rem;
    height: 7rem;
    right: -2rem;
    top: -3rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.14) 0%, transparent 70%);
}

.metric-label {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
}

.metric-value {
    margin: 0.45rem 0 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-strong);
}

.mono-data {
    font-variant-numeric: tabular-nums;
}

.feature-card,
.role-card,
.timeline-card,
.workspace-card,
.contact-card,
.legal-card,
.proof-item,
.priority-card,
.workflow-step {
    padding: 1.4rem;
}

.demand-card {
    padding: 1.4rem;
}

.feature-title,
.role-card-title,
.timeline-title {
    margin: 0.45rem 0 0;
    font-size: 1.1rem;
    color: var(--text-strong);
}

.feature-body,
.role-card-summary,
.timeline-copy,
.workspace-card-copy,
.contact-card-detail,
.proof-item p {
    margin: 0.75rem 0 0;
    line-height: 1.7;
}

.role-card-audience {
    margin: 0.8rem 0 0;
    font-size: 0.85rem;
    color: var(--text-base);
}

.role-card-list,
.feature-list,
.check-list,
.number-list,
.subtle-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.role-card-list li,
.feature-list li,
.check-list li,
.number-list li,
.subtle-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-base);
    line-height: 1.65;
}

.role-card-list li::before,
.feature-list li::before,
.check-list li::before,
.subtle-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
}

.number-list {
    counter-reset: runbook;
}

.number-list li {
    padding-left: 2.1rem;
}

.number-list li::before {
    counter-increment: runbook;
    content: counter(runbook);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(125, 211, 252, 0.14);
    color: var(--brand-1);
    font-size: 0.76rem;
    font-weight: 800;
}

.workspace-card-link,
.role-card-link {
    display: inline-flex;
    margin-top: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.timeline-step {
    color: var(--brand-1);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.demo-account-list,
.tree-list,
.line-items {
    display: grid;
    gap: 0.8rem;
}

.demo-account-card {
    width: 100%;
    text-align: left;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    border-radius: 1rem;
    color: var(--text-strong);
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.demo-account-role,
.contact-card-value {
    font-weight: 700;
    color: var(--text-strong);
}

.demo-account-email {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.inline-code {
    display: inline-block;
    padding: 0.18rem 0.5rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    color: #dff8ff;
}

.workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    gap: 1rem;
}

.workspace-hero-content {
    display: grid;
    gap: 1rem;
}

.workspace-hero-copy {
    margin: 0;
    line-height: 1.7;
    color: var(--text-soft);
}

.priority-card h3,
.board-title,
.tree-title {
    margin: 0;
    color: var(--text-strong);
    font-size: 1rem;
}

.priority-card p,
.board-copy,
.tree-card p,
.contact-card-label,
.card-meta,
.data-note {
    margin: 0.45rem 0 0;
}

.priority-item {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.priority-value {
    color: var(--text-strong);
    font-weight: 700;
}

.board-card,
.panel-card {
    display: grid;
    gap: 1rem;
}

.board-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.workflow-step {
    display: grid;
    gap: 0.55rem;
}

.workflow-step-title {
    margin: 0;
    color: var(--text-strong);
}

.tree-card {
    display: grid;
    gap: 0.7rem;
    padding: 1.2rem;
}

.tree-meta,
.card-meta {
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.chip {
    padding: 0.38rem 0.7rem;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text-base);
}

.subsection-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 1.2rem;
    padding: 1rem;
}

.stat-chip {
    padding: 1rem;
}

.stat-chip-value {
    margin: 0.35rem 0 0;
    font-size: 1rem;
    color: var(--text-strong);
    font-weight: 700;
}

.field-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-base);
    font-size: 0.86rem;
    font-weight: 600;
}

.field-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(3, 8, 16, 0.6);
    color: var(--text-strong);
    outline: none;
    transition: border-color var(--tx), box-shadow var(--tx), background var(--tx);
}

.field-input::placeholder {
    color: #5e6d82;
}

.field-input:focus {
    border-color: rgba(125, 211, 252, 0.38);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.08);
    background: rgba(5, 10, 18, 0.82);
}

.field-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2396a6bb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1rem;
    padding-right: 2.6rem;
}

.field-textarea {
    min-height: 6rem;
    resize: vertical;
}

.table-shell {
    overflow-x: auto;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.table-shell table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
}

.table-shell th,
.table-shell td {
    padding: 0.95rem 1rem;
    text-align: left;
    vertical-align: top;
}

.table-shell th {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-faint);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.table-shell td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--text-base);
    font-size: 0.9rem;
}

.table-shell tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-shell tbody tr:last-child td {
    border-bottom: 0;
}

.badge {
    padding: 0.3rem 0.68rem;
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.badge-neutral {
    background: rgba(148, 163, 184, 0.12);
    color: #dbe7f3;
}

.badge-success {
    background: rgba(74, 222, 128, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #bbf7d0;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

.badge-danger {
    background: rgba(251, 113, 133, 0.14);
    border: 1px solid rgba(251, 113, 133, 0.2);
    color: #fecdd3;
}

.empty-state {
    padding: 1.3rem;
    border-radius: 1.1rem;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.contact-card-label {
    color: var(--brand-2);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card-value {
    margin-top: 0.45rem;
    font-size: 1.12rem;
}

.legal-card .section-title {
    font-size: 1.15rem;
}

.text-brand {
    color: var(--brand-1);
}

.text-soft {
    color: var(--text-soft);
}

.has-js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
}

.has-js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 600ms ease, transform 600ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

@media (max-width: 1100px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--tx);
    }

    .sidebar.sidebar--open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .topbar-toggle,
    .public-menu-toggle {
        display: inline-flex;
    }

    .public-nav-panel {
        display: none;
        position: absolute;
        left: 1.5rem;
        right: 1.5rem;
        top: calc(100% + 0.8rem);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 1.2rem;
        background: rgba(5, 12, 22, 0.97);
        border: 1px solid rgba(148, 163, 184, 0.12);
        box-shadow: var(--shadow-2);
    }

    .public-nav-panel.is-open {
        display: flex;
    }

    .public-nav-group,
    .public-actions {
        flex-direction: column;
        width: 100%;
    }

    .public-nav-link,
    .public-nav-cta {
        justify-content: center;
    }

    .hero-grid,
    .public-hero-grid,
    .public-bottom-grid,
    .public-architecture-grid,
    .public-trust-band,
    .public-trust-grid,
    .split-grid,
    .workspace-grid,
    .role-grid,
    .timeline-grid,
    .contact-grid,
    .legal-grid,
    .proof-grid,
    .board-grid,
    .creation-grid,
    .creation-grid.is-third,
    .workspace-hero,
    .hero-kpis,
    .kpi-grid,
    .metric-strip,
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .public-page-hero,
    .workspace-hero,
    .panel-card,
    .section-card {
        padding: 1.4rem;
    }
}

@media (min-width: 1101px) {
    .public-menu-toggle,
    .topbar-toggle {
        display: none;
    }
}

@media (max-width: 680px) {
    .public-utility-inner,
    .public-header-shell,
    .public-main,
    .public-footer-inner,
    .app-content,
    .app-topbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .app-content {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .public-hero-panel,
    .public-page-hero-wide,
    .public-stage-card {
        padding: 1.4rem;
    }

    .hero-proof-strip {
        gap: 0.5rem;
    }

    .topbar-right {
        display: none;
    }
}

.agrival-logo-mark {
    color: #052017;
    background:
        linear-gradient(135deg, #34d399 0%, #7dd3fc 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 26px rgba(16, 185, 129, 0.22);
}

.agrival-public-header {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.agrival-public-footer {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.agrival-dashboard-shell {
    color: #e5edf7;
    background:
        linear-gradient(135deg, #06111f 0%, #0b1728 45%, #101827 100%);
}

.agrival-dashboard-main {
    background:
        linear-gradient(180deg, rgba(5, 13, 25, 0.96) 0%, rgba(9, 16, 28, 0.98) 100%);
}

html[data-role="producteur"] .agrival-dashboard-main {
    background:
        linear-gradient(180deg, rgba(5, 28, 20, 0.82) 0%, rgba(8, 15, 26, 0.98) 42%, rgba(9, 16, 28, 1) 100%);
}

html[data-role="agent"] .agrival-dashboard-main {
    background:
        linear-gradient(180deg, rgba(11, 23, 46, 0.86) 0%, rgba(8, 15, 27, 0.98) 42%, rgba(9, 16, 28, 1) 100%);
}

html[data-role="investisseur"] .agrival-dashboard-main {
    background:
        linear-gradient(180deg, rgba(34, 24, 7, 0.72) 0%, rgba(8, 15, 27, 0.98) 42%, rgba(9, 16, 28, 1) 100%);
}

html[data-role="assureur"] .agrival-dashboard-main {
    background:
        linear-gradient(180deg, rgba(41, 18, 30, 0.66) 0%, rgba(8, 15, 27, 0.98) 42%, rgba(9, 16, 28, 1) 100%);
}

.agrival-sidebar {
    background:
        linear-gradient(180deg, rgba(4, 12, 23, 0.98) 0%, rgba(8, 14, 25, 0.98) 100%);
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.22);
}

.agrival-dash-header {
    background:
        linear-gradient(90deg, rgba(7, 15, 28, 0.96) 0%, rgba(13, 22, 36, 0.96) 100%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.dash-nav-item {
    position: relative;
    border: 1px solid transparent;
}

.dash-nav-item::before {
    content: '';
    width: 3px;
    align-self: stretch;
    border-radius: 9999px;
    background: transparent;
}

.dash-nav-item.bg-slate-800,
.dash-nav-item.is-active,
.dash-nav-item:hover {
    border-color: rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(90deg, rgba(16, 185, 129, 0.14) 0%, rgba(30, 41, 59, 0.86) 100%) !important;
    color: #f8fafc;
}

.dash-nav-item.bg-slate-800::before,
.dash-nav-item.is-active::before,
.dash-nav-item:hover::before {
    background: linear-gradient(180deg, #34d399 0%, #38bdf8 100%);
}

.dash-nav-item .nav-icon {
    color: #7dd3fc;
}

.admin-subtab-btn,
.cms-subtab-btn {
    border-bottom: 2px solid transparent;
    color: #94a3b8;
}

.admin-subtab-btn.active,
.cms-subtab-btn.active {
    border-bottom-color: #34d399;
    color: #34d399;
}

.dash-tab > .mb-8:first-child > .rounded-2xl,
.dash-tab [class*="bg-slate-900"][class*="border-slate-800"],
.cms-subtab [class*="bg-slate-900"][class*="border-slate-800"] {
    border-color: rgba(148, 163, 184, 0.14) !important;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(9, 16, 28, 0.92) 100%) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.dash-tab > .mb-8:first-child > .rounded-2xl {
    position: relative;
    overflow: hidden;
}

.dash-tab > .mb-8:first-child > .rounded-2xl::after {
    content: '';
    position: absolute;
    inset: 0 0 auto auto;
    width: min(34rem, 48%);
    height: 100%;
    opacity: 0.22;
    pointer-events: none;
    background-image: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.8)), var(--role-image);
    background-size: cover;
    background-position: center;
}

html[data-role="producteur"] {
    --role-image: url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=900&q=80");
}

html[data-role="agent"] {
    --role-image: url("https://images.unsplash.com/photo-1581090464777-f3220bbe1b8b?auto=format&fit=crop&w=900&q=80");
}

html[data-role="investisseur"] {
    --role-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=900&q=80");
}

html[data-role="assureur"] {
    --role-image: url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=900&q=80");
}

.dash-tab > .mb-8:first-child > .rounded-2xl > * {
    position: relative;
    z-index: 1;
}

.dash-tab .grid .rounded-2xl.bg-slate-900,
.dash-tab .space-y-4 > .rounded-2xl.bg-slate-900 {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dash-tab .grid .rounded-2xl.bg-slate-900:hover,
.dash-tab .space-y-4 > .rounded-2xl.bg-slate-900:hover {
    border-color: rgba(52, 211, 153, 0.24) !important;
    transform: translateY(-1px);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.dash-tab table thead,
.cms-subtab table thead {
    background: rgba(15, 23, 42, 0.82) !important;
}

.dash-tab table th,
.cms-subtab table th {
    color: #93a4ba;
    letter-spacing: 0.08em;
}

.dash-tab table tbody tr,
.cms-subtab table tbody tr {
    transition: background 160ms ease;
}

.dash-tab table tbody tr:hover,
.cms-subtab table tbody tr:hover {
    background: rgba(15, 23, 42, 0.72) !important;
}

.dash-tab input,
.dash-tab select,
.dash-tab textarea,
.cms-subtab input,
.cms-subtab select,
.cms-subtab textarea,
#login-modal input {
    border-color: rgba(148, 163, 184, 0.18) !important;
    background: rgba(2, 8, 20, 0.68) !important;
}

.dash-tab input:focus,
.dash-tab select:focus,
.dash-tab textarea:focus,
.cms-subtab input:focus,
.cms-subtab select:focus,
.cms-subtab textarea:focus,
#login-modal input:focus {
    border-color: rgba(52, 211, 153, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.badge {
    border: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 24%, transparent);
}

@supports not (border-color: color-mix(in srgb, white 20%, transparent)) {
    .badge {
        border-color: rgba(148, 163, 184, 0.2);
    }
}
