:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #eff6ff;

    --color-background: #f3f6fb;
    --color-surface: #ffffff;
    --color-surface-soft: #f8fafc;

    --color-text: #172033;
    --color-text-soft: #64748b;
    --color-border: #e2e8f0;

    --color-success: #15803d;
    --color-success-bg: #dcfce7;

    --color-warning: #a16207;
    --color-warning-bg: #fef3c7;

    --color-danger: #b91c1c;
    --color-danger-bg: #fee2e2;

    --sidebar-width: 250px;
    --header-height: 72px;

    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 18px;

    --shadow-small: 0 1px 3px rgb(15 23 42 / 8%);
    --shadow-medium: 0 12px 35px rgb(15 23 42 / 12%);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--color-background);
    color: var(--color-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: inherit;
}

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

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.app-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   Header
   ========================================================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 28px;
    border-bottom: 1px solid var(--color-border);
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 1px 3px rgb(15 23 42 / 5%);
    backdrop-filter: blur(14px);
}

.header-left,
.header-right,
.header-user,
.public-navigation {
    display: flex;
    align-items: center;
}

.header-left,
.header-right {
    gap: 18px;
}

.public-navigation {
    gap: 12px;
}

.public-navigation-link {
    color: var(--color-text-soft);
    font-weight: 700;
    text-decoration: none;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--color-primary);
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 15px;
}

.brand-text small,
.header-user-info small {
    color: var(--color-text-soft);
}

.header-user {
    gap: 10px;
}

.header-user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: white;
}

.sidebar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--color-text);
}

/* =========================================================
   Layout interne
   ========================================================= */

.app-layout {
    width: 100%;
    min-width: 0;
    flex: 1;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 16px;
    overflow-y: auto;
    border-right: 1px solid rgb(255 255 255 / 8%);
    background: #0f172a;
    color: #cbd5e1;
}

.sidebar-section + .sidebar-section {
    margin-top: 28px;
}

.sidebar-title {
    margin: 0 12px 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-link {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    text-align: left;
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: rgb(255 255 255 / 10%);
    color: white;
}

.sidebar-link.is-active {
    box-shadow: inset 3px 0 0 var(--color-primary);
}

.sidebar-icon {
    width: 22px;
    flex: 0 0 auto;
    text-align: center;
    font-size: 18px;
}

.sidebar-export-form {
    margin: 0;
}

.sidebar-button {
    cursor: pointer;
}

.sidebar-footer {
    padding: 16px 12px 0;
    border-top: 1px solid rgb(255 255 255 / 10%);
}

.sidebar-footer p,
.sidebar-footer small {
    margin: 0;
}

.sidebar-footer small {
    color: #64748b;
}

.app-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 34px;
}

/** ==============================================
    Icons

    =============================================== */
.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.icon-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: white;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.icon-btn:hover {
    border-color: #cbd5e1;
    background: var(--color-surface-soft);
    transform: translateY(-1px);
}

.icon-btn-primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.icon-btn-primary:hover {
    border-color: var(--color-primary-dark);
    background: var(--color-primary-dark);
}

.action-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

/* =========================================================
   Layout public
   ========================================================= */

.public-layout {
    width: 100%;
    min-width: 0;
    flex: 1;
    display: block;
}

.public-content {
    width: min(1500px, calc(100% - 64px));
    min-width: 0;
    margin: 0 auto;
    padding: 0;
}

/* =========================================================
   Footer
   ========================================================= */

.app-footer {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 28px;
    border-top: 1px solid var(--color-border);
    background: white;
    color: var(--color-text-soft);
    font-size: 13px;
}

/* =========================================================
   Boutons
   ========================================================= */

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

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

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 5px 15px rgb(37 99 235 / 20%);
}

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

.btn-outline {
    border-color: var(--color-border);
    background: white;
    color: var(--color-text);
}

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

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
}

.btn-large {
    min-height: 50px;
    padding: 13px 22px;
}

.btn-full {
    width: 100%;
}

/* =========================================================
   Titres de page
   ========================================================= */

.page-heading {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 4px 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.page-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--color-text-soft);
}

.page-eyebrow {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-actions form {
    margin: 0;
}

/* =========================================================
   Cartes et tableaux
   ========================================================= */

.stats-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.content-card,
.form-card,
.help-card,
.feature-card,
.auth-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: var(--color-surface);
    box-shadow: var(--shadow-small);
}

.stat-card {
    min-width: 0;
    padding: 22px;
}

.stat-card-label {
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.stat-card-value {
    margin: 8px 0 2px;
    font-size: 32px;
    font-weight: 800;
}

.stat-card-note {
    color: var(--color-text-soft);
    font-size: 12px;
}

.content-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.content-card-header,
.form-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--color-border);
}

.content-card-header h2,
.form-card-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.content-card-header p,
.form-card-header p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 13px;
}

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

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

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

.data-table th {
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: #fafcff;
}

.company-cell {
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 800;
}

.company-name {
    display: block;
    color: var(--color-text);
    font-weight: 800;
    text-decoration: none;
}

