/* ===================== VARIABLES ===================== */
:root {
  --bordeaux: #6B1F30;
  --bordeaux-dark: #4E1622;
  --bordeaux-light: #8B2E42;
  --bordeaux-pale: #F5E8EB;
  --creme: #FDFAF8;
  --creme-dark: #F3EDE8;
  --creme-border: #E8DDD6;
  --text-primary: #2C1A1F;
  --text-secondary: #6B5058;
  --text-muted: #9E7F88;
  --white: #FFFFFF;
  --success: #2D7A50;
  --success-bg: #E8F5EE;
  --warning: #B5700A;
  --warning-bg: #FEF3E2;
  --danger: #C0392B;
  --danger-bg: #FDECEA;
  --info: #1A6B8A;
  --info-bg: #E3F4FA;
  --shadow-sm: 0 1px 3px rgba(107,31,48,0.08);
  --shadow-md: 0 4px 12px rgba(107,31,48,0.12);
  --shadow-lg: 0 8px 24px rgba(107,31,48,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --sidebar-width: 240px;
  --transition: all 0.2s ease;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--creme);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
}
a { color: var(--bordeaux); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ===================== LAYOUT ===================== */
#app { display: flex; width: 100%; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bordeaux);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sidebar-logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.sidebar-logo span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  padding: 12px 20px 4px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-item.active {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border-left-color: rgba(255,255,255,0.7);
}
.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto;
  background: var(--white);
  color: var(--bordeaux);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

/* ── Sidebar accordion (Enterprise uniquement) ──────────────────────────── */

/* Plan indépendant : header = section-title classique, corps toujours visible */
body:not([data-plan="enterprise"]) .nav-accordion-header {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  padding: 12px 20px 4px;
  font-weight: 600;
  cursor: default;
}
body:not([data-plan="enterprise"]) .nav-accordion-arrow { display: none; }
body:not([data-plan="enterprise"]) .nav-accordion-body  { max-height: none !important; overflow: visible !important; }
body:not([data-plan="enterprise"]) .nav-accordion-sep   { display: none; }

/* Plan enterprise : accordéon animé */
body[data-plan="enterprise"] .nav-accordion { margin-bottom: 2px; }
body[data-plan="enterprise"] .nav-accordion-sep {
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 6px 16px;
}
body[data-plan="enterprise"] .nav-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  border-left: 3px solid transparent;
  transition: background 0.18s, color 0.18s;
  user-select: none;
}
body[data-plan="enterprise"] .nav-accordion-header:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
}
body[data-plan="enterprise"] .nav-accordion.open > .nav-accordion-header {
  color: rgba(255,255,255,0.85);
}
body[data-plan="enterprise"] .nav-accordion-arrow {
  font-size: 0.65rem;
  display: inline-block;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
body[data-plan="enterprise"] .nav-accordion.open > .nav-accordion-header .nav-accordion-arrow {
  transform: rotate(90deg);
}
body[data-plan="enterprise"] .nav-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
body[data-plan="enterprise"] .nav-accordion.open > .nav-accordion-body {
  max-height: 500px;
}
/* Items indentés dans l'accordéon enterprise */
body[data-plan="enterprise"] .nav-accordion-body .nav-item {
  padding-left: 32px;
}

.sidebar-footer {
  padding: 10px 20px 16px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* MODE SWITCHER */
.mode-switcher {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mode-btn {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1.5px solid rgba(255,255,255,0.1);
}
.mode-btn.active {
  background: #6B1F30;
  color: #ffffff;
  border: 1.5px solid #E5C0C8;
}
.mode-btn:hover:not(.active) {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}
.mode-sep { display: none; }

/* MAIN CONTENT */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--creme-border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-title { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.topbar-date { font-size: 0.8rem; color: var(--text-muted); }

.page-content { flex: 1; padding: 28px 32px; }

/* VIEWS */
.view { display: none; }
.view.active { display: block; }

/* ===================== COMPONENTS ===================== */

/* PAGE HEADER */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.page-header-left h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.page-header-left p { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* STAT CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--creme-border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bordeaux);
  opacity: 0.3;
}
.stat-card.accent::before { opacity: 1; }
.stat-card.warning::before { background: var(--warning); opacity: 1; }
.stat-card.success::before { background: var(--success); opacity: 1; }
.stat-card.danger::before { background: var(--danger); opacity: 1; }

.stat-icon { font-size: 1.6rem; margin-bottom: 8px; }
.stat-value { font-size: 1.9rem; font-weight: 700; color: var(--bordeaux); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; }

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--creme-border);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--creme-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--creme);
}
.card-header h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.card-body { padding: 20px; }

/* DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dashboard-grid .card-full { grid-column: 1 / -1; }

/* TABLES */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--creme);
  border-bottom: 1px solid var(--creme-border);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--creme-border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--creme); }
.table-actions { display: flex; gap: 6px; }

/* SEARCH BAR */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.search-input-wrap {
  flex: 1;
  position: relative;
}
.search-input-wrap input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}
.search-input-wrap input:focus { border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(107,31,48,0.08); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }
.btn-primary { background: var(--bordeaux); color: var(--white); }
.btn-primary:hover { background: var(--bordeaux-dark); }
.btn-outline { background: transparent; color: var(--bordeaux); border: 1px solid var(--bordeaux); }
.btn-outline:hover { background: var(--bordeaux-pale); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--creme-border); }
.btn-ghost:hover { background: var(--creme); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #a93226; }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #236640; }
.btn-icon { padding: 6px; border-radius: var(--radius-sm); background: transparent; border: 1px solid transparent; color: var(--text-muted); }
.btn-icon:hover { background: var(--creme); border-color: var(--creme-border); color: var(--bordeaux); }

/* BADGES */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--creme-dark); color: var(--text-secondary); }
.badge-bordeaux { background: var(--bordeaux-pale); color: var(--bordeaux); }

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,26,31,0.4);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(12px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-lg { max-width: 760px; }
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--creme-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 600; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
}
.modal-close:hover { background: var(--creme); color: var(--text-primary); }
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--creme-border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: var(--creme);
}

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.3px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="password"], input[type="url"], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(107,31,48,0.08);
}
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* FICHE CLIENT */
.client-detail-header {
  background: var(--white);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bordeaux);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.client-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.client-info-item { font-size: 0.85rem; }
.client-info-item .info-label { color: var(--text-muted); font-size: 0.75rem; }
.client-info-item .info-value { color: var(--text-primary); font-weight: 500; }

