/* ============================================
   Carelem Dashboard V2 Ultra Premium++
   Design System & Styles
   ============================================ */

:root {
  /* Colors - Inherited from home */
  --ink-950: #10152a;
  --ink-900: #172043;
  --ink-800: #2a345c;
  --ink-700: #4b5880;
  --ink-600: #5f6f9c;
  --ink-500: #7484a8;
  --ink-400: #8e9bba;
  --ink-300: #b0bacf;
  --bg-subtle: #f1f5f9;
  --surface-0: #f4f7ff;
  --surface-1: #eef3ff;
  --surface-2: #e8efff;
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.9);
  --line-soft: rgba(23, 32, 67, 0.12);
  --line-strong: rgba(23, 32, 67, 0.2);

  /* Semantic Colors */
  --mint: #14B414;
  --mint-deep: #14B414;
  --mint-light: rgba(20, 180, 20, 0.18);
  --orange: #FFDE00;
  --orange-deep: #FFDE00;
  --orange-light: rgba(255, 222, 0, 0.18);
  --red: #FF0000;
  --red-deep: #FF0000;
  --red-light: rgba(255, 0, 0, 0.18);
  --logo-green: #14B414;
  --logo-orange: #FFDE00;
  --logo-red: #FF0000;
  --violet: #6d5df5;
  --violet-deep: #4c3fcc;
  --sky: #2f8fff;
  --sky-deep: #1e6fd8;

  /* Status Gradients */
  --good-bg: linear-gradient(145deg, rgba(20, 180, 20, 0.13), rgba(20, 180, 20, 0.04));
  --warn-bg: linear-gradient(145deg, rgba(255, 222, 0, 0.18), rgba(255, 222, 0, 0.05));
  --bad-bg: linear-gradient(145deg, rgba(255, 0, 0, 0.12), rgba(255, 0, 0, 0.03));
  --neutral-bg: linear-gradient(145deg, rgba(109, 93, 245, 0.1), rgba(255, 255, 255, 0.74));

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.88);
  --glass-shadow: 0 8px 32px rgba(16, 24, 54, 0.12);

  /* Shadows */
  --shadow-soft: 0 14px 32px rgba(16, 24, 54, 0.08), 0 4px 10px rgba(16, 24, 54, 0.05);
  --shadow-card: 0 22px 46px rgba(16, 24, 54, 0.12), 0 10px 22px rgba(16, 24, 54, 0.06);
  --shadow-hero: 0 38px 84px rgba(13, 20, 46, 0.2), 0 14px 30px rgba(13, 20, 46, 0.12);
  --shadow-float: 0 2px 12px rgba(16, 24, 54, 0.08);

  /* Transitions */
  --transition-base: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 480ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-950);
  background:
    radial-gradient(1200px 700px at -10% -10%, rgba(24, 197, 151, 0.22), transparent 62%),
    radial-gradient(1120px 680px at 110% -10%, rgba(47, 143, 255, 0.2), transparent 64%),
    radial-gradient(980px 620px at 50% 100%, rgba(109, 93, 245, 0.15), transparent 64%),
    linear-gradient(180deg, var(--surface-0) 0%, var(--surface-1) 46%, var(--surface-2) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

html.manager-restoring-settings .dash-wrap,
body.manager-restoring-settings .dash-wrap {
  visibility: hidden;
}

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

.dash-wrap {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) 120px;
}

/* Dashboard Header */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.header-left {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dash-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.dash-brand:hover {
  opacity: 0.94;
}

.dash-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 67, 0.2);
  background: rgba(255, 255, 255, 0.88);
}

.dash-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dash-logo-dot.good {
  background: #14B414;
}

.dash-logo-dot.ok {
  background: #FFDE00;
}

.dash-logo-dot.bad {
  background: #FF0000;
}

/* Logo pulse dashboard */
.dash-logo-dot { transform-origin: center; }
.dash-logo-dot.good { animation: logoPulseGood 3s ease-in-out infinite; }
.dash-logo-dot.ok   { animation: logoPulseOk   3s ease-in-out infinite; }
.dash-logo-dot.bad  { animation: logoPulseBad  3s ease-in-out infinite; }
@keyframes logoPulseGood {
  0%,6%,100%{transform:scale(1);box-shadow:none}
  3%{transform:scale(1.9);box-shadow:0 0 0 4px rgba(20,180,20,.28)}
}
@keyframes logoPulseOk {
  0%,6%,18%,100%{transform:scale(1);box-shadow:none}
  12%{transform:scale(1.9);box-shadow:0 0 0 4px rgba(255,222,0,.28)}
}
@keyframes logoPulseBad {
  0%,18%,30%,100%{transform:scale(1);box-shadow:none}
  24%{transform:scale(1.9);box-shadow:0 0 0 4px rgba(255,0,0,.28)}
}
@media(prefers-reduced-motion:reduce){.dash-logo-dot{animation:none!important}}

.dash-brand-name {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.dash-header h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink-950);
  text-align: center;
  width: 100%;
  margin-top: 64px;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 14px;
  color: var(--ink-600);
  font-weight: 500;
  text-align: center;
  width: 100%;
  display: none;
}

.trial-badge {
  display: none;
  margin-top: var(--space-sm);
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #3e30bf;
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.14), rgba(47, 143, 255, 0.12));
  border: 1px solid rgba(109, 93, 245, 0.25);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
}

/* ============================================
   Buttons
   ============================================ */

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-base);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  transition: all var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 93, 245, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.demo-signup-btn {
  white-space: nowrap;
}

.public-demo-floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #081130;
  text-decoration: none;
  border: 1px solid rgba(133, 240, 192, 0.75);
  background: linear-gradient(135deg, #b5ffd9, #7defb9);
  box-shadow: 0 12px 28px rgba(8, 12, 34, 0.22);
}

.public-demo-floating-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(8, 12, 34, 0.28);
}

@media (max-width: 640px) {
  .public-demo-floating-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .demo-signup-btn {
    display: none;
  }
}

.btn-primary kbd {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: var(--space-sm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--ink-900);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: var(--card-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--ink-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.btn-ghost:hover {
  background: rgba(109, 93, 245, 0.1);
  color: var(--violet);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.96), rgba(195, 18, 18, 0.96));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.18);
  transition: all var(--transition-smooth);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(220, 38, 38, 0.24);
}

.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--ink-700);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.btn-icon:hover {
  background: var(--card-strong);
  color: var(--violet);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.header-icon-svg {
  display: block;
}

.header-tool-btn {
  position: relative;
}

.btn-report-export {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  gap: 6px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--red), #e45a5a) !important;
}

.btn-report-export:hover {
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35) !important;
}

/* Bouton Mes Objectifs */
.btn-objectifs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(24, 197, 151, 0.1), rgba(24, 197, 151, 0.04));
  border: 2px solid rgba(24, 197, 151, 0.3);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  position: relative;
}

.btn-objectifs:hover {
  background: var(--mint);
  color: white;
  border-color: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 197, 151, 0.35);
}

.btn-objectifs svg {
  opacity: 0.9;
}

.btn-import-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.12), rgba(47, 143, 255, 0.1));
  border: 2px solid rgba(109, 93, 245, 0.3);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.btn-import-team:hover {
  background: linear-gradient(135deg, var(--violet), var(--sky));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 93, 245, 0.35);
}

.btn-import-team svg {
  opacity: 0.95;
}

.btn-invite-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(47, 143, 255, 0.12), rgba(24, 197, 151, 0.1));
  border: 2px solid rgba(47, 143, 255, 0.3);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-deep);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.btn-invite-links:hover {
  background: linear-gradient(135deg, var(--sky), var(--mint));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 143, 255, 0.35);
}

.btn-invite-links svg {
  opacity: 0.95;
}

.btn-billing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 146, 60, 0.1));
  border: 2px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-deep);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.btn-billing:hover {
  background: linear-gradient(135deg, var(--orange), #fb923c);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.32);
}

.btn-billing:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.btn-billing svg {
  opacity: 0.95;
}

.objectifs-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  background: #FF0000;
  color: white;
  font-size: 10px;
  font-weight: 800;
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(255, 0, 0, 0.28);
  flex-shrink: 0;
}

/* Hamburger menu */
.hamburger-wrap {
  position: relative;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: white;
  border: 1.5px solid rgba(109, 93, 245, 0.18);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.hamburger-btn:hover {
  background: rgba(109, 93, 245, 0.06);
  border-color: rgba(109, 93, 245, 0.3);
  transform: translateY(-1px);
}

.ham-line {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.ham-line-1 { background: #14B414; }
.ham-line-2 { background: #FFDE00; }
.ham-line-3 { background: #FF0000; }

.hamburger-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(16, 24, 54, 0.15), 0 4px 12px rgba(16, 24, 54, 0.08);
  padding: 6px;
  min-width: 200px;
  z-index: 1000;
  animation: hamMenuIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hamMenuIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hamburger-menu[hidden] { display: none; }

.ham-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  position: relative;
}

.ham-item:hover {
  background: rgba(109, 93, 245, 0.07);
  color: var(--violet);
}

.ham-item svg { opacity: 0.6; flex-shrink: 0; transition: opacity 0.15s; }
.ham-item:hover svg { opacity: 1; }

.ham-divider {
  height: 1px;
  background: rgba(23, 32, 67, 0.08);
  margin: 4px 8px;
}

.btn-report-export svg {
  flex-shrink: 0;
}

.btn-report-export span {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4), 0 0 0 2px white;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4), 0 0 0 2px white;
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.6), 0 0 0 2px white;
  }
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: var(--violet);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-base);
}

.btn-link:hover {
  gap: 10px;
  color: var(--violet-deep);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ============================================
   Time Travel Controls
   ============================================ */

/* ---- Smart Bar ---- */
.smart-bar {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  margin-bottom: var(--space-xl);
}

.smart-bar-moods {
  display: flex;
  align-items: center;
  gap: 16px;
}

.smart-bar-mood {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 24, 54, 0.10), 0 1px 3px rgba(16, 24, 54, 0.06);
  border: 1px solid rgba(16, 24, 54, 0.07);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  transition: all 0.2s ease;
}

.smart-bar-mood:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 24, 54, 0.13);
}

.smart-bar-mood.mood-bien { }
.smart-bar-mood.mood-bien:hover { }
.smart-bar-mood.mood-moyen { }
.smart-bar-mood.mood-moyen:hover { }
.smart-bar-mood.mood-mal { }
.smart-bar-mood.mood-mal:hover {
  border-color: rgba(255, 0, 0, 0.3);
}