.company-name:hover {
    color: var(--color-primary);
}

.company-meta,
.table-muted {
    display: block;
    margin-top: 3px;
    color: var(--color-text-soft);
    font-size: 12px;
    text-decoration: none;
}

.status-badge,
.priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-a_contacter {
    background: #e0f2fe;
    color: #0369a1;
}

.status-contacte,
.status-en_discussion {
    background: #ede9fe;
    color: #6d28d9;
}

.status-a_relancer,
.status-relance {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.status-client {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-refus,
.status-abandonne {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.status-rendez_vous,
.status-proposition_envoyee {
    background: #dbeafe;
    color: #1d4ed8;
}

.priority-1,
.priority-2 {
    background: #f1f5f9;
    color: #475569;
}

.priority-3 {
    background: #e0f2fe;
    color: #0369a1;
}

.priority-4 {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.priority-5 {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

/* =========================================================
   Formulaires CRM
   ========================================================= */

.form-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    gap: 22px;
}

.form-main,
.form-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

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

.form-card > .form-grid,
.form-card > .form-stack,
.form-card > .form-field,
.form-card > .checkbox-panel {
    padding: 24px;
}

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

.form-field-full {
    grid-column: 1 / -1;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.crm-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.crm-form input:not([type="checkbox"]),
.crm-form select,
.crm-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;
    color: var(--color-text);
    outline: none;
}

.crm-form input:focus,
.crm-form select:focus,
.crm-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

.crm-form textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-panel {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-soft);
}

.form-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 18px 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: white;
    box-shadow: var(--shadow-small);
}

/* =========================================================
   Alertes
   ========================================================= */

.flash-container {
    width: 100%;
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.alert {
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 11px;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    border-color: #bbf7d0;
    background: var(--color-success-bg);
    color: var(--color-success);
}

.alert-danger {
    border-color: #fecaca;
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.alert-warning {
    border-color: #fde68a;
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.alert-info {
    border-color: #bae6fd;
    background: #e0f2fe;
    color: #0369a1;
}

/* =========================================================
   Accueil
   ========================================================= */

.home-hero {
    width: 100%;
    min-width: 0;
    min-height: calc(100vh - var(--header-height) - 52px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
    padding: clamp(50px, 8vw, 110px) 0;
}

.home-hero-content,
.home-preview {
    min-width: 0;
}

.home-hero-content h1 {
    max-width: 760px;
    margin: 14px 0 22px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.home-hero-description {
    max-width: 680px;
    margin: 0;
    color: var(--color-text-soft);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

.home-hero-actions,
.home-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-hero-actions {
    margin-top: 32px;
}

.home-trust {
    margin-top: 28px;
    color: var(--color-text-soft);
    font-size: 13px;
}

.home-trust span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--color-success);
    font-weight: 900;
}

.feature-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    min-width: 0;
    padding: 26px;
}

/* =========================================================
   Authentification
   ========================================================= */

.auth-layout {
    width: min(1180px, 100%);
    min-width: 0;
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: minmax(350px, .85fr) minmax(420px, 1fr);
    margin: 32px auto;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 26px;
    background: white;
    box-shadow: var(--shadow-medium);
}

.auth-introduction,
.auth-form-section {
    min-width: 0;
}

.auth-introduction {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 5vw, 58px);
    background:
        radial-gradient(
            circle at 15% 15%,
            rgb(37 99 235 / 30%),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #0f172a,
            #172554
        );
    color: white;
}

.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 64px);
    background: var(--color-surface-soft);
}

.auth-card {
    width: min(430px, 100%);
    min-width: 0;
    padding: clamp(26px, 4vw, 38px);
}

.auth-card-large {
    width: min(530px, 100%);
}

.auth-form {
    display: grid;
    gap: 19px;
}

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

.auth-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.auth-input-wrapper {
    position: relative;
    min-width: 0;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
    pointer-events: none;
}

.auth-input-wrapper input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 13px 11px 41px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: white;
    color: var(--color-text);
    outline: none;
}

.auth-input-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1150px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

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

    .home-preview {
        width: min(750px, 100%);
        margin: 0 auto;
    }

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

    .auth-layout {
        grid-template-columns: 1fr;
        width: min(780px, 100%);
    }
}

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

    .app-sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        z-index: 900;
        width: min(290px, 85vw);
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: var(--shadow-medium);
    }

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

    .sidebar-toggle {
        display: block;
    }

    .header-user-info {
        display: none;
    }

    .app-content {
        padding: 24px 18px;
    }

    .public-content {
        width: min(100% - 36px, 1500px);
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .btn,
    .page-actions form,
    .page-actions form button {
        flex: 1;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .app-header {
        padding: 10px 14px;
    }

    .brand-text small,
    .public-navigation-link {
        display: none;
    }

    .header-right .btn-outline {
        display: none;
    }

    .stats-grid,
    .form-grid,
    .feature-grid,
    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

    .public-content {
        width: min(100% - 28px, 1500px);
    }

    .responsive-table {
        overflow: visible;
    }

    .data-table {
        min-width: 0;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody {
        display: grid;
        gap: 14px;
        padding: 14px;
    }

    .data-table tr {
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-radius: 14px;
        background: white;
        box-shadow: var(--shadow-small);
    }

    .data-table td {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 14px;
        padding: 11px 14px;
        border-bottom: 1px solid var(--color-border);
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--color-text-soft);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .data-table td:last-child {
        border-bottom: 0;
    }

    .auth-layout {
        margin: 18px auto;
        border-radius: 18px;
    }

    .auth-form-section {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .brand-text strong {
        font-size: 13px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .header-user-avatar {
        display: none;
    }

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

    .page-actions .btn,
    .page-actions form,
    .page-actions form button {
        width: 100%;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .data-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .home-hero-content h1 {
        font-size: 38px;
    }

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

    .home-hero-actions .btn {
        width: 100%;
    }

    .auth-card {
        padding: 24px 18px;
    }
}
/* =========================================================
   Correction des icônes de la fiche prospect
   ========================================================= */

.button-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    flex: 0 0 18px;
    display: block;
}

.profile-contact-item svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    flex: 0 0 18px;
    display: block;
}

/* Sécurité pour toutes les icônes SVG présentes dans les boutons */

.btn > svg,
.icon-btn > svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    flex: 0 0 18px;
}

/* Liens e-mail, téléphone et site de la fiche prospect */

.profile-contact-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    color: var(--color-text);
    text-decoration: none;
}

.profile-contact-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   Dashboard
   ========================================================= */

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

.dashboard-heading h1 {
    margin: 4px 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.dashboard-heading p {
    margin: 0;
    color: var(--color-text-soft);
}

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

.dashboard-stat-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: white;
    box-shadow: var(--shadow-small);
}

.dashboard-stat-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
}

