        /* ==== TOUS LES STYLES (inchangés) ==== */
        :root {
            --ink: #1C2E40;
            --ink-soft: #4A5A68;
            --paper: #F7F5F0;
            --paper-deep: #EDE8DD;
            --ochre: #BFA88C;
            --ochre-deep: #98805E;
            --clay: #7C8792;
            --slate: #7C8792;
            --line: rgba(28, 46, 64, 0.14);
            --line-strong: rgba(28, 46, 64, 0.26);
            --success: #2e7d32;
            --error: #c62828;
            --warning: #f57c00;
            --info: #00695c;
        }
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            margin: 0;
            background: var(--paper);
            color: var(--ink);
            font-family: 'Inter', sans-serif;
            font-size: 16px;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }
        h1,
        h2,
        h3,
        h4 {
            font-family: 'Fraunces', serif;
            font-weight: 600;
            margin: 0;
            color: var(--ink);
            letter-spacing: -0.01em;
        }
        a {
            color: inherit;
            text-decoration: none;
        }
        .wrap {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 clamp(1.25rem, 5vw, 4rem);
        }
        .eyebrow {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--ochre-deep);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        .eyebrow::before {
            content: "";
            width: 18px;
            height: 1px;
            background: var(--ochre-deep);
            display: inline-block;
        }
        header.site {
            position: sticky;
            top: 0;
            z-index: 50;
            background: rgba(243, 239, 230, 0.92);
            backdrop-filter: blur(6px);
            border-bottom: 1px solid var(--line);
        }
        .nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
            max-width: 1280px;
            margin: 0 auto;
        }
        .brand {
            display: flex;
            align-items: center;
            font-family: 'Fraunces', serif;
            font-weight: 700;
            font-size: 1.15rem;
            letter-spacing: -0.01em;
        }
        .brand img {
            height: 32px;
            width: auto;
            display: block;
        }
        .navlinks {
            display: flex;
            gap: 2.1rem;
            font-size: 0.92rem;
            font-weight: 500;
            align-items: center;
        }
        .navlinks a {
            position: relative;
            padding: 0.2rem 0;
            cursor: pointer;
        }
        .navlinks a.active,
        .navlinks a:hover {
            color: var(--ochre-deep);
        }
        .navlinks a.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -3px;
            height: 2px;
            background: var(--ochre-deep);
        }
        .navtoggle {
            display: none;
        }
        @media (max-width:720px) {
            .navlinks {
                position: fixed;
                inset: 64px 0 auto 0;
                background: var(--paper);
                flex-direction: column;
                padding: 1.5rem;
                border-bottom: 1px solid var(--line);
                transform: translateY(-130%);
                transition: transform 0.25s ease;
                gap: 1rem;
            }
            .navlinks.open {
                transform: translateY(0);
            }
            .navtoggle {
                display: block;
                background: none;
                border: none;
                font-size: 1.4rem;
                cursor: pointer;
                color: var(--ink);
            }
        }
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.85rem 1.4rem;
            font-weight: 600;
            font-size: 0.92rem;
            border-radius: 2px;
            border: 1px solid var(--ink);
            transition: all 0.18s ease;
            cursor: pointer;
            background: transparent;
        }
        .btn-primary {
            background: var(--ink);
            color: var(--paper);
            border-color: var(--ink);
        }
        .btn-primary:hover {
            background: var(--ochre-deep);
            border-color: var(--ochre-deep);
        }
        .btn-ghost {
            background: transparent;
            color: var(--ink);
        }
        .btn-ghost:hover {
            background: var(--ink);
            color: var(--paper);
        }
        .btn-full {
            width: 100%;
            justify-content: center;
        }
        .btn-icon {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
            padding: 0.25rem 0.4rem;
            border-radius: 4px;
            transition: background 0.15s;
        }
        .btn-icon:hover {
            background: var(--line);
        }
        .btn-link {
            color: var(--ochre-deep);
            font-weight: 600;
            text-decoration: underline;
            cursor: pointer;
        }
        .btn-link:hover {
            color: var(--ochre);
        }
        section {
            padding: clamp(2.6rem, 6vw, 4.5rem) 0;
        }
        .section-head {
            max-width: 60ch;
            margin-bottom: 2.4rem;
        }
        .section-head h2 {
            font-size: clamp(1.6rem, 3vw, 2.1rem);
            margin-top: 0.7rem;
        }
        .section-head p {
            color: var(--ink-soft);
            margin-top: 0.8rem;
        }
        .hero {
            padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
        }
        .hero-grid {
            display: grid;
            grid-template-columns: 1.15fr 0.85fr;
            gap: clamp(2rem, 5vw, 4rem);
            align-items: end;
        }
        @media (max-width:860px) {
            .hero-grid {
                grid-template-columns: 1fr;
            }
        }
        .hero h1 {
            font-size: clamp(2.2rem, 4.6vw, 3.4rem);
            line-height: 1.06;
            margin: 1rem 0 1.4rem;
        }
        .hero p.lead {
            font-size: 1.08rem;
            color: var(--ink-soft);
            max-width: 46ch;
            margin-bottom: 1.8rem;
        }
        .cta-row {
            display: flex;
            gap: 0.9rem;
            flex-wrap: wrap;
        }
        .strata {
            border: 1px solid var(--line-strong);
            background: var(--paper-deep);
        }
        .stratum {
            padding: 0.95rem 1.1rem;
            border-bottom: 1px solid var(--line);
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
            position: relative;
        }
        .stratum:last-child {
            border-bottom: none;
        }
        .stratum .code {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            color: var(--slate);
            letter-spacing: 0.08em;
        }
        .stratum .name {
            font-family: 'Fraunces', serif;
            font-weight: 600;
            font-size: 1.02rem;
        }
        .stratum::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 5px;
        }
        .s1::before {
            background: var(--ochre);
        }
        .s2::before {
            background: var(--clay);
        }
        .s3::before {
            background: var(--slate);
        }
        .s4::before {
            background: var(--ink);
        }
        .strata-caption {
            font-size: 0.8rem;
            color: var(--slate);
            margin-top: 0.7rem;
            font-style: italic;
        }
        .pole-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.4rem;
        }
        @media (max-width:760px) {
            .pole-grid {
                grid-template-columns: 1fr;
            }
        }
        .pole-card {
            border: 1px solid var(--line-strong);
            background: var(--paper-deep);
            padding: 1.6rem 1.7rem;
            position: relative;
        }
        .pole-card .code {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            color: var(--slate);
            letter-spacing: 0.1em;
        }
        .pole-card h3 {
            font-size: 1.2rem;
            margin: 0.5rem 0 0.8rem;
        }
        .pole-card ul {
            margin: 0;
            padding-left: 1.1rem;
            color: var(--ink-soft);
            font-size: 0.94rem;
        }
        .pole-card li {
            margin-bottom: 0.5rem;
        }
        .pole-card li b {
            color: var(--ink);
            font-weight: 600;
        }
        .divider {
            border: none;
            border-top: 1px solid var(--line);
        }
        footer.site {
            border-top: 1px solid var(--line-strong);
            padding: 2.4rem 0 2.6rem;
            margin-top: 2rem;
        }
        .footer-grid {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1.5rem;
            font-size: 0.88rem;
            color: var(--slate);
        }
        .footer-brand {
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }
        .footer-brand img {
            height: 26px;
            width: auto;
            display: block;
        }
        .footer-brand .brand {
            font-family: 'Fraunces', serif;
            font-weight: 700;
            font-size: 1rem;
        }
        .footer-brand .brand span {
            color: var(--ochre-deep);
        }
        .legal-line {
            font-size: 0.78rem;
            color: var(--slate);
            border-top: 1px solid var(--line);
            margin-top: 1.6rem;
            padding-top: 1.2rem;
            text-align: center;
        }
        .auth-section {
            min-height: calc(100vh - 200px);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .auth-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 60vh;
        }
        .auth-card {
            background: var(--paper-deep);
            padding: 2.5rem;
            border: 1px solid var(--line-strong);
            max-width: 450px;
            width: 100%;
        }
        .auth-card h2 {
            font-size: 1.6rem;
            margin-bottom: 0.5rem;
        }
        .auth-subtitle {
            color: var(--ink-soft);
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }
        .auth-footer {
            margin-top: 1.5rem;
            text-align: center;
            font-size: 0.9rem;
            color: var(--ink-soft);
        }
        .auth-footer a {
            color: var(--ochre-deep);
            font-weight: 600;
            cursor: pointer;
        }
        .auth-footer a:hover {
            text-decoration: underline;
        }
        .form-group {
            margin-bottom: 1.2rem;
        }
        .form-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.3rem;
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            border: 1px solid var(--line-strong);
            background: var(--paper);
            padding: 0.75rem 0.9rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            color: var(--ink);
            border-radius: 2px;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: 2px solid var(--ochre-deep);
            outline-offset: 1px;
        }
        .form-group textarea {
            resize: vertical;
            min-height: 80px;
        }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        @media (max-width:600px) {
            .form-row {
                grid-template-columns: 1fr;
            }
        }
        .form-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }
        .error-message {
            color: var(--error);
            font-size: 0.9rem;
            padding: 0.5rem;
            background: rgba(198, 40, 40, 0.1);
            border-radius: 4px;
            margin-bottom: 1rem;
            display: none;
        }
        .success-message {
            color: var(--success);
            font-size: 0.9rem;
            padding: 0.5rem;
            background: rgba(46, 125, 50, 0.1);
            border-radius: 4px;
            margin-bottom: 1rem;
            display: none;
        }
        .dashboard-section {
            padding-top: 2rem;
        }
        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .dashboard-header h1 {
            font-size: 1.8rem;
        }
        .greeting {
            color: var(--ink-soft);
            font-size: 1.05rem;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.2rem;
            margin-bottom: 2.5rem;
        }
        @media (max-width:900px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width:500px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }
        .stat-card {
            background: var(--paper-deep);
            border: 1px solid var(--line-strong);
            padding: 1.2rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .stat-icon {
            font-size: 2rem;
        }
        .stat-content h3 {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--ink-soft);
            margin-bottom: 0.2rem;
        }
        .stat-number {
            font-family: 'Fraunces', serif;
            font-size: 2rem;
            font-weight: 700;
            color: var(--ink);
        }
        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        @media (max-width:860px) {
            .dashboard-grid {
                grid-template-columns: 1fr;
            }
        }
        .dashboard-panel {
            background: var(--paper-deep);
            border: 1px solid var(--line-strong);
            padding: 1.5rem;
        }
        .dashboard-panel h2 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }
        .recent-item {
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--line);
        }
        .recent-item:last-child {
            border-bottom: none;
        }
        .recent-item .item-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .recent-item .item-meta {
            font-size: 0.85rem;
            color: var(--ink-soft);
            margin-top: 0.2rem;
        }
        .page-section {
            padding-top: 2rem;
        }
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .page-header h1 {
            font-size: 1.8rem;
        }
        .page-header .subtitle {
            color: var(--ink-soft);
            margin-top: 0.2rem;
        }
        .filters-bar {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 2rem;
        }
        .filters-bar input,
        .filters-bar select {
            padding: 0.6rem 0.9rem;
            border: 1px solid var(--line-strong);
            border-radius: 2px;
            background: var(--paper);
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            min-width: 200px;
        }
        .filters-bar input:focus,
        .filters-bar select:focus {
            outline: 2px solid var(--ochre-deep);
            outline-offset: 1px;
        }
        .clients-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.2rem;
        }
        @media (max-width:860px) {
            .clients-grid {
                grid-template-columns: 1fr;
            }
        }
        .client-card {
            background: var(--paper-deep);
            border: 1px solid var(--line-strong);
            padding: 1.2rem 1.5rem;
        }
        .client-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        .client-header h3 {
            font-size: 1.1rem;
        }
        .client-actions {
            display: flex;
            gap: 0.3rem;
        }
        .client-info {
            display: flex;
            gap: 0.8rem;
            flex-wrap: wrap;
            margin-bottom: 0.8rem;
        }
        .client-sector,
        .client-type {
            font-size: 0.8rem;
            padding: 0.2rem 0.6rem;
            background: var(--paper);
            border: 1px solid var(--line);
            border-radius: 2px;
        }
        .client-contacts {
            font-size: 0.9rem;
            color: var(--ink-soft);
            margin-top: 0.5rem;
        }
        .client-contacts .contact-item {
            padding: 0.2rem 0;
        }
        .client-contacts .contact-item a {
            color: var(--ochre-deep);
            margin-left: 0.5rem;
        }
        .client-projects {
            margin-top: 0.8rem;
            padding-top: 0.8rem;
            border-top: 1px solid var(--line);
            font-size: 0.9rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }
        .projects-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .project-card {
            background: var(--paper-deep);
            border: 1px solid var(--line-strong);
            padding: 1.2rem 1.5rem;
            cursor: pointer;
            transition: border-color 0.2s;
        }
        .project-card:hover {
            border-color: var(--ochre);
        }
        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .project-header h3 {
            font-size: 1.1rem;
        }
        .project-client {
            font-size: 0.85rem;
            color: var(--ink-soft);
            display: block;
        }
        .project-meta {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            font-size: 0.85rem;
            color: var(--ink-soft);
            margin-bottom: 0.5rem;
        }
        .project-description {
            color: var(--ink-soft);
            font-size: 0.9rem;
            margin: 0.5rem 0;
        }
        .project-consultant {
            font-size: 0.85rem;
            color: var(--ink-soft);
            margin: 0.3rem 0;
        }
        .project-actions {
            margin-top: 0.8rem;
            padding-top: 0.8rem;
            border-top: 1px solid var(--line);
            display: flex;
            gap: 0.5rem;
        }
        .status-badge {
            display: inline-block;
            padding: 0.2rem 0.7rem;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 2px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .status-badge.proposal {
            background: #fff3e0;
            color: #e65100;
        }
        .status-badge.active {
            background: #e8f5e9;
            color: #2e7d32;
        }
        .status-badge.completed,
        .status-badge.done {
            background: #e3f2fd;
            color: #0d47a1;
        }
        .status-badge.cancelled {
            background: #fce4ec;
            color: #c62828;
        }
        .status-badge.todo {
            background: #f5f5f5;
            color: #616161;
        }
        .status-badge.in_progress {
            background: #fff8e1;
            color: #f57f17;
        }
        .status-badge.review {
            background: #f3e5f5;
            color: #6a1b9a;
        }
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 1.5rem;
            animation: fadeIn 0.2s ease;
        }
        .modal.show {
            display: flex;
        }
        .modal-content {
            background: var(--paper);
            border: 1px solid var(--line-strong);
            padding: 2rem;
            max-width: 700px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: slideUp 0.3s ease;
        }
        .modal-large {
            max-width: 900px;
        }
        .modal-small {
            max-width: 450px;
        }
        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1.5rem;
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--ink-soft);
            transition: color 0.2s;
        }
        .modal-close:hover {
            color: var(--ink);
        }
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        .project-detail .detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--line);
        }
        .detail-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem 1.5rem;
            font-size: 0.95rem;
            margin-bottom: 1.2rem;
        }
        @media (max-width:600px) {
            .detail-info {
                grid-template-columns: 1fr;
            }
        }
        .detail-description {
            margin-bottom: 1.5rem;
        }
        .detail-description p {
            margin-top: 0.3rem;
            color: var(--ink-soft);
        }
        .detail-section {
            margin-top: 1.5rem;
        }
        .detail-section h3 {
            font-size: 1.1rem;
            margin-bottom: 0.8rem;
        }
        .activity-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .activity-item {
            background: var(--paper-deep);
            padding: 0.8rem 1rem;
            border: 1px solid var(--line);
        }
        .activity-item>div {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .activity-meta {
            font-size: 0.85rem;
            color: var(--ink-soft);
            margin-top: 0.2rem;
        }
        .notes-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .note-item {
            background: var(--paper-deep);
            padding: 0.8rem 1rem;
            border: 1px solid var(--line);
        }
        .note-item p {
            margin: 0 0 0.3rem 0;
        }
        .note-item small {
            color: var(--ink-soft);
            font-size: 0.8rem;
        }
        .detail-actions {
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--line);
            display: flex;
            gap: 0.8rem;
            flex-wrap: wrap;
        }
        .profile-container {
            max-width: 700px;
            margin: 0 auto;
        }
        .profile-avatar {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .avatar-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: var(--ink);
            color: var(--ochre);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Fraunces', serif;
            font-size: 2.8rem;
            font-weight: 700;
        }
        .profile-form {
            width: 100%;
        }
        .toast {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            padding: 0.8rem 1.5rem;
            border-radius: 4px;
            font-weight: 500;
            font-size: 0.9rem;
            z-index: 2000;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            max-width: 400px;
        }
        .toast.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
        .toast.success {
            background: var(--success);
            color: white;
        }
        .toast.error {
            background: var(--error);
            color: white;
        }
        .toast.warning {
            background: var(--warning);
            color: white;
        }
        .toast.info {
            background: var(--info);
            color: white;
        }
        .empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: var(--ink-soft);
        }
        .empty-state p {
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }
        .vm-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.6rem;
        }
        @media (max-width:700px) {
            .vm-grid {
                grid-template-columns: 1fr;
            }
        }
        .vm-card {
            padding: 1.8rem;
            border: 1px solid var(--line-strong);
        }
        .vm-card .eyebrow {
            margin-bottom: 0.8rem;
        }
        .vm-card p {
            margin: 0;
            font-family: 'Fraunces', serif;
            font-size: 1.15rem;
            line-height: 1.5;
            color: var(--ink);
        }
        .director-card {
            display: grid;
            grid-template-columns: 180px 1fr;
            gap: 2.2rem;
            border: 1px solid var(--line-strong);
            background: var(--paper-deep);
            padding: 2rem;
            align-items: start;
        }
        @media (max-width:640px) {
            .director-card {
                grid-template-columns: 1fr;
            }
        }
        .director-avatar {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 50%;
            background: var(--ink);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Fraunces', serif;
            font-weight: 600;
            font-size: 2.4rem;
            color: var(--ochre);
        }
        .director-card h3 {
            font-size: 1.25rem;
        }
        .director-card .role {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            color: var(--ochre-deep);
            letter-spacing: 0.06em;
            text-transform: uppercase;
            display: block;
            margin: 0.3rem 0 1rem;
        }
        .director-card p {
            color: var(--ink-soft);
            font-size: 0.95rem;
            margin: 0;
        }
        .tag-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.7rem;
        }
        .tag {
            border: 1px solid var(--line-strong);
            padding: 0.5rem 1rem;
            font-size: 0.86rem;
            font-weight: 500;
            background: var(--paper-deep);
        }
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2.5rem;
        }
        @media (max-width:760px) {
            .contact-grid {
                grid-template-columns: 1fr;
            }
        }
        .info-block {
            margin-bottom: 1.6rem;
        }
        .info-block .label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            color: var(--slate);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .info-block p {
            margin: 0.4rem 0 0;
            font-size: 1.02rem;
        }
        .info-block a {
            color: var(--ochre-deep);
            text-decoration: underline;
        }
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .contact-form label {
            font-size: 0.85rem;
            font-weight: 600;
        }
        .contact-form input,
        .contact-form textarea {
            border: 1px solid var(--line-strong);
            background: var(--paper-deep);
            padding: 0.75rem 0.9rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            color: var(--ink);
            border-radius: 2px;
            width: 100%;
        }
        .contact-form textarea {
            resize: vertical;
            min-height: 120px;
        }
        .pole-full {
            border-top: 1px solid var(--line-strong);
            padding: 2.4rem 0;
            display: grid;
            grid-template-columns: 0.9fr 2.1fr;
            gap: 2.5rem;
        }
        .pole-full:last-child {
            border-bottom: 1px solid var(--line-strong);
        }
        @media (max-width:760px) {
            .pole-full {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
        }
        .pole-full .label .code {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            color: var(--slate);
            letter-spacing: 0.1em;
        }
        .pole-full .label h2 {
            font-size: 1.5rem;
            margin-top: 0.5rem;
        }
        .pole-full .items {
            display: flex;
            flex-direction: column;
            gap: 1.3rem;
        }
        .pole-item h4 {
            font-size: 1.05rem;
            margin-bottom: 0.35rem;
        }
        .pole-item p {
            margin: 0;
            color: var(--ink-soft);
            font-size: 0.96rem;
        }
        .services-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.9rem 2rem;
        }
        @media (max-width:640px) {
            .services-list {
                grid-template-columns: 1fr;
            }
        }
        .service-row {
            display: flex;
            align-items: baseline;
            gap: 0.7rem;
            padding: 0.85rem 0;
            border-bottom: 1px solid var(--line);
            font-size: 0.98rem;
        }
        .service-row .idx {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            color: var(--ochre-deep);
            flex-shrink: 0;
        }
        .approach-steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0;
            border-top: 1px solid var(--line-strong);
            border-left: 1px solid var(--line-strong);
        }
        @media (max-width:860px) {
            .approach-steps {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width:480px) {
            .approach-steps {
                grid-template-columns: 1fr;
            }
        }
        .approach-step {
            padding: 1.6rem 1.5rem;
            border-right: 1px solid var(--line-strong);
            border-bottom: 1px solid var(--line-strong);
        }
        .approach-step .num {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            color: var(--ochre-deep);
            letter-spacing: 0.1em;
        }
        .approach-step h4 {
            margin: 0.7rem 0 0.5rem;
            font-size: 1.08rem;
        }
        .approach-step p {
            margin: 0;
            color: var(--ink-soft);
            font-size: 0.92rem;
        }
        .band {
            background: var(--paper-deep);
        }
        .page {
            display: none;
        }
        .page.active {
            display: block;
        }
        .hidden {
            display: none !important;
        }
        .flex-center {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .mt-2 {
            margin-top: 2rem;
        }
        .text-center {
            text-align: center;
        }
        @media (max-width:600px) {
            .modal-content {
                padding: 1.5rem;
                margin: 0.5rem;
            }
            .filters-bar input,
            .filters-bar select {
                min-width: 100%;
                width: 100%;
            }
            .filters-bar {
                flex-direction: column;
            }
            .client-card,
            .project-card {
                padding: 1rem;
            }
            .form-actions {
                flex-direction: column;
            }
            .form-actions .btn {
                width: 100%;
                justify-content: center;
            }
            .cta-row {
                flex-direction: column;
            }
            .cta-row .btn {
                width: 100%;
                justify-content: center;
            }
            .footer-grid {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
        }
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--paper-deep);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--ochre);
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--ochre-deep);
        }

