:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7faf7;
    --surface-strong: #ffffff;
    --text: #111111;
    --muted: #5f5f5f;
    --line: #e5e7e5;
    --accent: #198754;
    --accent-dark: #146c43;
    --accent-soft: #e9f7ef;
    --warn: #b7791f;
    --danger: #c53030;
    --success: #1f7a45;
    --shadow: 0 18px 48px rgba(17, 17, 17, 0.06);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 104px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cfe8da;
    border-radius: 999px;
    background: #ffffff;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle:hover {
    background: var(--accent-soft);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.site-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0 64px;
}

.topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 14px;
    z-index: 10;
}

.topbar.topbar-public {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.session-actions {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.brand strong {
    font-size: 1.05rem;
}

.brand small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a:not(.button) {
    color: var(--text);
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
}

.button.ghost {
    background: #ffffff;
    color: var(--accent);
    border-color: #cfe8da;
}

.button.ghost:hover {
    background: var(--accent-soft);
}

.button.ghost.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.button.ghost.active:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.button.danger {
    background: #fff1f1;
    color: var(--danger);
    border-color: #efc1c1;
}

.button.danger:hover {
    background: #ffe0e0;
}

.flash {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.flash-success {
    border-color: #cfe8da;
    color: var(--success);
}

.flash-error {
    border-color: #f1c9c9;
    color: var(--danger);
}

.footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 44px;
    color: var(--muted);
    font-size: 0.95rem;
}

.workspace-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
    padding: 14px;
    border: 1px solid #e3ebe4;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
    box-shadow: 0 16px 36px rgba(28, 72, 46, 0.05);
}

.workspace-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
}

.workspace-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.focus-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 6px;
}

.focus-step {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f5f7f5;
    border: 1px solid #dde5df;
    color: var(--muted);
    font-weight: 700;
}

a.focus-step:hover {
    border-color: #b7d7bf;
    color: #21653b;
    background: #eef8f0;
}

.focus-step.active {
    background: #e7f4ea;
    border-color: #b7d7bf;
    color: #21653b;
}

.hero,
.dashboard-hero,
.split,
.dashboard-grid,
.feature-grid {
    display: grid;
    gap: 24px;
}

.hero,
.dashboard-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    margin-top: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.panel,
.auth-card,
.pricing-card,
.success-card,
.callout,
.intro-card,
.legal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.auth-card,
.pricing-card,
.success-card,
.callout,
.intro-card,
.legal-card {
    padding: 36px;
}

.hero-copy {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.hero-panel {
    background: linear-gradient(180deg, #f8fbf8 0%, #eef6f0 100%);
    border-color: #d7e4da;
}

.ui-preview {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.ui-preview-pane {
    display: none;
    gap: 14px;
}

.ui-preview-pane.is-active {
    display: grid;
}

.ui-preview-bar,
.proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ui-pill,
.proof-item,
.ui-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 700;
}

.ui-pill {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #d7e4da;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
}

.ui-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.ui-preview-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #d7e4da;
}

.ui-preview-card strong,
.ui-preview-card p {
    margin: 0;
}

.ui-preview-card p {
    color: var(--muted);
    margin-top: 6px;
}

.ui-tag {
    background: #eff8f1;
    color: #21653b;
    border: 1px solid #cfe8da;
}

.ui-tag.soft {
    background: #ffffff;
}

.proof-strip {
    justify-content: center;
}

.proof-item {
    background: #ffffff;
    border: 1px solid #dfe7e1;
    color: #21653b;
}

.compact-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.compact-inline-form input[type="text"] {
    flex: 1 1 320px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.kanban-column {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    box-shadow: var(--shadow);
}

.kanban-card {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #dfe7e1;
    border-radius: 16px;
    background: #ffffff;
}

.kanban-card strong,
.kanban-card p {
    margin: 0;
}

.kanban-card p {
    color: var(--muted);
    margin-top: 8px;
}

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

.comparison-grid strong {
    display: block;
    margin-bottom: 8px;
}

.proof-timeline-card {
    position: relative;
    border-left: 4px solid #cfe8da;
}

.proof-timeline-card::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px #eef8f0;
}

.progress-meter {
    height: 12px;
    border-radius: 999px;
    background: #eaf2ec;
    overflow: hidden;
}

.progress-meter span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #198754 0%, #2ca36b 100%);
}

.pricing-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
    border-color: #dbe7de;
}

.pricing-hero-price {
    margin: 8px 0 18px;
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    line-height: 1.1;
    white-space: nowrap;
}

.panel {
    padding: 26px;
}

.admin-hero {
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
    box-shadow: var(--shadow);
}