.dashboard-stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-icon-green {
    background: #dcfce7;
    color: #15803d;
}

.stat-icon-orange {
    background: #ffedd5;
    color: #c2410c;
}

.dashboard-stat-card > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-stat-card span {
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-stat-card strong {
    margin: 3px 0;
    font-size: 28px;
    line-height: 1.1;
}

.dashboard-stat-card small {
    color: var(--color-text-soft);
    font-size: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .75fr);
    align-items: start;
    gap: 22px;
}

.dashboard-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: white;
    box-shadow: var(--shadow-small);
}

.dashboard-card-large {
    min-width: 0;
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--color-border);
}

.dashboard-card-header h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.dashboard-card-header p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 13px;
}

.dashboard-count {
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-header-link,
.dashboard-card-footer a {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-list {
    display: grid;
}

.dashboard-list-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
}

.dashboard-list-item:last-child {
    border-bottom: 0;
}

.dashboard-list-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-list-content a {
    overflow: hidden;
    color: var(--color-text);
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-list-content a:hover {
    color: var(--color-primary);
}

.dashboard-list-content span {
    overflow: hidden;
    margin-top: 2px;
    color: var(--color-text-soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-list-date {
    flex: 0 0 auto;
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-list-date.is-overdue {
    color: var(--color-danger);
}

.dashboard-list-action {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: white;
    color: var(--color-text-soft);
    text-decoration: none;
}

.dashboard-list-action:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.dashboard-list-action svg {
    width: 17px;
    height: 17px;
}

.dashboard-card-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-soft);
    text-align: right;
}

.dashboard-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 44px 24px;
    text-align: center;
}

.dashboard-empty-small {
    padding: 32px 20px;
}

.dashboard-empty-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--color-success-bg);
    color: var(--color-success);
}

.dashboard-empty-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-empty strong {
    margin-bottom: 5px;
}

.dashboard-empty p {
    max-width: 380px;
    margin: 0;
    color: var(--color-text-soft);
    font-size: 13px;
}

.dashboard-empty .btn {
    margin-top: 16px;
}

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

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

.dashboard-table th,
.dashboard-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}