/* =====================================================================
   MODERN UI LAYER — v2
   Elevates the app screens (auth, dashboard, clients, projects, profile)
   to a contemporary SaaS look while preserving the editorial brand
   identity used across the marketing pages.
   ===================================================================== */

:root {
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(28, 46, 64, 0.06), 0 1px 1px rgba(28, 46, 64, 0.04);
    --shadow-md: 0 8px 24px -8px rgba(28, 46, 64, 0.16), 0 2px 8px -2px rgba(28, 46, 64, 0.08);
    --shadow-lg: 0 24px 48px -16px rgba(28, 46, 64, 0.28);
    --accent: #6E8F7C;
    --accent-deep: #4E6F5D;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- focus & selection ---- */
:focus-visible {
    outline: 2px solid var(--ochre-deep);
    outline-offset: 2px;
    border-radius: 4px;
}
::selection {
    background: var(--ochre);
    color: var(--ink);
}

/* ---- header / nav polish ---- */
header.site {
    background: rgba(247, 245, 240, 0.78);
    box-shadow: 0 1px 0 var(--line);
}
.navlinks a {
    transition: color 0.2s var(--ease);
}
.navlinks a[onclick*="logout"] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.82rem;
}
.navlinks a[onclick*="logout"]:hover {
    background: var(--ink);
    color: var(--paper) !important;
    border-color: var(--ink);
}