.client-tabs {
  display: flex;
  gap: 2px;
  background: var(--creme-dark);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 20px;
  width: fit-content;
}
.tab-btn {
  padding: 7px 18px;
  border-radius: 5px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active { background: var(--white); color: var(--bordeaux); box-shadow: var(--shadow-sm); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* PASSWORD FIELD */
.password-field { position: relative; }
.password-field input { padding-right: 38px; }
.password-toggle {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; color: var(--text-muted);
  font-size: 0.9rem; padding: 2px;
}

/* FILTER TABS */
.filter-tabs { display:flex; gap:3px; background:var(--creme-dark); border-radius:var(--radius-sm); padding:3px; }
.filter-tab {
  padding:5px 14px; border:none; background:transparent; border-radius:4px;
  font-size:0.85rem; color:var(--text-secondary); transition:var(--transition); white-space:nowrap;
}
.filter-tab.active { background:var(--white); color:var(--bordeaux); font-weight:600; box-shadow:var(--shadow-sm); }

/* CLIENT GRID */
.client-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:16px; }
.client-card {
  background:var(--white); border:1px solid var(--creme-border); border-radius:var(--radius-md);
  padding:16px; transition:var(--transition); box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; gap:12px;
}
.client-card:hover { box-shadow:var(--shadow-md); }
.client-card.archived { opacity:0.65; border-style:dashed; }
.client-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.client-card-name { font-weight:700; font-size:1rem; color:var(--bordeaux); cursor:pointer; }
.client-card-name:hover { text-decoration:underline; }
.client-card-secteur { font-size:0.75rem; color:var(--text-muted); margin-top:2px; }
.client-card-stats {
  display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px;
  padding:10px 0; border-top:1px solid var(--creme-border); border-bottom:1px solid var(--creme-border);
}
.client-stat-item { text-align:center; }
.client-stat-value { font-size:1.05rem; font-weight:700; color:var(--text-primary); }
.client-stat-label { font-size:0.67rem; color:var(--text-muted); text-transform:uppercase; margin-top:1px; }
.client-card-actions { display:flex; gap:6px; justify-content:flex-end; align-items:center; flex-wrap:wrap; }
.client-archive-btn { font-size:0.78rem; color:var(--text-muted) !important; padding:4px 8px; }

/* PROSPECT GRID */
.prospects-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.prospect-card {
  background:var(--white); border:1px solid var(--creme-border); border-radius:var(--radius-md);
  padding:16px; transition:var(--transition); box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; gap:4px;
}
.prospect-card:hover { box-shadow:var(--shadow-md); }
.prospect-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.prospect-card-name { font-weight:700; font-size:1rem; color:var(--bordeaux); cursor:pointer; }
.prospect-card-name:hover { text-decoration:underline; }
.prospect-card-sub { font-size:0.75rem; color:var(--text-muted); margin-top:2px; }

/* KANBAN */
.kanban-board {
  display:flex; gap:12px; overflow-x:auto; padding-bottom:16px; align-items:flex-start;
}
.kanban-col {
  min-width:220px; flex:0 0 220px;
  background:var(--creme-dark); border-radius:var(--radius-md); overflow:hidden;
}
.kanban-col-header {
  padding:10px 14px; display:flex; align-items:center; justify-content:space-between;
  font-size:0.83rem; font-weight:700;
}
.kanban-header-info    { background:#E3F4FA; color:#1A6B8A; }
.kanban-header-warning { background:#FEF3E2; color:#B5700A; }
.kanban-header-bordeaux{ background:var(--bordeaux-pale); color:var(--bordeaux); }
.kanban-header-success { background:var(--success-bg); color:var(--success); }
.kanban-header-neutral { background:var(--creme-border); color:var(--text-secondary); }
.kanban-col-total {
  padding:2px 14px 6px; font-size:0.78rem; font-weight:600; color:var(--text-secondary);
}
.kanban-cards { padding:8px; display:flex; flex-direction:column; gap:8px; min-height:80px; }
.kanban-empty { text-align:center; padding:16px; font-size:0.8rem; color:var(--text-muted); }
.kanban-card {
  background:var(--white); border-radius:var(--radius-sm); padding:12px;
  box-shadow:var(--shadow-sm); transition:var(--transition);
}
.kanban-card:hover { box-shadow:var(--shadow-md); }
.kanban-card-name { font-weight:600; font-size:0.88rem; color:var(--bordeaux); cursor:pointer; }
.kanban-card-name:hover { text-decoration:underline; }
.kanban-card-sub { font-size:0.74rem; color:var(--text-muted); margin-top:2px; }
.kanban-card-montant { font-size:0.85rem; font-weight:700; color:var(--text-primary); margin-top:6px; }
.kanban-card-footer {
  display:flex; align-items:center; justify-content:space-between; margin-top:8px; gap:6px;
}
.kanban-card-actions { display:flex; gap:4px; justify-content:flex-end; margin-top:6px; }
.kanban-move-select {
  font-size:0.74rem; border:1px solid var(--creme-border); border-radius:4px;
  padding:2px 4px; background:var(--creme-dark); color:var(--text-secondary);
  cursor:pointer; max-width:110px;
}

/* FOURNISSEUR CARD */
.fournisseur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.fournisseur-card {
  background: var(--white);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.fournisseur-card:hover { box-shadow: var(--shadow-md); }
.fournisseur-card.a-verifier { border-left: 3px solid var(--warning); }
.fournisseur-card.memo { background: #F8F8F8; border-color: #E0E0E0; }
.fournisseur-card.memo:hover { box-shadow: var(--shadow-sm); }

/* FC type toggle pill */
.fc-type-toggle {
  border: none; border-radius: 20px; padding: 3px 10px;
  font-size: 0.74rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.fc-type-actif { background: var(--bordeaux-pale); color: var(--bordeaux); }
.fc-type-actif:hover { background: var(--bordeaux); color: var(--white); }
.fc-type-memo { background: var(--creme-dark); color: var(--text-secondary); }
.fc-type-memo:hover { background: var(--creme-border); }
.fournisseur-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fournisseur-card-name { font-weight: 600; font-size: 0.95rem; }
.fournisseur-card-categorie { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.verif-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: .8rem;
}

/* TÂCHES */
.tache-list { display: flex; flex-direction: column; gap: 8px; }
.tache-item {
  background: var(--white);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.tache-item:hover { box-shadow: var(--shadow-sm); }
.tache-item.terminee { opacity: 0.6; }
.tache-item.fading-out {
  animation: tacheFadeOut 0.32s ease forwards;
  pointer-events: none;
}
@keyframes tacheFadeOut {
  0%   { opacity: 1; transform: translateX(0);    max-height: 80px; }
  60%  { opacity: 0; transform: translateX(28px);  max-height: 80px; }
  100% { opacity: 0; transform: translateX(28px);  max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; border-width: 0; overflow: hidden; }
}
.tache-item.archived-tache {
  opacity: 0.72;
  background: var(--creme);
  border-style: dashed;
}
.toast.toast-undo { display: flex; align-items: center; }
.tache-check {
  width: 20px; height: 20px;
  border: 2px solid var(--creme-border);
  border-radius: 4px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.tache-check:hover { border-color: var(--bordeaux); }
.tache-check.checked { background: var(--success); border-color: var(--success); color: white; }
.tache-body { flex: 1; min-width: 0; }
.tache-titre { font-size: 0.9rem; font-weight: 500; }
.tache-item.terminee .tache-titre { text-decoration: line-through; color: var(--text-muted); }
.tache-meta { display: flex; gap: 10px; align-items: center; margin-top: 3px; font-size: 0.75rem; color: var(--text-muted); }
.tache-priorite-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.prio-urgente { background: var(--danger); }
.prio-haute { background: var(--warning); }
.prio-normale { background: var(--info); }
.prio-basse { background: var(--text-muted); }

/* FACTURATION */
.facture-numero { font-weight: 600; color: var(--bordeaux); font-size: 0.88rem; }
.facture-montant { font-weight: 600; text-align: right; }

/* LIGNES FACTURE */
.lignes-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.lignes-table th { padding: 8px 10px; background: var(--creme); border-bottom: 1px solid var(--creme-border); font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }
.lignes-table td { padding: 6px 10px; border-bottom: 1px solid var(--creme-border); }
.lignes-table input { padding: 4px 8px; }
.ligne-total { text-align: right; font-weight: 600; }

/* TOTAUX FACTURE */
.facture-totaux {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  background: var(--creme);
  border-radius: var(--radius-sm);
}
.total-line { display: flex; gap: 40px; font-size: 0.85rem; }
.total-line .total-label { color: var(--text-secondary); min-width: 100px; text-align: right; }
.total-line .total-value { min-width: 80px; text-align: right; font-weight: 500; }
.total-line.total-ttc { font-size: 1.05rem; font-weight: 700; color: var(--bordeaux); border-top: 1px solid var(--creme-border); padding-top: 8px; margin-top: 4px; }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; }

/* ALERTS */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #F5D394; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #F5C6C3; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #A8D8BC; }

/* TOAST */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--text-primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.25s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* BACK BUTTON */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: none;
  border: none;
}
.back-btn:hover { background: var(--creme-dark); color: var(--bordeaux); }

/* FILTER TABS */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tab {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--creme-border);
  background: var(--white);
  color: var(--text-secondary);
  transition: var(--transition);
}
.filter-tab:hover { border-color: var(--bordeaux); color: var(--bordeaux); }
.filter-tab.active { background: var(--bordeaux); color: var(--white); border-color: var(--bordeaux); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--creme); }
::-webkit-scrollbar-thumb { background: var(--creme-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Hamburger (caché sur desktop) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  margin-right: 8px;
  border-radius: 6px;
  transition: background .15s;
}
.hamburger:hover { background: var(--creme); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Cloche notifications ── */
.notif-bell-wrap {
  position: relative;
}
.notif-bell-btn {
  position: relative;
  background: none;
  border: 1px solid var(--creme-border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  display: flex;
  align-items: center;
  transition: border-color .18s, color .18s;
}
.notif-bell-btn:hover { border-color: var(--bordeaux); color: var(--bordeaux); }
.notif-bell-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--bordeaux);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: white;
  border: 1px solid var(--creme-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(44,26,31,.13);
  z-index: 500;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--creme-border);
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-primary);
  flex-shrink: 0;
}
#notif-list { overflow-y: auto; flex: 1; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--creme-border);
  cursor: pointer;
  transition: background .15s;
}
.notif-item:hover { background: var(--creme-dark); }
.notif-item.unread { background: #FDF0F2; }
.notif-item.unread:hover { background: #F9E4E8; }
.notif-item-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-titre { font-size: .83rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-item-msg { font-size: .77rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-date { font-size: .72rem; color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }
.notif-empty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: .84rem; }

/* ── Thread suggestions (chat) ── */
.sugg-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.sugg-thread-msg { display: flex; gap: 8px; max-width: 85%; }
.sugg-thread-msg.admin { align-self: flex-end; flex-direction: row-reverse; }
.sugg-thread-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .86rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.sugg-thread-msg:not(.admin) .sugg-thread-bubble {
  background: var(--creme-dark);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}
.sugg-thread-msg.admin .sugg-thread-bubble {
  background: var(--bordeaux);
  color: white;
  border-top-right-radius: 4px;
}
.sugg-thread-meta { font-size: .72rem; color: var(--text-muted); margin-top: 3px; }
.sugg-thread-msg.admin .sugg-thread-meta { text-align: right; }

/* ── Sidebar overlay backdrop ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 299;
}
.sidebar-overlay.active { display: block; }

/* ── Bottom navigation (caché sur desktop) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--creme-border);
  z-index: 200;
  height: 62px;
  box-shadow: 0 -2px 12px rgba(107,31,48,.08);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 6px 2px;
  font-size: .65rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .15s;
  min-width: 0;
  position: relative;
}
.bottom-nav-item .nav-icon-bot { font-size: 1.25rem; line-height: 1; }
.bottom-nav-item.active { color: var(--bordeaux); font-weight: 600; }
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 3px;
  background: var(--bordeaux);
  border-radius: 0 0 3px 3px;
}
.bottom-nav-badge {
  position: absolute;
  top: 4px; right: calc(50% - 18px);
  background: var(--bordeaux);
  color: white;
  font-size: .58rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ── RESPONSIVE 768px ── */
@media (max-width: 768px) {

  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 300;
  }
  .sidebar.open { transform: translateX(0); }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Topbar */
  .main-content { margin-left: 0; }
  .topbar { padding: 10px 14px; }
  .topbar-date { display: none; }

  /* Page content */
  .page-content {
    padding: 14px 14px 80px;
  }

  /* Bottom nav visible */
  .bottom-nav { display: flex; }

  /* Grids */
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .client-info-grid { grid-template-columns: 1fr; }
  .renta-grid { grid-template-columns: 1fr; }
  .fournisseur-grid { grid-template-columns: 1fr !important; }
  .client-grid { grid-template-columns: 1fr !important; }
  .prospects-grid { grid-template-columns: 1fr !important; }
  .kanban-col { min-width: 180px; flex: 0 0 180px; }

  /* Touch targets */
  .btn { min-height: 40px; }
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="tel"], input[type="url"],
  input[type="date"], input[type="month"], select, textarea {
    font-size: 16px !important; /* évite le zoom auto iOS */
    min-height: 42px;
  }

  /* Tables */
  .table-container { -webkit-overflow-scrolling: touch; }
  th, td { padding: 8px 10px; font-size: .8rem; }

  /* Cards */
  .card-body { padding: 14px; }
  .card-header { padding: 12px 14px; }

  /* Fiche client */
  .client-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .client-avatar { width: 44px; height: 44px; font-size: 1rem; }
  .client-tabs { gap: 0; border-radius: 0; overflow-x: auto; }
  .tab-btn { padding: 10px 14px; font-size: .8rem; white-space: nowrap; }

  /* Page headers */
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-header > button,
  .page-header > div[style*="flex"] { width: 100%; }

  /* Chrono banner */
  #chrono-banner { padding: 0 10px; }
  .chrono-banner-inner { height: auto; min-height: 40px; gap: 6px; padding: 6px 0; flex-wrap: nowrap; }
  .chrono-banner-client-nom { max-width: 90px; font-size: .78rem; }
  .chrono-banner-sep { display: none; }
  .chrono-banner-btn { padding: 5px 9px; font-size: .75rem; }

  /* Modals */
  .modal { margin: 12px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .modal-lg { max-width: none !important; }

  /* Import fournisseurs */
  .import-preview-table th,
  .import-preview-table td { font-size: .75rem; padding: 5px 6px; }

  /* Suivi facturation table */
  #suivi-table th:nth-child(4),
  #suivi-table td:nth-child(4),
  #suivi-table th:nth-child(5),
  #suivi-table td:nth-child(5) { display: none; }

  /* Stat cards smaller */
  .stat-value { font-size: 1.5rem; }
  .stat-card { padding: 14px; }

  /* Search bar */
  .search-bar { flex-direction: column; gap: 8px; }
  .search-bar select { max-width: none !important; }

  /* Recap grid */
  .recap-grid { grid-template-columns: 1fr 1fr !important; }

  /* Contrat card */
  .contrat-card-header { flex-direction: row; }
}

/* ── RESPONSIVE 480px ── */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .chrono-banner-client-nom { display: none; }
  .recap-grid { grid-template-columns: 1fr !important; }
  .bottom-nav-item span:last-child { font-size: .6rem; }
}

/* LOADING */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 10px;
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--creme-border);
  border-top-color: var(--bordeaux);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SUIVI FACTURATION ─────────────────────────────── */

/* Navigateur de mois */
.mois-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Grille des cartes rentabilité */
.renta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.renta-card {
  background: var(--white);
  border: 1px solid var(--creme-border);
  border-left: 4px solid var(--creme-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}
.renta-card:hover { box-shadow: var(--shadow-md); }
.renta-card.renta-vert   { border-left-color: var(--success); }
.renta-card.renta-orange { border-left-color: var(--warning); }
.renta-card.renta-rouge  { border-left-color: var(--danger);  }
.renta-card.renta-gris   { border-left-color: var(--creme-border); }

.renta-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.renta-nom {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-primary);
}

.renta-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.renta-stat { text-align: center; }
.renta-val  { font-size: .88rem; color: var(--text-primary); line-height: 1.3; }
.renta-lbl  { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }
.renta-vide { color: var(--text-muted); font-size: .8rem; }

.renta-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--creme-border);
}
.renta-note-badge {
  cursor: help;
  font-size: .9rem;
  opacity: .7;
}

/* Tableau suivi mensuel — cellules inline-edit */
.suivi-select {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  background: var(--white);
  cursor: pointer;
}
.suivi-select:focus { border-color: var(--bordeaux); outline: none; box-shadow: 0 0 0 2px rgba(107,31,48,.08); }

.suivi-input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  background: transparent;
  transition: var(--transition);
}
.suivi-input:hover  { border-color: var(--creme-border); background: var(--white); }
.suivi-input:focus  { border-color: var(--bordeaux); background: var(--white); outline: none; box-shadow: 0 0 0 2px rgba(107,31,48,.08); }