.dashboard-table th {
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

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

.dashboard-company {
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.dashboard-company > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-company a {
    overflow: hidden;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-company a:hover {
    color: var(--color-primary);
}

.dashboard-company span {
    color: var(--color-text-soft);
    font-size: 12px;
}

.dashboard-quick-actions {
    display: grid;
    padding: 10px;
}

.dashboard-quick-actions > a,
.dashboard-quick-actions form button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--color-text);
    text-align: left;
    text-decoration: none;
}

.dashboard-quick-actions > a:hover,
.dashboard-quick-actions form button:hover {
    background: var(--color-surface-soft);
}

.dashboard-quick-actions form {
    margin: 0;
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.quick-action-icon svg {
    width: 19px;
    height: 19px;
}

.dashboard-quick-actions strong,
.dashboard-quick-actions small {
    display: block;
}

.dashboard-quick-actions strong {
    font-size: 13px;
}

.dashboard-quick-actions small {
    margin-top: 2px;
    color: var(--color-text-soft);
    font-size: 12px;
}

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

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

@media (max-width: 720px) {
    .dashboard-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

    .dashboard-table th:nth-child(2),
    .dashboard-table td:nth-child(2),
    .dashboard-table th:nth-child(4),
    .dashboard-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 520px) {
    .dashboard-list-date {
        display: none;
    }

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

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

/* =========================================================
   Pages légales
   ========================================================= */

.legal-page{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:32px;
    align-items:start;
    margin:40px auto;
}

.legal-sidebar{
    position:sticky;
    top:95px;

    background:#fff;

    border:1px solid var(--color-border);

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow-small);
}

.legal-logo{
    padding:24px;

    border-bottom:1px solid var(--color-border);

    background:#f8fafc;
}

.legal-logo h2{
    margin:0 0 8px;
}

.legal-logo p{
    margin:0;
    color:var(--color-text-soft);
    font-size:14px;
}

.legal-nav{
    display:flex;
    flex-direction:column;
}

.legal-nav a{

    padding:15px 22px;

    text-decoration:none;

    color:var(--color-text);

    font-weight:600;

    border-left:4px solid transparent;

    transition:.2s;
}

.legal-nav a:hover{

    background:#f8fafc;

    color:var(--color-primary);

}

.legal-nav a.active{

    border-left-color:var(--color-primary);

    background:var(--color-primary-light);

    color:var(--color-primary);

}

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

.legal-header{
    margin-bottom:24px;
}

.legal-header h1{

    margin:8px 0 12px;

    font-size:38px;

}

.legal-header p{

    margin:0;

    color:var(--color-text-soft);

    max-width:700px;

}

.legal-card{

    background:white;

    border:1px solid var(--color-border);

    border-radius:18px;

    padding:40px;

    box-shadow:var(--shadow-small);

}

.legal-card h2{

    margin-top:40px;

    margin-bottom:12px;

    font-size:24px;

}

.legal-card h2:first-child{
    margin-top:0;
}

.legal-card p{

    line-height:1.8;

    color:#475569;

}

.legal-card ul{

    padding-left:22px;

}

.legal-card li{

    margin:8px 0;

    line-height:1.7;

}

.legal-card table{

    width:100%;

    border-collapse:collapse;

    margin:20px 0;

}

.legal-card table td{

    padding:14px;

    border:1px solid var(--color-border);

}

.legal-card code{

    background:#f1f5f9;

    padding:3px 7px;

    border-radius:6px;

}

@media(max-width:1000px){

    .legal-page{

        grid-template-columns:1fr;

    }

    .legal-sidebar{

        position:relative;

        top:auto;

    }

}

/* ============================
   Trust Center
============================ */

.trust-logo{

    display:flex;

    gap:15px;

    align-items:center;

}

.trust-icon{

    width:58px;

    height:58px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    border-radius:16px;

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:white;

    box-shadow:0 8px 20px rgba(37,99,235,.20);

}

.trust-logo h2{

    margin:0;

    font-size:22px;

}

.trust-logo p{

    margin-top:5px;

    color:var(--color-text-soft);

}
/* ==========================================================
   Footer
   ========================================================== */

.app-footer{

    margin-top:80px;

    background:#0f172a;

    color:#cbd5e1;

}

.footer-container{

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:40px;

    padding:50px 0;

}

.footer-brand p{

    margin-top:15px;

    color:#94a3b8;

    line-height:1.8;

}

.footer-links{

    display:flex;

    flex-direction:column;

}

.footer-links h4{

    margin-bottom:18px;

    color:white;

}

.footer-links a{

    margin:7px 0;

    color:#94a3b8;

    text-decoration:none;

    transition:.2s;

}

.footer-links a:hover{

    color:white;

}

.footer-bottom{

    padding:20px;

    border-top:1px solid rgba(255,255,255,.08);

    text-align:center;

    color:#64748b;

    font-size:14px;

}

@media(max-width:900px){

    .footer-container{

        grid-template-columns:1fr;

        text-align:center;

    }

}

.preview-stat-skeleton {
    width: 54px;
    height: 20px;
    border-radius: 6px;
    background: #cbd5e1;
}

/* =========================================================
   Showcase homepage
   ========================================================= */

.product-showcase {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: white;
    box-shadow:
        0 30px 70px rgb(15 23 42 / 12%),
        0 8px 24px rgb(15 23 42 / 6%);
}

.product-showcase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    border-bottom: 1px solid var(--color-border);
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );
}

.product-showcase-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-showcase-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.product-showcase-header p {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.6;
}

.product-showcase-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
}

.product-showcase-content {
    display: grid;
    gap: 0;
}

.showcase-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 30px;
    border-bottom: 1px solid var(--color-border);
    transition: background .15s ease;
}

.showcase-item:hover {
    background: var(--color-surface-soft);
}

.showcase-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.showcase-icon svg {
    width: 21px;
    height: 21px;
}

.showcase-item > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.showcase-item strong {
    margin-bottom: 4px;
    font-size: 15px;
}