.smart-bar-mood .mood-count {
  font-weight: 800;
  font-size: 15px;
  min-width: 1.4ch;
  text-align: right;
}

.smart-bar-mood .mood-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ============================================
   Bloc Sections
   ============================================ */

.bloc {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
}

.bloc:hover {
  box-shadow: var(--shadow-hero);
  transform: translateY(-2px);
}

.bloc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--line-soft);
}

.bloc-title-wrap {
  flex: 1;
}

.bloc-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-950);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.bloc-title-with-date {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.bloc-date {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700);
  background: rgba(109, 93, 245, 0.08);
  border: 1px solid rgba(109, 93, 245, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.bloc-icon {
  color: var(--violet);
}

.bloc-subtitle {
  font-size: 14px;
  color: var(--ink-600);
  font-weight: 500;
}

.bloc-actions {
  display: flex;
  gap: var(--space-sm);
}

.bloc-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.priorities-alert-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line-soft);
  background: rgba(0, 255, 102, 0.08);
  color: var(--logo-green);
  white-space: nowrap;
}

.priorities-alert-pill.is-active {
  background: rgba(255, 0, 0, 0.08);
  border-color: rgba(255, 0, 0, 0.28);
  color: var(--logo-red);
}

.priorities-alert-pill.is-clear {
  background: rgba(0, 255, 102, 0.08);
  border-color: rgba(0, 255, 102, 0.28);
  color: var(--logo-green);
}

.bloc-content {
  /* Content will vary by bloc */
}

/* ============================================
   BLOC 1: Team Overview
   ============================================ */

.team-health-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  padding: var(--space-xl);
  background: linear-gradient(145deg, rgba(109, 93, 245, 0.06), rgba(47, 143, 255, 0.04));
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.health-gauge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.health-gauge {
  filter: drop-shadow(0 8px 16px rgba(109, 93, 245, 0.15));
}

.health-details h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: var(--space-sm);
}

.health-trend {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.trend-icon {
  font-size: 24px;
}

.trend-icon.up {
  color: var(--mint);
}

.trend-icon.down {
  color: var(--red);
}

.trend-value {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-950);
}

.trend-period {
  font-size: 14px;
  color: var(--ink-600);
}

.health-dimensions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.dimension-bar {
  /* Dimension bars styling */
}

.dimension-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}

.dimension-label span {
  color: var(--ink-700);
  font-weight: 600;
}

.dimension-label strong {
  color: var(--ink-950);
  font-weight: 700;
}

.dimension-track {
  height: 8px;
  background: var(--line-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dimension-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

/* Employee Cards */
.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.employee-card {
  background: white;
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.employee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.employee-card:hover::before {
  transform: scaleX(1);
}

.employee-card:hover {
  border-color: var(--violet);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.employee-card.status-good {
  border-color: var(--mint);
}

.employee-card.status-good::before {
  background: var(--mint);
}

.employee-card.status-warning {
  border-color: var(--orange);
}

.employee-card.status-warning::before {
  background: var(--orange);
}

.employee-card.status-critical {
  border-color: var(--red);
}

.employee-card.status-critical::before {
  background: var(--red);
}

.employee-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.employee-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.employee-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 2px;
}

.employee-role {
  font-size: 12px;
  color: var(--ink-600);
  font-weight: 500;
}

.employee-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.score-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-950);
}

.score-max {
  font-size: 16px;
  color: var(--ink-600);
  font-weight: 600;
}

.employee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.badge-urgent {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.08));
  color: var(--red-deep);
}

.badge-priority {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
  color: var(--orange-deep);
}

.badge-stable {
  background: linear-gradient(135deg, rgba(24, 197, 151, 0.15), rgba(24, 197, 151, 0.08));
  color: var(--mint-deep);
}

.employee-insights {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.employee-cta {
  width: 100%;
  padding: 10px;
  background: var(--violet);
  color: white;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.employee-cta:hover {
  background: var(--violet-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(109, 93, 245, 0.3);
}

/* ============================================
   BLOC 2: Patterns & Alerts
   ============================================ */

.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.alert-card {
  background: white;
  border-left: 4px solid var(--violet);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
}

.alert-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}

.alert-card.alert-urgent {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.04), white);
}

.alert-card.alert-warning {
  border-left-color: var(--orange);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.04), white);
}

.alert-card.alert-info {
  border-left-color: var(--sky);
  background: linear-gradient(90deg, rgba(47, 143, 255, 0.04), white);
}

.alert-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.alert-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.alert-urgent .alert-icon {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.08));
}

.alert-warning .alert-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
}

.alert-info .alert-icon {
  background: linear-gradient(135deg, rgba(47, 143, 255, 0.15), rgba(47, 143, 255, 0.08));
}

.alert-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 4px;
}

.alert-meta {
  font-size: 12px;
  color: var(--ink-600);
}

.alert-description {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.alert-actions {
  display: flex;
  gap: var(--space-sm);
}

.patterns-section {
  margin-top: var(--space-2xl);
}

.section-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: var(--space-lg);
}

.patterns-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pattern-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  transition: all var(--transition-base);
}

.pattern-item:hover {
  border-color: var(--violet);
  box-shadow: var(--shadow-soft);
}

.pattern-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.15), rgba(47, 143, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pattern-content {
  flex: 1;
}

.pattern-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 4px;
}

.pattern-content p {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
}

.pattern-confidence {
  font-size: 12px;
  color: var(--ink-600);
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(109, 93, 245, 0.1);
  border-radius: var(--radius-full);
}

/* ============================================
   BLOC 3: Historique & Evolution Table
   ============================================ */

.evolution-table-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
}

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

.evolution-table thead {
  border-bottom: 2px solid var(--line-soft);
}

.evolution-table th {
  padding: var(--space-md);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.evolution-table td {
  padding: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-900);
}

.evolution-table tbody tr {
  transition: background var(--transition-base);
}

.evolution-table tbody tr:hover {
  background: var(--surface-1);
}

.employee-name-cell {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.employee-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.score-cell {
  font-size: 20px;
  font-weight: 800;
}

.score-cell.good { color: var(--logo-green); }
.score-cell.warning { color: var(--logo-orange); }
.score-cell.critical { color: var(--logo-red); }

.trend-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.trend-indicator.up {
  background: rgba(24, 197, 151, 0.1);
  color: var(--mint-deep);
}

.trend-indicator.down {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red-deep);
}

.trend-indicator.stable {
  background: rgba(109, 93, 245, 0.1);
  color: var(--violet-deep);
}

.evolution-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 40px;
}

.sparkline-bar {
  flex: 1;
  background: var(--line-soft);
  border-radius: 2px;
  transition: all var(--transition-base);
  min-width: 3px;
}

.sparkline-bar.good { background: var(--mint); }
.sparkline-bar.warning { background: var(--orange); }
.sparkline-bar.critical { background: var(--red); }

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.quick-stat-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.quick-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-950);
  margin-bottom: var(--space-xs);
}

.quick-stat-label {
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 600;
}

.cycles-section {
  margin-top: var(--space-2xl);
}

.cycles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.cycle-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.cycle-card:hover {
  border-color: var(--violet);
  box-shadow: var(--shadow-soft);
}

.cycle-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: var(--space-sm);
}

.cycle-card p {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.5;
}

/* ============================================
   BLOC 4: Actions & Journal
   ============================================ */

.journal-section {
  margin-bottom: var(--space-2xl);
}

.journal-quick-add {
  background: white;
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.journal-quick-add:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(109, 93, 245, 0.1);
}

#journalInput {
  width: 100%;
  min-height: 100px;
  padding: var(--space-md);
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink-950);
  resize: vertical;
  outline: none;
  margin-bottom: var(--space-md);
}

#journalInput::placeholder {
  color: var(--ink-600);
}

.journal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.journal-entries {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.journal-entry {
  background: white;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.journal-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.journal-entry-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

.journal-entry-content {
  font-size: 14px;
  color: var(--ink-800);
  line-height: 1.6;
}

.templates-section,
.actions-section {
  margin-top: var(--space-2xl);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.template-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.template-card:hover {
  border-color: var(--violet);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.template-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: var(--space-sm);
}

.template-card p {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.template-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: 11px;
  color: var(--ink-600);
}

.actions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.action-item {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.action-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-base);
}

.action-checkbox:hover {
  border-color: var(--violet);
}

.action-checkbox.checked {
  background: var(--violet);
  border-color: var(--violet);
}

.action-content {
  flex: 1;
}

.action-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 4px;
}

.action-content p {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.5;
}

/* ============================================
   BLOC 5: Insights & Predictions
   ============================================ */

.trajectory-section {
  margin-bottom: var(--space-2xl);
}

.trajectory-canvas-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-lg);
}

.trajectory-insights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.trajectory-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.predictive-alerts-section,
.recommendations-section {
  margin-top: var(--space-2xl);
}

.predictive-alerts-list,
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.predictive-alert,
.recommendation-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.predictive-alert h4,
.recommendation-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: var(--space-sm);
}

.predictive-alert p,
.recommendation-card p {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.6;
}

/* ============================================
   Command Palette
   ============================================ */

.command-palette {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  transition: opacity var(--transition-smooth);
}

.command-palette.hidden {
  opacity: 0;
  pointer-events: none;
}

.command-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 24, 54, 0.5);
  backdrop-filter: blur(8px);
}

.command-modal {
  position: relative;
  width: min(640px, 90%);
  background: var(--card-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  animation: commandSlideIn var(--transition-smooth);
}

@keyframes commandSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.command-search {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--line-soft);
}

.command-icon {
  color: var(--ink-600);
  flex-shrink: 0;
}

#commandInput {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink-950);
  outline: none;
}

#commandInput::placeholder {
  color: var(--ink-600);
}

.command-esc {
  padding: 4px 8px;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-600);
}

.command-results {
  max-height: 400px;
  overflow-y: auto;
}

.command-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.command-item:hover,
.command-item.active {
  background: var(--surface-1);
}

.command-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.15), rgba(47, 143, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.command-item-content {
  flex: 1;
}

.command-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-950);
  margin-bottom: 2px;
}

.command-item-subtitle {
  font-size: 12px;
  color: var(--ink-600);
}

