/* Copy of wireframes/shared-styles.css (Prestige tokens + components) for the
   operator back-office. Keep in sync with the wireframes (source of truth). */
/* ============================================================================
   DireFlow — Prestige Legal Authority Design System
   ----------------------------------------------------------------------------
   Editorial-juridical aesthetic: charcoal ink + warm cream + champagne gold.
   Newsreader (display) + Inter (UI). Sharp corners. Editorial 1px borders.

   Migration note: legacy tokens (--primary, --accent, --gray-*, --shadow-*,
   --radius-lg) are kept as aliases on the Prestige registry so that wireframe
   <style> blocks inherit the new look without per-file rewrites. Aliases are
   removed in step 3 of the redesign once each wireframe has been cleaned up.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,ital,wght@6..72,0,400;6..72,0,500;6..72,0,600;6..72,1,400;6..72,1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* ---- Ink scale (charcoal) -------------------------------------------- */
    --ink-900: #1f2937;
    --ink-700: #374151;
    --ink-500: #6b7280;
    --ink-400: #9ca3af;
    --ink-300: #d8d2c4;
    --ink-15:  rgba(31, 41, 55, 0.12);
    --ink-08:  rgba(31, 41, 55, 0.06);
    --ink-04:  rgba(31, 41, 55, 0.03);

    /* ---- Surfaces (warm cream + parchment) ------------------------------- */
    --cream:          #fdfbf7;
    --cream-dim:      #f6f1e7;
    --parchment:      #ede4d3;
    --parchment-edge: #cdc1ad;
    --white:          #ffffff;

    /* ---- Champagne gold (primary accent) --------------------------------- */
    --gold:       #cdb47a;
    --gold-hover: #b89c5a;
    --gold-deep:  #a78947;
    --gold-soft:  #f6efd8;
    --gold-tint:  rgba(205, 180, 122, 0.18);

    /* ---- Bordeaux (action required) -------------------------------------- */
    --bordeaux:      #9b3a4a;
    --bordeaux-soft: #f1dfe1;

    /* ---- Status (muted, document-grade) ---------------------------------- */
    --status-info:         #7a9fb0;
    --status-info-soft:    #dde7ec;
    --status-success:      #6e9079;
    --status-success-soft: #dfe8e1;
    --status-warn:         #b59554;
    --status-warn-soft:    #f0e6d0;
    --status-danger:       #9b3a4a;
    --status-danger-soft:  #f1dfe1;

    /* ---- Segment markers (dusty / poudré) -------------------------------- */
    --expertise:        #7a9fb0;
    --expertise-soft:   #e8eef2;
    --contentieux:      #a190b8;
    --contentieux-soft: #ece5f0;

    /* ---- Accessible text variants (5.17 WCAG AA) ------------------------- */
    /* Texte UNIQUEMENT (eyebrow caps, dates, badges, pastilles -soft) : ces
       teintes assombries passent 4.5:1 sur cream et sur les fonds -soft. Les
       fonds, bordures et marqueurs gardent les teintes claires ci-dessus
       (identité Prestige préservée). Voir DESIGN.md § Accessibilité. */
    --gold-deep-text:      #7a6020;
    --expertise-text:      #4a6b7d;
    --contentieux-text:    #6d5f86;
    --status-success-text: #3f6b4f;
    --status-warn-text:    #7a5a16;

    /* ---- Typography ------------------------------------------------------- */
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

    --display-lg-size: 41px; --display-lg-lh: 1.15;
    --h1-size: 31px; --h1-lh: 1.2;
    --h2-size: 23px; --h2-lh: 1.35;
    --h3-size: 18px; --h3-lh: 1.45;
    --body-lg-size: 17px;   --body-lg-lh: 1.7;
    --body-md-size: 15.5px; --body-md-lh: 1.65;
    --body-sm-size: 14px;   --body-sm-lh: 1.6;
    --label-caps-size: 12px; --label-caps-tracking: 0.14em;
    --table-data-size: 14px;

    /* ---- Spacing / grid -------------------------------------------------- */
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  28px;
    --space-lg:  48px;
    --space-xl:  80px;
    --space-2xl: 112px;
    --gutter:    24px;
    --margin:    40px;
    --max-content:  1440px;
    --sidebar-width: 248px;

    /* ---- Shape (sharp) --------------------------------------------------- */
    --radius: 0;

    /* ---- Shadow ---------------------------------------------------------- */
    --shadow-sharp: 2px 4px 0 rgba(31, 41, 55, 0.08);

    /* ============================================================
       LEGACY ALIASES — transitional layer (kept after 5.39)
       Mapped to the Prestige registry so that <style> blocks inside
       wireframe HTML files (notably the standalone portail pages
       09-portail-*.html) continue to render correctly without a
       pixel-perfect rewrite of their internal CSS.

       Status (7 mai 2026, fin de 5.39) : kept in place. Removal
       deferred — pixel-perfect refactor of the 5 portail pages is
       low-priority for the wireframe phase. Remove these aliases
       once :
         - 5.40 portage Blazor is done (app.css uses Prestige tokens
           natively, never legacy names)
         - or the 5 portail wireframes have been refactored on the
           Prestige token registry directly.
       Until then, removing them would break visual rendering on
       09-portail-justice.html, 09-portail-client.html and the
       *-accueil/*-messagerie variants.
       ============================================================ */
    --primary:       var(--ink-900);
    --primary-light: var(--ink-700);
    --primary-dark:  var(--ink-900);
    --accent:        var(--gold);
    --accent-light:  var(--gold-hover);
    --success:       var(--status-success);
    --warning:       var(--status-warn);
    --danger:        var(--status-danger);
    --info:          var(--status-info);
    --purple:        var(--contentieux);

    --gray-50:  var(--cream);
    --gray-100: var(--cream-dim);
    --gray-200: var(--ink-15);
    --gray-300: var(--ink-15);
    --gray-400: var(--ink-400);
    --gray-500: var(--ink-500);
    --gray-600: var(--ink-500);
    --gray-700: var(--ink-700);
    --gray-800: var(--ink-900);
    --gray-900: var(--ink-900);

    --expertise-light:   var(--expertise-soft);
    --contentieux-light: var(--contentieux-soft);

    --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.04);
    --shadow:    0 1px 2px rgba(31, 41, 55, 0.06);
    --shadow-md: var(--shadow-sharp);
    --shadow-lg: var(--shadow-sharp);
    --radius-lg: 0;
}