.suivi-montant-input { text-align: right; max-width: 100px; }

/* Ligne en alerte (facture non émise) */
.suivi-row-alert td { background: #fef9f0; }
.suivi-row-taux td  { background: #5B2C8E0D; }
.suivi-row-taux:hover td { background: #5B2C8E18; }

/* Toggle switch pour "facture émise" */
.suivi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.suivi-toggle input[type="checkbox"] { display: none; }
.suivi-toggle-track {
  width: 36px;
  height: 20px;
  background: var(--creme-border);
  border-radius: 10px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.suivi-toggle-track::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.suivi-toggle input:checked ~ .suivi-toggle-track { background: var(--success); }
.suivi-toggle input:checked ~ .suivi-toggle-track::after { transform: translateX(16px); }

/* TEMPS — CHRONOMÈTRE */
.chrono-pulse {
  animation: chrono-blink 1.4s ease-in-out infinite;
}
@keyframes chrono-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* TEMPS — RÉCAPITULATIF */
.recap-mois-block { margin-bottom: 24px; }
.recap-mois-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bordeaux-pale);
  margin-bottom: 12px;
}
.recap-mois-label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--bordeaux);
}
.recap-mois-total {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bordeaux-pale);
  padding: 2px 10px;
  border-radius: 12px;
}
.recap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.recap-card {
  background: var(--creme);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  transition: var(--transition);
}
.recap-card:hover { box-shadow: var(--shadow-sm); border-color: var(--bordeaux-pale); }
.recap-card--clickable { cursor: pointer; }
.recap-card--clickable:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--bordeaux);
  transform: translateY(-2px);
}
.recap-card--clickable .recap-card-hint {
  font-size: .7rem;
  color: var(--bordeaux);
  font-weight: 600;
  margin-top: 6px;
  opacity: 0;
  transition: var(--transition);
}
.recap-card--clickable:hover .recap-card-hint { opacity: 1; }
.recap-card--no-client {
  opacity: .7;
  background: var(--creme-border);
  cursor: default;
}
.recap-card-icon { font-size: 1.2rem; margin-bottom: 6px; opacity: .6; }
.recap-card-client {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recap-card-duree {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bordeaux);
  line-height: 1.1;
}
.recap-card-sessions {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.temps-empty-msg {
  color: var(--text-muted);
  font-size: .85rem;
  padding: 12px 0;
}

/* SECTION DIVIDER */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}
.section-divider::before, .section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--creme-border);
}

