    :root {
      --bg-outer: #F4F5F7;
      --bg-app: #F4F5F7;
      --bg-sidebar: #09090B;
      --bg-sidebar-pill: #18181B;
      
      --accent-lilac: #8B5CF6;
      --accent-lilac-light: #A78BFA;
      --accent-red: #EF4444;
      --accent-green: #10B981;
      --accent-orange: #F59E0B;
      --accent-blue: #3B82F6;

      --card-white: #FFFFFF;
      --card-light: #EBECEF;
      --card-light-hover: #E2E4E8;
      
      --text-main: #09090B;
      --text-muted: #64748B;
      --text-light: #94A3B8;
      --border-subtle: #E2E8F0;
      
      --radius-app: 0px;
      --radius-card: 16px;
      --radius-row: 14px;
      --radius-pill: 9999px;
      --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    html, body {
      background: #F4F5F7 !important;
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
      display: flex;
      color: var(--text-main);
      overflow: hidden;
    }

    /* ── Cadre Principal de l'Application (Plein Écran Natif) ── */
    .app-frame {
      width: 100%;
      height: 100vh;
      box-sizing: border-box;
      background: #F4F5F7;
      border-radius: 0;
      border: none;
      outline: none;
      display: flex;
      padding: 14px;
      box-shadow: none;
      overflow: hidden;
      gap: 14px;
      position: relative;
    }

    /* ================= SIDEBAR DRIVERY ================= */
    .sidebar {
      width: 255px;
      background-color: var(--bg-sidebar);
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 22px 16px;
      color: #FFF;
      flex-shrink: 0;
      user-select: none;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 8px 18px 8px;
    }

    .brand-logo {
      width: 34px;
      height: 34px;
      background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #FFF;
      font-size: 15px;
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    }

    .brand-title {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.5px;
      color: #FFF;
    }

    .brand-subtitle {
      font-size: 10px;
      color: #71717A;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .nav-menu {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 10px;
      flex-grow: 1;
    }

    .nav-pill {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      background-color: var(--bg-sidebar-pill);
      color: #94A3B8;
      border-radius: var(--radius-pill);
      text-decoration: none;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      border: 1px solid transparent;
    }

    .nav-pill:hover {
      background-color: #27272A;
      color: #FFF;
    }

    .nav-pill.active {
      background-color: var(--accent-lilac);
      color: #FFF;
      box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    }

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

    .badge-count {
      background: var(--accent-red);
      color: #FFF;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: var(--radius-pill);
      min-width: 18px;
      text-align: center;
    }

    .sidebar-user {
      background: #141417;
      border: 1px solid #27272A;
      border-radius: 14px;
      padding: 12px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      transition: background .15s;
    }
    .sidebar-user:hover {
      background: #1C1C21;
    }

    .user-avatar-wrapper {
      position: relative;
      display: inline-block;
      flex-shrink: 0;
    }
    .user-avatar-mini {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--accent-lilac);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      flex-shrink: 0;
    }
    .user-avatar-update-dot {
      position: absolute;
      top: -2px;
      right: -2px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #EF4444;
      border: 2px solid #141417;
      box-shadow: 0 0 8px #EF4444;
      animation: pulseAvatarDot 2s infinite ease-in-out;
    }

    .user-meta {
      flex: 1;
      min-width: 0;
    }
    .user-name-text {
      font-size: 12px;
      font-weight: 700;
      color: #FFF;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .user-role-badge {
      font-size: 9.5px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      display: inline-block;
      margin-top: 2px;
    }
    .user-role-badge.admin { background: rgba(16, 185, 129, 0.2); color: #34D399; }
    .user-role-badge.member { background: rgba(139, 92, 246, 0.2); color: #C4B5FD; }

    .user-update-pin {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(239, 68, 68, 0.16);
      border: 1px solid rgba(239, 68, 68, 0.45);
      color: #F87171;
      padding: 2px 7px;
      border-radius: 9999px;
      font-size: 10px;
      font-weight: 700;
      white-space: nowrap;
      animation: pulsePinGlow 2s infinite ease-in-out;
      cursor: pointer;
      flex-shrink: 0;
      transition: all .15s ease;
    }
    .user-update-pin:hover {
      background: rgba(239, 68, 68, 0.28);
      border-color: rgba(239, 68, 68, 0.7);
      transform: translateY(-1px);
    }
    .update-pin-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #EF4444;
      box-shadow: 0 0 6px #EF4444;
    }

    @keyframes pulseAvatarDot {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.2); opacity: 0.8; }
    }
    @keyframes pulsePinGlow {
      0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
      50% { box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.25); }
    }

    /* Carte Extension dans la Modale Profil */
    .profile-ext-card {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
      border: 1px solid rgba(139, 92, 246, 0.25);
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 14px;
    }
    .profile-ext-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .profile-ext-title-box {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .profile-ext-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
      color: #FFF;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
    }
    .profile-ext-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-main);
    }
    .profile-ext-sub {
      font-size: 10.5px;
      color: var(--text-muted);
    }
    .profile-ext-version-badge {
      font-size: 11px;
      font-weight: 700;
      color: var(--accent-lilac);
      background: rgba(139, 92, 246, 0.12);
      border: 1px solid rgba(139, 92, 246, 0.3);
      padding: 2px 9px;
      border-radius: 9999px;
    }
    .profile-ext-status-banner {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 11.5px;
      font-weight: 600;
      margin-bottom: 12px;
      background: rgba(245, 158, 11, 0.12);
      color: #D97706;
      border: 1px solid rgba(245, 158, 11, 0.3);
    }
    .profile-ext-status-banner.up-to-date {
      background: rgba(16, 185, 129, 0.12);
      color: #059669;
      border-color: rgba(16, 185, 129, 0.3);
    }
    .profile-ext-status-banner.update-required {
      background: rgba(239, 68, 68, 0.12);
      color: #DC2626;
      border-color: rgba(239, 68, 68, 0.3);
    }
    .profile-ext-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .btn-download-ext {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
      color: #FFF;
      border: none;
      border-radius: 8px;
      padding: 9px 14px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: all .15s ease;
      box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    }
    .btn-download-ext:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(139, 92, 246, 0.45);
    }
    .btn-help-ext {
      background: transparent;
      color: var(--text-muted);
      border: 1px solid #E2E8F0;
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 11.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all .15s ease;
    }
    .btn-help-ext:hover {
      background: #F1F5F9;
      color: var(--text-main);
    }
    .profile-ext-guide {
      margin-top: 10px;
      padding: 10px 12px;
      background: #FFF;
      border: 1px dashed rgba(139, 92, 246, 0.35);
      border-radius: 8px;
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.6;
    }
    .ext-guide-step {
      margin-bottom: 4px;
    }
    .ext-guide-step code {
      background: #F1F5F9;
      padding: 1px 4px;
      border-radius: 4px;
      color: #8B5CF6;
      font-family: monospace;
    }

    /* ================= SOUS-ONGLETS MODALE PROFIL ================= */
    .profile-subtabs-nav {
      display: flex;
      background: #F1F5F9;
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      padding: 4px;
      gap: 6px;
      margin-bottom: 16px;
    }
    .profile-subtab-btn {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 9px 14px;
      border-radius: 9px;
      border: none;
      background: transparent;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
    }
    .profile-subtab-btn:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.6);
    }
    .profile-subtab-btn.active {
      background: #FFFFFF;
      color: var(--accent-lilac);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    }
    .profile-subtab-btn .subtab-tag {
      font-size: 10px;
      padding: 1px 7px;
      border-radius: 9999px;
      background: rgba(139, 92, 246, 0.12);
      color: var(--accent-lilac);
      font-weight: 700;
    }

    .profile-subtab-panel {
      display: none;
      animation: fadeInSubtab 0.2s ease-out;
    }
    .profile-subtab-panel.active {
      display: block;
    }
    @keyframes fadeInSubtab {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Modal Profil Taille Adaptée */
    #profileModal .modal-card {
      max-width: 580px;
    }

    /* ================= PLAYBOOK SDR HERMÈS IA (COLLAPSIBLE) ================= */
    .playbook-intro-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
      border: 1px solid rgba(139, 92, 246, 0.2);
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 14px;
      gap: 12px;
    }
    .playbook-intro-text {
      flex: 1;
    }
    .playbook-intro-title {
      font-size: 13px;
      font-weight: 800;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .playbook-intro-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 3px;
      line-height: 1.4;
    }
    .btn-toggle-all-cards {
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      color: var(--text-muted);
      border-radius: 8px;
      padding: 6px 11px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      transition: all 0.15s ease;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
      flex-shrink: 0;
    }
    .btn-toggle-all-cards:hover {
      background: #F8FAFC;
      color: var(--text-main);
      border-color: #CBD5E1;
    }

    /* Cartes Dépliables (Accordéons Playbook) */
    .playbook-card {
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      margin-bottom: 10px;
      overflow: hidden;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .playbook-card:hover {
      border-color: #CBD5E1;
    }
    .playbook-card.open {
      border-color: rgba(139, 92, 246, 0.35);
      box-shadow: 0 4px 12px rgba(139, 92, 246, 0.05);
    }
    .playbook-card-header {
      padding: 11px 14px;
      background: #F8FAFC;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      user-select: none;
      transition: background 0.15s ease;
    }
    .playbook-card.open .playbook-card-header {
      background: #F8FAFC;
      border-bottom: 1px solid #F1F5F9;
    }
    .playbook-card-header:hover {
      background: #F1F5F9;
    }
    .playbook-card-title-group {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .playbook-card-icon {
      font-size: 16px;
      flex-shrink: 0;
    }
    .playbook-card-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .playbook-card-desc {
      font-size: 10.5px;
      color: var(--text-muted);
      margin-top: 1px;
    }
    .playbook-card-right {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }
    .playbook-status-badge {
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 9999px;
      background: #E2E8F0;
      color: #64748B;
      transition: all 0.2s ease;
    }
    .playbook-status-badge.filled {
      background: rgba(16, 185, 129, 0.12);
      color: #059669;
      border: 1px solid rgba(16, 185, 129, 0.25);
    }
    .playbook-chevron {
      font-size: 11px;
      color: #94A3B8;
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .playbook-card.open .playbook-chevron {
      transform: rotate(180deg);
      color: var(--accent-lilac);
    }
    .playbook-card-body {
      display: none;
      padding: 12px 14px;
      background: #FFFFFF;
    }
    .playbook-card.open .playbook-card-body {
      display: block;
      animation: slideDownCard 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slideDownCard {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Bouton Téléchargement Extension dans Sidebar */
    .sidebar-ext-btn {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(99, 102, 241, 0.08) 100%);
      border: 1px solid rgba(139, 92, 246, 0.35);
      border-radius: 12px;
      padding: 9px 12px;
      margin-top: 8px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
    }
    .sidebar-ext-btn:hover {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.26) 0%, rgba(99, 102, 241, 0.15) 100%);
      border-color: rgba(139, 92, 246, 0.6);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    }
    .sidebar-ext-left {
      display: flex;
      align-items: center;
      gap: 9px;
    }
    .ext-icon-box {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: rgba(139, 92, 246, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #DDD6FE;
      font-size: 13px;
    }
    .sidebar-ext-info {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }
    .ext-title {
      font-size: 11.5px;
      font-weight: 700;
      color: #FFF;
      letter-spacing: .01em;
    }
    .ext-badge {
      font-size: 9.5px;
      color: #A78BFA;
      font-weight: 600;
    }
    .ext-dl-icon {
      font-size: 12px;
      color: #C4B5FD;
      transition: transform 0.2s ease, color 0.2s ease;
    }
    .sidebar-ext-btn:hover .ext-dl-icon {
      transform: translateY(2px);
      color: #FFF;
    }

    .sidebar-bottom {
      padding-top: 14px;
      border-top: 1px solid #1C1C21;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .bottom-link {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #94A3B8;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      padding: 8px 10px;
      border-radius: 8px;
      transition: all .15s;
    }
    .bottom-link:hover {
      color: #FFF;
      background: rgba(255, 255, 255, 0.05);
    }

    /* ================= MAIN CONTENT ================= */
    .main-content {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 4px 6px 4px 4px;
      min-width: 0;
    }

    .page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      gap: 12px;
      flex-shrink: 0;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .page-header h1 {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.7px;
      color: var(--text-main);
    }

    .status-conn-dot {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: var(--radius-pill);
      background: rgba(16, 185, 129, 0.12);
      color: #059669;
      border: 1px solid rgba(16, 185, 129, 0.25);
    }
    .status-conn-dot.bad {
      background: rgba(239, 68, 68, 0.12);
      color: #DC2626;
      border-color: rgba(239, 68, 68, 0.25);
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .btn-header {
      background: var(--bg-sidebar);
      color: #FFF;
      border: none;
      padding: 9px 16px;
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all .2s;
    }
    .btn-header:hover {
      background: #27272A;
      transform: translateY(-1px);
    }

    .btn-header-ghost {
      background: #FFF;
      color: var(--text-main);
      border: 1px solid var(--border-subtle);
      padding: 8px 14px;
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all .15s;
    }
    .btn-header-ghost:hover {
      background: var(--card-light);
    }

    .view-container {
      flex-grow: 1;
      overflow-y: auto;
      min-height: 0;
      position: relative;
    }

    .view-panel {
      display: none;
      height: 100%;
    }
    .view-panel.active {
      display: flex;
      flex-direction: column;
    }

    /* ================= VUE 1 : DASHBOARD & KPI ================= */
    .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin-bottom: 20px;
    }

    .kpi-card {
      background: #FFF;
      border-radius: var(--radius-card);
      padding: 18px 20px;
      box-shadow: var(--shadow-soft);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: 1px solid rgba(0, 0, 0, 0.03);
    }

    .kpi-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .kpi-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .kpi-icon-wrap {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
    }
    .kpi-icon-wrap.purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-lilac); }
    .kpi-icon-wrap.green  { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
    .kpi-icon-wrap.orange { background: rgba(245, 158, 11, 0.12); color: var(--accent-orange); }
    .kpi-icon-wrap.blue   { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
    .kpi-icon-wrap.gray   { background: rgba(148, 163, 184, 0.15); color: #64748B; }
    .kpi-icon-wrap.red    { background: rgba(239, 68, 68, 0.12); color: #EF4444; }

    .kpi-val {
      font-size: 32px;
      font-weight: 800;
      letter-spacing: -1px;
      color: var(--text-main);
      line-height: 1;
    }

    .kpi-sub {
      font-size: 11.5px;
      color: var(--text-muted);
      margin-top: 6px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .kpi-progress-bar {
      height: 6px;
      background: var(--card-light);
      border-radius: 3px;
      margin-top: 10px;
      overflow: hidden;
    }
    .kpi-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent-lilac) 0%, #C4B5FD 100%);
      border-radius: 3px;
      transition: width 0.4s ease;
    }

    /* Section Équipe & Relances urgentes */
    .dashboard-two-cols {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 16px;
      flex-grow: 1;
      min-height: 0;
    }

    .section-box {
      background: #FFF;
      border-radius: var(--radius-card);
      padding: 18px 20px;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(0, 0, 0, 0.03);
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .section-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    .section-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .team-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12.5px;
    }
    .team-table th {
      text-align: left;
      font-size: 10.5px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: .05em;
      padding: 8px 12px;
      border-bottom: 1px solid var(--border-subtle);
    }
    .team-table td {
      padding: 10px 12px;
      border-bottom: 1px solid #F1F5F9;
      font-weight: 600;
    }
    .team-table tr:hover td {
      background: #FAFAFA;
    }

    /* ================= VUE 2 : BASE PROSPECTS ================= */
    .filter-bar-container {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 14px;
      flex-shrink: 0;
    }

    .search-and-dropdowns {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .search-box {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #FFF;
      padding: 9px 18px;
      border-radius: var(--radius-pill);
      width: 360px;
      border: 1px solid var(--border-subtle);
      box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    }

    .search-box input {
      border: none;
      background: transparent;
      outline: none;
      width: 100%;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-main);
    }

    .dropdown-filters {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .select-pill {
      background: #FFF;
      border: 1px solid var(--border-subtle);
      padding: 8px 14px;
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 600;
      color: var(--text-main);
      cursor: pointer;
      outline: none;
      transition: border-color .15s;
    }
    .select-pill:hover {
      border-color: #CBD5E1;
    }

    .segmented-control {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      align-items: center;
    }

    .pill-tab {
      padding: 6px 14px;
      border-radius: var(--radius-pill);
      font-size: 11.5px;
      font-weight: 700;
      background-color: #FFF;
      color: var(--text-muted);
      border: 1px solid var(--border-subtle);
      cursor: pointer;
      transition: all 0.15s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .pill-tab:hover:not(.active) {
      background-color: #F8FAFC;
      color: var(--text-main);
    }

    .pill-tab.active {
      background-color: var(--bg-sidebar);
      color: #FFF;
      border-color: var(--bg-sidebar);
    }

    .pill-tab.active .pill-counter {
      background: rgba(255, 255, 255, 0.2);
      color: #FFF;
    }

    .pill-counter {
      font-size: 10px;
      background: var(--card-light);
      padding: 1px 6px;
      border-radius: var(--radius-pill);
      color: var(--text-muted);
    }

    .pill-tab-overdue {
      border-color: rgba(245, 158, 11, 0.4);
      background: #FFFBEB;
      color: #B45309;
    }
    .pill-tab-overdue.active {
      background: #B45309;
      color: #FFF;
      border-color: #B45309;
    }

    /* Barre de tri CRM */
    .sort-control-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: #FFF;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-pill);
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 12px;
      flex-shrink: 0;
    }

    .sort-btn {
      background: transparent;
      border: none;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      cursor: pointer;
      transition: all .15s;
    }
    .sort-btn:hover { background: #F1F5F9; color: var(--text-main); }
    .sort-btn.active {
      background: rgba(139, 92, 246, 0.15);
      color: var(--accent-lilac);
      font-weight: 700;
    }

    /* Liste des prospects */
    .prospects-list-wrapper {
      flex-grow: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-right: 4px;
    }

    .prospect-card {
      background-color: #FFF;
      border-radius: var(--radius-row);
      padding: 12px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.15s ease;
      border: 1px solid rgba(0, 0, 0, 0.03);
      cursor: pointer;
      user-select: none;
    }

    .prospect-card:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(0,0,0,0.05);
      border-color: #CBD5E1;
    }

    .prospect-card.selected {
      border-color: var(--accent-lilac);
      background: #FAF8FF;
    }

    .prospect-info {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 320px;
      min-width: 0;
    }

    .avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 12px;
      flex-shrink: 0;
      color: #FFF;
    }

    .prospect-name {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .prospect-job {
      font-size: 11.5px;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Badges Pipeline */
    .status-badge {
      padding: 3px 10px;
      border-radius: var(--radius-pill);
      font-size: 10.5px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
    }

    .badge-scrape     { background: #E0F2FE; color: #0284C7; }
    .badge-invite     { background: #F1F5F9; color: #475569; }
    .badge-accepte    { background: #DCFCE7; color: #15803D; }
    .badge-repondu    { background: #FEF3C7; color: #B45309; }
    .badge-rdv        { background: #F3E8FF; color: #6B21A8; }
    .badge-inscrit    { background: #EDE9FE; color: #5B21B6; }
    .badge-perdu      { background: #FEE2E2; color: #B91C1C; }
    .badge-certified  { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; font-weight: 700; box-shadow: 0 1px 2px rgba(16,185,129,0.1); }
    .badge-probable   { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; font-weight: 700; box-shadow: 0 1px 2px rgba(245,158,11,0.08); }
    .badge-greylisted { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; font-weight: 700; }
    .badge-grade-a-plus  { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; font-weight: 800; box-shadow: 0 1px 3px rgba(16,185,129,0.18); }
    .badge-grade-a       { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; font-weight: 800; box-shadow: 0 1px 3px rgba(37,99,235,0.14); }
    .badge-grade-a-minus { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; font-weight: 800; box-shadow: 0 1px 3px rgba(245,158,11,0.12); }
    .grade-pill-mini {
      display: inline-flex;
      align-items: center;
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 800;
      line-height: 1.25;
      margin-left: 5px;
      vertical-align: middle;
      letter-spacing: 0.2px;
    }

    .badge-overdue {
      background: rgba(239, 68, 68, 0.1);
      color: #DC2626;
      border: 1px solid rgba(239, 68, 68, 0.3);
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 12px;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .prospect-status-col {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .prospect-signals {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .chip-icon {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      flex-shrink: 0;
      cursor: help;
      transition: all 0.15s ease;
    }
    .chip-icon:hover {
      transform: translateY(-1px) scale(1.1);
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    .chip-ai {
      background: rgba(99, 102, 241, 0.12);
      color: #6366F1;
      border: 1px solid rgba(99, 102, 241, 0.3);
    }
    .chip-flash {
      background: rgba(139, 92, 246, 0.12);
      color: #8B5CF6;
      border: 1px solid rgba(139, 92, 246, 0.3);
    }
    .chip-1st {
      background: rgba(16, 185, 129, 0.12);
      color: #10B981;
      border: 1px solid rgba(16, 185, 129, 0.3);
    }
    .chip-pending {
      background: rgba(245, 158, 11, 0.12);
      color: #D97706;
      border: 1px solid rgba(245, 158, 11, 0.3);
    }

    .source-tag {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    .sdr-assigned-tag {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-main);
      background: var(--card-light);
      padding: 4px 10px;
      border-radius: 8px;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid var(--border-subtle, #E2E8F0);
    }

    .sdr-proj-logo {
      width: 17px;
      height: 17px;
      object-fit: contain;
      flex-shrink: 0;
      display: inline-block;
      vertical-align: middle;
      border-radius: 3px;
    }

    .proj-badge-pill {
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      letter-spacing: 0.2px;
    }
    .proj-badge-pill.foxtmedia {
      background: #FFF7ED;
      color: #C2410C;
      border: 1px solid rgba(234, 88, 12, 0.25);
    }
    .proj-badge-pill.otorank_ai {
      background: #EFF6FF;
      color: #1D4ED8;
      border: 1px solid rgba(37, 99, 235, 0.25);
    }

    .pagination-bar {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 12px 14px;
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 600;
      flex-shrink: 0;
      border-top: 1px solid var(--border-subtle);
      margin-top: 4px;
    }

    #paginationText {
      justify-self: start;
      white-space: nowrap;
    }

    .pagination-btns {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      justify-self: center;
    }

    .pagination-spacer {
      justify-self: end;
      min-width: 20px;
    }

    @media (max-width: 820px) {
      .pagination-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding-bottom: 70px;
      }
      .pagination-spacer {
        display: none;
      }
    }

    .page-btn {
      min-width: 32px;
      height: 32px;
      padding: 0 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #FFF;
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-dark);
      transition: all .15s ease;
      box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }
    .page-btn:hover {
      background: #F8FAFC;
      border-color: #CBD5E1;
      transform: translateY(-1px);
    }
    .page-btn.active {
      background: var(--bg-sidebar);
      color: #FFF;
      border-color: var(--bg-sidebar);
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    }

    /* Bouton Suppression de profil (Cartes et CRM) */
    .btn-card-delete {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      border: 1px solid var(--border-subtle);
      background: #FFF;
      color: #94A3B8;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 12.5px;
      transition: all 0.18s ease;
      flex-shrink: 0;
    }
    .btn-card-delete:hover {
      background: #FEE2E2;
      color: #DC2626;
      border-color: #FECACA;
      transform: scale(1.06);
    }
    .btn-delete-crm {
      width: 100%;
      margin-top: 10px;
      padding: 9px 14px;
      border-radius: 10px;
      border: 1px solid rgba(239, 68, 68, 0.25);
      background: rgba(239, 68, 68, 0.04);
      color: #DC2626;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.2s ease;
    }
    .btn-delete-crm:hover {
      background: #EF4444;
      color: #FFF;
      border-color: #EF4444;
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    }

    /* Barre flottante d'actions groupées */
    .bulk-actions-floating-bar {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      background: #0F172A;
      color: #FFF;
      padding: 10px 20px;
      border-radius: 30px;
      display: flex;
      align-items: center;
      gap: 16px;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
      z-index: 1000;
      animation: slideUpBulk 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slideUpBulk {
      from { transform: translate(-50%, 20px); opacity: 0; }
      to { transform: translate(-50%, 0); opacity: 1; }
    }
    .bulk-info {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
    }
    .bulk-count-badge {
      background: var(--accent-primary, #6366F1);
      color: #FFF;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 700;
    }
    .bulk-actions-btns {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .btn-bulk-delete {
      background: #EF4444;
      color: #FFF;
      border: none;
      padding: 7px 15px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s ease;
    }
    .btn-bulk-delete:hover {
      background: #DC2626;
      transform: scale(1.03);
    }
    .btn-bulk-cancel {
      background: transparent;
      color: #94A3B8;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .btn-bulk-cancel:hover {
      color: #FFF;
      background: rgba(255, 255, 255, 0.1);
    }

    /* Checkbox de sélection sur prospect card */
    .prospect-select-cb {
      width: 17px;
      height: 17px;
      cursor: pointer;
      accent-color: var(--accent-primary, #6366F1);
      border-radius: 4px;
      flex-shrink: 0;
      margin-right: 6px;
    }

    /* Bouton suppression message au survol */
    .msg-bubble {
      position: relative;
    }
    .btn-msg-del {
      position: absolute;
      top: 4px;
      right: 4px;
      background: rgba(239, 68, 68, 0.1);
      border: none;
      color: #EF4444;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      transition: all 0.15s ease;
    }
    .msg-bubble:hover .btn-msg-del {
      display: flex;
    }
    .btn-msg-del:hover {
      background: #EF4444;
      color: #FFF;
      transform: scale(1.15);
    }

    /* ================= VUE 3 : MESSAGERIE 3 COLONNES ================= */
    .inbox-grid {
      display: flex;
      gap: 14px;
      height: 100%;
      min-height: 0;
      position: relative;
    }

    .inbox-col-threads {
      width: 330px;
      min-width: 290px;
      flex-shrink: 0;
      background: #FFF;
      border-radius: var(--radius-card);
      padding: 14px 12px 10px 14px;
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(0, 0, 0, 0.03);
      box-shadow: var(--shadow-soft);
      height: 100%;
      max-height: 100%;
      min-height: 0;
      overflow: hidden; /* Empêche strictement la colonne entière de scroller */
      box-sizing: border-box;
      position: relative;
    }

    /* En-tête fixe et 100% stable de l'inbox (Titre, Recherche, Filtres) */
    .inbox-col-header {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-bottom: 8px;
      margin-bottom: 6px;
      border-bottom: 1px solid #F1F5F9;
      background: #FFF;
      z-index: 4;
      width: 100%;
      box-sizing: border-box;
    }

    /* Barre de filtres par statut dans l'inbox */
    .inbox-filter-bar {
      display: flex;
      align-items: center;
      gap: 5px;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 2px 2px 4px 2px;
      scrollbar-width: none;
      -ms-overflow-style: none;
      flex-shrink: 0; /* Ne peut jamais se rétracter ou s'écraser */
      width: 100%;
      box-sizing: border-box;
    }
    .inbox-filter-bar::-webkit-scrollbar {
      display: none;
    }

    .inbox-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 9px;
      font-size: 11px;
      font-weight: 600;
      border-radius: 9999px;
      border: 1px solid var(--border-subtle);
      background: #FFF;
      color: var(--text-muted);
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s ease;
      user-select: none;
      flex-shrink: 0;
      height: 26px;
      box-sizing: border-box;
      line-height: 1;
    }
    .inbox-pill:hover:not(.active) {
      background: #F1F5F9;
      color: var(--text-main);
      border-color: #CBD5E1;
    }
    .inbox-pill.active {
      background: #09090B;
      color: #FFF;
      border-color: #09090B;
      box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    }
    .inbox-pill-count {
      font-size: 9.5px;
      font-weight: 700;
      background: #F1F5F9;
      color: var(--text-muted);
      padding: 1px 5px;
      border-radius: 8px;
      line-height: 1.1;
    }
    .inbox-pill.active .inbox-pill-count {
      background: rgba(255, 255, 255, 0.22);
      color: #FFF;
    }
    .inbox-pill.pill-colleagues {
      border-color: rgba(139, 92, 246, 0.3);
      color: var(--accent-lilac);
      background: rgba(139, 92, 246, 0.05);
    }
    .inbox-pill.pill-colleagues:hover:not(.active) {
      background: rgba(139, 92, 246, 0.12);
      border-color: var(--accent-lilac);
    }
    .inbox-pill.pill-colleagues.active {
      background: #8B5CF6;
      border-color: #8B5CF6;
      color: #FFF;
    }
    .inbox-pill.pill-colleagues .inbox-pill-count {
      background: rgba(139, 92, 246, 0.15);
      color: #8B5CF6;
    }
    .inbox-pill.pill-colleagues.active .inbox-pill-count {
      background: rgba(255, 255, 255, 0.25);
      color: #FFF;
    }

    .threads-scroll {
      flex: 1 1 0;
      min-height: 0;
      max-height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding-right: 4px;
      margin-top: 0;
    }

    .thread-item {
      padding: 11px 12px;
      border-radius: 12px;
      background: #F8FAFC;
      cursor: pointer;
      transition: all .15s;
      border: 1px solid transparent;
    }
    .thread-item:hover {
      background: #F1F5F9;
    }
    .thread-item.active {
      background: #09090B;
      color: #FFF;
    }
    .thread-item.active .prospect-name { color: #FFF; }
    .thread-item.active .prospect-job { color: #A1A1AA; }
    .thread-item.active .thread-last-msg { color: #D4D4D8; }

    .thread-item-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 2px;
    }

    .thread-last-msg {
      font-size: 11.5px;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 4px;
    }

    .thread-company-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 9.5px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 4px;
      margin-top: 3px;
      white-space: nowrap;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .thread-company-tag.info {
      background: rgba(139, 92, 246, 0.08);
      color: #7C3AED;
      border: 1px solid rgba(139, 92, 246, 0.2);
    }
    .thread-company-tag.warning {
      background: #FEF3C7;
      color: #B45309;
      border: 1px solid #FDE68A;
      font-weight: 700;
    }
    .thread-company-tag.danger {
      background: #FEE2E2;
      color: #DC2626;
      border: 1px solid #FECACA;
      font-weight: 700;
    }
    .thread-item.active .thread-company-tag.info {
      background: rgba(255, 255, 255, 0.15);
      color: #E9D5FF;
      border-color: rgba(255, 255, 255, 0.25);
    }
    .thread-item.active .thread-company-tag.warning {
      background: rgba(245, 158, 11, 0.25);
      color: #FDE68A;
      border-color: rgba(245, 158, 11, 0.4);
    }
    .thread-item.active .thread-company-tag.danger {
      background: rgba(239, 68, 68, 0.25);
      color: #FECACA;
      border-color: rgba(239, 68, 68, 0.4);
    }

    /* Bannière Anti-Collision Multi-Contacts Entreprise */
    .company-collision-banner {
      background: #FFFBEB;
      border: 1px solid #FDE68A;
      border-left: 4px solid #F59E0B;
      border-radius: 10px;
      padding: 10px 14px;
      margin-bottom: 12px;
      flex-shrink: 0;
      animation: fadeInBanner 0.25s ease;
      box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
    }
    .company-collision-banner.danger-mode {
      background: #FEF2F2;
      border-color: #FECACA;
      border-left-color: #EF4444;
      box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
    }
    @keyframes fadeInBanner {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .collision-banner-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 4px;
    }
    .collision-banner-title {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 12px;
      font-weight: 700;
      color: #92400E;
    }
    .company-collision-banner.danger-mode .collision-banner-title {
      color: #991B1B;
    }
    .collision-icon {
      font-size: 13px;
      color: #F59E0B;
    }
    .company-collision-banner.danger-mode .collision-icon {
      color: #EF4444;
    }
    .collision-banner-count {
      font-size: 10px;
      font-weight: 700;
      background: #FEF3C7;
      color: #92400E;
      padding: 1px 7px;
      border-radius: 12px;
      border: 1px solid #FDE68A;
    }
    .company-collision-banner.danger-mode .collision-banner-count {
      background: #FEE2E2;
      color: #991B1B;
      border-color: #FECACA;
    }
    .collision-banner-body {
      font-size: 11.5px;
      color: #78350F;
      line-height: 1.4;
      margin-bottom: 8px;
    }
    .company-collision-banner.danger-mode .collision-banner-body {
      color: #7F1D1D;
    }
    .collision-colleagues-cards {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      max-height: 120px;
      overflow-y: auto;
    }
    .collision-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: #FFF;
      border: 1px solid #FDE68A;
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 11px;
      flex: 1 1 calc(50% - 6px);
      min-width: 220px;
    }
    .collision-card.active-discussion {
      background: #FFF5F5;
      border-color: #FECACA;
    }
    .company-collision-banner.danger-mode .collision-card {
      border-color: #FECACA;
    }
    .collision-card-info {
      min-width: 0;
      line-height: 1.25;
    }
    .collision-card-name {
      font-weight: 700;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .collision-card-meta {
      font-size: 10px;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 1px;
    }
    .collision-card-btn {
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      color: var(--text-main);
      border-radius: 6px;
      padding: 3px 8px;
      font-size: 10.5px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      transition: all 0.15s;
    }
    .collision-card-btn:hover {
      background: #09090B;
      color: #FFF;
      border-color: #09090B;
    }

    /* Colonne Chat Central */
    .chat-col {
      flex: 1 1 auto;
      min-width: 0;
      background: #FFF;
      border-radius: var(--radius-card);
      padding: 16px 20px;
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(0, 0, 0, 0.03);
      box-shadow: var(--shadow-soft);
      min-height: 0;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .chat-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 12px;
      border-bottom: 1px solid #F1F5F9;
      flex-shrink: 0;
    }

    .chat-messages-area {
      flex-grow: 1;
      overflow-y: auto;
      padding: 16px 4px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .msg-bubble {
      max-width: 78%;
      padding: 10px 14px;
      border-radius: 14px;
      font-size: 13px;
      line-height: 1.45;
      position: relative;
    }
    .msg-bubble.in {
      align-self: flex-start;
      background: #F1F5F9;
      color: var(--text-main);
      border-bottom-left-radius: 4px;
    }
    .msg-bubble.out {
      align-self: flex-end;
      background: var(--bg-sidebar);
      color: #FFF;
      border-bottom-right-radius: 4px;
    }
    .msg-time {
      font-size: 9.5px;
      color: var(--text-muted);
      margin-top: 4px;
      display: block;
      text-align: right;
    }

    /* Hermès AI Suggestion Card */
    .hermes-sugg-card {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.02) 100%);
      border: 1px solid rgba(139, 92, 246, 0.3);
      border-radius: 14px;
      padding: 14px;
      margin: 10px 0;
      flex-shrink: 0;
    }
    .hermes-sugg-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    .hermes-sugg-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--accent-lilac);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .hermes-sugg-text {
      font-size: 12.5px;
      line-height: 1.45;
      color: var(--text-main);
      background: #FFF;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid rgba(139, 92, 246, 0.2);
    }
    .hermes-sugg-actions {
      display: flex;
      gap: 8px;
      margin-top: 10px;
      justify-content: flex-end;
    }

    .chat-input-area {
      padding-top: 12px;
      border-top: 1px solid #F1F5F9;
      display: flex;
      align-items: flex-end;
      gap: 10px;
      flex-shrink: 0;
    }
    .chat-input {
      flex-grow: 1;
      background: #F8FAFC;
      border: 1px solid var(--border-subtle);
      border-radius: 18px;
      padding: 10px 18px;
      font-size: 13px;
      outline: none;
      resize: none;
      min-height: 40px;
      max-height: 160px;
      line-height: 1.45;
      font-family: inherit;
      box-sizing: border-box;
    }
    .chat-input:focus { border-color: var(--accent-lilac); }

    /* Pièces Jointes & Fichiers de Chat */
    .btn-attach {
      background: #F8FAFC;
      border: 1px solid var(--border-subtle);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-muted);
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    .btn-attach:hover {
      background: rgba(139, 92, 246, 0.1);
      color: var(--accent-lilac);
      border-color: var(--accent-lilac);
    }
    .chat-attachment-preview-area {
      padding: 6px 4px 10px 4px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .chat-attachment-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      width: 100%;
    }
    .att-chip {
      background: #EDE9FE;
      border: 1px solid rgba(139, 92, 246, 0.3);
      border-radius: 20px;
      padding: 4px 10px;
      font-size: 11px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #6D28D9;
      font-weight: 500;
      max-width: 240px;
    }
    .att-chip span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .att-chip-del {
      cursor: pointer;
      color: #7C3AED;
      opacity: 0.7;
    }
    .att-chip-del:hover { opacity: 1; color: #DC2626; }

    /* Rendu des pièces jointes dans la bulle */
    .msg-attachments-wrap {
      margin-top: 8px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .msg-att-img {
      max-width: 280px;
      max-height: 220px;
      border-radius: 8px;
      object-fit: cover;
      cursor: zoom-in;
      transition: transform 0.2s, box-shadow 0.2s;
      border: 1px solid rgba(0, 0, 0, 0.08);
      display: block;
      background: #FFF;
    }
    .msg-att-img:hover {
      transform: scale(1.02);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .msg-att-doc {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 11.5px;
      text-decoration: none;
      transition: all 0.2s;
      max-width: 320px;
    }
    .msg-bubble.out .msg-att-doc {
      background: rgba(255, 255, 255, 0.12);
      color: #FFF;
      border: 1px solid rgba(255, 255, 255, 0.22);
    }
    .msg-bubble.out .msg-att-doc:hover {
      background: rgba(255, 255, 255, 0.22);
    }
    .msg-bubble.in .msg-att-doc {
      background: #FFF;
      color: var(--text-main);
      border: 1px solid #E2E8F0;
    }
    .msg-bubble.in .msg-att-doc:hover {
      background: #F8FAFC;
      border-color: var(--accent-lilac);
    }
    .att-agent-badge {
      font-size: 9.5px;
      font-weight: 700;
      color: var(--accent-lilac);
      background: rgba(139, 92, 246, 0.12);
      padding: 1px 6px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }

    /* Fiche CRM Documents */
    .crm-attachments-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      max-height: 180px;
      overflow-y: auto;
      padding-right: 2px;
    }
    .crm-att-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      padding: 7px 9px;
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: 6px;
      font-size: 11px;
      transition: all 0.2s;
    }
    .crm-att-card:hover {
      border-color: var(--accent-lilac);
      background: #FFF;
      box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }
    .chat-dropzone-active {
      border: 2px dashed var(--accent-lilac) !important;
      background: rgba(139, 92, 246, 0.04) !important;
    }

    /* Colonne Fiche CRM Droite (Rétractable) */
    .crm-info-col {
      width: 310px;
      flex-shrink: 0;
      background: #FFF;
      border-radius: var(--radius-card);
      padding: 16px;
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(0, 0, 0, 0.03);
      box-shadow: var(--shadow-soft);
      overflow-y: auto;
      overflow-x: hidden;
      box-sizing: border-box;
      transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                  padding 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                  opacity 0.2s ease,
                  margin 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .crm-info-col.collapsed {
      width: 0 !important;
      min-width: 0 !important;
      padding: 0 !important;
      border: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
      margin-left: -14px !important;
    }

    .crm-inner-wrap {
      width: 278px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      flex-shrink: 0;
    }

    .crm-top-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 8px;
      border-bottom: 1px solid #F1F5F9;
    }
    .crm-top-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: .05em;
      display: flex;
      align-items: center;
    }
    .crm-btn-collapse-close {
      background: #F1F5F9;
      border: none;
      width: 26px;
      height: 26px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 11px;
      transition: all 0.15s ease;
    }
    .crm-btn-collapse-close:hover {
      background: #E2E8F0;
      color: var(--text-main);
    }

    /* Bouton bascule Fiche CRM dans l'en-tête Chat */
    .btn-toggle-crm {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #F8FAFC;
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 5px 10px;
      font-size: 11.5px;
      font-weight: 700;
      color: var(--text-main);
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .btn-toggle-crm:hover {
      background: #F1F5F9;
      border-color: #CBD5E1;
    }
    .btn-toggle-crm.active {
      background: #09090B;
      color: #FFF;
      border-color: #09090B;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    .btn-toggle-crm.active i.fa-address-card {
      color: var(--accent-lilac);
    }

    .crm-profile-hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding-bottom: 12px;
      border-bottom: 1px solid #F1F5F9;
    }
    .crm-profile-hero .avatar {
      width: 52px;
      height: 52px;
      font-size: 16px;
      margin-bottom: 8px;
    }

    .profile-links-row {
      display: flex;
      gap: 6px;
      margin-top: 10px;
    }
    .btn-profile-link {
      padding: 5px 10px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all .15s;
    }
    .btn-profile-link.li { background: #0A66C2; color: #FFF; }
    .btn-profile-link.nav { background: #8B5CF6; color: #FFF; }
    .btn-profile-link.web { background: #0D9488; color: #FFF; }
    .btn-profile-link.web:hover { background: #0F766E; }
    .btn-profile-link.disabled { opacity: 0.4; pointer-events: none; }

    /* Carte Calendly SDR dans la fiche */
    .sdr-calendly-box {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.03) 100%);
      border: 1px solid rgba(16, 185, 129, 0.3);
      border-radius: 12px;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .sdr-calendly-box a {
      font-size: 11.5px;
      font-weight: 700;
      color: #059669;
      text-decoration: none;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .sdr-calendly-box a:hover { text-decoration: underline; }
    .sdr-calendly-box button {
      background: #059669;
      color: #FFF;
      border: none;
      font-size: 10px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 5px;
      cursor: pointer;
    }

    .crm-info-field {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .crm-field-lbl {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: .05em;
    }
    .crm-field-val {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-main);
    }

    .crm-status-buttons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-top: 4px;
    }
    .btn-status-act {
      padding: 6px;
      border-radius: 6px;
      font-size: 10.5px;
      font-weight: 700;
      border: 1px solid var(--border-subtle);
      background: #FFF;
      cursor: pointer;
      transition: all .15s;
    }
    .btn-status-act:hover { background: #F1F5F9; }
    .btn-status-act.rdv { background: #F3E8FF; color: #6B21A8; border-color: rgba(107, 33, 168, 0.2); }
    .btn-status-act.perdu { background: #FEE2E2; color: #B91C1C; border-color: rgba(185, 28, 28, 0.2); }

    /* ================= WIDGET TO-DO FLOTTANT ================= */
    .todo-widget {
      position: absolute;
      bottom: 24px;
      right: 28px;
      width: 330px;
      background: #09090B;
      color: #FFF;
      border-radius: 20px;
      box-shadow: 0 20px 45px rgba(0,0,0,0.4);
      z-index: 999;
      overflow: hidden;
      transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                  height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                  border-radius 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                  box-shadow 0.28s ease;
      border: 1px solid #27272A;
    }

    .todo-widget.minimized {
      width: 140px !important;
      height: 40px !important;
      border-radius: 9999px !important;
      box-shadow: 0 8px 24px rgba(0,0,0,0.32);
    }

    .todo-header {
      padding: 13px 18px;
      background: #141417;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      user-select: none;
      border-bottom: 1px solid #27272A;
      transition: all 0.2s ease;
    }
    .todo-header:hover {
      background: #1A1A1F;
    }

    .todo-widget.minimized .todo-header {
      padding: 8px 14px;
      border-bottom: none;
      height: 100%;
      box-sizing: border-box;
    }

    .todo-title {
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 7px;
      letter-spacing: .02em;
    }

    .todo-widget.minimized .todo-full-lbl {
      display: none !important;
    }
    .todo-widget:not(.minimized) .todo-short-lbl {
      display: none !important;
    }

    .todo-count-badge {
      background: var(--accent-lilac);
      font-size: 10px;
      padding: 2px 7px;
      border-radius: var(--radius-pill);
      font-weight: 700;
      line-height: 1;
    }

    .todo-body {
      padding: 14px 16px;
      max-height: 320px;
      overflow-y: auto;
    }

    /* Raccourcis To-Do dynamiques Hub */
    .todo-hub-pills {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid #1F1F23;
    }

    .todo-hub-pill {
      background: #18181B;
      border: 1px solid #27272A;
      color: #FFF;
      border-radius: 10px;
      padding: 6px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all .15s;
    }
    .todo-hub-pill:hover {
      background: #27272A;
      border-color: var(--accent-lilac);
    }
    .todo-hub-pill.urgent {
      background: rgba(245, 158, 11, 0.15);
      border-color: rgba(245, 158, 11, 0.4);
      color: #FBBF24;
    }
    .todo-hub-val {
      font-weight: 800;
      font-size: 13px;
    }

    /* ================= ACTIONS PRIORITAIRES DASHBOARD (Haute Lisibilité) ================= */
    .dash-priority-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 6px;
    }

    .dash-action-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid transparent;
      user-select: none;
    }
    .dash-action-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }

    .dash-action-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .dash-action-icon {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
    }

    .dash-action-info {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .dash-action-label {
      font-size: 12.5px;
      font-weight: 700;
      line-height: 1.2;
    }

    .dash-action-sub {
      font-size: 10.5px;
      line-height: 1.2;
      opacity: 0.85;
    }

    .dash-action-badge {
      font-size: 13px;
      font-weight: 800;
      padding: 3px 10px;
      border-radius: var(--radius-pill);
      line-height: 1.2;
    }

    /* Thèmes colorés contrastés */
    .dash-action-card.card-warning {
      background: #FFFBEB;
      border-color: #FDE68A;
      color: #92400E;
    }
    .dash-action-card.card-warning .dash-action-icon {
      background: #FEF3C7;
      color: #D97706;
    }
    .dash-action-card.card-warning .dash-action-sub {
      color: #B45309;
    }
    .dash-action-card.card-warning .dash-action-badge {
      background: #F59E0B;
      color: #FFF;
    }
    .dash-action-card.card-warning:hover {
      background: #FEF3C7;
      border-color: #FCD34D;
    }

    .dash-action-card.card-purple {
      background: #F5F3FF;
      border-color: #DDD6FE;
      color: #5B21B6;
    }
    .dash-action-card.card-purple .dash-action-icon {
      background: #EDE9FE;
      color: #7C3AED;
    }
    .dash-action-card.card-purple .dash-action-sub {
      color: #6D28D9;
    }
    .dash-action-card.card-purple .dash-action-badge {
      background: #8B5CF6;
      color: #FFF;
    }
    .dash-action-card.card-purple:hover {
      background: #EDE9FE;
      border-color: #C4B5FD;
    }

    .dash-action-card.card-blue {
      background: #EFF6FF;
      border-color: #BFDBFE;
      color: #1E40AF;
    }
    .dash-action-card.card-blue .dash-action-icon {
      background: #DBEAFE;
      color: #2563EB;
    }
    .dash-action-card.card-blue .dash-action-sub {
      color: #1D4ED8;
    }
    .dash-action-card.card-blue .dash-action-badge {
      background: #3B82F6;
      color: #FFF;
    }
    .dash-action-card.card-blue:hover {
      background: #DBEAFE;
      border-color: #93C5FD;
    }

    .todo-items-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 12px;
    }

    .todo-item {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12px;
      color: #E4E4E7;
      background: #18181B;
      padding: 7px 10px;
      border-radius: 8px;
      border: 1px solid #27272A;
    }

    .todo-item input[type="checkbox"] {
      accent-color: var(--accent-lilac);
      cursor: pointer;
    }

    .todo-item.completed {
      text-decoration: line-through;
      color: #71717A;
    }

    .add-todo-form {
      display: flex;
      gap: 6px;
    }

    .add-todo-input {
      flex-grow: 1;
      background: #18181B;
      border: 1px solid #27272A;
      padding: 7px 12px;
      border-radius: 8px;
      color: #FFF;
      font-size: 11.5px;
      outline: none;
    }
    .add-todo-input:focus { border-color: var(--accent-lilac); }

    .add-todo-btn {
      background: var(--accent-lilac);
      color: #FFF;
      border: none;
      padding: 7px 12px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 800;
      font-size: 12px;
    }

    /* ================= MODALES ================= */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(9, 9, 11, 0.65);
      backdrop-filter: blur(4px);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .modal-overlay.show {
      display: flex;
    }

    .modal-card {
      background: #FFF;
      border-radius: 20px;
      width: 100%;
      max-width: 520px;
      padding: 24px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      position: relative;
      max-height: 90vh;
      overflow-y: auto;
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }
    .modal-title {
      font-size: 18px;
      font-weight: 800;
      color: var(--text-main);
    }
    .modal-close {
      background: none;
      border: none;
      font-size: 16px;
      color: var(--text-muted);
      cursor: pointer;
      padding: 4px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 14px;
    }
    .form-label {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--text-main);
    }
    .form-input, .form-textarea {
      width: 100%;
      box-sizing: border-box;
      background: #F8FAFC;
      border: 1px solid var(--border-subtle);
      border-radius: 10px;
      padding: 9px 12px;
      font-size: 12.5px;
      color: var(--text-main);
      outline: none;
      font-family: inherit;
    }
    .form-textarea {
      min-width: 100%;
      max-width: 100%;
      display: block;
      resize: vertical;
      line-height: 1.5;
    }
    .form-input:focus, .form-textarea:focus {
      border-color: var(--accent-lilac);
      background: #FFF;
    }

    .btn-submit {
      width: 100%;
      background: var(--bg-sidebar);
      color: #FFF;
      border: none;
      padding: 12px;
      border-radius: var(--radius-pill);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 10px;
      transition: all .2s;
    }
    .btn-submit:hover {
      background: #27272A;
    }

    /* Toast */
    #toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: #09090B;
      color: #FFF;
      padding: 10px 20px;
      border-radius: var(--radius-pill);
      font-size: 12.5px;
      font-weight: 600;
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
      z-index: 9999;
      pointer-events: none;
      opacity: 0;
      transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    #toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
    #toast.ok { border: 1px solid rgba(16, 185, 129, 0.4); }
    #toast.err { border: 1px solid rgba(239, 68, 68, 0.4); }

    /* ================= VUE 4 : RECHERCHE & SUIVI DES EMAILS & VUE 6 : SCRAPER ================= */
    .emails-view-wrapper {
      display: flex;
      flex-direction: column;
      height: 100%;
      gap: 12px;
      min-height: 0;
      overflow: hidden;
    }

    .scraper-view-wrapper {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
      overflow-y: auto;
      gap: 12px;
      padding-right: 4px;
    }

    .emails-kpi-grid,
    .kpi-grid-5,
    .scraper-kpi-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      margin-bottom: 12px;
      flex-shrink: 0;
    }

    @media (max-width: 1100px) {
      .emails-kpi-grid,
      .kpi-grid-5,
      .scraper-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      }
    }

    .emails-kpi-grid .kpi-card,
    .kpi-grid-5 .kpi-card,
    .scraper-kpi-grid .kpi-card {
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      padding: 10px 14px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.03);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: auto;
      transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    }

    .emails-kpi-grid .kpi-card:hover,
    .kpi-grid-5 .kpi-card:hover,
    .scraper-kpi-grid .kpi-card:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      border-color: #CBD5E1;
    }

    .emails-kpi-grid .kpi-top,
    .kpi-grid-5 .kpi-top,
    .scraper-kpi-grid .kpi-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 4px;
    }

    .emails-kpi-grid .kpi-label,
    .kpi-grid-5 .kpi-label,
    .scraper-kpi-grid .kpi-label {
      font-size: 10px;
      font-weight: 700;
      color: #64748B;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .emails-kpi-grid .kpi-icon-wrap,
    .kpi-grid-5 .kpi-icon-wrap,
    .scraper-kpi-grid .kpi-icon-wrap {
      width: 26px;
      height: 26px;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      flex-shrink: 0;
    }

    .emails-kpi-grid .kpi-val,
    .kpi-grid-5 .kpi-val,
    .scraper-kpi-grid .kpi-val {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.5px;
      color: #0F172A;
      line-height: 1.1;
      display: flex;
      align-items: baseline;
      gap: 4px;
    }

    .emails-kpi-grid .kpi-sub,
    .kpi-grid-5 .kpi-sub,
    .scraper-kpi-grid .kpi-sub {
      font-size: 10.5px;
      color: #64748B;
      margin-top: 2px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .email-batch-progress-box {
      background: #FFF;
      border-radius: var(--radius-card);
      border: 1px solid rgba(139, 92, 246, 0.25);
      box-shadow: 0 4px 16px rgba(139, 92, 246, 0.08);
      padding: 14px 18px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex-shrink: 0;
      animation: fadeIn 0.3s ease;
    }

    .batch-progress-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .batch-progress-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-main);
    }

    .batch-stat-chip {
      font-size: 11px;
      font-weight: 700;
      padding: 3px 9px;
      border-radius: var(--radius-pill);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .batch-stat-chip.found {
      background: #DCFCE7;
      color: #15803D;
    }
    .batch-stat-chip.notfound {
      background: #F1F5F9;
      color: #64748B;
    }

    .btn-cancel-batch {
      background: #FFF;
      border: 1px solid rgba(239, 68, 68, 0.3);
      color: #DC2626;
      border-radius: var(--radius-pill);
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.15s ease;
    }
    .btn-cancel-batch:hover {
      background: #FEE2E2;
      border-color: #EF4444;
    }

    .batch-progress-bar-bg {
      height: 8px;
      background: #F1F5F9;
      border-radius: 4px;
      overflow: hidden;
    }

    .batch-progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent-lilac) 0%, #10B981 100%);
      border-radius: 4px;
      transition: width 0.4s ease;
    }

    .batch-progress-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 11.5px;
    }

    .batch-current-target {
      color: var(--text-muted);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 70%;
    }

    .emails-table-box {
      background: #FFF;
      border-radius: var(--radius-card);
      border: 1px solid rgba(0, 0, 0, 0.03);
      box-shadow: var(--shadow-soft);
      flex: 1 1 0;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .emails-table-scroll {
      flex: 1;
      overflow-y: auto;
      overflow-x: auto;
    }

    .emails-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12.5px;
      text-align: left;
    }

    .emails-table th {
      background: #FAFAFC;
      position: sticky;
      top: 0;
      z-index: 2;
      padding: 12px 16px;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: .05em;
      border-bottom: 1px solid var(--border-subtle);
      white-space: nowrap;
    }

    .emails-table td {
      padding: 12px 16px;
      border-bottom: 1px solid #F1F5F9;
      vertical-align: middle;
      font-weight: 600;
    }

    .emails-table tr:hover td {
      background: #FAFAFC;
    }

    .email-found-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 700;
      color: #065F46;
      background: #ECFDF5;
      border: 1px solid #A7F3D0;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      max-width: 250px;
      transition: all 0.15s ease;
    }

    .email-found-pill a {
      color: inherit;
      text-decoration: none;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .email-found-pill a:hover {
      text-decoration: underline;
    }

    .email-copy-btn {
      background: transparent;
      border: none;
      color: #10B981;
      cursor: pointer;
      font-size: 11px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      transition: color 0.15s;
    }

    .email-copy-btn:hover {
      color: #047857;
    }

    .email-source-sub {
      font-size: 10px;
      font-weight: 600;
      color: var(--text-muted);
      margin-top: 3px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .email-variants-bar {
      margin-top: 4px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .email-variant-label {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      font-weight: 600;
      color: #64748B;
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: 6px;
      padding: 1px 6px;
      transition: all 0.15s ease;
    }

    .email-variant-label:hover {
      border-color: #CBD5E1;
      background: #F1F5F9;
      color: #334155;
    }

    /* ─── Diagnostic & Live Console Scraper ─── */
    .diag-chip-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      background: #F1F5F9;
      color: #475569;
      border: 1px solid #CBD5E1;
      cursor: pointer;
      transition: all 0.15s ease;
      text-decoration: none;
      white-space: nowrap;
    }
    .diag-chip-btn:hover {
      background: #E2E8F0;
      color: #0F172A;
      border-color: #94A3B8;
      transform: translateY(-1px);
    }
    .diag-chip-btn.diag-ok {
      background: rgba(16, 185, 129, 0.08);
      color: #059669;
      border-color: rgba(16, 185, 129, 0.25);
    }
    .diag-chip-btn.diag-warn {
      background: rgba(245, 158, 11, 0.08);
      color: #D97706;
      border-color: rgba(245, 158, 11, 0.25);
    }
    .diag-chip-btn.diag-err {
      background: rgba(239, 68, 68, 0.08);
      color: #DC2626;
      border-color: rgba(239, 68, 68, 0.25);
    }

    .log-line {
      display: block;
      padding: 1px 0;
      font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
      font-size: 11.5px;
      line-height: 1.6;
    }
    .log-time { color: #64748B; margin-right: 6px; }
    .log-tag-info { color: #38BDF8; font-weight: 700; }
    .log-tag-p1 { color: #818CF8; font-weight: 700; }
    .log-tag-p2 { color: #FBBF24; font-weight: 700; }
    .log-tag-p3 { color: #EC4899; font-weight: 700; }
    .log-tag-ok { color: #34D399; font-weight: 700; }
    .log-tag-warn { color: #F59E0B; font-weight: 700; }
    .log-tag-err { color: #F87171; font-weight: 700; }
    .log-domain { color: #F3F4F6; font-weight: 700; }


    .email-variant-select {
      border: none;
      background: transparent;
      font-size: 10px;
      font-weight: 600;
      color: #334155;
      cursor: pointer;
      outline: none;
      padding: 1px 2px;
      max-width: 140px;
      text-overflow: ellipsis;
    }

    .email-variant-select:focus {
      color: #0F172A;
    }

    .email-step-subtag {
      font-size: 10.5px;
      font-weight: 600;
      color: var(--text-muted);
      margin-top: 3px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .email-action-group {
      display: flex;
      align-items: center;
      gap: 6px;
      justify-content: flex-end;
    }

    .email-btn-action {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      cursor: pointer;
      border: 1px solid var(--border-subtle);
      background: #FFF;
      color: var(--text-muted);
      transition: all 0.15s ease;
    }

    .email-btn-action:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
      color: var(--text-main);
      border-color: #CBD5E1;
    }

    .email-btn-action.primary {
      background: rgba(16, 185, 129, 0.1);
      border-color: rgba(16, 185, 129, 0.3);
      color: #10B981;
    }

    .email-btn-action.primary:hover {
      background: #10B981;
      color: #FFF;
      border-color: #10B981;
    }

    .email-btn-action.hermes {
      background: rgba(139, 92, 246, 0.1);
      border-color: rgba(139, 92, 246, 0.3);
      color: #8B5CF6;
    }

    .email-btn-action.hermes:hover {
      background: #8B5CF6;
      color: #FFF;
      border-color: #8B5CF6;
    }

    /* ─── Vue Diagnostics, Santé & Logs Live ─── */
    .diag-container {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .diag-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    @media (max-width: 1200px) {
      .diag-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 768px) {
      .diag-kpi-grid {
        grid-template-columns: 1fr;
      }
    }

    .diag-card {
      background: var(--card-white);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      padding: 18px 20px;
      box-shadow: var(--shadow-soft);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .diag-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px -6px rgba(0,0,0,0.08);
    }
    .diag-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .diag-card-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .diag-card-badge {
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 9999px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .diag-card-badge.ok {
      background: rgba(16, 185, 129, 0.12);
      color: #059669;
      border: 1px solid rgba(16, 185, 129, 0.25);
    }
    .diag-card-badge.warn {
      background: rgba(245, 158, 11, 0.12);
      color: #D97706;
      border: 1px solid rgba(245, 158, 11, 0.25);
    }
    .diag-card-badge.err {
      background: rgba(239, 68, 68, 0.12);
      color: #DC2626;
      border: 1px solid rgba(239, 68, 68, 0.25);
    }
    .diag-card-val {
      font-size: 24px;
      font-weight: 800;
      color: var(--text-main);
      letter-spacing: -0.5px;
      margin-bottom: 6px;
    }
    .diag-card-desc {
      font-size: 11.5px;
      color: var(--text-muted);
      line-height: 1.4;
    }

    /* Actions Bar */
    .diag-toolbar {
      background: var(--card-white);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }
    .diag-toolbar-left {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .diag-toolbar-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* Console Terminal Box */
    .diag-console-card {
      background: #090D16;
      border: 1px solid #1E293B;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
      display: flex;
      flex-direction: column;
    }
    .diag-console-header {
      background: #0F172A;
      border-bottom: 1px solid #1E293B;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }
    .diag-console-title {
      color: #F8FAFC;
      font-size: 13.5px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .diag-pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #10B981;
      box-shadow: 0 0 10px #10B981;
      animation: pulseGreen 2s infinite;
    }
    @keyframes pulseGreen {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(1.2); }
    }
    .diag-filter-pills {
      display: flex;
      gap: 6px;
      background: #1E293B;
      padding: 4px;
      border-radius: 10px;
    }
    .diag-pill-btn {
      background: transparent;
      border: none;
      color: #94A3B8;
      font-size: 11px;
      font-weight: 700;
      padding: 5px 10px;
      border-radius: 7px;
      cursor: pointer;
      transition: all 0.15s ease;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .diag-pill-btn:hover {
      color: #F8FAFC;
    }
    .diag-pill-btn.active {
      background: #334155;
      color: #FFF;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    .diag-pill-btn.pill-err.active {
      background: rgba(239, 68, 68, 0.25);
      color: #FCA5A5;
      border: 1px solid rgba(239, 68, 68, 0.4);
    }

    .diag-search-input {
      background: #1E293B;
      border: 1px solid #334155;
      color: #F1F5F9;
      font-size: 12px;
      padding: 6px 12px;
      border-radius: 8px;
      outline: none;
      width: 220px;
      transition: all 0.2s ease;
    }
    .diag-search-input:focus {
      border-color: #8B5CF6;
      box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
    }

    .diag-console-body {
      padding: 12px 16px;
      max-height: 520px;
      min-height: 300px;
      overflow-y: auto;
      font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
      font-size: 12px;
      line-height: 1.6;
      color: #CBD5E1;
    }
    .diag-log-line {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 6px 10px;
      border-radius: 6px;
      transition: background 0.1s ease;
      word-break: break-word;
    }
    .diag-log-line:hover {
      background: rgba(255, 255, 255, 0.04);
    }
    .diag-log-time {
      color: #64748B;
      font-weight: 500;
      flex-shrink: 0;
      font-size: 11px;
    }
    .diag-log-level {
      font-weight: 700;
      font-size: 10px;
      padding: 1px 6px;
      border-radius: 4px;
      flex-shrink: 0;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .diag-log-level.INFO {
      background: rgba(59, 130, 246, 0.2);
      color: #60A5FA;
    }
    .diag-log-level.WARNING {
      background: rgba(245, 158, 11, 0.2);
      color: #FBBF24;
    }
    .diag-log-level.ERROR, .diag-log-level.CRITICAL {
      background: rgba(239, 68, 68, 0.25);
      color: #F87171;
      border: 1px solid rgba(239, 68, 68, 0.4);
    }
    .diag-log-name {
      color: #818CF8;
      font-weight: 600;
      font-size: 11px;
      flex-shrink: 0;
    }
    .diag-log-msg {
      flex: 1;
      color: #E2E8F0;
    }
    .diag-stack-btn {
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.3);
      color: #FCA5A5;
      font-size: 10px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 4px;
      cursor: pointer;
      margin-left: 6px;
    }
    .diag-stack-box {
      margin-top: 6px;
      padding: 10px 14px;
      background: #040711;
      border: 1px solid rgba(239, 68, 68, 0.3);
      border-radius: 8px;
      color: #FCA5A5;
      font-size: 11px;
      white-space: pre-wrap;
      overflow-x: auto;
      display: none;
    }
    .diag-empty-logs {
      text-align: center;
      padding: 40px 20px;
      color: #64748B;
      font-size: 13px;
    }

    /* ================= VUE 6 : AGENDA & RENDEZ-VOUS COMMERCIAUX ================= */
    .appointments-container {
      display: flex;
      flex-direction: column;
      height: 100%;
      gap: 14px;
      min-height: 0;
      overflow: hidden;
    }

    .appointments-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      flex-shrink: 0;
    }

    @media (max-width: 1000px) {
      .appointments-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .appoint-kpi-card {
      background: #FFF;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 14px;
      box-shadow: var(--shadow-soft);
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    }
    .appoint-kpi-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

    .appoint-kpi-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }
    .appoint-kpi-icon.orange { background: rgba(245, 158, 11, 0.12); color: #D97706; }
    .appoint-kpi-icon.green  { background: rgba(16, 185, 129, 0.12); color: #059669; }
    .appoint-kpi-icon.purple { background: rgba(139, 92, 246, 0.12); color: #7C3AED; }
    .appoint-kpi-icon.blue   { background: rgba(59, 130, 246, 0.12); color: #2563EB; }

    .appoint-kpi-val {
      font-size: 22px;
      font-weight: 800;
      color: var(--text-main);
      line-height: 1.1;
    }
    .appoint-kpi-lbl {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .appointments-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-shrink: 0;
      flex-wrap: wrap;
    }
    .appointments-toolbar-left {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .appointments-toolbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .view-mode-toggle {
      display: flex;
      background: #F1F5F9;
      border: 1px solid #E2E8F0;
      border-radius: 10px;
      padding: 3px;
      gap: 4px;
    }
    .toggle-mode-btn {
      background: transparent;
      border: none;
      border-radius: 7px;
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 700;
      color: #64748B;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s ease;
    }
    .toggle-mode-btn:hover {
      color: #0F172A;
    }
    .toggle-mode-btn.active {
      background: #FFF;
      color: var(--accent-lilac);
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }

    .appointments-view-card {
      background: #FFF;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-soft);
      flex: 1 1 0;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .calendar-nav-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 18px;
      background: #FAFAFC;
      border-bottom: 1px solid var(--border-subtle);
      flex-shrink: 0;
    }

    .calendar-grid-wrapper {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      background: #F8FAFC;
    }

    .calendar-day-col {
      background: #FFF;
      border-right: 1px solid #F1F5F9;
      display: flex;
      flex-direction: column;
      min-height: 380px;
    }
    .calendar-day-col:last-child {
      border-right: none;
    }
    .calendar-day-col.today {
      background: #FAF5FF;
    }

    .calendar-day-header {
      padding: 10px 8px;
      text-align: center;
      border-bottom: 1px solid #F1F5F9;
      background: #FAFAFC;
    }
    .calendar-day-col.today .calendar-day-header {
      background: #F3E8FF;
    }
    .calendar-day-name {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .calendar-day-date {
      font-size: 14px;
      font-weight: 800;
      color: var(--text-main);
      margin-top: 2px;
    }
    .calendar-day-col.today .calendar-day-date {
      color: #7C3AED;
    }

    .calendar-day-events {
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1;
      overflow-y: auto;
    }

    .calendar-event-card {
      background: #FFF;
      border: 1px solid #E2E8F0;
      border-radius: 10px;
      padding: 9px 10px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.03);
      cursor: pointer;
      transition: all 0.18s ease;
      position: relative;
    }
    .calendar-event-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(0,0,0,0.08);
      border-color: #CBD5E1;
    }
    .calendar-event-card.scheduled {
      border-left: 3.5px solid #10B981;
    }
    .calendar-event-card.hermes {
      border-left: 3.5px solid #8B5CF6;
    }
    .calendar-event-card.completed {
      border-left: 3.5px solid #94A3B8;
      background: #F8FAFC;
      opacity: 0.85;
    }
    .calendar-event-card.cancelled {
      border-left: 3.5px solid #EF4444;
      background: #FEF2F2;
      opacity: 0.75;
    }

    .event-time-badge {
      font-size: 10.5px;
      font-weight: 800;
      color: #0F172A;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .event-prospect-name {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-main);
      margin-top: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .event-prospect-company {
      font-size: 10.5px;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .event-footer-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 6px;
      font-size: 10px;
      font-weight: 600;
    }
    .event-channel-tag {
      padding: 1px 6px;
      border-radius: 4px;
      background: #F1F5F9;
      color: #475569;
    }
    .event-hermes-tag {
      background: rgba(139, 92, 246, 0.12);
      color: #7C3AED;
      padding: 1px 6px;
      border-radius: 4px;
    }

    /* Mode Liste Chronologique (Timeline) */
    .timeline-wrapper {
      padding: 18px 24px;
      overflow-y: auto;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .timeline-day-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .timeline-day-heading {
      font-size: 12px;
      font-weight: 800;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .timeline-day-heading::after {
      content: "";
      flex: 1;
      height: 1px;
      background: #F1F5F9;
    }

    .timeline-item-card {
      background: #FFF;
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      transition: all 0.2s ease;
      cursor: pointer;
    }
    .timeline-item-card:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      border-color: #CBD5E1;
    }
    .timeline-left {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }
    .timeline-time-box {
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: 10px;
      padding: 6px 12px;
      text-align: center;
      min-width: 70px;
    }
    .timeline-time-val {
      font-size: 14px;
      font-weight: 800;
      color: #0F172A;
    }
    .timeline-time-dur {
      font-size: 10px;
      color: #64748B;
      font-weight: 600;
    }
    .timeline-info {
      min-width: 0;
    }
    .timeline-title {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text-main);
    }
    .timeline-sub {
      font-size: 11.5px;
      color: var(--text-muted);
      margin-top: 2px;
    }
    .timeline-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    /* Raccourcis chips dans la modale */
    .btn-sched-chip {
      background: #F1F5F9;
      border: 1px solid #E2E8F0;
      border-radius: 6px;
      padding: 2px 7px;
      font-size: 10.5px;
      font-weight: 600;
      color: #475569;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .btn-sched-chip:hover {
      background: #EDE9FE;
      border-color: #8B5CF6;
      color: #7C3AED;
    }

    /* Fiche prospect CRM : Carte de rendez-vous programmé */
    .crm-meeting-card {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
      border: 1px solid rgba(16, 185, 129, 0.25);
      border-radius: 10px;
      padding: 10px 12px;
      margin-top: 6px;
    }
    .crm-meeting-title {
      font-size: 12px;
      font-weight: 800;
      color: #065F46;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .crm-meeting-badge {
      font-size: 10px;
      font-weight: 700;
      padding: 1px 7px;
      border-radius: var(--radius-pill);
      background: #10B981;
      color: #FFF;
    }
    .crm-meeting-time {
      font-size: 11.5px;
      font-weight: 700;
      color: #0F172A;
      margin-top: 4px;
    }
    .crm-meeting-channel {
      font-size: 11px;
      color: #475569;
      margin-top: 2px;
    }
    .crm-meeting-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 8px;
      flex-wrap: wrap;
    }
    .btn-meet-act {
      background: #10B981;
      color: #FFF;
      border: none;
      border-radius: 6px;
      padding: 4px 8px;
      font-size: 10.5px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s ease;
    }
    .btn-meet-act:hover {
      background: #059669;
    }
    .btn-meet-act-ghost {
      background: #FFF;
      color: #475569;
      border: 1px solid #E2E8F0;
      border-radius: 6px;
      padding: 4px 8px;
      font-size: 10.5px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s ease;
    }
    .btn-meet-act-ghost:hover {
      background: #F8FAFC;
      border-color: #CBD5E1;
      color: #0F172A;
    }