/* ============================================================================
   RESET + BASE
   ========================================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: var(--font-sans);
    font-size: var(--body-md-size);
    line-height: var(--body-md-lh);
    color: var(--ink-700);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--ink-900);
    font-weight: 500;
    letter-spacing: -0.01em;
}
h1 { font-size: var(--h1-size); line-height: var(--h1-lh); letter-spacing: -0.02em; }
h2 { font-size: var(--h2-size); line-height: var(--h2-lh); }
h3 { font-size: var(--h3-size); line-height: var(--h3-lh); }

a { color: var(--ink-900); text-decoration: none; border-bottom: 1px solid var(--ink-15); }
a:hover { border-bottom-color: var(--gold); }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

svg { width: 20px; height: 20px; flex-shrink: 0; display: block; }

/* ============================================================================
   APP SHELL
   ========================================================================= */

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

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--cream);
    min-width: 0;
    display: flex; flex-direction: column;
    transition: margin-left 0.3s ease;
}

.page-content {
    padding: var(--space-md) var(--margin) var(--space-2xl);
    flex: 1;
    max-width: var(--max-content);
    margin: 0 auto;
    width: 100%;
}

/* Tablet shell — mobile topbar + drawer backdrop (5.14).
   Hidden on desktop; activated by the @media (max-width: 1024px) block below.
   shared-scripts.js injects .mobile-topbar into .main-content and
   .sidebar-backdrop into .app-container, and wires the hamburger toggle. */
.mobile-topbar { display: none; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.40);
    z-index: 99; /* below .sidebar (z-index 100), above page content */
}

/* ============================================================================
   SIDEBAR — Parchment (cream-on-cream, no charcoal)
   ========================================================================= */

.sidebar {
    width: var(--sidebar-width);
    background: var(--parchment);
    color: var(--ink-700);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    border-right: 1px solid var(--parchment-edge);
    transition: width 0.3s ease;
}

.sidebar-header {
    height: 84px; /* aligne le séparateur avec celui du topbar .header */
    flex-shrink: 0;
    padding: 0 var(--space-md);
    border-bottom: 1px solid var(--parchment-edge);
    display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 34px; height: 34px;
    background: var(--ink-900);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-weight: 600; font-size: 19px;
    letter-spacing: -0.02em;
    border-radius: 0;
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 21px; font-weight: 500;
    color: var(--ink-900);
    letter-spacing: 0.01em;
}

.sidebar-toggle {
    background: transparent; border: none; color: var(--ink-700);
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.5;
    transition: opacity 0.12s ease;
    flex-shrink: 0;
    border-radius: 0;
}
.sidebar-toggle:hover { opacity: 1; background: transparent; color: var(--ink-900); }
.sidebar-toggle svg { width: 16px; height: 16px; transition: transform 0.3s ease; }

.sidebar-nav { flex: 1; padding: var(--space-md) 0; overflow-y: auto; }
.nav-section { margin-bottom: var(--space-md); }
.nav-section-title {
    font-size: var(--label-caps-size);
    font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    color: var(--ink-500);
    padding: var(--space-xs) var(--space-md);
    margin-bottom: 6px;
}

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px var(--space-md);
    color: var(--ink-700);
    font-size: var(--body-sm-size);
    font-weight: 500;
    text-decoration: none;
    border: none; border-bottom: none;
    border-left: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.12s ease, background 0.12s ease;
}
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.5; opacity: 0.65; flex-shrink: 0; }
.nav-item:hover {
    color: var(--ink-900);
    background: rgba(31, 41, 55, 0.04);
    border-bottom: none;
}
.nav-item.active {
    color: var(--ink-900);
    background: var(--gold-tint);
    border-left-color: var(--gold);
    font-weight: 600;
}
.nav-item.active svg { color: var(--gold-deep); opacity: 1; }
.nav-badge {
    margin-left: auto;
    font-size: 11px; font-weight: 700;
    background: var(--ink-900);
    color: var(--cream);
    padding: 2px 7px;
    letter-spacing: 0.06em;
    border-radius: 0;
}