/* CONTRAT CARD (fiche client) */
.contrat-card {
  border-top: 3px solid var(--bordeaux);
}
.contrat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--creme-border);
  background: var(--creme);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.contrat-card-header h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--bordeaux);
}

/* IMPORT FOURNISSEURS */
.import-cols-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.import-col-badge {
  background: var(--creme-dark);
  border: 1px solid var(--creme-border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.import-dropzone {
  border: 2px dashed var(--creme-border);
  border-radius: 10px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: .88rem;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.import-dropzone:hover {
  border-color: var(--bordeaux);
  background: var(--bordeaux-pale);
}

/* ── Chrono Banner ── */
#chrono-banner {
  background: var(--bordeaux);
  color: #fff;
  padding: 0 24px;
  flex-shrink: 0;
}
.chrono-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  font-size: .9rem;
  flex-wrap: wrap;
}
.chrono-banner-icon {
  font-size: 1rem;
  opacity: .85;
}
.chrono-banner-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'Segoe UI', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}
.chrono-banner-sep {
  opacity: .5;
}
.chrono-banner-client-nom {
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.chrono-overtime-alert {
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .78rem;
  font-weight: 700;
  animation: chrono-blink 1s step-end infinite;
}
@keyframes chrono-blink {
  50% { opacity: .3; }
}
.chrono-banner-btns {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.chrono-banner-btn {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s;
}
.chrono-banner-btn:hover {
  background: rgba(255,255,255,.32);
}
.chrono-banner-btn-stop {
  background: rgba(0,0,0,.18);
}

/* ===================== PIPELINES GRID ===================== */
.pipelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.pipeline-card {
  background: var(--white);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.pipeline-card:hover {
  border-color: var(--bordeaux);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.pipeline-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.pipeline-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bordeaux);
}
.pipeline-card-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .2s;
}
.pipeline-card:hover .pipeline-card-actions { opacity: 1; }
.pipeline-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}
.pipeline-card-stats {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===================== KANBAN DRAG ===================== */
.kanban-card {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging {
  opacity: .25;
  transform: rotate(2deg) scale(1.03);
  box-shadow: 0 14px 36px rgba(107,31,48,.28);
  cursor: grabbing;
  pointer-events: none;
}
.kanban-col.drag-over {
  border: 2px dashed var(--bordeaux);
  background: var(--bordeaux-pale);
  border-radius: var(--radius-md);
  transition: background .15s, border .15s;
}
.kanban-col.drag-over .kanban-cards {
  background: rgba(107,31,48,.04);
  border-radius: 6px;
  min-height: 100px;
}
.kanban-col.drag-over .kanban-empty {
  color: var(--bordeaux);
  font-weight: 600;
}
.kanban-drop-indicator {
  height: 3px;
  background: var(--bordeaux);
  border-radius: 3px;
  margin: 2px 0;
  animation: dnd-indicator-in .12s ease;
}
@keyframes dnd-indicator-in {
  from { transform: scaleX(.4); opacity: 0; }
  to   { transform: scaleX(1);  opacity: 1; }
}

/* ===================== COLONNE MANAGER ===================== */
.colonne-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--creme);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-sm);
}
.colonne-drag-handle {
  color: var(--text-muted);
  cursor: grab;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.colonne-nom-input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  background: var(--white);
}
.colonne-cls-select {
  padding: 5px 6px;
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  background: var(--white);
  width: 90px;
}