/* ---- buttons ---- */
.btn {
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}
.btn-primary {
    background: linear-gradient(135deg, var(--ink) 0%, #24405a 100%);
}
.btn-icon {
    border-radius: var(--radius-sm);
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    background: var(--paper-deep);
    transform: translateY(-1px);
}

/* ---- forms ---- */
.form-group input,
.form-group select,
.form-group textarea,
.filters-bar input,
.filters-bar select {
    border-radius: var(--radius-sm);
    border-color: var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ochre-deep);
    box-shadow: 0 0 0 3px rgba(152, 128, 94, 0.18);
}
.filters-bar input {
    border-radius: 999px;
    padding-left: 1.1rem;
    min-width: 260px;
}
.error-message,
.success-message {
    border-radius: var(--radius-sm);
}

/* ---- auth card ---- */
.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: riseIn 0.5s var(--ease);
}

/* ---- stat cards ---- */
.stats-grid {
    gap: 1.4rem;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ochre-deep), var(--accent));
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.stat-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--paper-deep), var(--paper));
}
.stat-number {
    font-size: 2.1rem;
}

/* ---- dashboard panels ---- */
.dashboard-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.dashboard-panel h2 {
    font-size: 1.05rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}
.recent-item {
    transition: background 0.15s var(--ease);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.6rem;
}
.recent-item:hover {
    background: var(--paper-deep);
}