.sidebar-footer {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--parchment-edge);
    display: flex; flex-direction: column; gap: 12px;
}
/* "Votre avis" entry (Lot 6, 5.24): sidebar footer, firms without subscription banner only. */
.sidebar-feedback {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 6px 0;
    background: transparent; border: none; border-radius: 0;
    color: var(--ink-700);
    font: inherit; font-size: var(--body-sm-size); font-weight: 500;
    text-align: left; cursor: pointer;
    transition: color 0.12s ease;
}
.sidebar-feedback svg { width: 17px; height: 17px; stroke-width: 1.5; opacity: 0.65; flex-shrink: 0; }
.sidebar-feedback:hover { color: var(--ink-900); background: transparent; }
.sidebar-feedback:hover svg { opacity: 1; }
.user-card {
    display: flex; align-items: center; gap: 12px;
    color: var(--ink-900);
    border: none; border-bottom: none;
    padding: 4px 0;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.12s ease;
}
.user-card:hover { opacity: 0.85; background: transparent; }
.user-avatar {
    width: 36px; height: 36px;
    background: var(--ink-900); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-weight: 600; font-size: 15px;
    letter-spacing: 0.02em;
    border-radius: 0;
    flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: var(--body-sm-size); font-weight: 600; color: var(--ink-900); }
.user-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--label-caps-tracking);
    color: var(--ink-500);
    margin-top: 2px;
}

/* Sidebar collapsed (icon-rail toggle — DESKTOP ONLY).
   Gated to >=1025px so the icon-rail never fights the tablet drawer (5.14):
   on tablet the sidebar is always the full-width off-canvas drawer. */
@media (min-width: 1025px) {
    .sidebar.collapsed { width: 72px; }
    .sidebar.collapsed ~ .main-content { margin-left: 72px; }
    .sidebar.collapsed .sidebar-header { padding: var(--space-sm); justify-content: center; flex-wrap: wrap; gap: 8px; }
    .sidebar.collapsed .logo-text { display: none; }
    .sidebar.collapsed .logo { justify-content: center; }
    .sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }
    .sidebar.collapsed .sidebar-nav { padding: var(--space-sm) 0; }
    .sidebar.collapsed .nav-section-title { display: none; }
    .sidebar.collapsed .nav-item { justify-content: center; padding: 11px; gap: 0; border-left: none; }
    .sidebar.collapsed .nav-item span { display: none; }
    .sidebar.collapsed .nav-badge { display: none; }
    .sidebar.collapsed .user-info { display: none; }
    .sidebar.collapsed .user-card { justify-content: center; padding: 4px; }
    .sidebar.collapsed .sidebar-footer { padding: var(--space-sm); }
    .sidebar.collapsed .sidebar-feedback { justify-content: center; padding: 4px; gap: 0; }
    .sidebar.collapsed .sidebar-feedback span { display: none; }
    .sidebar.collapsed .sidebar-feedback svg { width: 20px; height: 20px; }
}

/* ============================================================================
   RESPONSIVE — Tablet shell (5.14, iPad 1024x768 priority)
   <=1024px: parchment sidebar becomes an off-canvas drawer (hidden by default,
   slid in over a backdrop via the .mobile-topbar hamburger); main content
   takes the full width. Desktop (>=1025px) is untouched.
   ========================================================================= */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        box-shadow: none;
    }
    .app-container.drawer-open .sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 28px rgba(31, 41, 55, 0.20);
    }
    .app-container.drawer-open .sidebar-backdrop { display: block; }

    .main-content,
    .sidebar.collapsed ~ .main-content { margin-left: 0; }

    .sidebar-toggle { display: none; }

    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 56px;
        padding: 0 16px;
        background: var(--cream);
        border-bottom: 1px solid var(--ink-15);
        position: sticky;
        top: 0;
        z-index: 80;
        flex-shrink: 0;
    }
    .mobile-topbar-toggle {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--ink-15);
        border-radius: 0;
        color: var(--ink-900);
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.12s ease, border-color 0.12s ease;
    }
    .mobile-topbar-toggle:hover { background: var(--ink-04); border-color: var(--ink-900); }
    .mobile-topbar-toggle svg { width: 20px; height: 20px; stroke-width: 1.75; }
    .mobile-topbar .logo { gap: 10px; }
    .mobile-topbar .logo-icon { width: 30px; height: 30px; font-size: 17px; }
    .mobile-topbar .logo-text { display: inline; font-size: 19px; }

    .header { padding: var(--space-sm) var(--space-md); }
}

/* ============================================================================
   PAGE HEADER
   ========================================================================= */

.header {
    background: var(--cream);
    border-bottom: 1px solid var(--ink-15);
    padding: var(--space-md) var(--margin) var(--space-sm);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-md);
    position: sticky; top: 0; z-index: 50;
    max-width: var(--max-content);
    margin: 0 auto;
    width: 100%;
}
.header-left { display: flex; align-items: baseline; gap: var(--space-sm); }
.header-eyebrow {
    font-size: var(--label-caps-size); font-weight: 700;
    letter-spacing: var(--label-caps-tracking); text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 6px;
}
.page-title {
    font-family: var(--font-serif);
    font-size: var(--h1-size);
    font-weight: 500;
    line-height: 1;
    color: var(--ink-900);
    letter-spacing: -0.02em;
}
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: var(--body-sm-size); }
.breadcrumb a { color: var(--ink-500); text-decoration: none; border: none; }
.breadcrumb a:hover { color: var(--ink-900); border: none; }
.breadcrumb svg { width: 14px; height: 14px; color: var(--ink-400); }
.breadcrumb span { color: var(--ink-900); font-weight: 500; }