.showcase-item span {
    color: var(--color-text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.product-showcase-footer {
    padding: 18px 30px;
    background: #0f172a;
    color: #cbd5e1;
}

.showcase-security {
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-security svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: #60a5fa;
}

.showcase-security span {
    font-size: 13px;
}

@media (max-width: 650px) {
    .product-showcase-header {
        flex-direction: column;
        padding: 24px;
    }

    .showcase-item {
        padding: 18px 24px;
    }

    .product-showcase-footer {
        padding: 16px 24px;
    }
}

/* =========================================================
   Process homepage
   ========================================================= */

.home-process-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    gap: 50px;
    padding: clamp(36px, 5vw, 64px);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgb(37 99 235 / 18%),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #0f172a,
            #172554
        );
    color: white;
    box-shadow:
        0 30px 70px rgb(15 23 42 / 18%);
}

.home-process-main {
    min-width: 0;
}

.home-process-content {
    max-width: 720px;
}

.home-process-content h2 {
    margin: 10px 0 16px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.home-process-content > p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.7;
}

.home-process-content .btn {
    margin-top: 26px;
}

.process-list {
    display: grid;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 14px;
    background: rgb(255 255 255 / 5%);
    transition:
        background .15s ease,
        transform .15s ease;
}

.process-list li:hover {
    background: rgb(255 255 255 / 8%);
    transform: translateX(3px);
}

.process-number {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--color-primary);
    color: white;
    font-size: 14px;
    font-weight: 800;
}

.process-step-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.process-step-content p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

/* Colonne droite */

.home-process-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.process-aside-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 16px;
    background: rgb(255 255 255 / 6%);
}

.process-aside-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgb(37 99 235 / 20%);
    color: #60a5fa;
}

.process-aside-icon svg {
    width: 21px;
    height: 21px;
}

.process-aside-card strong {
    display: block;
    margin-bottom: 5px;
    color: white;
    font-size: 14px;
}

.process-aside-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

.process-aside-security {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: auto;
    padding: 20px;
    border: 1px solid rgb(96 165 250 / 25%);
    border-radius: 16px;
    background: rgb(37 99 235 / 10%);
}

.process-aside-security > svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #60a5fa;
}

.process-aside-security strong,
.process-aside-security span {
    display: block;
}

.process-aside-security strong {
    margin-bottom: 4px;
    color: white;
    font-size: 14px;
}

.process-aside-security span {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================================
   CTA final homepage
   ========================================================= */

.home-final-section {
    padding: 30px 0 90px;
}

.home-final-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: clamp(40px, 7vw, 80px);
    align-items: center;
    padding: clamp(36px, 5vw, 64px);
    border: 1px solid #bfdbfe;
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgb(37 99 235 / 12%),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #eff6ff
        );
    box-shadow: var(--shadow-medium);
}

.home-final-content h2 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.home-final-content > p {
    max-width: 650px;
    margin: 0;
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 1.7;
}

.home-final-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.home-final-points {
    display: grid;
    gap: 14px;
}

.home-final-points > div {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: rgb(255 255 255 / 75%);
}

.home-final-check {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--color-success-bg);
    color: var(--color-success);
    font-weight: 900;
}

.home-final-points strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.home-final-points p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 12px;
}

/* Responsive */

@media (max-width: 950px) {
    .home-process-card,
    .home-final-card {
        grid-template-columns: 1fr;
    }

    .home-process-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-aside-security {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .home-process-card,
    .home-final-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

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

    .process-aside-security {
        grid-column: auto;
    }

    .home-final-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-final-actions .btn {
        width: 100%;
    }
}

/* =========================================================
   Sections homepage
   ========================================================= */

.home-section {
    padding: 90px 0;
}

.home-section + .home-section {
    padding-top: 110px;
}

.section-heading-centered {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading-centered h2 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.section-heading-centered p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   Fonctionnalités principales
   ========================================================= */

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

.feature-card {
    position: relative;
    min-width: 0;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );
    box-shadow:
        0 8px 25px rgb(15 23 42 / 5%);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        #60a5fa
    );
    opacity: 0;
    transition: opacity .2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow:
        0 18px 40px rgb(15 23 42 / 10%);
}

.feature-card:hover::before {
    opacity: 1;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    box-shadow:
        inset 0 0 0 1px rgb(37 99 235 / 8%);
}

.feature-icon svg {
    width: 23px;
    height: 23px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.3;
}

.feature-card p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.feature-card:nth-child(1) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
    background: #e0f2fe;
    color: #0369a1;
}

.feature-card:nth-child(2) .feature-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.feature-card:nth-child(3) .feature-icon {
    background: #dcfce7;
    color: #15803d;
}

.feature-card:nth-child(4) .feature-icon {
    background: #ffedd5;
    color: #c2410c;
}

.feature-card:nth-child(6) .feature-icon {
    background: #dbeafe;
    color: #1d4ed8;
}


/* =========================================================
   Espacement avant le bloc sombre suivant
   ========================================================= */

.feature-grid + * {
    margin-top: 36px;
}