/* ===================== CONTACTS UTILES ===================== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--bordeaux-light);
  box-shadow: var(--shadow-md);
}
.contact-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--bordeaux-pale);
  color: var(--bordeaux);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card-info {
  flex: 1;
  min-width: 0;
}
.contact-card-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.contact-card-entreprise {
  font-size: .78rem;
  color: var(--bordeaux);
  margin-top: 2px;
  font-weight: 500;
}
.contact-card-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .2s;
  flex-shrink: 0;
}
.contact-card:hover .contact-card-actions { opacity: 1; }
.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
}
.contact-info-icon {
  font-size: .85rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.contact-info-link {
  color: var(--bordeaux);
  text-decoration: none;
  word-break: break-all;
}
.contact-info-link:hover { text-decoration: underline; }
.contact-notes {
  font-size: .8rem;
  color: var(--text-secondary);
  background: var(--creme);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  line-height: 1.5;
  margin-top: 4px;
  white-space: pre-wrap;
}

/* ===================== CALENDRIER AGENDA ===================== */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--creme-border);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: .78rem;
}
.cal-header-cell {
  background: var(--bordeaux);
  color: #fff;
  text-align: center;
  padding: 8px 4px;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .3px;
}
.cal-cell {
  background: var(--white);
  min-height: 88px;
  padding: 4px;
}
.cal-cell-empty { background: var(--creme); }
.cal-today { background: #FFF5F7; }
.cal-day-num {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: right;
  padding-right: 3px;
  margin-bottom: 3px;
}
.cal-today-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bordeaux);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: .75rem;
  font-weight: 700;
  float: right;
}
.cal-day-events { display: flex; flex-direction: column; gap: 2px; clear: both; }
.cal-event-chip {
  background: var(--bordeaux-pale);
  border-left: 2px solid var(--bordeaux);
  color: var(--bordeaux);
  font-size: .68rem;
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.cal-event-time {
  opacity: .7;
  margin-right: 3px;
}
.cal-more {
  font-size: .65rem;
  color: var(--text-muted);
  padding-left: 4px;
}

/* Agenda event rows */
.agenda-day-group { border-bottom: 1px solid var(--creme-border); }
.agenda-day-group:last-child { border-bottom: none; }
.agenda-day-label {
  padding: 10px 16px 6px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--bordeaux);
  background: var(--creme);
}
.agenda-event-row {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--creme-border);
  align-items: flex-start;
}
.agenda-event-row:last-child { border-bottom: none; }
.agenda-event-time {
  min-width: 54px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--bordeaux);
  padding-top: 1px;
  flex-shrink: 0;
}
.agenda-event-body { flex: 1; min-width: 0; }
.agenda-event-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.agenda-event-meta {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.agenda-event-desc {
  font-size: .75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===================== PARAMÈTRES ===================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 680px;
}
.nav-item-settings {
  margin-top: auto;
}
.ics-instructions {
  background: var(--creme);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .85rem;
}
.ics-instructions-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ics-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.ics-steps li { margin-bottom: 1px; }
.ics-warning {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--warning);
  font-weight: 500;
}

/* Sidebar: Paramètres en bas */
.nav-group-gestion {
  display: flex;
  flex-direction: column;
}
.nav-item-settings {
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 8px;
}

/* ===================== AGENDA — FILTRES ===================== */
.agenda-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.agenda-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid transparent;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--creme-dark);
  color: var(--text-muted);
  transition: var(--transition);
}
#filter-btn-gcal.active {
  background: var(--info-bg);
  border-color: var(--info);
  color: var(--info);
}
#filter-btn-tache.active {
  background: var(--bordeaux-pale);
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}
#filter-btn-fourni.active {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}
.agenda-filter-btn .filter-count {
  background: currentColor;
  color: #fff;
  border-radius: 10px;
  padding: 0 6px;
  font-size: .72rem;
  line-height: 1.5;
  opacity: .85;
}
.agenda-filter-btn:not(.active) .filter-count {
  background: var(--text-muted);
}

/* Calendar chip variants */
.cal-event-chip.chip-tache {
  background: var(--bordeaux-pale);
  color: var(--bordeaux);
}
.cal-event-chip.chip-fourni {
  background: var(--warning-bg);
  color: var(--warning);
}
.cal-event-chip.chip-formation {
  background: #e9d8f7;
  color: #5B2C8E;
}

/* Agenda event row variants */
.agenda-event-tache {
  border-left: 3px solid var(--bordeaux);
}
.agenda-event-fourni {
  border-left: 3px solid var(--warning);
}
.agenda-event-formation {
  border-left: 3px solid #5B2C8E;
}
.agenda-event-row {
  border-left: 3px solid transparent;
}