.admin-hero h1,
.admin-hero p {
    margin: 0;
}

.admin-actions,
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.admin-section-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

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

.admin-kpi {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #ffffff;
}

.admin-kpi strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 8px;
}

.admin-kpi span {
    color: var(--muted);
    font-weight: 700;
}

.admin-mini-list {
    display: grid;
    gap: 14px;
}

.admin-mini-item {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.admin-mini-item strong {
    display: block;
    margin-bottom: 6px;
}

.admin-mini-item p,
.admin-mini-item small {
    margin: 0;
    color: var(--muted);
}

.admin-note {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: #21653b;
    border: 1px solid #cfe8da;
}

.hero h1,
.section h1,
.dashboard-hero h1,
.legal-card h1,
.intro-card h1 {
    margin: 12px 0 16px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: var(--accent);
}

.section h2,
.panel h2,
.legal-card h2 {
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    margin: 10px 0 14px;
    letter-spacing: -0.04em;
    color: var(--accent);
}

.feature-card h3,
.callout h3 {
    margin-top: 0;
    font-size: 1.16rem;
    color: var(--accent);
}

.hero p,
.section p,
.dashboard-hero p,
.legal-card p,
.legal-card li {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.09em;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0 18px;
}

.hero-note,
.notice,
.field-help {
    font-size: 0.96rem;
    color: var(--muted);
    line-height: 1.7;
}

.section {
    margin-top: 48px;
}

.section-soft {
    padding: 4px 0;
}

.section-heading {
    margin-bottom: 22px;
}

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

.stat-card,
.feature-card,
.task-card,
.job-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.stat-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card.accent {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.stat-card.accent span,
.stat-card.accent strong {
    color: #ffffff;
}

.stat-card b {
    font-size: 1.9rem;
    color: var(--text);
}

.stat-card span,
.feature-card p {
    color: var(--muted);
}

.feature-card-alert {
    border-color: #f2c6bf;
    background: #fff8f7;
}

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

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

.pricing-card .feature-grid-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.split {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: start;
}

.callout ul,
.pricing-list,
.summary-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.9;
}

.narrow {
    width: min(760px, 100%);
    margin-inline: auto;
}

.narrow-page {
    width: min(940px, 100%);
    margin-inline: auto;
}

.dashboard-sidecard {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #f7fbf8 0%, #edf6ef 100%);
    border: 1px solid #cfe1d4;
    display: grid;
    gap: 12px;
    align-content: start;
    box-shadow: var(--shadow);
}

.dashboard-sidecard strong {
    color: var(--accent);
    font-size: 1.05rem;
}

.dashboard-sidecard span {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #dce9df;
}

.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.overview-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.overview-card strong {
    display: block;
    font-size: 2rem;
    color: var(--accent);
}

.overview-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

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

.form-panel {
    margin-top: 24px;
}

.panel-large {
    grid-row: span 2;
}

.stacked-panel + .stacked-panel {
    margin-top: 20px;
}

.narrow-page .intro-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    border-color: #dbe7de;
}

.narrow-page .stacked-panel {
    border-color: #dbe7de;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.narrow-page .stacked-panel:hover {
    transform: translateY(-1px);
    border-color: #c6dccd;
    box-shadow: 0 20px 42px rgba(31, 84, 52, 0.08);
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    white-space: nowrap;
}

.badge-soft {
    background: #f3f5f3;
    color: var(--muted);
}

.badge-priority-haute {
    background: #ffe3e0;
    color: #a12b1f;
}

.badge-priority-moyenne {
    background: #fff3d9;
    color: #8b5b00;
}

.badge-priority-normale {
    background: #e7f4ea;
    color: #21653b;
}

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

.filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.compact-filters {
    align-items: end;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d8ddd8;
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #89c6a4;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.12);
}

textarea {
    resize: vertical;
}

.form-errors {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff4f4;
    color: var(--danger);
    border: 1px solid #f1d1d1;
}

.pricing-card,
.success-card,
.legal-card {
    margin-top: 40px;
}

.paypal-placeholder {
    padding: 18px;
    border-radius: 18px;
    background: #fff8e8;
    border: 1px solid #f0ddb3;
    color: var(--warn);
}

.job-card strong,
.task-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.job-card small,
.task-card small {
    color: var(--muted);
}

.job-card p {
    color: var(--muted);
    margin: 12px 0;
    line-height: 1.7;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
}

.task-card + .task-card,
.job-card + .job-card {
    margin-top: 16px;
}