.home-section:has(.feature-grid) {
    padding-bottom: 120px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1050px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .home-section {
        padding: 65px 0;
    }

    .home-section + .home-section {
        padding-top: 75px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        min-height: 0;
        padding: 22px;
    }

    .feature-card-top {
        margin-bottom: 20px;
    }
}

/* =========================================================
   Import prospects
   ========================================================= */

.import-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .65fr);
    align-items: start;
    gap: 24px;
}

.import-main-card,
.import-info-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: white;
    box-shadow: var(--shadow-small);
}

.import-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 26px;
    border-bottom: 1px solid var(--color-border);
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );
}

.import-header-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.import-header-icon svg {
    width: 24px;
    height: 24px;
}

.import-card-header h2 {
    margin: 0 0 4px;
    font-size: 19px;
}

.import-card-header p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 13px;
}

.import-form {
    padding: 26px;
}

/* Zone de dépôt */

.import-dropzone {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 36px;
    border: 2px dashed #bfdbfe;
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #f3f7ff
        );
    text-align: center;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.import-dropzone:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

.import-dropzone-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 20px;
    background: var(--color-primary);
    color: white;
    box-shadow:
        0 12px 30px rgb(37 99 235 / 25%);
}

.import-dropzone-icon svg {
    width: 32px;
    height: 32px;
}

.import-dropzone > strong {
    color: var(--color-text);
    font-size: 18px;
}

.import-dropzone > span {
    color: var(--color-text-soft);
    font-size: 14px;
}

.import-file-requirements {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.import-file-requirements span {
    padding: 5px 9px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: white;
    color: var(--color-text-soft);
    font-size: 11px;
    font-weight: 700;
}

.import-dropzone input[type="file"] {
    width: min(420px, 100%);
    margin-top: 20px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: white;
}

/* Message sécurité */

.import-security-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #eff6ff;
}

.import-security-note > svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    color: var(--color-primary);
}

.import-security-note strong,
.import-security-note span {
    display: block;
}

.import-security-note strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.import-security-note span {
    color: var(--color-text-soft);
    font-size: 12px;
    line-height: 1.55;
}

/* Actions */

.import-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}

/* Sidebar */

.import-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.import-info-card {
    padding: 22px;
}

.import-info-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.import-info-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.import-info-icon-code {
    background: #ede9fe;
    color: #7c3aed;
}

.import-info-icon svg {
    width: 20px;
    height: 20px;
}

.import-info-heading h2 {
    margin: 0 0 3px;
    font-size: 16px;
}

.import-info-heading p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 12px;
}

/* Check list */

.import-check-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.import-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid var(--color-border);
}

.import-check-list li:last-child {
    border-bottom: 0;
}

.check-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--color-success-bg);
    color: var(--color-success);
    font-size: 12px;
    font-weight: 900;
}

.import-check-list strong,
.import-check-list div span {
    display: block;
}

.import-check-list strong {
    margin-bottom: 2px;
    font-size: 13px;
}

.import-check-list div span {
    color: var(--color-text-soft);
    font-size: 11px;
}

/* Exemple CSV */

.csv-example {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #0f172a;
}

.csv-example-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    color: #94a3b8;
    font-size: 11px;
}

.csv-badge {
    padding: 3px 7px;
    border-radius: 6px;
    background: rgb(96 165 250 / 15%);
    color: #60a5fa;
    font-weight: 800;
}

.csv-example pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    background: transparent;
    color: #e2e8f0;
    font-size: 11px;
    line-height: 1.7;
}

/* Conseil */

.import-tip-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    border: 1px solid #fde68a;
    border-radius: var(--radius-large);
    background: #fffbeb;
}

.import-tip-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fef3c7;
    color: #a16207;
}

.import-tip-icon svg {
    width: 19px;
    height: 19px;
}

.import-tip-card strong {
    display: block;
    margin-bottom: 4px;
    color: #854d0e;
    font-size: 13px;
}

.import-tip-card p {
    margin: 0;
    color: #92400e;
    font-size: 12px;
    line-height: 1.55;
}

/* Responsive */

@media (max-width: 1100px) {
    .import-page-grid {
        grid-template-columns: 1fr;
    }

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

    .import-tip-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .import-sidebar {
        grid-template-columns: 1fr;
    }

    .import-tip-card {
        grid-column: auto;
    }

    .import-form {
        padding: 18px;
    }

    .import-dropzone {
        min-height: 280px;
        padding: 26px 18px;
    }

    .import-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .import-form-actions .btn {
        width: 100%;
    }

    .import-card-header {
        padding: 20px;
    }
}

/* =========================================================
   Nouvelle fiche prospect
   ========================================================= */

.prospect-show-heading {
    margin-bottom: 24px;
}

/* Hero */

.prospect-hero-card {
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow-small);
}

.prospect-hero-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgb(37 99 235 / 10%),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );
}

.prospect-avatar-xl {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--color-primary);
    color: white;
    font-size: 30px;
    font-weight: 800;
    box-shadow:
        0 12px 25px rgb(37 99 235 / 22%);
}