/* Search — bottom-border only */
.search-box {
    display: flex; align-items: center; gap: 10px;
    background: transparent;
    border: none; border-bottom: 1px solid var(--ink-15);
    padding: 8px 0;
    width: 280px;
    border-radius: 0;
    box-shadow: none;
}
.search-box:focus-within { background: transparent; border-bottom-color: var(--ink-900); box-shadow: none; }
.search-box svg { width: 15px; height: 15px; color: var(--ink-500); stroke-width: 1.5; }
.search-box input {
    flex: 1;
    border: none; outline: none; background: transparent;
    font-size: var(--body-sm-size); color: var(--ink-900);
}
.search-box input::placeholder { color: var(--ink-400); }

/* Notification dot — sharp */
.notification-dot {
    position: absolute; top: 6px; right: 6px;
    width: 6px; height: 6px;
    background: var(--gold-deep);
    border: none;
    border-radius: 0;
}

/* ============================================================================
   BUTTONS
   ========================================================================= */

.btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px;
    font-family: var(--font-sans);
    font-size: var(--body-sm-size);
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    overflow: hidden;
}
.btn svg { width: 15px; height: 15px; stroke-width: 1.75; }

.btn-primary {
    background: var(--gold);
    color: var(--ink-900);
    border: 1px solid var(--gold);
}
.btn-primary:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--ink-900);
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--ink-900);
    border: 1px solid var(--ink-15);
}
.btn-secondary:hover { background: transparent; border-color: var(--ink-900); }

.btn-ghost {
    background: transparent;
    color: var(--ink-700);
    border: 1px solid transparent;
    padding: 9px 14px;
}
.btn-ghost:hover { color: var(--ink-900); background: transparent; border-color: var(--ink-15); }

.btn-success {
    background: var(--status-success);
    color: var(--white);
    border: 1px solid var(--status-success);
}
.btn-success:hover { background: var(--status-success); border-color: var(--ink-900); color: var(--white); }

.btn-sm { padding: 7px 13px; font-size: 13.5px; }

.icon-btn {
    width: 36px; height: 36px;
    background: transparent;
    border: 1px solid var(--ink-15);
    color: var(--ink-700);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: relative;
    border-radius: 0;
    transition: border-color 0.12s ease, color 0.12s ease;
}
.icon-btn:hover { background: transparent; border-color: var(--ink-900); color: var(--ink-900); }
.icon-btn svg { width: 17px; height: 17px; stroke-width: 1.5; }

/* Override the ripple pseudo from the legacy stylesheet — Prestige is restrained. */
.btn::after { display: none; }

/* ============================================================================
   FORMS
   ========================================================================= */

.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: var(--label-caps-size);
    font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    color: var(--ink-700);
    margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 13px;
    background: var(--white);
    border: 1px solid var(--ink-15);
    border-radius: 0;
    font-size: var(--body-sm-size);
    font-family: inherit;
    color: var(--ink-900);
    outline: none;
    transition: border-color 0.12s ease;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-400); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--ink-900);
    box-shadow: none;
    animation: none;
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

/* Editorial input wrapper (mockups-v2 pattern) */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label {
    font-size: var(--label-caps-size);
    font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    color: var(--ink-700);
}
.input {
    background: var(--white);
    border: 1px solid var(--ink-15);
    padding: 11px 13px;
    font-size: var(--body-sm-size);
    color: var(--ink-900);
    outline: none;
    border-radius: 0;
}
.input:focus { border-color: var(--ink-900); }

/* ============================================================================
   CARDS
   ========================================================================= */

.card {
    background: var(--white);
    border: 1px solid var(--ink-15);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}
.card-header {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--ink-15);
    display: flex; align-items: center; justify-content: space-between;
}
.card-title {
    font-family: var(--font-serif);
    font-size: var(--h3-size);
    font-weight: 500;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.card-body { padding: var(--space-md); }

/* ============================================================================
   BADGES
   ========================================================================= */

.badge {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    border-radius: 0;
    border: 1px solid var(--ink-15);
    background: var(--white);
    font-size: 12px; font-weight: 600;
    color: var(--ink-700);
    line-height: 1.4;
}
.badge-primary  { background: var(--cream-dim); color: var(--ink-900); border-color: var(--ink-15); }
.badge-success  { background: var(--status-success-soft); color: var(--ink-900); border-color: var(--status-success); }
.badge-warning  { background: var(--status-warn-soft); color: var(--ink-900); border-color: var(--status-warn); }
.badge-danger   { background: var(--bordeaux-soft); color: var(--bordeaux); border-color: var(--bordeaux); }
.badge-gray     { background: var(--cream-dim); color: var(--ink-500); border-color: var(--ink-15); }
.badge-expertise   { background: var(--expertise-soft); color: var(--ink-900); border-color: var(--expertise); }
.badge-contentieux { background: var(--contentieux-soft); color: var(--ink-900); border-color: var(--contentieux); }

/* Pill variant (used in mockups-v2) */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    border: 1px solid var(--ink-15);
    background: var(--white);
    color: var(--ink-700);
    border-radius: 0;
}
.pill svg { width: 12px; height: 12px; stroke-width: 1.75; }
.pill.expertise   { color: var(--ink-900); background: var(--expertise-soft);   border-color: var(--expertise); }
.pill.contentieux { color: var(--ink-900); background: var(--contentieux-soft); border-color: var(--contentieux); }
.pill.gold        { color: var(--ink-900); background: var(--gold-soft);        border-color: var(--gold); }
.pill.bordeaux    { color: var(--bordeaux); background: var(--bordeaux-soft);   border-color: var(--bordeaux); }