.command-item-kbd {
  padding: 4px 8px;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-600);
}

/* ============================================
   Coach Sidebar
   ============================================ */

.coach-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90%);
  height: 100vh;
  background: var(--card-strong);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 32px rgba(16, 24, 54, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  transition: transform var(--transition-smooth);
}

.coach-sidebar.hidden {
  transform: translateX(100%);
}

.coach-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--line-soft);
}

.coach-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.coach-title {
  flex: 1;
}

.coach-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 2px;
}

.coach-status {
  font-size: 12px;
  color: var(--mint);
  font-weight: 600;
}

.coach-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--ink-600);
  transition: all var(--transition-base);
}

.coach-close:hover {
  background: var(--surface-1);
  color: var(--red);
}

.coach-conversation {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.coach-message {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.coach-message.user {
  flex-direction: row-reverse;
}

.coach-message-bubble {
  max-width: 80%;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
}

.coach-message.assistant .coach-message-bubble {
  background: white;
  border: 1px solid var(--line-soft);
  color: var(--ink-900);
}

.coach-message.user .coach-message-bubble {
  background: linear-gradient(135deg, var(--violet), var(--sky));
  color: white;
}

.coach-input-wrap {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-top: 1px solid var(--line-soft);
}

#coachInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  color: var(--ink-950);
  outline: none;
  transition: all var(--transition-base);
}

#coachInput:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(109, 93, 245, 0.1);
}

.coach-send-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  color: white;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.coach-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(109, 93, 245, 0.3);
}

/* ============================================
   Micro-Nudges
   ============================================ */

.micro-nudges-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 9000;
  max-width: 360px;
}

.micro-nudge {
  background: var(--card-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  animation: nudgeSlideIn var(--transition-smooth);
}

@keyframes nudgeSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.micro-nudge-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.micro-nudge-icon {
  font-size: 20px;
}

.micro-nudge-content {
  flex: 1;
}

.micro-nudge-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 4px;
}

.micro-nudge-text {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.5;
}

.micro-nudge-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--ink-600);
  transition: all var(--transition-base);
}

.micro-nudge-close:hover {
  background: var(--surface-1);
  color: var(--red);
}

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

.dash-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--line-soft);
}

.footer-text {
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 600;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* ============================================
   Employee Detail Modal
   ============================================ */

.employee-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeIn var(--transition-smooth);
}

.employee-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 24, 54, 0.6);
  backdrop-filter: blur(8px);
}

.employee-modal-content {
  position: relative;
  width: min(900px, 100%);
  max-height: 90vh;
  background: var(--card-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn var(--transition-smooth);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.employee-modal-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.employee-modal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}

.employee-modal-info {
  flex: 1;
}

.employee-modal-info h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-950);
  margin-bottom: 4px;
}

.employee-modal-info p {
  font-size: 14px;
  color: var(--ink-600);
}

.employee-modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--ink-600);
  transition: all var(--transition-base);
}

.employee-modal-close:hover {
  background: var(--surface-1);
  color: var(--red);
}

.employee-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
}

.manager-settings-modal {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background:
    radial-gradient(circle at top right, rgba(47, 143, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 253, 0.98));
}

.manager-settings-body {
  background: transparent;
  padding: 8px clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px);
}

.manager-settings-title {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 900;
  color: var(--ink-950);
  margin: 0;
  letter-spacing: -0.03em;
  margin: 0;
}

.manager-settings-close {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  flex: 0 0 auto;
  margin-left: auto;
}

.manager-settings-page {
  display: grid;
}

.manager-settings-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
  gap: 22px;
  align-items: start;
  min-height: 100%;
}

.manager-settings-main,
.manager-settings-side {
  display: grid;
  gap: 22px;
}

.manager-settings-stack {
  display: grid;
  gap: var(--space-lg);
}

.manager-settings-section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(162, 174, 207, 0.2);
  border-radius: 24px;
  padding: clamp(20px, 2vw, 28px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.manager-settings-head {
  display: grid;
  gap: 4px;
  margin-bottom: var(--space-lg);
}

.manager-settings-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-950);
  margin: 0;
}

.manager-settings-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
}

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

.manager-settings-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.manager-field-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(123, 93, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(18, 28, 56, 0.05);
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.manager-field-input:hover {
  border-color: rgba(123, 93, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 28px rgba(18, 28, 56, 0.07);
}

.manager-field-input::placeholder {
  color: rgba(95, 111, 156, 0.78);
  font-weight: 500;
}

.manager-settings-field select.manager-field-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 52px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5L7 9.5L11 5.5' stroke='%235f6f9c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, calc(100% - 18px) 50%;
  background-size: auto, 14px 14px;
  cursor: pointer;
}

.manager-settings-field input[readonly].manager-field-input {
  background:
    linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(241, 246, 255, 0.98));
  color: var(--ink-800);
  border-color: rgba(47, 143, 255, 0.16);
}

.manager-password-control {
  position: relative;
  width: 100%;
  min-width: 0;
}

.manager-password-control .manager-password-input {
  width: 100%;
  min-height: 58px;
  padding-right: 64px;
}

.manager-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(123, 93, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.96));
  color: var(--ink-600);
  box-shadow: 0 8px 18px rgba(18, 28, 56, 0.08);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.manager-password-toggle svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.manager-password-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(123, 93, 255, 0.2);
  color: var(--ink-700);
  box-shadow: 0 12px 22px rgba(18, 28, 56, 0.1);
}

.manager-password-toggle:active {
  transform: translateY(-50%) scale(0.97);
}

.manager-password-toggle-icon-hide {
  display: none;
}

.manager-password-toggle[aria-pressed="true"] .manager-password-toggle-icon-show {
  display: none;
}

.manager-password-toggle[aria-pressed="true"] .manager-password-toggle-icon-hide {
  display: block;
}

.manager-settings-field label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-800);
}

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

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

.manager-settings-nav-link {
  text-decoration: none;
}

.manager-settings-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: stretch;
}

.manager-settings-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 14px;
}

.manager-settings-summary-card {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 247, 252, 0.96));
  border: 1px solid var(--line-soft);
}

.manager-settings-summary-card strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-950);
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.manager-settings-summary-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.manager-settings-hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.55;
}

.manager-settings-password-help {
  margin-top: 8px;
}

.manager-settings-inline-link {
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.manager-settings-inline-link:hover,
.manager-settings-inline-link:focus-visible {
  color: var(--violet-deep);
  text-decoration: underline;
}

.manager-settings-section-billing .manager-settings-actions {
  margin-top: 18px;
}

.manager-settings-section-subscription {
  border-color: rgba(245, 158, 11, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 251, 241, 0.98));
}

.manager-settings-subscription-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 249, 237, 0.98));
}

.manager-settings-subscription-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-800);
}

.manager-settings-subscription-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.manager-settings-section-subscription .manager-settings-actions {
  margin-top: 4px;
}

.manager-settings-section-danger {
  border-color: rgba(220, 38, 38, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 247, 0.98));
}

.manager-settings-danger-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(220, 38, 38, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 245, 0.98));
}

.manager-settings-danger-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-800);
}

.manager-settings-danger-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.manager-settings-feedback {
  margin-top: 4px;
}

.manager-settings-loading,
.manager-settings-error {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(32px, 8vw, 56px) var(--space-md);
  text-align: center;
}

.manager-settings-loading {
  color: var(--ink-700);
  font-weight: 700;
}

.manager-settings-error strong {
  font-size: 16px;
  color: var(--ink-950);
}

.manager-settings-error p {
  margin: 0;
  max-width: 420px;
  color: var(--ink-600);
  line-height: 1.5;
}

.manager-settings-section-profile .manager-settings-grid,
.manager-settings-section-security .manager-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.manager-settings-screen {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.manager-settings-screen .employee-modal-backdrop {
  background: rgba(244, 247, 252, 0.96);
  backdrop-filter: none;
}

.manager-settings-screen .employee-modal-header {
  padding: 24px clamp(24px, 3vw, 40px) 0;
  background: transparent;
  border-bottom: none;
  justify-content: space-between;
  align-items: center;
}

.manager-settings-screen .employee-modal-body {
  padding: 0;
}

.modal-section {
  margin-bottom: var(--space-2xl);
}

.modal-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: var(--space-lg);
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.modal-stat {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.modal-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-950);
  margin-bottom: var(--space-xs);
}

.modal-stat-label {
  font-size: 12px;
  color: var(--ink-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line-soft);
}

.history-item {
  position: relative;
  padding: var(--space-md) 0;
  display: flex;
  gap: var(--space-md);
}

.history-dot {
  position: absolute;
  left: -24px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--mint);
  background: white;
}

.history-dot.warning {
  border-color: var(--orange);
}

.history-dot.critical {
  border-color: var(--red);
}

.history-content {
  flex: 1;
}

.history-date {
  font-size: 12px;
  color: var(--ink-600);
  font-weight: 600;
  margin-bottom: 4px;
}

.history-text {
  font-size: 14px;
  color: var(--ink-800);
  line-height: 1.5;
}

.employee-modal-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.scenario-card {
  background: white;
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.scenario-card:hover {
  border-color: var(--violet);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

/* ============================================
   V9 — Priority Cards (Bloc 1)
   ============================================ */

.priorities-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.priority-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.priority-group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.priority-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-smooth);
}

.priority-card.priority-card-static {
  cursor: pointer;
  padding: 14px 16px;
}

.priority-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-details {
  padding: 6px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  margin-left: auto;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.btn-details:hover {
  background: var(--violet);
  color: white;
  border-color: var(--violet);
}

.priority-card.badge-red {
  border-left: 4px solid #FF0000;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.10), rgba(255, 0, 0, 0.02));
}

.priority-card.badge-orange {
  border-left: 4px solid #FFDE00;
  background: linear-gradient(135deg, rgba(255, 222, 0, 0.14), rgba(255, 222, 0, 0.03));
}

.priority-card.badge-green {
  border-left: 4px solid #14B414;
  background: linear-gradient(135deg, rgba(20, 180, 20, 0.10), rgba(20, 180, 20, 0.02));
}

.priority-card.badge-neutral {
  border-left: 4px solid rgba(109, 93, 245, 0.55);
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.08), rgba(47, 143, 255, 0.03));
}

.priority-card.priority-card-trend {
  border-left: 4px solid rgba(109, 93, 245, 0.7);
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.08), rgba(47, 143, 255, 0.03));
}