.task-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.checkbox-line input {
    width: auto;
    accent-color: var(--accent);
}

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

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #d8e9de;
    background: #f9fcfa;
    color: var(--text);
    font-weight: 700;
}

.checkbox-card input {
    width: auto;
    accent-color: var(--accent);
}

.text-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--accent);
    font-weight: 800;
}

.inline-link {
    display: inline-flex;
    margin-top: 0;
}

.send-form {
    margin-top: 16px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

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

.top-gap {
    margin-top: 18px;
}

.bottom-gap {
    margin-bottom: 18px;
}

.align-end {
    align-items: end;
}

.inline-form {
    margin-top: 10px;
}

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

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid #d8e9de;
    color: var(--accent);
    font-weight: 800;
    text-align: center;
}

.quick-link:hover {
    background: var(--accent-soft);
}

.focus-priority-card {
    border: 2px solid #7bb489;
    box-shadow: 0 18px 40px rgba(32, 92, 56, 0.12);
}

.focus-priority-note {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eef8f0;
    border: 1px solid #cfe6d5;
    color: #205c38;
    font-weight: 700;
}

.text-preview {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fafcf9;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
}

.feature-card-compact small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 700;
}

.score-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.match-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
    background: #f3f5f3;
    color: var(--muted);
}

.status-a_relire,
.status-brouillon {
    background: #fff3d9;
    color: #8b5b00;
}

.status-pret_a_envoyer,
.status-valide {
    background: #e7f4ea;
    color: #21653b;
}

.status-envoye {
    background: #eef3ff;
    color: #2859a6;
}

.status-selectionnee,
.status-documents_prets {
    background: #e7f4ea;
    color: #21653b;
}

.status-email_envoye,
.status-relance {
    background: #eef3ff;
    color: #2859a6;
}

.status-reponse_recue,
.status-a_traiter {
    background: #fff3d9;
    color: #8b5b00;
}

.status-traite,
.status-cloturee {
    background: #f3f5f3;
    color: var(--muted);
}

.blocking-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 800;
}

.blocking-contact {
    background: #ffe3e0;
    color: #a12b1f;
}

.blocking-reply,
.blocking-document {
    background: #fff3d9;
    color: #8b5b00;
}

.blocking-send,
.blocking-followup {
    background: #eef3ff;
    color: #2859a6;
}

.blocking-next {
    background: #e7f4ea;
    color: #21653b;
}

.summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 16px;
}

.narrow-page .summary-strip {
    margin-top: 14px;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fbfcfb;
    border: 1px solid #dbe6de;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.summary-chip:hover {
    background: #eef8f0;
    border-color: #bfd8c6;
    transform: translateY(-1px);
}

.summary-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.summary-chip[href] {
    color: var(--accent);
}

.summary-chip[href]:hover {
    background: #eef8f0;
    border-color: #bfd8c6;
}

.fold-card {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfcfb;
    overflow: hidden;
}

.fold-card summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-weight: 800;
    color: var(--accent);
}

.fold-card summary::-webkit-details-marker {
    display: none;
}

.fold-card[open] summary {
    border-bottom: 1px solid var(--line);
    background: #f7faf7;
}

.fold-body {
    padding: 18px;
}

.match-haute {
    background: #e9f7ef;
    color: #146c43;
}

.match-moyenne {
    background: #fff8e8;
    color: #b7791f;
}

.match-basse {
    background: #fff4f4;
    color: #c53030;
}

.match-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.match-reasons span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f5f3;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.cv-preview {
    margin-top: 16px;
    border: 1px solid #d8e9de;
    border-radius: 18px;
    background: #fcfffc;
    overflow: hidden;
}

.cv-preview-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
    background: linear-gradient(180deg, #eef9f1 0%, #f8fdf9 100%);
    color: var(--accent);
}

.cv-doc-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4d7a5f;
}

.cv-preview-head strong {
    font-size: 1.3rem;
    line-height: 1.2;
    color: #111111;
}

.cv-preview-body {
    padding: 22px;
    color: var(--text);
    line-height: 1.8;
}

.cv-premium-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
}

.cv-sidebar {
    padding: 18px;
    border-radius: 18px;
    background: #f5fbf7;
    border: 1px solid #dceee1;
}

.cv-main-column {
    min-width: 0;
}

.cv-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.cv-section {
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2efe6;
}

.cv-section h3 {
    margin: 0 0 10px;
    color: #1f7a3a;
    font-size: 0.95rem;
}

.cv-section p {
    margin: 0;
    color: var(--text);
}

.cv-section p + p,
.cv-bullet + .cv-bullet {
    margin-top: 8px;
}

.cv-bullet {
    position: relative;
    padding-left: 14px;
    color: var(--text);
}