/* Segment badges */
.segment-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--label-caps-tracking);
    border: 1px solid var(--ink-15);
    background: var(--white);
    color: var(--ink-700);
}
.segment-badge.expertise   { background: var(--expertise-soft); color: var(--ink-900); border-color: var(--expertise); }
.segment-badge.contentieux { background: var(--contentieux-soft); color: var(--ink-900); border-color: var(--contentieux); }
.segment-badge svg { width: 13px; height: 13px; stroke-width: 1.75; }

/* Status text (no more colored squares — text + accent dot) */
.status-text {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: var(--body-sm-size);
    font-weight: 500;
    color: var(--ink-700);
}
.status-text::before {
    content: ''; width: 10px; height: 10px;
    background: var(--ink-300);
    border-radius: 0;
}
.status-text.in-progress::before { background: var(--gold); }
.status-text.action::before      { background: var(--bordeaux); }
.status-text.closed::before      { background: var(--ink-500); }

/* Reference / monospace identifier */
.ref {
    font-family: var(--font-sans);
    font-size: var(--label-caps-size);
    font-weight: 600;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    color: var(--ink-500);
}

/* ============================================================================
   SEGMENT TABS / TABS
   ========================================================================= */

.segment-tabs {
    display: flex; gap: 0;
    background: transparent;
    padding: 0;
    border-bottom: 1px solid var(--ink-15);
    border-radius: 0;
}
.segment-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--ink-500);
    font-family: var(--font-sans);
    font-size: var(--body-sm-size);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: color 0.12s ease, border-color 0.12s ease;
    border-radius: 0;
}
.segment-tab:hover { color: var(--ink-900); }
.segment-tab.active { background: transparent; color: var(--ink-900); font-weight: 600; box-shadow: none; }
.segment-tab.active                  { border-bottom-color: var(--gold); }
.segment-tab.expertise.active        { border-bottom-color: var(--expertise); }
.segment-tab.contentieux.active      { border-bottom-color: var(--contentieux); }
.segment-tab svg { width: 16px; height: 16px; stroke-width: 1.5; }

.tabs {
    display: flex; gap: 0;
    background: transparent;
    padding: 0;
    border-bottom: 1px solid var(--ink-15);
    border-radius: 0;
}
.tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--ink-500);
    font-size: var(--body-sm-size);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease;
    border-radius: 0;
}
.tab:hover { color: var(--ink-900); }
.tab.active { background: transparent; color: var(--ink-900); font-weight: 600; border-bottom-color: var(--gold); box-shadow: none; }

/* ============================================================================
   FILTERS
   ========================================================================= */

.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-select {
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--ink-15);
    color: var(--ink-700);
    font-size: var(--body-sm-size);
    border-radius: 0;
    cursor: pointer;
    outline: none;
}
.filter-select:focus { border-color: var(--ink-900); }

.filter-row {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-sm) 0;
    flex-wrap: wrap;
}
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--ink-15);
    color: var(--ink-700);
    font-size: var(--body-sm-size);
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.chip svg { width: 13px; height: 13px; stroke-width: 1.5; }
.chip:hover { border-color: var(--ink-900); color: var(--ink-900); }
.chip.active {
    background: var(--ink-900);
    color: var(--cream);
    border-color: var(--ink-900);
}

/* ============================================================================
   TABLES
   ========================================================================= */

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--ink-15);
    font-size: var(--table-data-size);
}
.table th {
    background: var(--cream-dim);
    color: var(--ink-700);
    text-align: left;
    padding: 14px var(--space-sm);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink-15);
}
.table td {
    padding: 16px var(--space-sm);
    border-bottom: 1px solid var(--ink-15);
    font-size: var(--table-data-size);
    color: var(--ink-700);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.12s ease; }
.table tbody tr:hover td { background: var(--cream-dim); }

/* Editorial data-table (mockups-v2 pattern) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--ink-15);
    font-size: var(--table-data-size);
}
.data-table thead th {
    background: var(--cream-dim);
    color: var(--ink-700);
    text-align: left;
    padding: 14px var(--space-sm);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink-15);
}
.data-table tbody td {
    padding: 18px var(--space-sm);
    border-bottom: 1px solid var(--ink-15);
    vertical-align: middle;
}
.data-table tbody tr { position: relative; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--cream-dim); cursor: pointer; }
.data-table .row-title {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink-900);
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.data-table .row-meta {
    font-size: 13px;
    color: var(--ink-500);
    margin-top: 4px;
}

/* Status accent bar on table rows */
.data-table tbody tr td:first-child { position: relative; }
.data-table tbody tr.status-progress td:first-child::before,
.data-table tbody tr.status-action td:first-child::before,
.data-table tbody tr.status-closed td:first-child::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
}
.data-table tbody tr.status-progress td:first-child::before { background: var(--gold); }
.data-table tbody tr.status-action td:first-child::before   { background: var(--bordeaux); }
.data-table tbody tr.status-closed td:first-child::before   { background: var(--ink-300); }

/* ============================================================================
   STATS / KPI CARDS
   ========================================================================= */

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: var(--space-md); }

.stat-card {
    background: var(--white);
    border: 1px solid var(--ink-15);
    border-radius: 0;
    padding: 22px 24px;
    display: flex; flex-direction: column; gap: 10px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    transition: border-color 0.12s ease;
}
.stat-card:hover { border-color: var(--ink-900); transform: none; box-shadow: none; }
.stat-card > * { position: relative; z-index: 1; }
.stat-card:hover .stat-value { color: var(--ink-900); }