.priority-card.priority-card-trend.trend-card-degradation {
  border-left-color: rgba(220, 38, 38, 1);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.08);
}

.priority-card.priority-card-trend.trend-card-unstable {
  border-left-color: rgba(245, 158, 11, 0.95);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(255, 255, 255, 0.04));
}

.priority-card.priority-card-trend.trend-card-positive {
  border-left-color: rgba(24, 197, 151, 0.9);
  background: linear-gradient(135deg, rgba(24, 197, 151, 0.08), rgba(255, 255, 255, 0.04));
}

.priority-card.priority-card-trend.trend-card-insufficient {
  border-left-color: rgba(109, 93, 245, 0.6);
}

.priority-card-top {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 8px;
}

.priority-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  color: white;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.priority-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-950);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.priority-role {
  font-size: 12px;
  color: var(--ink-600);
}

/* Vote du jour */
.priority-vote {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vote-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vote-dot.dot-green {
  background: #14B414;
  box-shadow: 0 0 6px rgba(20, 180, 20, 0.5);
}

.vote-dot.dot-orange {
  background: #FFDE00;
  box-shadow: 0 0 6px rgba(255, 222, 0, 0.5);
}

.vote-dot.dot-red {
  background: #FF0000;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.5);
}

.vote-label {
  font-size: 12px;
  color: var(--ink-600);
  white-space: nowrap;
}

/* Diagnostic */
.priority-diagnostic {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.priority-diagnostic.diag-high {
  color: var(--logo-red);
}

.priority-diagnostic.diag-medium {
  color: var(--logo-orange);
}

.priority-diagnostic.diag-low {
  color: var(--logo-green);
}

.priority-diagnostic.diag-degradation {
  color: var(--red);
}

.priority-diagnostic.diag-unstable {
  color: #b45309;
}

.priority-diagnostic.diag-positive {
  color: var(--mint-deep);
}

.priority-diagnostic.diag-insufficient {
  color: var(--ink-600);
}

.priority-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.priority-status-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.priority-status-row .priority-diagnostic {
  margin-bottom: 0;
}

.priority-status-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 13px;
  flex-shrink: 0;
}

.priority-status-arrow.trend-down {
  background: rgba(220, 38, 38, 0.1);
}

.priority-status-arrow.trend-flat {
  background: rgba(245, 158, 11, 0.12);
}

.priority-status-arrow.trend-up {
  background: rgba(24, 197, 151, 0.12);
}

.priority-status-badge,
.focus-conclusion-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.priority-status-badge.status-degradation,
.focus-conclusion-badge.status-degradation,
.focus-conclusion-card.status-degradation {
  color: var(--red);
  background: rgba(220, 38, 38, 0.14);
}

.priority-status-badge.status-unstable,
.focus-conclusion-badge.status-unstable,
.focus-conclusion-card.status-unstable {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.priority-status-badge.status-positive,
.focus-conclusion-badge.status-positive,
.focus-conclusion-card.status-positive {
  color: var(--mint-deep);
  background: rgba(24, 197, 151, 0.09);
}

.priority-status-badge.status-insufficient,
.focus-conclusion-badge.status-insufficient,
.focus-conclusion-card.status-insufficient {
  color: var(--violet);
  background: rgba(109, 93, 245, 0.10);
}

.priority-proof {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.priority-proof-line {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-700);
}

.priority-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.priority-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 67, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-base);
}

.priority-quick-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.priority-quick-action-schedule {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
  color: var(--red);
}

.priority-quick-action-handled {
  border-color: rgba(109, 93, 245, 0.22);
  background: rgba(109, 93, 245, 0.08);
  color: var(--violet-deep);
}

.priority-empty-dots {
  font-size: 12px;
  color: var(--ink-500);
}

/* Timeline 15 points */
.priority-timeline {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: var(--space-xs);
  flex-wrap: wrap;
}

.priority-trend {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  padding: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-700);
}

.trend-pct {
  font-weight: 700;
  color: var(--ink-900);
}

.trend-evo {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.05);
}

.priority-trend.trend-up .trend-evo { color: #16a34a; background: rgba(22,163,74,0.1); }
.priority-trend.trend-down .trend-evo { color: #dc2626; background: rgba(220,38,38,0.1); }
.priority-trend.trend-stable .trend-evo { color: var(--ink-600); background: rgba(0,0,0,0.05); }
.priority-trend.trend-flat .trend-evo { color: #b45309; background: rgba(245, 158, 11, 0.12); }

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.15s ease;
}

.timeline-dot:hover {
  transform: scale(1.5);
}

.dot-green { background: #14B414; }
.dot-orange { background: #FFDE00; }
.dot-red { background: #FF0000; }

.priorities-toggle-wrap {
  text-align: center;
  margin-top: var(--space-md);
}

.priority-group-toggle {
  text-align: center;
  margin: 2px 0 8px 0;
  padding: 0;
}

.priority-group-toggle .btn-ghost {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-600);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 5px 12px;
  line-height: 1.1;
  min-height: 0;
  height: auto;
  transition: all var(--transition-smooth);
}

.priority-group-toggle .btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--ink-400);
  color: var(--ink-800);
}

/* État du jour + Tendances récentes: dimensions harmonisées */
#blocPriorities .priorities-list {
  gap: 10px;
}

/* Desktop : 2 colonnes à l'intérieur de chaque groupe */
@media (min-width: 769px) {
  #blocPriorities .priorities-list,
  #blocTendances .priorities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #blocPriorities .priority-group-grid,
  #blocTendances .priority-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  #blocPriorities .priority-group-toggle,
  #blocTendances .priority-group-toggle {
    display: flex;
    justify-content: center;
  }
}

/* Boutons "Voir les autres" — fond clair arrondi + point coloré */
.btn-see-more-red,
.btn-see-more-orange,
.btn-see-more-green {
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  color: var(--ink-800) !important;
  transition: filter 0.18s ease !important;
}

.btn-see-more-red::before,
.btn-see-more-orange::before,
.btn-see-more-green::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-see-more-red {
  background: rgba(255, 0, 0, 0.08) !important;
  border-color: rgba(255, 0, 0, 0.15) !important;
}
.btn-see-more-red::before    { background: #FF0000; }
.btn-see-more-red:hover      { filter: brightness(0.94); }

.btn-see-more-orange {
  background: rgba(255, 222, 0, 0.14) !important;
  border-color: rgba(255, 222, 0, 0.3) !important;
}
.btn-see-more-orange::before { background: #e6b800; }
.btn-see-more-orange:hover   { filter: brightness(0.94); }

.btn-see-more-green {
  background: rgba(20, 180, 20, 0.08) !important;
  border-color: rgba(20, 180, 20, 0.18) !important;
}
.btn-see-more-green::before  { background: #14B414; }
.btn-see-more-green:hover    { filter: brightness(0.94); }

/* ============================================
   V9 — Global State (Bloc 2)
   ============================================ */

.global-state-content {
  /* wrapper */
}

.global-state-grid {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.global-score-card {
  text-align: center;
  min-width: 140px;
}

.global-score-value {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.global-score-value.score-good { color: var(--logo-green); }
.global-score-value.score-warning { color: var(--logo-orange); }
.global-score-value.score-critical { color: var(--logo-red); }

.global-score-label {
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 600;
  margin-top: var(--space-xs);
}

.global-trend {
  font-size: 13px;
  color: var(--ink-700);
  margin-top: var(--space-sm);
}

.global-distribution {
  display: flex;
  gap: var(--space-lg);
  flex: 1;
  justify-content: center;
}

.distrib-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  min-width: 80px;
}

.distrib-good { background: rgba(24, 197, 151, 0.08); }
.distrib-medium { background: rgba(245, 158, 11, 0.08); }
.distrib-bad { background: rgba(220, 38, 38, 0.08); }

.distrib-emoji {
  font-size: 24px;
}

.distrib-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.distrib-good .distrib-dot {
  background: var(--logo-green);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.distrib-medium .distrib-dot {
  background: var(--logo-orange);
  box-shadow: 0 0 12px rgba(255, 95, 31, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.distrib-bad .distrib-dot {
  background: var(--logo-red);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.distrib-count {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-950);
}

.distrib-label {
  font-size: 12px;
  color: var(--ink-600);
  font-weight: 600;
}

.global-synthesis {
  font-size: 14px;
  color: var(--ink-800);
  line-height: 1.6;
  padding: var(--space-md) var(--space-lg);
  background: var(--neutral-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--violet);
}

/* ============================================
   V9 — Focus Panel (side drawer)
   ============================================ */

.focus-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.focus-panel.hidden {
  display: none !important;
}

.focus-panel-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 24, 54, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.focus-panel-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 92%);
  height: 100%;
  background: var(--card-strong);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -12px 0 48px rgba(16, 24, 54, 0.18);
  overflow-y: auto;
  animation: drawerSlideIn 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.focus-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.focus-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 24px;
  color: var(--ink-600);
  transition: all var(--transition-base);
}

.focus-close:hover {
  background: var(--surface-1);
  color: var(--red);
}

.focus-identity {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.focus-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  color: white;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.focus-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-950);
  line-height: 1.3;
}

.focus-role-inline {
  font-weight: 500;
  color: var(--ink-500);
  font-size: 16px;
}

.focus-role-below {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  line-height: 1.3;
}

.focus-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.focus-section-header h3 { margin: 0; }

.focus-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.focus-export-menu {
  position: relative;
}

.focus-export-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(109, 93, 245, 0.18);
  background: rgba(109, 93, 245, 0.06);
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.focus-export-trigger:hover {
  background: rgba(109, 93, 245, 0.12);
}

.focus-export-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  z-index: 30;
}

.focus-export-popover.hidden {
  display: none;
}

.focus-export-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 10px;
}

.focus-export-periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.focus-export-option {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: white;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.focus-export-option.active {
  border-color: rgba(109, 93, 245, 0.35);
  background: rgba(109, 93, 245, 0.1);
  color: var(--violet);
}

.focus-export-actions {
  display: flex;
  gap: 8px;
}

.focus-export-action-primary,
.focus-export-action-secondary {
  flex: 1;
  min-height: 36px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.focus-export-action-primary {
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  box-shadow: 0 10px 24px rgba(109, 93, 245, 0.22);
}

.focus-export-action-secondary {
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: var(--ink-700);
  background: white;
}

.focus-export-action-primary:hover,
.focus-export-action-secondary:hover {
  transform: translateY(-1px);
}

.focus-cal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(109, 93, 245, 0.08);
  color: var(--violet);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.focus-cal-btn:hover { background: rgba(109, 93, 245, 0.16); }

.focus-comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus-date-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-1);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.focus-date-label { color: var(--ink-600); }
.focus-date-mood  { color: var(--ink-900); }

.focus-vote-today {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-600);
  margin-bottom: var(--space-md);
}

.focus-vote-today.no-vote {
  justify-content: space-between;
}

.focus-vote-empty {
  color: var(--ink-700);
  font-weight: 700;
}

.focus-conclusion-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.focus-conclusion-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.focus-conclusion-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.focus-conclusion-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 15px;
  flex-shrink: 0;
}

.focus-conclusion-arrow.trend-down {
  background: rgba(220, 38, 38, 0.12);
}

.focus-conclusion-arrow.trend-flat {
  background: rgba(245, 158, 11, 0.14);
}

.focus-conclusion-arrow.trend-up {
  background: rgba(24, 197, 151, 0.14);
}

.focus-conclusion-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-950);
  line-height: 1.25;
  margin-bottom: 6px;
}