.prospect-hero-info {
    min-width: 0;
    flex: 1;
}

.prospect-hero-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.prospect-hero-title h2 {
    margin: 0 0 5px;
    font-size: 26px;
}

.prospect-hero-title p {
    margin: 0;
    color: var(--color-text-soft);
}

.prospect-hero-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.prospect-hero-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.prospect-hero-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: white;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.prospect-hero-contact a:hover {
    border-color: #bfdbfe;
    color: var(--color-primary);
}

.prospect-hero-contact svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

/* Quick status */

.prospect-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--color-border);
}

.prospect-quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-right: 1px solid var(--color-border);
}

.prospect-quick-item:last-child {
    border-right: 0;
}

.prospect-quick-label {
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.prospect-quick-item strong {
    font-size: 13px;
}

.quick-positive {
    color: var(--color-success);
}

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

/* Grille principale */

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

.prospect-show-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: white;
    box-shadow: var(--shadow-small);
}

.prospect-show-card-wide {
    grid-column: 1 / -1;
}

.prospect-show-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-soft);
}

.prospect-show-card-header h2 {
    margin: 0 0 3px;
    font-size: 16px;
}

.prospect-show-card-header p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 12px;
}

.prospect-section-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.prospect-section-icon svg {
    width: 20px;
    height: 20px;
}

.prospect-section-icon-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.prospect-section-icon-green {
    background: #dcfce7;
    color: #15803d;
}

.prospect-section-icon-orange {
    background: #ffedd5;
    color: #c2410c;
}

.prospect-section-icon-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.prospect-section-icon-grey {
    background: #f1f5f9;
    color: #475569;
}

/* Détails */

.prospect-detail-list {
    margin: 0;
}

.prospect-detail-list > div {
    display: grid;
    grid-template-columns: minmax(130px, .75fr) minmax(0, 1.25fr);
    gap: 18px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--color-border);
}

.prospect-detail-list > div:last-child {
    border-bottom: 0;
}

.prospect-detail-list dt {
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.prospect-detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 700;
}

.prospect-detail-list dd a {
    color: var(--color-primary);
    text-decoration: none;
}

.prospect-detail-list dd a:hover {
    text-decoration: underline;
}

/* Dates */

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

.prospect-date-item {
    min-width: 0;
    padding: 20px;
    border-right: 1px solid var(--color-border);
}

.prospect-date-item:last-child {
    border-right: 0;
}

.prospect-date-item span,
.prospect-date-item strong {
    display: block;
}

.prospect-date-item span {
    margin-bottom: 6px;
    color: var(--color-text-soft);
    font-size: 11px;
    font-weight: 700;
}

.prospect-date-item strong {
    font-size: 13px;
}

.date-overdue {
    color: var(--color-danger);
}

/* Commentaires */

.prospect-comment-box {
    min-height: 100px;
    padding: 22px;
    color: var(--color-text);
    line-height: 1.7;
}

.prospect-comment-box > span {
    color: var(--color-text-soft);
    font-style: italic;
}

/* Système */

.system-card {
    background: var(--color-surface-soft);
}

.prospect-system-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 20px;
    color: var(--color-text-soft);
    font-size: 11px;
}

.prospect-system-info strong {
    margin-left: 5px;
    color: var(--color-text);
}

/* Danger */

.prospect-danger-card {
    margin-top: 28px;
}

.danger-eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--color-danger);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Responsive */

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

    .prospect-show-card-wide {
        grid-column: auto;
    }

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

    .prospect-date-item:nth-child(2) {
        border-right: 0;
    }

    .prospect-date-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 750px) {
    .prospect-hero-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .prospect-hero-title {
        flex-direction: column;
    }

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

    .prospect-quick-item:nth-child(2) {
        border-right: 0;
    }

    .prospect-quick-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--color-border);
    }

    .prospect-date-grid {
        grid-template-columns: 1fr;
    }

    .prospect-date-item {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .prospect-date-item:last-child {
        border-bottom: 0;
    }

    .prospect-detail-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    .prospect-quick-grid {
        grid-template-columns: 1fr;
    }

    .prospect-quick-item {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .prospect-quick-item:last-child {
        border-bottom: 0;
    }

    .prospect-hero-contact {
        align-items: stretch;
        flex-direction: column;
    }

    .prospect-hero-contact a {
        width: 100%;
    }
}

/* =========================================================
   Profil utilisateur
   ========================================================= */

.profile-page-grid {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.account-summary-card,
.profile-settings-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: white;
    box-shadow: var(--shadow-small);
}

.account-summary-card {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 28px;
    text-align: center;
}

.account-avatar {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 22px;
    background: var(--color-primary);
    color: white;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow:
        0 12px 30px rgb(37 99 235 / 22%);
}

.account-summary-card h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.account-summary-card > p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.account-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-success-bg);
    color: var(--color-success);
    font-size: 11px;
    font-weight: 800;
}