/* Stat-card cliquable (ex. KPI "dossiers actifs" → liste des dossiers). */
.stat-card-link { text-decoration: none; color: inherit; cursor: pointer; }
.stat-card-link:hover { text-decoration: none; }

.stat {
    background: var(--white);
    border: 1px solid var(--ink-15);
    padding: 22px 24px;
    display: flex; flex-direction: column; gap: 10px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    border-radius: 0;
}
.stat > * { position: relative; z-index: 1; }

.stat-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0;
}
.stat-icon {
    width: 36px; height: 36px;
    background: transparent;
    color: var(--ink-500);
    display: flex; align-items: center; justify-content: center;
    border-radius: 0;
    transition: none;
    flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }
.stat-icon.blue   { background: transparent; color: var(--ink-900); }
.stat-icon.orange { background: transparent; color: var(--gold-deep); }
.stat-icon.green  { background: transparent; color: var(--status-success); }
.stat-icon.purple { background: transparent; color: var(--contentieux); }
.stat-icon.cyan   { background: transparent; color: var(--expertise); }

.stat-value {
    font-family: var(--font-serif);
    font-size: 33px; font-weight: 500; line-height: 1;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    margin-top: auto;
    margin-bottom: 4px;
}
.stat-label {
    font-size: var(--label-caps-size);
    font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    color: var(--ink-500);
}

/* Watermark icon — Prestige KPI signature.
   Oversized and pushed past the right edge so the icon is clipped by the
   card border (overflow:hidden on .stat / .stat-card). The visible portion
   is the left ~60% of the glyph. */
.stat-watermark {
    position: absolute;
    top: -64px; right: -56px;
    width: 168px; height: 168px;
    color: var(--ink-900);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}
.stat-watermark svg { width: 100%; height: 100%; stroke-width: 0.5; stroke: currentColor; fill: none; vector-effect: non-scaling-stroke; }
.stat-watermark.gold { color: var(--gold-deep); opacity: 0.20; }

/* Alert variant — inverted KPI for urgency (charcoal bg + gold accents) */
.stat-card.alert,
.stat.alert {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: var(--cream);
}
.stat-card.alert:hover,
.stat.alert:hover { border-color: var(--gold); }
.stat-card.alert .stat-value,
.stat.alert .stat-value { color: var(--cream); }
.stat-card.alert .stat-label,
.stat.alert .stat-label { color: var(--gold); }
.stat-card.alert .stat-watermark,
.stat.alert .stat-watermark { color: var(--gold); opacity: 0.35; }
.stat-card.alert .stat-watermark.gold,
.stat.alert .stat-watermark.gold { color: var(--gold); opacity: 0.35; }

/* ============================================================================
   DOSSIER CARDS
   ========================================================================= */

.dossiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }

.dossier-card {
    background: var(--white);
    border: 1px solid var(--ink-15);
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.12s ease;
    position: relative;
}
.dossier-card:hover { border-color: var(--ink-900); transform: none; box-shadow: none; }

.dossier-header {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--ink-15);
    position: relative;
}
.dossier-header-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.dossier-ref {
    font-family: var(--font-sans);
    font-size: var(--label-caps-size);
    font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    color: var(--ink-500);
    background: transparent;
    padding: 0;
    border-radius: 0;
}
.dossier-status {
    font-size: 11px; font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 0;
    border: 1px solid var(--ink-15);
    background: var(--white);
    color: var(--ink-700);
}
.dossier-status.active  { background: var(--status-success-soft); color: var(--ink-900); border-color: var(--status-success); }
.dossier-status.pending { background: var(--gold-soft); color: var(--ink-900); border-color: var(--gold); }
.dossier-status.closed  { background: var(--cream-dim); color: var(--ink-500); border-color: var(--ink-15); }

.dossier-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink-900);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dossier-meta { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; color: var(--ink-500); }
.dossier-meta-item { display: flex; align-items: center; gap: 6px; }
.dossier-meta-item svg { width: 13px; height: 13px; stroke-width: 1.5; }

.dossier-body { padding: var(--space-sm) var(--space-md); }
.dossier-stats { display: flex; gap: 12px; }
.dossier-stat {
    flex: 1; text-align: center;
    padding: 12px;
    background: var(--cream);
    border: 1px solid var(--ink-15);
    border-radius: 0;
}
.dossier-stat-value {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--ink-900);
    line-height: 1;
}
.dossier-stat-label {
    font-size: 11px;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: var(--label-caps-tracking);
    font-weight: 700;
    margin-top: 4px;
}

.dossier-footer {
    padding: 12px var(--space-md);
    background: var(--cream);
    border-top: 1px solid var(--ink-15);
    display: flex; align-items: center; justify-content: space-between;
}
.dossier-members { display: flex; align-items: center; }
.member-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--ink-900);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-size: 11px; font-weight: 600;
    border: 2px solid var(--white);
    margin-left: -8px;
}
.member-avatar:first-child { margin-left: 0; }
.dossier-date {
    font-size: 12px;
    color: var(--ink-500);
    font-family: var(--font-sans);
    letter-spacing: 0.04em;
}

/* ============================================================================
   SECTION HEADERS
   ========================================================================= */