.focus-conclusion-proof {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-700);
}

.focus-btn-action {
  width: 100%;
}

.focus-body {
  padding: var(--space-xl);
  overflow-y: auto;
}

/* Résumé manager */
.focus-resume {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  line-height: 1.4;
}

.focus-resume.resume-red {
  color: var(--red);
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid var(--red);
}

.focus-resume.resume-orange {
  color: var(--orange);
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--orange);
}

.focus-resume.resume-green {
  color: var(--mint-deep);
  background: rgba(24, 197, 151, 0.08);
  border-left: 3px solid var(--mint);
}

.focus-resume.resume-neutral {
  color: var(--ink-600);
  background: var(--bg-soft);
  border-left: 3px solid var(--ink-400);
}

.focus-section {
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.focus-section.focus-section-history {
  overflow: visible;
}

.focus-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: var(--space-md);
}

.focus-timeline {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.focus-month-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.focus-month-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: white;
  padding: 10px 11px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.focus-month-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.focus-month-card.is-active {
  border-color: rgba(109, 93, 245, 0.35);
  box-shadow: 0 12px 28px rgba(109, 93, 245, 0.12);
}

.focus-month-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.focus-month-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
}

.focus-month-bar {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-bottom: 7px;
}

.focus-month-segment {
  min-width: 0;
  border-radius: 999px;
}

.focus-month-segment.segment-red {
  background: #FF0000;
}

.focus-month-segment.segment-orange {
  background: #FFDE00;
}

.focus-month-segment.segment-green {
  background: #14B414;
}

.focus-month-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
}

.focus-month-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 12px;
}

.focus-month-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.focus-month-dot.dot-red { background: #FF0000; }
.focus-month-dot.dot-orange { background: #FFDE00; }
.focus-month-dot.dot-green { background: #14B414; }

.focus-month-caption {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-600);
}

.focus-month-details {
  margin-top: 12px;
}

.focus-month-details-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  padding: 14px;
}

.focus-month-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.focus-month-details-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.focus-month-details-head h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-950);
}

.focus-month-details-head p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-600);
}

.focus-month-details-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(109, 93, 245, 0.08);
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
}

.focus-month-details-actions .btn-ghost {
  white-space: nowrap;
}

.focus-month-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus-month-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-secondary);
}

.focus-month-entry-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.focus-month-entry-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
}

.focus-month-entry-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.focus-month-entry-status.is-red {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.focus-month-entry-status.is-orange {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.focus-month-entry-status.is-green {
  background: rgba(24, 197, 151, 0.14);
  color: #0f766e;
}

.focus-month-entry-comment {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-700);
}

.focus-trend-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.focus-trend-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  flex: 1;
  justify-content: center;
}

.focus-trend-badge.trend-up    { background: rgba(20, 180, 20, 0.15); }
.focus-trend-badge.trend-down  { background: rgba(255, 0, 0, 0.12); }
.focus-trend-badge.trend-stable{ background: rgba(20, 180, 20, 0.12); }

.ftb-period { opacity: 0.6; font-weight: 600; font-size: 11px; }
.ftb-icon   { font-size: 13px; }
.ftb-label  { font-weight: 700; }

.focus-patterns {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.focus-pattern {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--ink-700);
}

.pattern-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* --- Dernier commentaire employé --- */
.focus-comment {
  position: relative;
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.06), rgba(109, 93, 245, 0.02));
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-md);
}

.focus-comment-delete{
  position:absolute;
  top:10px;
  right:10px;
  width:28px;
  height:28px;
  border:1px solid rgba(123, 93, 255, 0.14);
  border-radius:999px;
  background:#fff;
  color:var(--ink-500);
  font:inherit;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.focus-comment-delete:hover{
  color:var(--red);
  border-color:rgba(255, 0, 0, 0.18);
}

.comment-text {
  font-size: 14px;
  color: var(--ink-800);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
  word-break: break-word;
}

.comment-date {
  display: block;
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 8px;
}

.focus-comment-toggle{
  margin-top: 12px;
}

.focus-note-toggle {
  margin-top: 12px;
}

/* --- Dernier échange --- */
.focus-exchange {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.focus-exchange.exchange-green {
  background: rgba(20, 180, 20, 0.08);
  color: #000;
  border: 1px solid rgba(20, 180, 20, 0.2);
}

.focus-exchange.exchange-orange {
  background: rgba(255, 222, 0, 0.12);
  color: #000;
  border: 1px solid rgba(255, 222, 0, 0.3);
}

.focus-exchange.exchange-red {
  background: rgba(255, 0, 0, 0.07);
  color: #000;
  border: 1px solid rgba(255, 0, 0, 0.18);
}

.exchange-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.exchange-label {
  font-size: 13px;
}

.exchange-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.exchange-date {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}

.exchange-motif {
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  opacity: 0.85;
  margin-top: 2px;
}

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

.exchange-motif-input {
  width: 100%;
}

.exchange-motif-input input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  background: var(--bg-subtle);
  color: var(--text-primary);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.exchange-motif-input input:focus {
  outline: none;
  border-color: var(--violet);
}

.focus-consecutive-red {
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.btn-exchange-done {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--mint), #10b981);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(24, 197, 151, 0.25);
}

.btn-exchange-done:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 197, 151, 0.35);
}

.btn-exchange-reset {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-exchange-reset:hover {
  background: rgba(100, 116, 139, 0.08);
  border-color: rgba(100, 116, 139, 0.4);
}

/* --- Dernières notes du manager --- */
.focus-recent-notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.recent-note-item {
  position: relative;
  padding: var(--space-md);
  padding-right: 32px;
  background: white;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-md);
}

.recent-note-item p {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
  word-break: break-word;
}

/* --- Sélecteur de période premium --- */
.period-selector {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 3px;
  margin-bottom: var(--space-md);
  overflow: visible;
}

.period-selector-main {
  display: flex;
  gap: 0;
  overflow: visible;
}

.period-more-menu {
  display: grid;
  gap: 8px;
  width: 100%;
}

.period-btn {
  flex: 1;
  padding: 7px 10px;
  border: none;
  background: transparent;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  white-space: nowrap;
  min-width: 0;
}

.period-btn-more {
  flex: 0 0 auto;
  min-width: 44px;
  padding-inline: 12px;
}

.period-more-popover {
  position: static;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
}

.period-more-popover.hidden {
  display: none;
}

.period-more-option {
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-700);
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 10px;
  cursor: pointer;
  justify-self: stretch;
}

.period-more-option:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-950);
}

.period-more-option.active {
  background: white;
  color: var(--violet);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.period-btn:hover {
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.5);
}

.period-btn.active {
  background: white;
  color: var(--violet);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 560px) {
  .focus-export-periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Stats de la période */
.period-stats-bar {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.period-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.period-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.period-stat-dot.dot-red { background: #FF0000; }
.period-stat-dot.dot-orange { background: #FFDE00; }
.period-stat-dot.dot-green { background: #14B414; }

.period-stat-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-950);
}

.period-stat-pct {
  font-size: 11px;
  color: var(--ink-500);
}

.period-stat-days {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-600);
  opacity: 0.7;
}

.focus-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.focus-action-item {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.focus-action-item.action-done {
  opacity: 0.6;
}

.action-status-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.tag-progress {
  background: rgba(245, 158, 11, 0.15);
  color: var(--orange);
}

.tag-done {
  background: rgba(24, 197, 151, 0.15);
  color: var(--mint-deep);
}

.action-desc {
  flex: 1;
  color: var(--ink-800);
}

.action-date {
  font-size: 11px;
  color: var(--ink-500);
  flex-shrink: 0;
}

.focus-notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.focus-note {
  padding: var(--space-md);
  background: white;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.note-date {
  font-size: 11px;
  color: var(--ink-400);
  font-weight: 500;
  display: block;
  margin-top: 12px;
}

.focus-note p {
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
  word-break: break-word;
  overflow-wrap: break-word;
}

.focus-note-add {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.focus-note-add textarea {
  width: 100%;
  max-width: 100%;
  min-height: 60px;
  padding: var(--space-md);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 13px;
  color: var(--ink-950);
  resize: vertical;
  outline: none;
  transition: all var(--transition-base);
  box-sizing: border-box;
}

.focus-note-add textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(109, 93, 245, 0.1);
}

.focus-note-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
}

.focus-export-group {
  display: flex;
  gap: 6px;
}

.btn-export {
  padding: 6px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: white;
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-export:hover {
  background: var(--violet);
  color: white;
  border-color: var(--violet);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-outline:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: rgba(109, 93, 245, 0.04);
}

/* ============================================
   Couverture managériale (Bloc 3)
   ============================================ */

.bloc-couverture {
  border: 1px solid rgba(47, 143, 255, 0.15);
  background: linear-gradient(135deg, rgba(47, 143, 255, 0.03), rgba(109, 93, 245, 0.02));
}

.bloc-couverture .bloc-title {
  color: #2f8fff;
}

.couverture-content {
  padding: 0 var(--space-lg) var(--space-lg);
}

.suivi-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suivi-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.suivi-summary-item.is-alert {
  border-left: 4px solid var(--red);
}

.suivi-summary-item.is-warning {
  border-left: 4px solid var(--orange);
}

.suivi-summary-item.is-ok {
  border-left: 4px solid var(--mint);
}

.suivi-summary-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.suivi-summary-value {
  min-width: 34px;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--ink-950);
}

.suivi-summary-copy {
  min-width: 0;
}

.suivi-summary-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.35;
}

.suivi-summary-helper {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-600);
  line-height: 1.4;
}

/* Synthèse */
.couverture-synthese {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.couverture-synthese.synthese-red {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--red);
}

.couverture-synthese.synthese-orange {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.couverture-synthese.synthese-green {
  background: rgba(24, 197, 151, 0.08);
  border: 1px solid rgba(24, 197, 151, 0.2);
  color: var(--mint-deep, #0d9473);
}

/* 4 KPI cards */
.couverture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: var(--space-lg);
}

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

.couverture-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.couverture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.couverture-card-ok::before { background: var(--logo-green); }
.couverture-card-warning::before { background: var(--logo-orange); }
.couverture-card-alert::before { background: #f97316; }
.couverture-card-critical::before { background: var(--logo-red); }

.couverture-card-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.couverture-card-ok .couverture-card-value { color: var(--logo-green); }
.couverture-card-warning .couverture-card-value { color: var(--logo-orange); }
.couverture-card-alert .couverture-card-value { color: #f97316; }
.couverture-card-critical .couverture-card-value { color: var(--logo-red); }

.couverture-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 4px;
}

.couverture-card-desc {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.4;
}

.couverture-insuf {
  color: var(--ink-400);
  font-style: italic;
  font-size: 11px;
}

/* Top 5 */
.couverture-top5 {
  margin-bottom: var(--space-lg);
}

.top5-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 12px;
}

.top5-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top5-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.top5-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.top5-info {
  display: flex;
  flex-direction: column;
}

.top5-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-800);
}