.account-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.account-summary-divider {
    height: 1px;
    margin: 24px 0 12px;
    background: var(--color-border);
}

.account-summary-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.account-summary-info:last-child {
    border-bottom: 0;
}

.account-summary-info span {
    color: var(--color-text-soft);
    font-size: 12px;
}

.account-summary-info strong {
    font-size: 12px;
}

.profile-settings {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-settings-card {
    overflow: hidden;
}

.profile-settings-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--color-border);
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );
}

.profile-settings-header h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.profile-settings-header p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 12px;
}

.profile-settings-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.profile-settings-icon-security {
    background: #ede9fe;
    color: #7c3aed;
}

.profile-settings-icon svg {
    width: 21px;
    height: 21px;
}

.profile-form {
    padding: 24px;
}

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

.profile-field-wide {
    grid-column: 1 / -1;
}

.profile-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.profile-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;
    color: var(--color-text);
    outline: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.profile-form input:focus {
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 3px rgb(37 99 235 / 12%);
}

.profile-form ul {
    margin: 7px 0 0;
    padding-left: 18px;
    color: var(--color-danger);
    font-size: 12px;
}

.password-fields {
    display: grid;
    gap: 18px;
}

.password-security-help {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #eff6ff;
}

.password-security-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: white;
    color: var(--color-primary);
}

.password-security-icon svg {
    width: 19px;
    height: 19px;
}

.password-security-help strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.password-security-help p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 12px;
    line-height: 1.55;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 950px) {
    .profile-page-grid {
        grid-template-columns: 1fr;
    }

    .account-summary-card {
        position: static;
    }
}

@media (max-width: 650px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-field-wide {
        grid-column: auto;
    }

    .profile-form {
        padding: 18px;
    }

    .profile-settings-header {
        align-items: flex-start;
        padding: 20px;
    }

    .profile-form-actions .btn {
        width: 100%;
    }
}

.header-user {
    color: inherit;
    text-decoration: none;
}

.header-user:hover strong {
    color: var(--color-primary);
}

/* =========================================================
   Header - utilisateur
   ========================================================= */

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition:
        background-color .15s ease,
        border-color .15s ease;
}

.header-user:hover {
    border-color: var(--color-border);
    background: var(--color-surface-soft);
}

.header-user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
}

.header-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.header-user-info strong {
    max-width: 180px;
    overflow: hidden;
    color: var(--color-text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s ease;
}

.header-user-info small {
    max-width: 180px;
    overflow: hidden;
    color: var(--color-text-soft);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user:hover .header-user-info strong {
    color: var(--color-primary);
}

.header-user-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-left: 3px;
    color: var(--color-text-soft);
    transition:
        color .15s ease,
        transform .15s ease;
}

.header-user:hover .header-user-chevron {
    color: var(--color-primary);
    transform: translateX(2px);
}

/* =========================================================
   Header responsive
   ========================================================= */

@media (max-width: 850px) {
    .header-user-info {
        display: none;
    }

    .header-user-chevron {
        display: none;
    }

    .header-user {
        padding: 4px;
    }
}

@media (max-width: 600px) {
    .brand-text small {
        display: none;
    }

    .header-right .btn {
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-right .btn .button-icon {
        margin-right: 0;
    }
}
/* =========================================================
   Pages d'erreur
   ========================================================= */

.error-page {
    min-height: calc(100vh - var(--header-height) - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.error-card {
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 26px;
    background: white;
    box-shadow:
        0 25px 70px rgb(15 23 42 / 12%);
}

.error-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 30% 20%,
            rgb(96 165 250 / 22%),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #0f172a,
            #172554
        );
}

.error-code {
    position: absolute;
    bottom: -25px;
    left: -5px;
    color: rgb(255 255 255 / 5%);
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
}

.error-icon {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 30px;
    background: rgb(255 255 255 / 8%);
    color: #60a5fa;
    backdrop-filter: blur(10px);
    box-shadow:
        0 20px 40px rgb(0 0 0 / 15%);
}

.error-icon svg {
    width: 50px;
    height: 50px;
}

.error-visual-403 .error-icon {
    color: #fbbf24;
}

.error-visual-404 .error-icon {
    color: #60a5fa;
}

.error-visual-500 .error-icon {
    color: #f87171;
}

.error-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: clamp(36px, 6vw, 70px);
}

.error-content h1 {
    margin: 10px 0 16px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.error-content > p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.error-reference {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-soft);
    font-size: 11px;
}

.error-reference strong {
    color: var(--color-text);
}

@media (max-width: 750px) {
    .error-card {
        grid-template-columns: 1fr;
    }

    .error-visual {
        min-height: 220px;
    }

    .error-code {
        font-size: 120px;
    }

    .error-icon {
        width: 85px;
        height: 85px;
        border-radius: 24px;
    }

    .error-icon svg {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 520px) {
    .error-page {
        padding: 30px 0;
    }

    .error-content {
        padding: 28px 22px;
    }

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

    .error-actions .btn {
        width: 100%;
    }
}