.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin: var(--space-md) 0 var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--ink-15);
}
.section-header:first-child { margin-top: 0; }
.section-title {
    font-family: var(--font-serif);
    font-size: var(--h2-size);
    font-weight: 500;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.section-eyebrow {
    font-size: var(--label-caps-size);
    font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    color: var(--gold-deep-text);
    margin-bottom: 6px;
}

/* ============================================================================
   ACTIVITY LIST
   ========================================================================= */

.activity-list {
    background: var(--white);
    border: 1px solid var(--ink-15);
    border-radius: 0;
    overflow: hidden;
}
.activity-item {
    padding: var(--space-sm) var(--space-md);
    display: flex; align-items: flex-start; gap: var(--space-sm);
    border-bottom: 1px solid var(--ink-15);
    transition: background 0.12s ease;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--cream-dim); transform: none; }
.activity-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink-500);
    border: 1px solid var(--ink-15);
}
.activity-icon svg { width: 16px; height: 16px; stroke-width: 1.5; }
.activity-icon.upload     { background: var(--status-success-soft); color: var(--status-success); border-color: var(--status-success); }
.activity-icon.annotation { background: var(--contentieux-soft); color: var(--contentieux); border-color: var(--contentieux); }
.activity-icon.share      { background: var(--gold-soft); color: var(--gold-deep); border-color: var(--gold); }
.activity-icon.export     { background: var(--cream-dim); color: var(--ink-900); border-color: var(--ink-15); }
.activity-content { flex: 1; min-width: 0; }
.activity-text { font-size: var(--body-sm-size); color: var(--ink-700); line-height: 1.5; }
.activity-text strong { font-weight: 600; color: var(--ink-900); }
.activity-text a { color: var(--ink-900); text-decoration: none; border-bottom: 1px solid var(--ink-15); }
.activity-text a:hover { border-bottom-color: var(--gold); }
.activity-time { font-size: 12px; color: var(--ink-500); margin-top: 4px; font-family: var(--font-sans); letter-spacing: 0.02em; }

/* ============================================================================
   EMPTY STATE
   ========================================================================= */

.empty-state { text-align: center; padding: var(--space-xl) var(--space-sm); }
.empty-state-icon {
    width: 80px; height: 80px;
    margin: 0 auto var(--space-sm);
    background: var(--cream-dim);
    border: 1px solid var(--ink-15);
    border-radius: 0;
    display: flex; align-items: center; justify-content: center;
}
.empty-state-icon svg { width: 36px; height: 36px; color: var(--ink-500); stroke-width: 1.25; }
.empty-state-title {
    font-family: var(--font-serif);
    font-size: var(--h3-size);
    font-weight: 500;
    color: var(--ink-900);
    margin-bottom: 8px;
}
.empty-state-text { font-size: var(--body-sm-size); color: var(--ink-500); margin-bottom: var(--space-sm); }

/* ============================================================================
   UTILITY
   ========================================================================= */

.hr-rule { border: none; height: 1px; background: var(--ink-15); margin: var(--space-md) 0; }
.muted   { color: var(--ink-500); }
.caps {
    font-size: var(--label-caps-size); font-weight: 700;
    letter-spacing: var(--label-caps-tracking); text-transform: uppercase;
    color: var(--ink-500);
}
.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }

/* ============================================================================
   ANIMATIONS — preserved for shared-scripts.js compatibility
   (kept restrained: no large translateY hovers, no scale pulses)
   ========================================================================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes progressFill {
    from { width: 0; }
}

.animate-fade-in    { animation: fadeIn 0.4s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }
.animate-scale-in   { animation: fadeInScale 0.3s ease-out forwards; }

.animate-stagger > * { opacity: 0; animation: fadeInUp 0.4s ease-out forwards; }
.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.10s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.20s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.30s; }
.animate-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.animate-stagger > *:nth-child(8) { animation-delay: 0.40s; }
.animate-stagger > *:nth-child(9) { animation-delay: 0.45s; }
.animate-stagger > *:nth-child(10){ animation-delay: 0.50s; }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.count-up { display: inline-block; transition: transform 0.2s ease; }
.count-up.counting { animation: countPulse 0.3s ease; }

.progress-bar-fill { animation: progressFill 1s ease-out forwards; }

.card-hover { transition: border-color 0.12s ease; }
.card-hover:hover { border-color: var(--ink-900); transform: none; box-shadow: none; }

.shimmer {
    background: linear-gradient(90deg, var(--cream-dim) 25%, var(--ink-15) 50%, var(--cream-dim) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.badge-pulse { position: relative; }
.badge-pulse::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: inherit;
    animation: pulse 2s infinite;
    z-index: -1;
}
@keyframes pulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.4);  opacity: 0; }
}

.icon-rotate-hover:hover svg {
    transform: rotate(15deg);
    transition: transform 0.3s ease;
}

/* ============================================================================
   Scope marker — V1.0+ features (post-MVP roadmap, kept in wireframes per
   CLAUDE.md anti-drift rule). Sub-livraison 2.3j (audit retroactif).
   Applied via [data-scope="v1.0-plus"] on tab-item, button, link, etc.
   Visual : subtle eyebrow caps "v1.0+" suffix in gold, slightly faded weight.
   ============================================================================ */
[data-scope="v1.0-plus"] {
    opacity: 0.85;
}
[data-scope="v1.0-plus"]::after {
    content: " v1.0+";
    display: inline-block;
    margin-left: 4px;
    padding: 1px 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    color: var(--gold-deep-text);
    border: 1px solid var(--gold);
    background: var(--gold-soft);
    vertical-align: middle;
    line-height: 1.3;
}
.tab-item[data-scope="v1.0-plus"] .tab-badge { display: none; }