.top5-role {
  font-size: 11px;
  color: var(--ink-400);
}

.top5-metrics {
  display: flex;
  gap: 16px;
  flex: 1;
  font-size: 12px;
  color: var(--ink-500);
}

.top5-metric.metric-alert {
  color: var(--red);
  font-weight: 600;
}

.top5-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-cov-red {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.badge-cov-orange {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

.badge-cov-green {
  background: rgba(24, 197, 151, 0.1);
  color: var(--mint);
}

@media (max-width: 700px) {
  .top5-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .top5-identity {
    min-width: auto;
    flex: 1;
  }
  .top5-metrics {
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Empty state */
.couverture-empty {
  text-align: center;
  padding: 24px;
  color: var(--ink-400);
  font-size: 13px;
  font-style: italic;
  background: rgba(100, 116, 139, 0.04);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

/* Button */
.couverture-action {
  text-align: center;
}

.btn-couverture-detail {
  padding: 10px 28px;
  min-width: 84px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, #2f8fff, var(--violet));
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(47, 143, 255, 0.3);
}

.btn-couverture-detail:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(47, 143, 255, 0.4);
}

.btn-couverture-detail:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* --- Suivi managérial panel (tabs + lists) --- */

.suivi-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-subtle, #f1f5f9);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
}

.suivi-tab {
  padding: 8px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.suivi-tab.active {
  background: white;
  color: #2f8fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.suivi-tab:hover:not(.active) {
  color: var(--ink-800);
}

.suivi-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suivi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--line-soft);
}

.suivi-item-ok {
  border-left: 3px solid var(--mint);
}

.suivi-item-orange {
  border-left: 3px solid #f97316;
}

.suivi-item-yellow {
  border-left: 3px solid var(--orange);
}

.suivi-item-critical {
  border-left: 3px solid var(--red);
  background: rgba(220, 38, 38, 0.03);
}

.suivi-item-grey {
  border-left: 3px solid var(--ink-300);
  background: rgba(100, 116, 139, 0.03);
}

.suivi-item-info {
  flex: 1;
  min-width: 0;
}

.suivi-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-800);
}

.suivi-item-role {
  font-weight: 400;
  color: var(--ink-400);
  font-size: 11px;
  margin-left: 6px;
}

.suivi-item-detail {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suivi-item-meta {
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 2px;
}

.suivi-item .btn-exchange-done,
.suivi-item .btn-note-vu,
.suivi-item .btn-details {
  flex-shrink: 0;
  font-size: 11px;
  padding: 5px 12px;
}

@media (max-width: 700px) {
  .suivi-summary-item {
    flex-direction: column;
    align-items: stretch;
  }

  .suivi-summary-main {
    align-items: center;
  }

  .suivi-summary-value {
    font-size: 24px;
  }

  .suivi-summary-label {
    font-size: 13px;
  }

  .btn-couverture-detail {
    width: 100%;
    justify-content: center;
  }
}

.suivi-insuf-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.suivi-insuf-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-400);
  margin-bottom: 8px;
}

/* ============================================
   V9 — Actions & Impact (Bloc 4)
   ============================================ */

#blocActionsImpact {
  border: 1px solid rgba(109, 93, 245, 0.15);
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.05), rgba(47, 143, 255, 0.03));
}

#blocActionsImpact .bloc-title {
  color: var(--violet);
}

.actions-impact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--space-xl);
}

/* --- Cartes notes dans bloc actions --- */
.action-note-card {
  background: white;
  border: 1px solid rgba(109, 93, 245, 0.15);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: all var(--transition-base);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.action-note-card:hover {
  box-shadow: var(--shadow-soft);
}

.action-note-card-priority {
  border-left-color: rgba(220, 38, 38, 0.95);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(255, 255, 255, 0.96));
}

.action-priority-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.action-note-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.action-note-header-main {
  flex: 1;
  min-width: 0;
}

.action-note-card .priority-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
  flex-shrink: 0;
}

.action-note-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-950);
}

.action-note-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.action-note-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.action-note-status-chip.is-seen {
  color: var(--mint-deep);
  background: rgba(24, 197, 151, 0.10);
}

.action-note-status-chip.is-unseen {
  color: var(--red);
  background: rgba(220, 38, 38, 0.10);
}

.action-note-entries {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.action-note-toggle {
  margin-top: 10px;
  align-self: flex-start;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--violet);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.action-note-toggle:hover {
  color: var(--sky);
}

.action-employees-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: -4px;
}

.action-employees-toggle {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--violet);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.action-employees-toggle:hover {
  color: var(--sky);
}

.action-note-entry {
  position: relative;
  padding: 12px 14px 12px 16px;
  padding-right: 32px;
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.04), rgba(47, 143, 255, 0.03));
  border-radius: 14px;
  border-left: 3px solid var(--violet);
}

.action-note-entry.note-done {
  opacity: 0.55;
}

.action-note-content {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.action-note-date {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 600;
}

.action-note-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.bloc-team-trends {
  border: 1px solid rgba(109, 93, 245, 0.16);
  background: linear-gradient(135deg, rgba(109, 93, 245, 0.04), rgba(47, 143, 255, 0.03));
}

.bloc-header-trends {
  align-items: flex-start;
  gap: 16px;
}

.team-trends-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.period-selector-compact {
  gap: 6px;
}

.team-trends-export {
  position: relative;
}

.team-trends-export .focus-export-trigger {
  width: auto;
  padding: 0 14px;
}

.team-trends-export-selection-label {
  margin-top: 12px;
}

.team-trends-export-employees {
  display: grid;
  gap: 8px;
  max-height: 188px;
  margin-bottom: 12px;
  overflow-y: auto;
  padding-right: 2px;
}

.team-trends-export-employee {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: white;
  cursor: pointer;
  transition: all 0.18s ease;
}

.team-trends-export-employee:hover {
  border-color: rgba(109, 93, 245, 0.24);
  background: rgba(109, 93, 245, 0.04);
}

.team-trends-export-employee.active {
  border-color: rgba(47, 143, 255, 0.28);
  background: rgba(47, 143, 255, 0.06);
}

.team-trends-export-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(148, 163, 184, 0.9);
  background: white;
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.18s ease;
}

.team-trends-export-employee.active .team-trends-export-check {
  border-color: rgba(47, 143, 255, 0.55);
}

.team-trends-export-employee.active .team-trends-export-check::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: #2f8fff;
}

.team-trends-export-copy {
  min-width: 0;
  flex: 1;
}

.team-trends-export-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.35;
}

.team-trends-export-role {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-500);
}

.team-trends-export-empty {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-500);
}

.rapport-employee-row:hover {
  transform: translateX(4px);
  background: rgba(109, 93, 245, 0.04) !important;
}

.objectif-template-btn:hover {
  border-color: var(--violet) !important;
  background: rgba(109, 93, 245, 0.04) !important;
}

.manager-field-input:focus {
  border-color: rgba(123, 93, 255, 0.68) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 249, 255, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(123, 93, 255, 0.12),
    0 16px 30px rgba(18, 28, 56, 0.08) !important;
}

.team-trends-export .focus-export-action-primary:disabled,
.team-trends-export .focus-export-action-secondary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.team-trends-list {
  padding: 0 var(--space-lg) var(--space-lg);
}

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

.team-trend-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(109, 93, 245, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.team-trend-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.team-trend-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-950);
}

.team-trend-role {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-500);
}

.team-trend-history {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.team-trend-summary {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-800);
}

.team-trend-comment {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(109, 93, 245, 0.06);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-700);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 700px) {
  .priority-card {
    padding: 14px 15px;
  }

  .priority-card.priority-card-static {
    padding: 12px 14px;
  }

  .action-note-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .action-note-header .btn-details {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .priority-action-row {
    justify-content: stretch;
  }

  .priority-quick-action {
    width: 100%;
  }

  .team-trends-grid {
    grid-template-columns: 1fr;
  }

  .team-trends-controls {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .team-trends-export {
    margin-left: auto;
  }

  .team-trends-export .focus-export-trigger {
    width: auto;
    min-width: 88px;
    padding: 0 12px;
  }

  .team-trends-export-employees {
    max-height: 160px;
  }
}

.btn-note-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--ink-400);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.btn-note-delete:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.note-status-buttons {
  display: flex;
  gap: 6px;
}

.btn-note-vu, .btn-note-pasvu {
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line-soft);
  background: white;
  color: var(--ink-500);
  transition: all var(--transition-smooth);
}

.btn-note-vu.active {
  background: rgba(24, 197, 151, 0.12);
  color: var(--mint);
  border-color: rgba(24, 197, 151, 0.4);
}