/* ---- client / project cards ---- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}
.client-card,
.project-card,
.vm-card,
.tag,
.director-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.client-card,
.project-card {
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.client-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--ochre);
}
.client-sector,
.client-type {
    border-radius: 999px;
    background: var(--paper-deep);
    border-color: transparent;
}
.activity-item,
.note-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* ---- status badges ---- */
.status-badge {
    border-radius: 999px;
    padding: 0.28rem 0.8rem 0.28rem 0.6rem;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ---- modals ---- */
.modal {
    background: rgba(28, 46, 64, 0.45);
    backdrop-filter: blur(4px);
}
.modal-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-color: var(--line);
}
.modal-close {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.modal-close:hover {
    background: var(--paper-deep);
}

/* ---- empty states ---- */
.empty-state {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper-deep);
}

/* ---- avatar ---- */
.avatar-circle {
    background: linear-gradient(135deg, var(--ink), #24405a);
    box-shadow: var(--shadow-md);
}

/* ---- toast ---- */
.toast {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px);
}

/* ---- animations ---- */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.page.active {
    animation: riseIn 0.35s var(--ease);
}

/* ---- misc ---- */
.pole-card,
.vm-card,
.tag {
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pole-card:hover,
.vm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---- linked accounts panel inside client modal ---- */
.modal-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1.5rem 0 1.2rem;
}
#clientAccountsSection h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
#clientAccountsSection .subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}
#linkedAccountsList {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
#linkedAccountsList .recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- password field with show/hide toggle ---- */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field input {
    width: 100%;
    padding-right: 2.6rem;
}
.password-toggle {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0.3rem;
    opacity: 0.65;
    transition: opacity 0.15s var(--ease);
}
.password-toggle:hover {
    opacity: 1;
}
.forgot-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--ochre-deep);
}
.forgot-link:hover {
    text-decoration: underline;
}