.cv-bullet::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #1f7a3a;
}

.cv-preview.template-compact .cv-preview-head {
    background: #f3f5f3;
    color: #111111;
}

.cv-preview.template-compact .cv-preview-body {
    font-size: 0.96rem;
    line-height: 1.65;
}

.cv-preview.template-compact .cv-preview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.cv-preview.template-compact .cv-premium-layout {
    grid-template-columns: 1fr;
}

.cv-preview.template-emphasis {
    border-color: #bfe2cd;
    box-shadow: 0 18px 48px rgba(25, 135, 84, 0.10);
}

.cv-preview.template-emphasis .cv-preview-head {
    background: #198754;
    color: #ffffff;
}

.cv-preview.template-emphasis .cv-doc-label,
.cv-preview.template-emphasis .cv-preview-head strong {
    color: #ffffff;
}

.cv-preview.template-emphasis .cv-section {
    border-color: #dceee1;
    box-shadow: 0 8px 24px rgba(25, 135, 84, 0.06);
}

.cv-preview.template-emphasis .cv-sidebar {
    background: #f0faf3;
    border-color: #cfe7d7;
}

.letter-preview {
    margin-top: 16px;
    border: 1px solid #eadfc7;
    border-radius: 18px;
    background: #fffdf8;
    overflow: hidden;
}

.letter-preview-head {
    padding: 16px 18px;
    background: #fff4da;
    color: #7a5d12;
}

.letter-preview-body {
    padding: 18px;
    color: var(--text);
    line-height: 1.85;
}

.letter-preview.letter-modern {
    border-color: #d8e9de;
    background: #fbfffc;
}

.letter-preview.letter-modern .letter-preview-head {
    background: #e9f7ef;
    color: #146c43;
}

.letter-preview.letter-formal {
    border-color: #d9dde4;
    background: #fcfcfd;
}

.letter-preview.letter-formal .letter-preview-head {
    background: #f3f4f6;
    color: #1f2937;
}

.print-page {
    background: #f4f6f4;
}

.print-toolbar {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px;
}

.print-wrap {
    width: min(960px, calc(100% - 24px));
    margin: 0 auto 40px;
}

@media print {
    .print-toolbar {
        display: none;
    }

    .print-page {
        background: #ffffff;
    }

    .print-wrap {
        width: 100%;
        margin: 0;
    }

    .cv-preview,
    .letter-preview {
        box-shadow: none;
        border-radius: 0;
        border-color: #cccccc;
    }

    .checkbox-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .cv-premium-layout,
    .cv-preview-grid {
        grid-template-columns: 1fr;
    }
}

.reply-body {
    padding: 18px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid #d8e9de;
    color: var(--text);
    line-height: 1.8;
}

.timeline-item + .timeline-item {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.timeline-item strong {
    display: block;
    color: var(--text);
}

.timeline-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.timeline-item p {
    margin: 8px 0 0;
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 16px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.data-table th {
    color: var(--accent);
    font-size: 0.95rem;
    white-space: nowrap;
}

.data-table td small {
    color: var(--muted);
}

.data-table tr.row-warn td {
    background: #fffaf0;
}

.data-table tr.row-danger td {
    background: #fff4f4;
}

.data-table tr.row-ok td {
    background: #ffffff;
}

code {
    padding: 2px 7px;
    border-radius: 8px;
    background: #f3f5f3;
    border: 1px solid var(--line);
    font-size: 0.93em;
}

@media (max-width: 1080px) {
    .hero,
    .dashboard-hero,
    .split,
    .feature-grid,
    .feature-grid-steps,
    .dashboard-grid,
    .dashboard-grid-wide,
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .panel-large {
        grid-row: auto;
    }

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

    .admin-grid-2,
    .admin-grid-3 {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 18px, 1240px);
        padding-top: 18px;
    }

    .topbar {
        position: static;
        padding: 16px;
        border-radius: 20px;
    }

    .topbar.topbar-public {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-mark {
        width: 76px;
        height: 76px;
        border-radius: 20px;
    }

    .session-actions {
        width: 100%;
    }

    .hero-copy,
    .hero-panel,
    .auth-card,
    .pricing-card,
    .success-card,
    .callout,
    .intro-card,
    .legal-card,
    .panel {
        padding: 22px;
    }

    .hero h1,
    .section h1,
    .dashboard-hero h1,
    .legal-card h1,
    .intro-card h1 {
        font-size: 2.2rem;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

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

    .task-topline,
    .panel-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .workspace-link,
    .button {
        width: 100%;
        justify-content: center;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .admin-actions,
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

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