.btn-note-pasvu.active {
  background: rgba(220, 38, 38, 0.12);
  color: var(--red);
  border-color: rgba(220, 38, 38, 0.4);
}

.btn-note-vu:hover {
  background: var(--mint);
  color: white;
}

.btn-note-pasvu:hover {
  background: var(--red);
  color: white;
}

/* --- Ancien code (rétrocompat) --- */
.action-impact-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.action-impact-card:hover {
  box-shadow: var(--shadow-soft);
}

.action-impact-card.action-completed {
  opacity: 0.75;
}

.action-impact-top {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.action-status {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.action-impact-info {
  flex: 1;
  min-width: 0;
}

.action-impact-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 2px;
}

.action-impact-desc {
  font-size: 13px;
  color: var(--ink-800);
  line-height: 1.5;
}

.action-impact-date {
  font-size: 12px;
  color: var(--ink-600);
  margin-top: 4px;
}

.action-impact-measure {
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.measure-values {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-800);
}

.measure-diff {
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}

.impact-positive .measure-diff { color: var(--mint-deep); }
.impact-negative .measure-diff { color: var(--red); }
.impact-neutral .measure-diff { color: var(--ink-600); }

.section-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: var(--space-md);
}

/* ============================================
   V9 — Signals & Quality (Bloc 4)
   ============================================ */

.signals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.signals-positive,
.signals-quality {
  /* columns */
}

.positive-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.positive-item {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-md);
  background: rgba(24, 197, 151, 0.06);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--ink-800);
}

.positive-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.quality-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}

.quality-card.quality-good {
  background: rgba(24, 197, 151, 0.06);
  border-color: rgba(24, 197, 151, 0.2);
}

.quality-card.quality-medium {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
}

.quality-card.quality-low {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.2);
}

.quality-main {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.quality-pct {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-950);
}

.quality-label {
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 600;
}

.quality-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.quality-detail {
  font-size: 13px;
  color: var(--ink-600);
}

/* ============================================
   V9 — Ethical Footer
   ============================================ */

.ethical-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.ethical-footer p {
  font-size: 12px;
  color: var(--ink-600);
  line-height: 1.6;
  font-style: italic;
}

/* ============================================
   V9 — Modal Inputs (Noter action modal)
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 24, 54, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 200ms ease;
}

.modal-box {
  background: var(--card-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero);
  width: min(600px, 92%);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn var(--transition-smooth);
}

.modal-sm {
  width: min(480px, 92%);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--line-soft);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-950);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 22px;
  color: var(--ink-600);
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--surface-1);
  color: var(--red);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--line-soft);
}

.modal-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--space-xs);
}

.modal-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  color: var(--ink-950);
  outline: none;
  transition: all var(--transition-base);
  background: white;
}

.modal-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(109, 93, 245, 0.1);
}

textarea.modal-input {
  resize: vertical;
  min-height: 80px;
}

select.modal-input {
  appearance: auto;
}

.team-import-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-600);
}

.team-import-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.team-import-file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: white;
}

.team-import-file-btn {
  flex-shrink: 0;
}

.team-import-file-name {
  min-width: 0;
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.4;
  word-break: break-word;
}

.team-import-feedback {
  display: none;
  margin-top: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(109, 93, 245, 0.08);
  border: 1px solid rgba(109, 93, 245, 0.25);
  color: var(--violet-deep);
}

.team-import-feedback.is-success {
  background: rgba(24, 197, 151, 0.12);
  border-color: rgba(24, 197, 151, 0.35);
  color: var(--mint-deep);
}

.team-import-feedback.is-error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
  color: var(--red-deep);
}

.team-import-feedback-text {
  line-height: 1.45;
}

.team-import-upgrade-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(118deg, #12b886 0%, #2f8fff 100%);
  box-shadow: 0 10px 18px rgba(18, 184, 134, 0.26);
}

.team-import-upgrade-cta:hover {
  background: linear-gradient(118deg, #0ea778 0%, #287ee2 100%);
}

.invite-links-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.invite-links-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.invite-links-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.invite-link-row {
  border: 1px solid rgba(23, 32, 67, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.invite-link-meta {
  display: grid;
  gap: 2px;
}

.invite-link-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-950);
}

.invite-link-email {
  font-size: 12px;
  color: var(--ink-600);
}

.invite-link-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-link-input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 67, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-800);
  font-size: 13px;
  font-family: inherit;
}

.btn-copy-link {
  white-space: nowrap;
  min-height: 40px;
}

.invite-links-loading,
.invite-links-empty {
  padding: 8px 2px;
  color: var(--ink-600);
  font-size: 13px;
}

/* ============================================
   V9 — Empty States
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--ink-600);
  font-size: 14px;
}

.empty-hint {
  font-size: 13px;
  color: var(--ink-600);
  margin-top: var(--space-sm);
}

.empty-state-small {
  color: var(--ink-600);
  font-size: 13px;
  font-style: italic;
}

/* ============================================
   Utilities & Responsive
   ============================================ */

.hidden {
  display: none !important;
}

/* ============================================
   RESPONSIVE - TABLETTE (768px)
   ============================================ */