/* ============================================================================
   Subscription status banner (BILLING-SUBSCRIPTION.md v1.1 §6.1) — sits at the
   top of .main-content on every screen. Variants:
     .is-info     beta, more than 14 days before its end (discreet)
     .is-urgent   last 14 days of the beta and the 30-day grace period
     .is-readonly read-only workspace (action required)
   Gold is a marker only (never body text); bordeaux = action required.
   ========================================================================= */
.subscription-banner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px var(--margin);
    font-size: var(--body-sm-size);
    line-height: var(--body-sm-lh);
    color: var(--ink-900);
    border-bottom: 1px solid var(--ink-15);
    border-left: 3px solid transparent;
}
.subscription-banner svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.75; }
.subscription-banner-text { flex: 1; min-width: 0; }
.subscription-banner-text strong { font-weight: 600; }
.subscription-banner .btn { flex-shrink: 0; }
.subscription-banner-actions { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; }
/* Icon inside a banner button: follows the button's text colour, not the variant's marker colour. */
.subscription-banner .btn { display: inline-flex; align-items: center; gap: 6px; }
.subscription-banner .btn svg { width: 16px; height: 16px; color: currentColor; }

.subscription-banner.is-info { background: var(--cream-dim); color: var(--ink-700); border-left-color: var(--parchment-edge); }
.subscription-banner.is-info svg { color: var(--ink-500); }
.subscription-banner.is-urgent { background: var(--gold-soft); border-left-color: var(--gold); }
.subscription-banner.is-urgent svg { color: var(--gold-deep-text); }
.subscription-banner.is-readonly { background: var(--bordeaux-soft); border-left-color: var(--bordeaux); }
.subscription-banner.is-readonly svg { color: var(--bordeaux); }

@media (max-width: 768px) {
    .subscription-banner { flex-wrap: wrap; padding: 12px var(--space-sm); }
    .subscription-banner .btn { width: 100%; justify-content: center; }
    .subscription-banner-actions { width: 100%; flex-direction: column; }
}

/* Access ended (status "closed") — replaces the page content. */
.access-ended {
    max-width: 560px;
    margin: var(--space-xl) auto;
    padding: var(--space-lg) var(--space-md);
    background: var(--white);
    border: 1px solid var(--ink-15);
    border-top: 3px solid var(--bordeaux);
}
.access-ended-eyebrow {
    font-size: var(--label-caps-size);
    letter-spacing: var(--label-caps-tracking);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bordeaux);
    margin-bottom: var(--space-xs);
}
.access-ended h1 {
    font-family: var(--font-serif);
    font-size: var(--h2-size);
    line-height: var(--h2-lh);
    font-weight: 500;
    color: var(--ink-900);
    margin: 0 0 var(--space-sm);
}
.access-ended p { color: var(--ink-700); margin: 0 0 var(--space-sm); }
.access-ended .btn { margin-top: var(--space-xs); }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL DIALOG — mirrors .confirm-* of app.css (sharp, ink-15 border, cream-dim
   icon nest and action bar). Used by the feedback dialog injected on every page.
   ═══════════════════════════════════════════════════════════════════════════ */
.confirm-backdrop {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(31, 41, 55, 0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.confirm-backdrop[hidden] { display: none; }
.confirm-card {
    background: var(--white); border: 1px solid var(--ink-15); border-radius: 0;
    box-shadow: var(--shadow-sharp); width: 100%; max-width: 420px; overflow: hidden;
}
.confirm-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px 0; }
.confirm-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cream-dim); border: 1px solid var(--ink-15); color: var(--ink-900);
}
.confirm-title {
    font-family: var(--font-serif); font-size: 20px; font-weight: 500;
    letter-spacing: -0.01em; margin: 0; color: var(--ink-900);
}
.confirm-body { padding: 12px 24px 20px; }
.confirm-body[hidden] { display: none; }
.confirm-message { margin: 0; color: var(--ink-700); font-size: 15px; line-height: 1.55; }
.confirm-actions {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 16px 24px; border-top: 1px solid var(--ink-15); background: var(--cream-dim);
}
.confirm-actions .btn { min-width: 90px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FEEDBACK (Lot 6, 5.24) — "Votre avis" banner button + dialog
   ═══════════════════════════════════════════════════════════════════════════ */
.feedback-dialog { max-width: 520px; }
.feedback-form .confirm-message { margin-bottom: var(--space-md); }
.feedback-kind {
    display: flex; flex-wrap: wrap; gap: var(--space-sm);
    border: none; padding: 0; margin: 0 0 var(--space-md);
}
.feedback-kind legend { width: 100%; margin-bottom: var(--space-xs); }
.feedback-kind-option {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--ink-15);
    font-size: 14px; color: var(--ink-900); cursor: pointer;
}
.feedback-kind-option:has(input:checked) { border-color: var(--ink-900); background: var(--cream-dim); }
.feedback-form .form-textarea { width: 100%; }
.feedback-counter { text-align: right; font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.feedback-hint { font-size: 13px; color: var(--ink-500); margin: var(--space-sm) 0 0; line-height: 1.5; }
.feedback-error {
    margin: var(--space-sm) 0 0; padding: var(--space-xs) var(--space-sm);
    font-size: 13px; font-weight: 500;
    background: var(--bordeaux-soft); color: var(--bordeaux); border: 1px solid var(--bordeaux);
}
.feedback-error[hidden] { display: none; }