/* ===================== MA JOURNÉE BANNER ===================== */
.ma-journee-banner {
  background: linear-gradient(135deg, var(--bordeaux-pale) 0%, var(--creme-dark) 100%);
  border: 1.5px solid var(--bordeaux-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.ma-journee-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ma-journee-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--bordeaux);
}
.ma-journee-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.journee-chip {
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
}
.chip-gcal       { background: var(--info-bg);       color: var(--info); }
.chip-tache      { background: var(--bordeaux-pale); color: var(--bordeaux); }
.chip-fourni     { background: var(--warning-bg);    color: var(--warning); }
.chip-formation  { background: #e9d8f7;              color: #5B2C8E; }
.ma-journee-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.journee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-primary);
}
.journee-time {
  font-size: .75rem;
  color: var(--text-muted);
  min-width: 38px;
}
.journee-item-tache      { color: var(--bordeaux); }
.journee-item-fourni     { color: var(--warning); }
.journee-item-formation  { color: #5B2C8E; }

/* ===================== QUARTIER GÉNÉRAL ===================== */
.qg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 4px;
}
.qg-kpi {
  background: var(--white);
  border: 1.5px solid var(--creme-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.qg-kpi-bordeaux {
  background: var(--bordeaux-pale);
  border-color: var(--bordeaux-light);
}
.qg-kpi-alert {
  background: var(--warning-bg);
  border-color: var(--warning);
}
.qg-kpi-ok {
  background: var(--success-bg);
  border-color: var(--success);
}
.qg-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bordeaux);
  line-height: 1;
  margin-bottom: 6px;
}
.qg-kpi-alert .qg-kpi-value { color: var(--warning); }
.qg-kpi-ok    .qg-kpi-value { color: var(--success); }
.qg-kpi-label {
  font-size: .78rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.qg-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--creme-border);
}
.qg-user-row:last-child { border-bottom: none; }
.qg-user-avatar {
  width: 36px; height: 36px;
  background: var(--bordeaux);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
  flex-shrink: 0;
}
.qg-user-name  { font-weight: 600; font-size: .9rem; }
.qg-user-email { font-size: .78rem; color: var(--text-muted); }
.qg-user-date  { margin-left: auto; font-size: .75rem; color: var(--text-muted); white-space: nowrap; }

/* Suggestions QG */
.qg-stats-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.qg-stat-chip {
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--creme-dark);
  font-size: .8rem;
  color: var(--text-secondary);
  border: 1px solid var(--creme-border);
}
.qg-stat-chip-alert {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
  font-weight: 700;
}
.qg-sugg-card {
  border: 1.5px solid var(--creme-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
}
.qg-sugg-card-open {
  border-color: var(--bordeaux-light);
  box-shadow: var(--shadow-sm);
}
.qg-sugg-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}
.qg-sugg-card-header:hover { background: var(--creme-dark); }
.qg-sugg-card-left  { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.qg-sugg-card-mid   { flex: 1; min-width: 0; }
.qg-sugg-categorie  { font-size: .72rem; color: var(--text-muted); }
.qg-sugg-sujet      { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qg-sugg-meta       { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.qg-sugg-chevron    { color: var(--text-muted); font-size: .7rem; margin-left: 8px; }
.qg-sugg-fiche {
  border-top: 1px solid var(--creme-border);
  padding: 18px 20px;
  background: var(--creme);
}
.qg-sugg-fiche-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .83rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.qg-sugg-fiche-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.qg-sugg-fiche-body {
  font-size: .88rem;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--white);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  white-space: pre-wrap;
}
.qg-sugg-fiche-actions { display: flex; flex-direction: column; gap: 14px; }
.qg-sugg-statut-row    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qg-statut-btn {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--creme-border);
  background: var(--creme-dark);
  font-size: .78rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}
.qg-statut-btn.active, .qg-statut-btn:hover {
  border-color: var(--bordeaux);
  background: var(--bordeaux-pale);
  color: var(--bordeaux);
  font-weight: 600;
}
.qg-sugg-note-row { display: flex; flex-direction: column; }

/* Badge variants pour QG */
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }

/* ===================== SUGGESTIONS ===================== */
.sugg-container {
  max-width: 700px;
}
.sugg-success {
  text-align: center;
  padding: 48px 24px;
  background: var(--success-bg);
  border: 1.5px solid var(--success);
  border-radius: var(--radius-lg);
}
.sugg-success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.sugg-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 6px;
}
.sugg-success-msg {
  color: var(--text-secondary);
}
.sugg-not-configured {
  text-align: center;
  padding: 36px 24px;
  background: var(--creme-dark);
  border: 1.5px solid var(--creme-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

/* ===================== PARAMÈTRES ADMIN EMAIL ===================== */
.gmail-instructions {
  background: var(--info-bg);
  border: 1px solid var(--info);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 4px;
}
.gmail-instructions-title {
  font-weight: 700;
  color: var(--info);
  margin-bottom: 8px;
  font-size: .88rem;
}

/* ===================== ENTITÉS — SÉLECTEUR TOPBAR ================== */
#entity-selector-wrap { position: relative; }

.ent-selector {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #F7EDEF;
  border: 1.5px solid #6B1F30;
  border-radius: 20px;
  color: #4A1520;
  padding: 7px 14px 7px 12px;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s;
  user-select: none;
  max-width: 230px;
}
.ent-selector:hover { background: #f0dce0; box-shadow: 0 2px 8px rgba(107,31,48,.12); }

.ent-selector-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
  flex: 1;
}

.ent-selector-arrow {
  font-size: .7rem;
  transition: transform .22s ease;
  flex-shrink: 0;
  color: #6B1F30;
}
.ent-selector.open .ent-selector-arrow { transform: rotate(180deg); }

.ent-selector-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1.5px solid #e8c8ce;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(107,31,48,.15);
  min-width: 220px;
  z-index: 2000;
  display: none;
  overflow: hidden;
}
.ent-selector-dropdown.open {
  display: block;
  animation: ent-drop-in .16s ease;
}
@keyframes ent-drop-in {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ent-selector-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: .87rem;
  border-bottom: 1px solid #f5eaec;
  transition: background .1s;
}
.ent-selector-option:last-child { border-bottom: none; }
.ent-selector-option:hover { background: #F7EDEF; }
.ent-selector-option.active { background: #F7EDEF; color: #4A1520; }

.ent-selector-check {
  color: #6B1F30;
  font-weight: 700;
  width: 14px;
  text-align: center;
  visibility: hidden;
  flex-shrink: 0;
}
.ent-selector-option.active .ent-selector-check { visibility: visible; }

.ent-selector-opt-label { font-weight: 600; }
.ent-selector-option:not(.active) .ent-selector-opt-label { font-weight: 400; }

/* Bandeau indicateur filtre entité */
#entity-filter-banner {
  background: #F7EDEF;
  border-bottom: 1.5px solid #e8c8ce;
  padding: 7px 20px;
  font-size: .84rem;
  color: #4A1520;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#entity-filter-banner strong { color: #6B1F30; font-weight: 700; }
.entity-filter-clear-btn {
  background: none;
  border: 1px solid #6B1F30;
  border-radius: 12px;
  padding: 3px 12px;
  font-size: .78rem;
  color: #6B1F30;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.entity-filter-clear-btn:hover { background: #6B1F30; color: white; }

.entite-settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--creme-border);
}
.entite-settings-row:last-child { border-bottom: none; }

/* ===================== LITIGES ===================================== */
.litige-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.litige-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  border-left: 4px solid var(--creme-border);
  transition: box-shadow .15s;
}
.litige-card:hover { box-shadow: var(--shadow-md); }
.litige-statut-rouge  { border-left-color: var(--danger); }
.litige-statut-orange { border-left-color: var(--warning); }
.litige-statut-vert   { border-left-color: var(--success); }
.litige-statut-gris   { border-left-color: #888; }

.litige-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.litige-type-badge {
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.litige-statut {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.litige-card-titre {
  font-size: .95rem;
  font-weight: 700;
  color: var(--bordeaux);
  margin-bottom: 6px;
  line-height: 1.3;
}
.litige-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.litige-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--creme-border);
  padding-top: 8px;
}
.litige-montant {
  font-size: .82rem;
  font-weight: 700;
  color: var(--bordeaux);
  margin-left: auto;
}

/* Historique actions */
.litige-action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--creme-border);
}
.litige-action-item:last-child { border-bottom: none; }
.litige-action-date {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 80px;
  padding-top: 2px;
}
.litige-action-body { flex: 1; min-width: 0; }
.litige-action-titre { font-size: .88rem; font-weight: 600; }
.litige-action-note  { font-size: .8rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }

/* ===================== SÉCURITÉ — CODE SECRET ===================== */
.sec-warning-banner {
  background: var(--bordeaux-pale);
  border: 1.5px solid var(--bordeaux-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: .85rem;
  color: var(--bordeaux);
  font-weight: 500;
}
.sec-warning-banner a {
  color: var(--bordeaux);
  font-weight: 700;
  text-decoration: underline;
}
.sec-timer {
  display: inline-block;
  min-height: 1.2em;
}
/* Champ saisie code — gros et centré */
#sec-code-input {
  font-size: 1.4rem;
  letter-spacing: .35em;
  text-align: center;
}

/* ===================== SUIVI VÉRIFICATIONS MENSUEL ===================== */
#suivi-global-alert {
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
  border-bottom: 1.5px solid transparent;
}
.suivi-alert-orange {
  background: var(--warning-bg);
  color: #92600A;
  border-color: var(--warning);
}
.suivi-alert-red {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger);
}
#suivi-global-alert a { color: inherit; font-weight: 700; text-decoration: underline; }

.suivi-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.suivi-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border-color);
}
.suivi-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.suivi-table tr:last-child td { border-bottom: none; }
.suivi-row-ok td:first-child { border-left: 3px solid var(--success); }
.suivi-row-pending td:first-child { border-left: 3px solid var(--warning); }
.suivi-table tr:hover td { background: var(--bg-secondary); }

.suivi-hist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.suivi-hist-row:last-child { border-bottom: none; }

/* ===== COLLABORATEURS ===== */
.collab-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.collab-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--creme-border);
}
.collab-row:last-child { border-bottom: none; }
.collab-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.collab-row-name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-primary);
}
.collab-row-role {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ===== SETTINGS LAYOUT ===== */
.settings-mobile-select {
  display: none;
  width: 100%;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--creme-border);
  border-radius: 8px;
  font-size: .9rem;
  background: var(--creme-card);
  color: var(--text-primary);
}
.settings-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.settings-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--creme-card);
  border-radius: 12px;
  border: 1px solid var(--creme-border);
  padding: 8px;
  position: sticky;
  top: 72px;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: .875rem;
  color: var(--text-secondary);
  text-align: left;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.settings-nav-item:hover {
  background: rgba(107,31,48,.07);
  color: var(--text-primary);
}
.settings-nav-item.active {
  background: rgba(107,31,48,.12);
  color: var(--bordeaux);
  font-weight: 600;
}
.settings-nav-icon { font-size: .95rem; width: 20px; text-align: center; flex-shrink: 0; }
.settings-nav-separator {
  height: 1px;
  background: var(--creme-border);
  margin: 6px 8px;
}
.settings-content { flex: 1; min-width: 0; }
.settings-section-header { margin-bottom: 20px; }
.settings-section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.settings-section-header p { font-size: .85rem; color: var(--text-muted); margin: 0; }

.profil-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(107,31,48,.05);
  border-radius: 10px;
  border: 1px solid rgba(107,31,48,.12);
}
.profil-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: .02em;
}

@media (max-width: 768px) {
  .settings-mobile-select { display: block; }
  .settings-sidebar { display: none; }
  .settings-layout { display: block; }
}

/* ========= PROCÉDURES / DOCUMENTATION ========= */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.proc-card {
  background: #fff;
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proc-card:hover { box-shadow: var(--shadow-md); border-color: var(--bordeaux); }
.proc-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.proc-card-title  { font-weight: 700; font-size: .95rem; flex: 1; }
.proc-card-excerpt {
  font-size: .82rem; color: var(--text-secondary); line-height: 1.5;
  flex: 1; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.proc-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

/* Toolbar éditeur */
.proc-toolbar {
  display: flex; align-items: center; gap: 3px;
  padding: 6px 10px; background: var(--creme);
  border: 1.5px solid var(--creme-border); border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  flex-wrap: wrap;
}
.proc-tb-btn {
  padding: 4px 8px; border: 1px solid transparent; border-radius: 4px;
  background: none; cursor: pointer; font-size: .85rem; font-family: inherit;
  color: var(--text-secondary); transition: background .15s;
}
.proc-tb-btn:hover { background: var(--creme-border); border-color: var(--creme-border); }
.proc-tb-sep { width: 1px; height: 18px; background: var(--creme-border); margin: 0 3px; }

/* Zone d'édition */
.proc-editor {
  min-height: 200px; max-height: 380px;
  border: 1.5px solid var(--creme-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 12px 14px; outline: none;
  font-size: .9rem; color: var(--text-primary); line-height: 1.65;
  overflow-y: auto; background: #fff;
}
.proc-editor:focus { border-color: var(--bordeaux); }
.proc-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted); pointer-events: none;
}
.proc-editor h2 { font-size: 1.1rem; font-weight: 700; margin: 10px 0 4px; }
.proc-editor h3 { font-size: .95rem; font-weight: 700; margin: 8px 0 4px; }
.proc-editor ul, .proc-editor ol { padding-left: 22px; margin: 6px 0; }
.proc-editor li { margin-bottom: 3px; }

/* Contenu affiché en lecture */
.proc-rich-content {
  font-size: .92rem; line-height: 1.7; color: var(--text-primary);
  background: #fff; border: 1px solid var(--creme-border);
  border-radius: var(--radius-md); padding: 20px 24px;
}
.proc-rich-content h2 { font-size: 1.15rem; font-weight: 700; margin: 16px 0 6px; color: var(--bordeaux); }
.proc-rich-content h3 { font-size: 1rem;    font-weight: 700; margin: 12px 0 4px; }
.proc-rich-content ul, .proc-rich-content ol { padding-left: 22px; margin: 8px 0; }
.proc-rich-content li { margin-bottom: 4px; }
.proc-rich-content strong { color: var(--text-primary); }

/* Fichiers */
.proc-fichier-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--creme);
  border: 1px solid var(--creme-border); border-radius: 8px;
  margin-bottom: 6px;
}