@media (max-width: 768px) {
  /* Layout général */
  .dash-wrap {
    padding: var(--space-md) var(--space-sm) 80px;
  }

  /* Header */
  .dash-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    position: relative;
    margin-bottom: 14px;
  }

  .header-left {
    width: 100%;
    order: 2;
  }

  .header-actions {
    position: absolute;
    top: 0;
    right: 0;
    gap: 8px;
    order: 1;
    z-index: 20;
    pointer-events: auto;
  }

  .header-actions .btn-icon {
    width: 40px;
    height: 40px;
  }

  .btn-objectifs {
    padding: 0 !important;
    font-size: 12px;
    border-radius: 12px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    justify-content: center;
    background: linear-gradient(135deg, var(--mint) 0%, #0fb88a 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(24, 197, 151, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: visible;
  }

  .btn-objectifs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 12px;
  }

  .btn-objectifs svg {
    width: 22px;
    height: 22px;
    color: white !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
  }

  .btn-objectifs span:not(.objectifs-badge) {
    display: none;
  }

  .btn-import-team {
    padding: 0 !important;
    font-size: 12px;
    border-radius: 12px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    justify-content: center;
    background: linear-gradient(135deg, var(--violet) 0%, var(--sky) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(109, 93, 245, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: visible;
  }

  .btn-import-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 12px;
  }

  .btn-import-team svg {
    width: 22px;
    height: 22px;
    color: white !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
  }

  .btn-import-team span {
    display: none;
  }

  .btn-invite-links {
    padding: 0 !important;
    font-size: 12px;
    border-radius: 12px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    justify-content: center;
    background: linear-gradient(135deg, var(--sky) 0%, var(--mint) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(47, 143, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: visible;
  }

  .btn-invite-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 12px;
  }

  .btn-invite-links svg {
    width: 22px;
    height: 22px;
    color: white !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
  }

  .btn-invite-links span {
    display: none;
  }

  .btn-billing {
    padding: 0 !important;
    font-size: 12px;
    border-radius: 12px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange) 0%, #fb923c 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32), 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: visible;
  }

  .btn-billing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 12px;
  }

  .btn-billing svg {
    width: 22px;
    height: 22px;
    color: white !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
  }

  .btn-billing span {
    display: none;
  }

  .btn-report-export {
    padding: 0 !important;
    font-size: 12px;
    border-radius: 12px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    justify-content: center;
    background: linear-gradient(135deg, var(--red) 0%, #e45a5a 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: visible;
  }

  .btn-report-export::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 12px;
  }

  .btn-report-export svg:first-child {
    width: 22px;
    height: 22px;
    color: white !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    stroke: white !important;
    position: relative;
    z-index: 1;
  }

  .btn-report-export span {
    display: none;
  }

  .btn-report-export svg:last-child {
    display: none;
  }

  /* Réorganisation du header sur mobile */
  .header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 0;
    padding-top: 58px;
    padding-right: 0;
    position: relative;
    z-index: 1;
  }

  .dash-brand {
    position: absolute;
    top: 0;
    left: 0;
    margin-bottom: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    width: max-content;
  }

  .dash-brand-name {
    order: 1;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 30px;
    letter-spacing: -0.02em;
  }

  .dash-logo-mark {
    order: 2;
    margin-left: auto;
    margin-right: auto;
    padding: 5px 8px;
    gap: 5px;
  }

  .dash-logo-dot {
    width: 8px;
    height: 8px;
  }

  .dash-header h1 {
    order: 2;
    font-size: 22px;
    margin-top: 50px;
    margin-bottom: 2px;
    font-weight: 800;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    line-height: 1.2 !important;
    align-self: center;
  }

  .trial-badge {
    order: 3;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 11px;
  }

  .subtitle {
    display: none;
  }

  /* Blocs */
  .bloc {
    padding: var(--space-md);
  }

  .bloc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .bloc-header-actions {
    width: 100%;
  }

  .priorities-alert-pill {
    width: 100%;
    justify-content: center;
  }

  .bloc-title {
    font-size: 22px;
  }

  /* Team Health */
  .team-health-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .health-gauge {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .health-gauge-wrap {
    display: flex;
    justify-content: center;
  }

  .health-dimensions {
    width: 100%;
  }

  /* Grids en 1 colonne */
  .employees-grid,
  .alerts-grid,
  .trajectory-insights,
  .templates-grid,
  .cycles-list {
    grid-template-columns: 1fr;
  }

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

  /* Smart Bar - tablet */
  .smart-bar-moods {
    gap: 10px;
  }

  /* Table responsive */
  .evolution-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--space-md));
    padding: 0 var(--space-md);
  }

  .evolution-table {
    min-width: 550px;
  }

  .evolution-table th,
  .evolution-table td {
    padding: var(--space-sm);
    font-size: 13px;
  }

  /* Coach sidebar */
  .coach-sidebar {
    width: 100%;
  }

  /* Micro-nudges */
  .micro-nudges-container {
    bottom: var(--space-sm);
    right: var(--space-sm);
    left: var(--space-sm);
    max-width: none;
  }

  /* Modals - plein écran sur tablette */
  .employee-modal {
    padding: var(--space-sm);
  }

  .employee-modal-content {
    width: calc(100% - 16px);
    max-width: 100%;
    max-height: 92vh;
    margin: 8px;
    border-radius: var(--radius-lg);
  }

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

  .employee-modal-body {
    padding: var(--space-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .manager-settings-section {
    padding: var(--space-md);
  }

  .manager-settings-page,
  .manager-settings-main,
  .manager-settings-side {
    gap: var(--space-md);
  }

  .manager-settings-intro {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .manager-settings-shell {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .manager-settings-grid,
  .manager-settings-summary-grid {
    grid-template-columns: 1fr;
  }

  .manager-field-input {
    min-height: 56px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 16px;
    font-size: 15px;
  }

  .manager-settings-field select.manager-field-input {
    padding-right: 48px;
    background-position: 0 0, calc(100% - 16px) 50%;
  }

  .manager-password-control .manager-password-input {
    min-height: 56px;
    padding-right: 60px;
  }

  .manager-password-toggle {
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .manager-settings-link-row {
    grid-template-columns: 1fr;
  }

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

  .manager-settings-actions .btn-primary,
  .manager-settings-actions .btn-secondary,
  .manager-settings-actions .btn-ghost,
  .manager-settings-actions .btn-danger {
    width: 100%;
    justify-content: center;
  }

  .modal-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .employee-modal-footer {
    padding: var(--space-sm) var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .employee-modal-footer button {
    flex: 1;
    min-height: 44px;
  }

  .invite-links-toolbar {
    align-items: stretch;
  }

  .invite-links-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .invite-links-actions .btn-secondary,
  .invite-links-actions .btn-ghost {
    justify-content: center;
  }

  .invite-link-input-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy-link {
    width: 100%;
  }

  /* Command palette */
  .command-modal {
    width: 95%;
    margin: var(--space-sm);
    top: var(--space-xl);
  }

  /* Bouton Rapport - garder texte visible */
  #btnRapport span:last-child {
    display: inline;
  }

  /* V9 — Global State grid en colonne */
  .global-state-grid {
    flex-direction: column;
    gap: var(--space-md);
  }

  .global-score-card {
    min-width: auto;
  }

  .global-score-value {
    font-size: 44px;
  }

  .global-distribution {
    width: 100%;
    justify-content: space-around;
  }

  /* V9 — Signals en 1 colonne */
  .signals-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* V9 — Focus panel pleine largeur */
  .focus-panel-drawer {
    width: 100%;
  }

  /* V9 — Modal pleine largeur */
  .modal-overlay {
    padding: var(--space-sm);
  }

  .modal-box {
    width: calc(100% - 16px);
  }

  /* Journal */
  .journal-quick-add textarea {
    min-height: 80px;
  }

  /* Footer */
  .dash-footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
    padding: var(--space-md);
  }

  .footer-left,
  .footer-right {
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE - PHONE (480px)
   ============================================ */
@media (max-width: 480px) {
  .dash-wrap {
    padding: var(--space-sm) var(--space-xs) 70px;
  }

  /* Header */
  .dash-header h1 {
    font-size: 19px;
  }

  .dash-brand-name {
    font-size: 26px;
  }

  .dash-logo-mark {
    padding: 4px 7px;
  }

  .dash-logo-dot {
    width: 7px;
    height: 7px;
  }

  .subtitle {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn-icon {
    width: 40px;
    height: 40px;
  }

  /* Bouton Rapport compact */
  #btnRapport {
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  /* Smart Bar - phone */
  .smart-bar-moods {
    gap: 8px;
  }

  .smart-bar-mood {
    padding: 5px 10px;
    font-size: 12px;
  }

  /* Blocs */
  .bloc {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
  }

  .bloc-title {
    font-size: 18px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  /* Employee cards */
  .employee-card {
    padding: var(--space-sm);
  }

  .employee-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .employee-name {
    font-size: 14px;
  }

  .employee-role {
    font-size: 11px;
  }

  .score-value {
    font-size: 22px;
  }

  /* Health gauge */
  .health-gauge {
    width: 130px;
    height: 130px;
  }

  /* Stats en 1 colonne */
  .quick-stats-grid {
    grid-template-columns: 1fr;
  }

  /* Modals plein écran */
  .employee-modal {
    padding: 0;
  }

  .employee-modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .employee-modal-header {
    padding: var(--space-sm) var(--space-md);
    position: sticky;
    top: 0;
    background: var(--card-strong);
    z-index: 2;
    border-bottom: 1px solid var(--line-soft);
  }

  .employee-modal-body {
    padding: var(--space-sm) var(--space-md);
    overflow-y: auto;
    flex: 1;
  }

  .manager-settings-body {
    padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
  }

  .manager-settings-page,
  .manager-settings-main,
  .manager-settings-side {
    gap: var(--space-sm);
  }

  .manager-settings-intro {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
  }

  .manager-settings-intro h3 {
    font-size: 22px;
  }

  .manager-settings-shell {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .manager-field-input {
    min-height: 54px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 15px;
  }

  .manager-password-control .manager-password-input {
    min-height: 54px;
    padding-right: 58px;
  }

  .manager-settings-head h3 {
    font-size: 17px;
  }

  .manager-settings-section {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
  }

  .modal-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .modal-section {
    margin-bottom: var(--space-md);
  }

  .employee-modal-footer {
    padding: var(--space-sm) var(--space-md);
    flex-direction: column;
    gap: var(--space-xs);
    position: sticky;
    bottom: 0;
    background: var(--card-strong);
    z-index: 2;
    border-top: 1px solid var(--line-soft);
  }

  .employee-modal-footer button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  /* Employee modal avatar responsive */
  .employee-modal-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .employee-modal-info h2 {
    font-size: 18px;
  }

  /* Micro-nudges */
  .micro-nudges-container {
    bottom: var(--space-xs);
    right: var(--space-xs);
    left: var(--space-xs);
  }

  .micro-nudge {
    padding: var(--space-sm);
    font-size: 13px;
  }

  /* V9 — Priority cards compact */
  .priority-card {
    padding: var(--space-sm);
  }

  .priority-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .priority-score {
    font-size: 20px;
  }

  .priority-group-toggle {
    margin: 1px 0 6px 0;
  }

  .priority-group-toggle .btn-ghost {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    line-height: 1.1;
    min-height: 0;
    height: auto;
  }

  .timeline-dot {
    width: 6px;
    height: 6px;
  }

  /* V9 — Global state compact */
  .global-score-value {
    font-size: 36px;
  }

  .distrib-item {
    padding: var(--space-sm);
    min-width: 60px;
  }

  .distrib-emoji {
    font-size: 20px;
  }

  .distrib-count {
    font-size: 18px;
  }

  /* V9 — Action impact compact */
  .action-impact-card {
    padding: var(--space-sm);
  }

  .action-impact-top {
    flex-wrap: wrap;
  }

  .action-impact-measure {
    min-width: auto;
    width: 100%;
    text-align: left;
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--line-soft);
  }

  /* V9 — Focus panel compact */
  .focus-body {
    padding: var(--space-md);
  }

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

  .focus-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .focus-name {
    font-size: 18px;
  }

  .focus-score-big {
    font-size: 36px;
  }

  /* V9 — Modal plein écran */
  .modal-overlay {
    padding: 0;
  }

  .modal-box {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

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

  .modal-body {
    padding: var(--space-md);
  }

  .modal-footer {
    padding: var(--space-sm) var(--space-md);
    flex-direction: column;
  }

  .modal-footer button {
    width: 100%;
    min-height: 44px;
  }

  /* Journal */
  .journal-quick-add textarea {
    min-height: 60px;
    font-size: 14px;
  }

  .journal-entry {
    padding: var(--space-sm);
  }

  /* Footer */
  .dash-footer {
    padding: var(--space-sm);
  }

  .footer-text {
    font-size: 11px;
  }
}

/* ============================================
   RESPONSIVE - PETIT PHONE (360px)
   ============================================ */
@media (max-width: 360px) {
  .dash-header h1 {
    font-size: 18px;
  }

  .dash-brand-name {
    font-size: 21px;
  }

  .header-actions .btn-icon {
    width: 40px;
    height: 40px;
  }

  #btnRapport {
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }

  .bloc {
    padding: var(--space-xs);
  }

  .bloc-title {
    font-size: 16px;
  }

  .health-gauge {
    width: 110px;
    height: 110px;
  }

  .employee-card {
    padding: var(--space-xs);
  }

  .employee-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .score-value {
    font-size: 20px;
  }

  .smart-bar-mood {
    padding: 4px 8px;
    font-size: 11px;
    gap: 3px;
  }

  /* V9 — Priority ultra compact */
  .priority-card-top {
    gap: var(--space-sm);
  }

  .priority-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .priority-name {
    font-size: 13px;
  }

  .priority-status-row {
    align-items: flex-start;
    gap: 8px;
  }

  .priority-status-badge {
    padding: 0 8px;
    font-size: 10px;
  }

  .focus-conclusion-head {
    flex-direction: column;
  }

  .focus-section-header {
    align-items: flex-start;
    gap: 10px;
  }

  .focus-section-actions {
    gap: 8px;
  }

  .focus-export-trigger span {
    display: none;
  }

  .focus-export-trigger {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .focus-export-popover {
    right: -38px;
    width: 220px;
  }

  .priority-score {
    font-size: 18px;
  }

  .global-distribution {
    gap: var(--space-sm);
  }

  .quality-pct {
    font-size: 24px;
  }
}

/* ============================================
   TOUCH TARGETS
   ============================================ */
@media (pointer: coarse) {
  /* Augmenter la taille des éléments tactiles */
  .btn-icon,
  .btn-ghost,
  .btn-secondary,
  .btn-primary,
  .btn-link,
  .smart-bar-mood {
    min-height: 44px;
    min-width: 44px;
  }

  .employee-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(109, 93, 245, 0.1);
  }

  .alert-card,
  .template-card,
  .recommendation-card,
  .trajectory-card,
  .cycle-card,
  .priority-card,
  .action-impact-card,
  .btn-outline {
    -webkit-tap-highlight-color: rgba(109, 93, 245, 0.1);
  }

  .priority-card {
    min-height: 44px;
  }

  .btn-outline {
    min-height: 44px;
    min-width: 44px;
  }

  /* Espacement accru entre éléments cliquables */
  .employees-grid,
  .priorities-list,
  .actions-impact-list {
    gap: var(--space-md);
  }

  .actions-list,
  .patterns-list {
    gap: var(--space-md);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--surface-1);
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-600);
}