/* Gestion catégories */
.proc-cat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--creme-border);
}
.proc-cat-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.proc-color-chip {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff;
  cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  transition: transform .15s;
}
.proc-color-chip:hover { transform: scale(1.2); }

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

/* ========= SCORE DE SANTÉ CLIENT ========= */
.health-dot-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.health-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  cursor: help;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px currentColor;
}
.health-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  min-width: 200px;
  max-width: 280px;
  z-index: 200;
  font-size: .82rem;
  color: var(--text-primary);
  line-height: 1.5;
  pointer-events: none;
}
.health-dot-wrap:hover .health-tooltip { display: block; }

/* ========= JOURNAL DE DÉCISIONS ========= */
.journal-entry {
  background: #fff;
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.journal-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.journal-entry-date {
  font-size: .78rem;
  color: var(--text-muted);
  margin-left: auto;
}
.journal-entry-actions {
  display: flex;
  gap: 4px;
}
.journal-entry-desc {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ========= ÉCHÉANCES ========= */
.ech-section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  padding: 12px 0 6px;
}
.ech-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--creme-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.ech-row-left { flex: 1; min-width: 0; }
.ech-row-titre { font-size: .9rem; font-weight: 600; }
.ech-row-meta { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.ech-row-right {
  text-align: right;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* ===== TYPES DE CONTRATS — BADGE CLIENT ===== */
.client-type-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ===== SETTINGS — TYPES DE CONTRATS ===== */
.type-contrat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--creme-border);
}
.type-contrat-row:last-child { border-bottom: none; }
.type-contrat-badge {
  font-size: .78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.type-contrat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== CONTRATS PAR CLIENT (onglet) ===== */
.contrat-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--creme-border);
}
.contrat-item:last-child { border-bottom: none; }
.contrat-item--inactive { opacity: .6; }
.contrat-item-left { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 0; }
.contrat-item-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.contrat-type-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.contrat-item-details { min-width: 0; }
.contrat-item-montant { font-size: 1rem; font-weight: 700; color: var(--bordeaux); }
.contrat-item-dates { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.contrat-item-notes { font-size: .78rem; color: var(--text-secondary); margin-top: 4px; font-style: italic; }

/* ===== GRAPHIQUE CA DASHBOARD ===== */
.ca-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 0 4px;
  overflow-x: auto;
}
.ca-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 36px;
  cursor: default;
}
.ca-bar-group.ca-future { opacity: .65; }
.ca-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ca-bar {
  width: 70%;
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: height .3s ease;
}
.ca-bar-reel    { background: var(--bordeaux); }
.ca-bar-projete { background: #1A6B8A; border: 2px dashed #1A6B8A; background: #1A6B8A33; }
.ca-bar-label { font-size: .68rem; color: var(--text-muted); text-transform: capitalize; }
.ca-bar-val   { font-size: .6rem; color: var(--text-muted); white-space: nowrap; text-align: center; }
.ca-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: .75rem;
  color: var(--text-muted);
}
.ca-legend-item { display: flex; align-items: center; gap: 5px; }
.ca-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* ===== CLIENT DASHBOARD TAB ===== */
.client-kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--creme-border);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.client-kpi-card.client-kpi-warn  { border-color: #fd7e14; background: #fff8f0; }
.client-kpi-card.client-kpi-danger{ border-color: #dc3545; background: #fff0f0; }
.client-kpi-icon { font-size: 1.3rem; }
.client-kpi-val  { font-size: 1.25rem; font-weight: 700; color: var(--bordeaux); }
.client-kpi-label{ font-size: .72rem; color: var(--text-muted); }
.client-kpi-sub  { font-size: .7rem; color: var(--text-muted); }
.client-alert-row {
  font-size: .82rem;
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.client-alert-warn   { background: #fff3cd; color: #664d03; }
.client-alert-danger { background: #fde8e8; color: #842029; }
.client-alert-info   { background: #cfe2ff; color: #084298; }

/* ===== RH MODULE ===== */
.rh-employe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.rh-employe-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--creme-border);
  padding: 18px 16px 14px;
  cursor: pointer;
  transition: box-shadow .2s, transform .1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.rh-employe-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.rh-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rh-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}
.rh-employe-name { font-weight: 600; font-size: .95rem; }
.rh-employe-poste { font-size: .78rem; color: var(--text-muted); }
.rh-statut-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
}
.rh-statut-essai      { background: #fff3cd; color: #856404; }
.rh-statut-actif      { background: #d1e7dd; color: #0a5338; }
.rh-statut-conge      { background: #cfe2ff; color: #084298; }
.rh-statut-suspendu   { background: #ffe5d0; color: #974a00; }
.rh-statut-sorti      { background: #f1f1f1; color: #555; }
/* Absence grid */
.rh-absence-table-wrap { overflow-x: auto; margin-top: 12px; }
.rh-absence-table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: .78rem;
}
.rh-absence-table th,
.rh-absence-table td {
  border: 1px solid var(--creme-border);
  padding: 4px 6px;
  white-space: nowrap;
}
.rh-absence-table th { background: var(--creme); font-weight: 600; text-align: center; }
.rh-absence-table .rh-abs-name { text-align: left; font-weight: 600; min-width: 120px; }
.rh-abs-cp    { background: #cfe2ff; }
.rh-abs-maladie { background: #ffe5d0; }
.rh-abs-rtt   { background: #d1e7dd; }
.rh-abs-formation { background: #e2d9f3; }
.rh-abs-autre { background: #f8d7da; }
.rh-abs-we    { background: #f5f5f5; color: #bbb; }
/* Echeances RH */
.rh-echeance-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--creme-border);
}
.rh-echeance-row:last-child { border-bottom: none; }
.rh-ech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rh-ech-dot-urgent  { background: #dc3545; }
.rh-ech-dot-proche  { background: #fd7e14; }
.rh-ech-dot-normal  { background: var(--bordeaux); }
.rh-ech-dot-fait    { background: #28a745; }
/* Onboarding checklists */
.rh-onb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.rh-checklist-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--creme-border);
  padding: 16px;
}
.rh-checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rh-checklist-title { font-weight: 600; font-size: .95rem; }
.rh-checklist-progress {
  font-size: .75rem;
  color: var(--text-muted);
}
.rh-checklist-bar-wrap {
  height: 4px;
  background: var(--creme-border);
  border-radius: 2px;
  margin-bottom: 10px;
}
.rh-checklist-bar {
  height: 4px;
  background: var(--bordeaux);
  border-radius: 2px;
  transition: width .3s;
}
.rh-etape-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: .85rem;
}
.rh-etape-item input[type=checkbox] { accent-color: var(--bordeaux); }
