/* ============================================
   THEME LÉGENDAIRE — BOIS NOBLE v4
   Textures bois réelles, vrais sélecteurs
   ============================================ */

/* --- Variables --- */
[data-theme="wood-legendary"] {
  --wood-dark: url('textures/wood-dark.jpg');
  --wood-body: url('textures/wood-body.jpg');
  --wood-medium: url('textures/wood-medium.jpg');
  --wood-light: url('textures/wood-light-premium.jpg');
  --bg-primary: #2C1E12;
  --bg-secondary: #3A2A1A;
  --bg-tertiary: #4A3828;
  --bg-card: #4A3525;
  --bg-hover: #5A4530;
  --bg-input: #241A0E;
  --bg-sidebar: #1E140C;
  --bg-header: #1E140C;
  --text: #F2E8D8;
  --text-secondary: #DCC8A8;
  --text-muted: #9A7D5E;
  --accent: #D4A44C;
  --accent-hover: #E0B860;
  --accent-light: rgba(212, 164, 76, 0.15);
  --accent-bg: rgba(212, 164, 76, 0.08);
  --border: rgba(212, 164, 76, 0.15);
  --border-light: rgba(212, 164, 76, 0.08);
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-lg: rgba(0, 0, 0, 0.6);
  --success: #7A9E5A;
  --warning: #D4A44C;
  --danger: #C06040;
  --info: #7A9AAA;
  --scrollbar-track: #2C1E12;
  --scrollbar-thumb: #6A5040;
  --modal-bg: #3A2A1A;
  --tooltip-bg: #1E140C;
  --badge-bg: #D4A44C;
  --badge-text: #1E140C;
  --glass-bg: rgba(44, 30, 18, 0.92);
  --glass-border: rgba(212, 164, 76, 0.12);
  --code-bg: #1E140C;
}

/* ============================================
   BODY — Noyer craquelé noble (fond général)
   ============================================ */
[data-theme="wood-legendary"] body {
  background-color: #2C1E12 !important;
  background-image: var(--wood-body) !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

/* ============================================
   MAIN CONTENT — texture bois moyen
   ============================================ */
[data-theme="wood-legendary"] .main-content {
  background-image: var(--wood-body) !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

/* ============================================
   SIDEBAR — Noyer foncé lisse
   ============================================ */
[data-theme="wood-legendary"] .sidebar,
[data-theme="wood-legendary"] #app-sidebar {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  border-right: 1px solid rgba(212, 164, 76, 0.1) !important;
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.5) !important;
}

/* ============================================
   HEADER — Noyer foncé, bandeau noble
   ============================================ */
[data-theme="wood-legendary"] .app-header {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center bottom !important;
  border-bottom: 1px solid rgba(212, 164, 76, 0.12) !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5) !important;
}

/* ============================================
   TASK COLUMNS — fond bois moyen
   ============================================ */
[data-theme="wood-legendary"] .task-column {
  background: rgba(30, 20, 10, 0.3) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(212, 164, 76, 0.08) !important;
}

[data-theme="wood-legendary"] .column-header {
  border-bottom: 2px solid rgba(212, 164, 76, 0.12) !important;
}

[data-theme="wood-legendary"] .column-header h2 {
  color: #F5ECD8 !important;
  text-shadow:
    0 -1px 2px rgba(0, 0, 0, 0.7),
    0 1px 1px rgba(255, 220, 150, 0.2) !important;
}

/* ============================================
   BUBBLES (TÂCHES) — Chêne clair, panneaux nobles
   ============================================ */
[data-theme="wood-legendary"] .bubble {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(212, 164, 76, 0.22) !important;
  border-radius: 5px !important;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 220, 150, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
  position: relative;
  overflow: hidden;
}

/* Voile lisibilité sur les bubbles */
[data-theme="wood-legendary"] .bubble::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 10, 5, 0.58);
  pointer-events: none;
  z-index: 0;
  border-radius: 5px;
}

[data-theme="wood-legendary"] .bubble > * {
  position: relative;
  z-index: 1;
}

[data-theme="wood-legendary"] .bubble:hover {
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 220, 150, 0.12),
    0 0 0 1px rgba(212, 164, 76, 0.15) !important;
}

/* Texte des tâches = gravé */
[data-theme="wood-legendary"] .bubble-text {
  color: #F5ECD8 !important;
  text-shadow:
    0 -1px 1px rgba(0, 0, 0, 0.6),
    0 1px 1px rgba(255, 220, 150, 0.18) !important;
}

[data-theme="wood-legendary"] .bubble-header {
  border-bottom: 1px solid rgba(212, 164, 76, 0.08) !important;
}

/* Status-specific subtle tints on bubbles */
[data-theme="wood-legendary"] .bubble.todo::before {
  background: rgba(15, 10, 5, 0.58);
}
[data-theme="wood-legendary"] .bubble.inprogress::before {
  background: rgba(25, 18, 10, 0.35);
  border-left: 3px solid rgba(212, 164, 76, 0.4);
}
[data-theme="wood-legendary"] .bubble.done::before {
  background: rgba(15, 10, 5, 0.62);
}

/* Action buttons */
[data-theme="wood-legendary"] .task-action-btn {
  background: rgba(30, 20, 10, 0.4) !important;
  border: 1px solid rgba(212, 164, 76, 0.12) !important;
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .task-action-btn:hover {
  background: rgba(212, 164, 76, 0.12) !important;
  color: #F0D070 !important;
}

/* ============================================
   TASK INPUT — Creux gravé dans le bois
   ============================================ */
[data-theme="wood-legendary"] .task-input-section {
  background: rgba(20, 14, 8, 0.4) !important;
  border: 1px solid rgba(212, 164, 76, 0.1) !important;
  border-radius: 6px !important;
}

[data-theme="wood-legendary"] .task-input-section input,
[data-theme="wood-legendary"] .task-input-section select,
[data-theme="wood-legendary"] #task-input {
  background: rgba(15, 10, 5, 0.5) !important;
  border: 1px solid rgba(212, 164, 76, 0.15) !important;
  color: #F2E8D8 !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

/* ============================================
   FILTER BAR
   ============================================ */
[data-theme="wood-legendary"] .user-filter-bar {
  background: rgba(12, 8, 4, 0.45) !important;
  border: 1px solid rgba(212, 164, 76, 0.15) !important;
  border-radius: 6px !important;
}

/* ============================================
   CARDS GÉNÉRIQUES — Chêne clair
   ============================================ */
[data-theme="wood-legendary"] .glass-card,
[data-theme="wood-legendary"] .kpi-card,
[data-theme="wood-legendary"] .card,
[data-theme="wood-legendary"] .stat-card,
[data-theme="wood-legendary"] .metric-card,
[data-theme="wood-legendary"] .widget-card,
[data-theme="wood-legendary"] .dashboard-widget {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(212, 164, 76, 0.22) !important;
  border-radius: 5px !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 220, 150, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
  position: relative;
  overflow: hidden;
}

[data-theme="wood-legendary"] .glass-card::before,
[data-theme="wood-legendary"] .kpi-card::before,
[data-theme="wood-legendary"] .card::before,
[data-theme="wood-legendary"] .stat-card::before,
[data-theme="wood-legendary"] .metric-card::before,
[data-theme="wood-legendary"] .widget-card::before,
[data-theme="wood-legendary"] .dashboard-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 10, 5, 0.58);
  pointer-events: none;
  z-index: 0;
  border-radius: 5px;
}

[data-theme="wood-legendary"] .glass-card > *,
[data-theme="wood-legendary"] .kpi-card > *,
[data-theme="wood-legendary"] .card > *,
[data-theme="wood-legendary"] .stat-card > *,
[data-theme="wood-legendary"] .metric-card > *,
[data-theme="wood-legendary"] .widget-card > *,
[data-theme="wood-legendary"] .dashboard-widget > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   MODALS — Chêne moyen, panneau flottant
   ============================================ */
[data-theme="wood-legendary"] .modal-box,
[data-theme="wood-legendary"] .modal-content,
[data-theme="wood-legendary"] .theme-selector-modal {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(212, 164, 76, 0.15) !important;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7) !important;
  position: relative;
  overflow: hidden;
}

[data-theme="wood-legendary"] .modal-box::before,
[data-theme="wood-legendary"] .theme-selector-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 14, 8, 0.45);
  pointer-events: none;
  z-index: 0;
}

[data-theme="wood-legendary"] .modal-box > *,
[data-theme="wood-legendary"] .theme-selector-modal > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   TEXTE GRAVÉ — Noblesse et profondeur
   ============================================ */

/* Tous les titres */
[data-theme="wood-legendary"] h1,
[data-theme="wood-legendary"] h2,
[data-theme="wood-legendary"] h3,
[data-theme="wood-legendary"] h4,
[data-theme="wood-legendary"] .app-title,
[data-theme="wood-legendary"] .section-title,
[data-theme="wood-legendary"] .card-title,
[data-theme="wood-legendary"] .widget-title {
  color: #F5ECD8 !important;
  text-shadow:
    0 -1px 2px rgba(0, 0, 0, 0.7),
    0 1px 1px rgba(255, 220, 150, 0.2) !important;
  letter-spacing: 0.3px;
}

/* KPI values */
[data-theme="wood-legendary"] .kpi-value,
[data-theme="wood-legendary"] .stat-value,
[data-theme="wood-legendary"] .metric-value,
[data-theme="wood-legendary"] .column-count {
  color: #E8C060 !important;
  text-shadow:
    0 -1px 2px rgba(0, 0, 0, 0.7),
    0 1px 1px rgba(255, 220, 150, 0.25),
    0 0 8px rgba(212, 164, 76, 0.12) !important;
}

/* Texte courant gravé subtil */
[data-theme="wood-legendary"] p,
[data-theme="wood-legendary"] span,
[data-theme="wood-legendary"] li,
[data-theme="wood-legendary"] td,
[data-theme="wood-legendary"] label {
  text-shadow:
    0 -1px 1px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 220, 150, 0.12);
}

/* Sidebar gravure */
[data-theme="wood-legendary"] .sidebar-item,
[data-theme="wood-legendary"] .sidebar-item span,
[data-theme="wood-legendary"] .sidebar-section-title {
  color: #DCC8A8 !important;
  text-shadow:
    0 -1px 1px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(200, 160, 100, 0.12) !important;
}

[data-theme="wood-legendary"] .sidebar-item.active,
[data-theme="wood-legendary"] .sidebar-item.active span {
  color: #F0D070 !important;
  text-shadow:
    0 -1px 1px rgba(0, 0, 0, 0.5),
    0 1px 1px rgba(255, 210, 130, 0.2),
    0 0 6px rgba(212, 164, 76, 0.12) !important;
}

[data-theme="wood-legendary"] .sidebar-item svg {
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,0.4)) drop-shadow(0 1px 0 rgba(200,160,100,0.12));
}

/* Sidebar interactions */
[data-theme="wood-legendary"] .sidebar-item:hover {
  background: linear-gradient(90deg, rgba(212, 164, 76, 0.08) 0%, transparent 100%) !important;
}
[data-theme="wood-legendary"] .sidebar-item.active {
  background: linear-gradient(90deg, rgba(212, 164, 76, 0.12) 0%, transparent 100%) !important;
  box-shadow: inset 3px 0 0 #D4A44C !important;
}

/* ============================================
   INPUTS GLOBAUX
   ============================================ */
[data-theme="wood-legendary"] input,
[data-theme="wood-legendary"] textarea,
[data-theme="wood-legendary"] select {
  background: rgba(15, 10, 5, 0.5) !important;
  border: 1px solid rgba(212, 164, 76, 0.15) !important;
  color: #F2E8D8 !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="wood-legendary"] input:focus,
[data-theme="wood-legendary"] textarea:focus,
[data-theme="wood-legendary"] select:focus {
  border-color: rgba(212, 164, 76, 0.35) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(212, 164, 76, 0.1) !important;
}

[data-theme="wood-legendary"] input::placeholder,
[data-theme="wood-legendary"] textarea::placeholder {
  color: rgba(200, 170, 120, 0.35) !important;
}

/* ============================================
   BOUTONS
   ============================================ */
[data-theme="wood-legendary"] .btn-primary,
[data-theme="wood-legendary"] button[class*="primary"],
[data-theme="wood-legendary"] #add-task-btn {
  background: linear-gradient(180deg, #8B6914 0%, #705210 100%) !important;
  color: #FFF0D4 !important;
  border: 1px solid rgba(212, 164, 76, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 230, 160, 0.2) !important;
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 210, 130, 0.2) !important;
}

[data-theme="wood-legendary"] .btn-primary:hover,
[data-theme="wood-legendary"] button[class*="primary"]:hover {
  background: linear-gradient(180deg, #9A7818 0%, #805E14 100%) !important;
}

[data-theme="wood-legendary"] .btn-secondary,
[data-theme="wood-legendary"] button[class*="secondary"] {
  background: rgba(30, 20, 10, 0.4) !important;
  color: #D4B896 !important;
  border: 1px solid rgba(212, 164, 76, 0.18) !important;
}

/* ============================================
   DROPDOWNS / MENUS
   ============================================ */
[data-theme="wood-legendary"] .dropdown-menu,
[data-theme="wood-legendary"] .context-menu,
[data-theme="wood-legendary"] .menu-dropdown {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(212, 164, 76, 0.12) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6) !important;
}

/* ============================================
   TABLES
   ============================================ */
[data-theme="wood-legendary"] table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="wood-legendary"] table tr:hover {
  background: rgba(212, 164, 76, 0.06) !important;
}
[data-theme="wood-legendary"] table th {
  background: rgba(0, 0, 0, 0.2) !important;
  border-bottom: 2px solid rgba(212, 164, 76, 0.15) !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */
[data-theme="wood-legendary"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="wood-legendary"] ::-webkit-scrollbar-track { background: rgba(20, 14, 8, 0.6); }
[data-theme="wood-legendary"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6A5040, #5A3E2E, #6A5040);
  border-radius: 5px; border: 2px solid rgba(20, 14, 8, 0.6);
}
[data-theme="wood-legendary"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7A6050, #6A4E3E, #7A6050);
}

/* ============================================
   DÉTAILS
   ============================================ */
[data-theme="wood-legendary"] ::selection { background: rgba(212, 164, 76, 0.35); color: #FFF8E8; }
[data-theme="wood-legendary"] a { color: #D4A44C; }
[data-theme="wood-legendary"] a:hover { color: #E0B860; }

[data-theme="wood-legendary"] .badge,
[data-theme="wood-legendary"] .tag,
[data-theme="wood-legendary"] .task-project,
[data-theme="wood-legendary"] .task-priority {
  background: rgba(212, 164, 76, 0.12) !important;
  color: #D4A44C !important;
  border: 1px solid rgba(212, 164, 76, 0.15) !important;
}

[data-theme="wood-legendary"] .task-priority.urgent {
  background: rgba(192, 96, 64, 0.2) !important;
  color: #E08060 !important;
  border-color: rgba(192, 96, 64, 0.3) !important;
}

[data-theme="wood-legendary"] hr,
[data-theme="wood-legendary"] .divider {
  border: none !important;
  height: 2px !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1), rgba(255,210,130,0.06)) !important;
}

[data-theme="wood-legendary"] .toast,
[data-theme="wood-legendary"] [class*="toast"] {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(212, 164, 76, 0.15) !important;
  color: #F2E8D8 !important;
}

/* Empty state */
[data-theme="wood-legendary"] .empty-state {
  color: #9A7D5E !important;
}

/* Search container */
[data-theme="wood-legendary"] .search-container input {
  background: rgba(15, 10, 5, 0.5) !important;
}

/* User badge */
[data-theme="wood-legendary"] .user-badge {
  background: rgba(30, 20, 10, 0.4) !important;
  border: 1px solid rgba(212, 164, 76, 0.12) !important;
  color: #D4B896 !important;
}

/* ============================================
   CATÉGORIE LÉGENDAIRE — Sélecteur de thèmes
   ============================================ */
.category-legendary-title {
  background: linear-gradient(90deg, #C8943C, #E0B860, #C8943C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1em;
  letter-spacing: 3px;
  text-shadow: none;
}
.category-legendary-desc { color: #C8943C !important; font-style: italic; }
.theme-category-legendary {
  border: 1px solid rgba(212, 164, 76, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  background: rgba(212, 164, 76, 0.04);
}
.theme-card-legendary {
  border: 1px solid rgba(212, 164, 76, 0.3) !important;
  position: relative;
}
.theme-card-legendary::after {
  content: 'LEGENDARY';
  position: absolute;
  top: 4px; right: 4px;
  font-size: 7px; font-weight: bold; letter-spacing: 1px;
  color: #1E140C;
  background: linear-gradient(90deg, #C8943C, #E0B860);
  padding: 2px 5px; border-radius: 3px; z-index: 1;
}

/* ============================================
   PATCH BUBBLES — Override les variables + !important
   ============================================ */

/* Variables bubble pour le thème bois */
[data-theme="wood-legendary"] {
  --bubble-inprogress-bg: transparent;
  --bubble-inprogress-border: rgba(212, 164, 76, 0.25);
  --bubble-inprogress-glow: 0 3px 12px rgba(0,0,0,0.35);
  --bubble-done-bg: transparent;
  --bubble-done-border: rgba(122, 158, 90, 0.3);
  --bubble-done-glow: 0 3px 12px rgba(0,0,0,0.35);
  --bubble-done-text: #7A9E5A;
}

/* FORCE texture bois sur TOUTES les bubbles, tous statuts */
[data-theme="wood-legendary"] .bubble,
[data-theme="wood-legendary"] .bubble.todo,
[data-theme="wood-legendary"] .bubble.inprogress,
[data-theme="wood-legendary"] .bubble.done,
[data-theme="wood-legendary"] .task-bubble,
[data-theme="wood-legendary"] .task-bubble.todo,
[data-theme="wood-legendary"] .task-bubble.inprogress,
[data-theme="wood-legendary"] .task-bubble.done,
[data-theme="wood-legendary"] #view-tasks .bubble,
[data-theme="wood-legendary"] .task-list .bubble,
[data-theme="wood-legendary"] .bubbles-list .bubble {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
}

/* Voile lisibilité sur toutes les bubbles */
[data-theme="wood-legendary"] .bubble::before,
[data-theme="wood-legendary"] .task-bubble::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  border-radius: 5px !important;
}

/* Todo = voile neutre */
[data-theme="wood-legendary"] .bubble.todo::before {
  background: rgba(15, 10, 5, 0.55) !important;
}

/* In Progress = voile léger + liseré doré gauche */
[data-theme="wood-legendary"] .bubble.inprogress::before {
  background: rgba(15, 10, 5, 0.5) !important;
  border-left: 3px solid rgba(212, 164, 76, 0.5) !important;
}

/* Done = voile plus sombre (atténué) */
[data-theme="wood-legendary"] .bubble.done::before {
  background: rgba(15, 10, 5, 0.62) !important;
  border-left: 3px solid rgba(122, 158, 90, 0.4) !important;
}

/* Enfants au-dessus du voile */
[data-theme="wood-legendary"] .bubble > *,
[data-theme="wood-legendary"] .task-bubble > * {
  position: relative !important;
  z-index: 1 !important;
}

/* Done text style */
[data-theme="wood-legendary"] .bubble.done .bubble-text {
  color: #9A7D5E !important;
  text-decoration: line-through !important;
  opacity: 0.7 !important;
}

/* ============================================
   PATCH MAIN CONTENT + tout le reste
   ============================================ */

/* Main content area */
[data-theme="wood-legendary"] .main-content,
[data-theme="wood-legendary"] main.main-content {
  background-image: var(--wood-body) !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

/* View containers */
[data-theme="wood-legendary"] #view-tasks,
[data-theme="wood-legendary"] #view-dashboard,
[data-theme="wood-legendary"] #view-galaxy,
[data-theme="wood-legendary"] #view-crm,
[data-theme="wood-legendary"] #view-drive,
[data-theme="wood-legendary"] #view-calendar,
[data-theme="wood-legendary"] #view-billing,
[data-theme="wood-legendary"] #view-settings,
[data-theme="wood-legendary"] [id^="view-"] {
  background: transparent !important;
}

/* Tasks view container */
[data-theme="wood-legendary"] .tasks-view,
[data-theme="wood-legendary"] .columns-view,
[data-theme="wood-legendary"] .bubbles-view {
  background: transparent !important;
}

/* Task columns */
[data-theme="wood-legendary"] .task-column {
  background: rgba(12, 8, 4, 0.4) !important;
  border: 1px solid rgba(212, 164, 76, 0.15) !important;
  border-radius: 6px !important;
}

/* Task input */
[data-theme="wood-legendary"] .task-input-section {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(212, 164, 76, 0.1) !important;
  border-radius: 6px !important;
  position: relative;
  overflow: hidden;
}

[data-theme="wood-legendary"] .task-input-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 6, 3, 0.3);
  pointer-events: none;
  z-index: 0;
}

[data-theme="wood-legendary"] .task-input-section > * {
  position: relative;
  z-index: 1;
}

/* Filter bar */
[data-theme="wood-legendary"] .user-filter-bar {
  background: rgba(12, 8, 4, 0.45) !important;
  border: 1px solid rgba(212, 164, 76, 0.15) !important;
  border-radius: 6px !important;
}

/* Column header */
[data-theme="wood-legendary"] .column-header {
  background: transparent !important;
  border-bottom: 2px solid rgba(212, 164, 76, 0.1) !important;
}


/* ============================================
   DASHBOARD — BOIS GRAVÉ AU FER
   Source unique, pas de doublons
   ============================================ */

/* Containers transparents */
[data-theme="wood-legendary"] .db-kpi-row,
[data-theme="wood-legendary"] .db-main-row,
[data-theme="wood-legendary"] .db-bottom-grid,
[data-theme="wood-legendary"] .db-charts-grid {
  background: transparent !important;
}

/* ============================================
   A. CARTES BOIS CLAIR — 6 stats KPI
   Texture brute, texte gravé au fer sombre
   ============================================ */

/* Fond texture bois clair */
[data-theme="wood-legendary"] .db-kpi-big {
  background-image: var(--wood-light) !important;
}
[data-theme="wood-legendary"] .db-kpi-small {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.2), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Pas d'overlay noir — texture nue */
[data-theme="wood-legendary"] .db-kpi-big::before,
[data-theme="wood-legendary"] .db-kpi-small::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(255, 240, 210, 0.08) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  border-radius: inherit !important;
}
[data-theme="wood-legendary"] .db-kpi-big > *,
[data-theme="wood-legendary"] .db-kpi-small > * {
  position: relative !important;
  z-index: 1 !important;
}

/* Chiffres principaux — gravé au fer */
[data-theme="wood-legendary"] .db-kpi-big-val,
[data-theme="wood-legendary"] .db-kpi-small-val {
  color: #2A1200 !important;
  text-shadow:
    1px 1px 0px rgba(255,180,80,0.4),
    0px 2px 4px rgba(0,0,0,0.4),
    0px -1px 0px rgba(255,200,100,0.2) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .db-kpi-big-val--warn {
  color: #7A1800 !important;
  text-shadow:
    1px 1px 0px rgba(255,180,80,0.4),
    0px 2px 4px rgba(0,0,0,0.4),
    0px -1px 0px rgba(255,200,100,0.2) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .db-kpi-big-val span[style*="opacity"] {
  color: rgba(42, 18, 0, 0.45) !important;
  opacity: 1 !important;
}

/* Labels majuscules — gravé net */
[data-theme="wood-legendary"] .db-kpi-big-label,
[data-theme="wood-legendary"] .db-kpi-small-label {
  color: #3B1A00 !important;
  text-shadow:
    0px 1px 0px rgba(255,190,90,0.35),
    0px 1px 3px rgba(0,0,0,0.3) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

/* Sous-textes */
[data-theme="wood-legendary"] .db-kpi-big-sub {
  color: rgba(50, 22, 0, 0.72) !important;
  text-shadow: 0px 1px 1px rgba(255,180,70,0.25) !important;
}

/* Badges KPI */
[data-theme="wood-legendary"] .db-kpi-big-badge {
  background: rgba(61, 31, 0, 0.08) !important;
  color: rgba(50, 22, 0, 0.65) !important;
  border: 1px solid rgba(61, 31, 0, 0.12) !important;
  text-shadow: 0px 1px 1px rgba(255,180,70,0.25) !important;
}
[data-theme="wood-legendary"] .db-kpi-big-badge.good {
  background: rgba(40, 80, 20, 0.1) !important;
  color: rgba(30, 60, 10, 0.75) !important;
  border-color: rgba(40, 80, 20, 0.2) !important;
}
[data-theme="wood-legendary"] .db-kpi-big-badge.warn {
  background: rgba(122, 24, 0, 0.1) !important;
  color: #7A1800 !important;
  border-color: rgba(122, 24, 0, 0.2) !important;
}

/* Icon boxes */
[data-theme="wood-legendary"] .db-kpi-big-icon {
  background: rgba(61, 31, 0, 0.08) !important;
  border: 1px solid rgba(61, 31, 0, 0.1) !important;
}

/* Progress bar */
[data-theme="wood-legendary"] .db-kpi-progress {
  background: rgba(61, 31, 0, 0.12) !important;
}

/* Hover léger vernis */
[data-theme="wood-legendary"] .db-kpi-big:hover,
[data-theme="wood-legendary"] .db-kpi-small:hover {
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.3), 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* ============================================
   B. CARTES BOIS FONCÉ — Hero, Actions, Brief,
   Activité récente, Progression, Charts
   Overlay chaud + texte clair doré
   ============================================ */

/* --- HERO --- */
[data-theme="wood-legendary"] .db-hero {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(180, 130, 70, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.1), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}
[data-theme="wood-legendary"] .db-hero::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(20, 8, 0, 0.42) !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
[data-theme="wood-legendary"] .db-hero > * {
  position: relative !important;
  z-index: 1 !important;
}
[data-theme="wood-legendary"] .db-hero-title {
  color: #FFE0A0 !important;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.65) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .db-hero-name {
  color: #FFE8B8 !important;
}
[data-theme="wood-legendary"] .db-hero-sub,
[data-theme="wood-legendary"] .db-hero-eyebrow,
[data-theme="wood-legendary"] .db-last-update {
  color: rgba(255, 215, 140, 0.8) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .db-live-dot {
  background: rgba(255, 200, 100, 0.6) !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] .db-refresh-btn {
  background: rgba(255, 220, 150, 0.08) !important;
  color: rgba(255, 215, 140, 0.7) !important;
  border: 1px solid rgba(255, 220, 150, 0.15) !important;
}

/* --- ACTIONS RAPIDES --- */
[data-theme="wood-legendary"] .db-actions-panel {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.15), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}
[data-theme="wood-legendary"] .db-actions-panel::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(20, 8, 0, 0.42) !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
[data-theme="wood-legendary"] .db-actions-panel > * {
  position: relative !important;
  z-index: 1 !important;
}
[data-theme="wood-legendary"] .db-qa-item {
  background: rgba(255, 220, 150, 0.06) !important;
  border: 1px solid rgba(255, 220, 150, 0.12) !important;
}
[data-theme="wood-legendary"] .db-qa-item:hover {
  background: rgba(255, 220, 150, 0.12) !important;
}
[data-theme="wood-legendary"] .db-qa-label {
  color: rgba(255, 215, 140, 0.8) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
}

/* --- BRIEF PANEL --- */
[data-theme="wood-legendary"] .db-brief-panel {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.15), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}
[data-theme="wood-legendary"] .db-brief-panel::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(20, 8, 0, 0.42) !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
[data-theme="wood-legendary"] .db-brief-panel > * {
  position: relative !important;
  z-index: 1 !important;
}

/* --- ACTIVITÉ RÉCENTE + PROGRESSION (db-card) --- */
[data-theme="wood-legendary"] .db-card {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.15), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}
[data-theme="wood-legendary"] .db-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(20, 8, 0, 0.42) !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
[data-theme="wood-legendary"] .db-card > * {
  position: relative !important;
  z-index: 1 !important;
}

/* --- CHART CARDS (Activité 7j, Répartition, Tendance 30j) --- */
[data-theme="wood-legendary"] .db-chart-card {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.15), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}
[data-theme="wood-legendary"] .db-chart-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(20, 8, 0, 0.42) !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
[data-theme="wood-legendary"] .db-chart-card > * {
  position: relative !important;
  z-index: 1 !important;
}

/* --- TEXTES COMMUNS SUR CARTES FONCÉES --- */
[data-theme="wood-legendary"] .db-panel-title,
[data-theme="wood-legendary"] .db-chart-title {
  color: #FFE0A0 !important;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.65) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .db-panel-icon {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)) !important;
}
[data-theme="wood-legendary"] .db-chart-badge,
[data-theme="wood-legendary"] .db-badge {
  color: rgba(255, 215, 140, 0.8) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
  background: rgba(255, 220, 150, 0.08) !important;
  border: 1px solid rgba(255, 220, 150, 0.15) !important;
}

/* Activity items */
[data-theme="wood-legendary"] .db-act-item {
  border-bottom: 1px solid rgba(255, 220, 150, 0.08) !important;
}
[data-theme="wood-legendary"] .db-act-item:hover {
  background: rgba(255, 220, 150, 0.04) !important;
}
[data-theme="wood-legendary"] .db-act-text {
  color: #FFE0A0 !important;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.65) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .db-act-meta,
[data-theme="wood-legendary"] .db-act-time {
  color: rgba(255, 215, 140, 0.8) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .db-act-icon {
  background: rgba(255, 220, 150, 0.06) !important;
  border: 1px solid rgba(255, 220, 150, 0.1) !important;
}

/* Progression text */
[data-theme="wood-legendary"] .db-prog-rate,
[data-theme="wood-legendary"] .db-prog-wrap {
  color: #FFE0A0 !important;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.65) !important;
}

/* Chart SVG labels */
[data-theme="wood-legendary"] .db-chart-card text,
[data-theme="wood-legendary"] .db-chart-card tspan {
  fill: rgba(255, 215, 140, 0.8) !important;
}
[data-theme="wood-legendary"] .db-chart-card text[text-anchor="middle"] {
  fill: #FFE0A0 !important;
  font-weight: 700;
}

/* Donut legend */
[data-theme="wood-legendary"] .db-donut-legend,
[data-theme="wood-legendary"] .db-donut-legend span {
  color: rgba(255, 215, 140, 0.8) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
}

/* Empty state */
[data-theme="wood-legendary"] .db-empty-state {
  color: rgba(255, 215, 140, 0.6) !important;
}
[data-theme="wood-legendary"] .db-cta-btn {
  background: rgba(255, 220, 150, 0.08) !important;
  color: rgba(255, 215, 140, 0.8) !important;
  border: 1px solid rgba(255, 220, 150, 0.2) !important;
}

/* GPU acceleration */
[data-theme="wood-legendary"] .db-kpi-big,
[data-theme="wood-legendary"] .db-kpi-small,
[data-theme="wood-legendary"] .db-card,
[data-theme="wood-legendary"] .db-chart-card,
[data-theme="wood-legendary"] .db-actions-panel,
[data-theme="wood-legendary"] .db-brief-panel,
[data-theme="wood-legendary"] .db-hero {
  will-change: auto;
  transform: translateZ(0);
}

/* Hero header spacing & typography */
[data-theme="wood-legendary"] .db-hero {
  padding: 32px 40px 28px 40px !important;
  border-bottom: 1px solid rgba(255, 200, 100, 0.15) !important;
}
[data-theme="wood-legendary"] .db-hero-title {
  font-size: 2.2rem !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.01em !important;
}
[data-theme="wood-legendary"] .db-hero-sub {
  margin-top: 0 !important;
  opacity: 0.7 !important;
  font-size: 0.95rem !important;
}
[data-theme="wood-legendary"] .db-hero-eyebrow {
  margin-bottom: 12px !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em !important;
  opacity: 0.6 !important;
}

/* Border radius 20px sur les 6 cartes stats */
[data-theme="wood-legendary"] .db-kpi-big,
[data-theme="wood-legendary"] .db-kpi-small {
  border-radius: 20px !important;
}

/* Hero spacing fix */
[data-theme="wood-legendary"] .db-hero {
  margin-bottom: 16px !important;
  padding-bottom: 20px !important;
}

/* Hero border-radius */
[data-theme="wood-legendary"] .db-hero {
  border-radius: 20px !important;
}

/* ============================================
   BRIEF DU JOUR — Texture bois + gravure
   ============================================ */

/* 1. Carte principale */
[data-theme="wood-legendary"] .db-brief-panel,
[data-theme="wood-legendary"] .mb-container {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 20px !important;
}

/* 2. Sous-cartes stats (Tâches du jour, RDV, Non lus, Productivité) */
[data-theme="wood-legendary"] .mb-stat-card {
  background: rgba(20, 8, 0, 0.3) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

/* 3. Sections internes (État des lieux, Priorités du jour) */
[data-theme="wood-legendary"] .mb-context-section,
[data-theme="wood-legendary"] .mb-events-section,
[data-theme="wood-legendary"] .mb-revenue-section,
[data-theme="wood-legendary"] .mb-conseil-wrap {
  background: rgba(20, 8, 0, 0.35) !important;
  border-radius: 10px !important;
  border-left: 2px solid rgba(255, 190, 80, 0.4) !important;
}

/* 4. Tous les textes du Brief */
[data-theme="wood-legendary"] .mb-container,
[data-theme="wood-legendary"] .mb-slide-title,
[data-theme="wood-legendary"] .mb-slide-subtitle,
[data-theme="wood-legendary"] .mb-slide-body,
[data-theme="wood-legendary"] .mb-slide-content,
[data-theme="wood-legendary"] .mb-stat-label,
[data-theme="wood-legendary"] .mb-section-title,
[data-theme="wood-legendary"] .mb-event-title,
[data-theme="wood-legendary"] .mb-event-time,
[data-theme="wood-legendary"] .mb-no-events,
[data-theme="wood-legendary"] .mb-context-list,
[data-theme="wood-legendary"] .mb-conseil-text,
[data-theme="wood-legendary"] .mb-conseil-badge,
[data-theme="wood-legendary"] .mb-streak-count,
[data-theme="wood-legendary"] .mb-revenue-val {
  color: #FFE0A0 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.6) !important;
}

/* 5. Textes en gras / highlights / valeurs */
[data-theme="wood-legendary"] .mb-stat-val,
[data-theme="wood-legendary"] .mb-slide-title,
[data-theme="wood-legendary"] .mb-header-left,
[data-theme="wood-legendary"] .mb-streak-fire,
[data-theme="wood-legendary"] .mb-revenue-val {
  color: #FFFFFF !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.7) !important;
}

/* Nav buttons */
[data-theme="wood-legendary"] .mb-nav-btn,
[data-theme="wood-legendary"] .mb-skip-btn,
[data-theme="wood-legendary"] .mb-start-btn,
[data-theme="wood-legendary"] .mb-tts-btn {
  background: rgba(255, 220, 150, 0.08) !important;
  color: #FFE0A0 !important;
  border: 1px solid rgba(255, 220, 150, 0.15) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
}

/* Dots */
[data-theme="wood-legendary"] .mb-dot {
  background: rgba(255, 220, 150, 0.3) !important;
}
[data-theme="wood-legendary"] .mb-dot.active {
  background: #FFE0A0 !important;
}

/* Progress bar */
[data-theme="wood-legendary"] .mb-progress-bar {
  background: rgba(20, 8, 0, 0.3) !important;
}

/* ============================================
   LISIBILITÉ CARTES BOIS FONCÉ — Bottom dashboard
   Override final
   ============================================ */

/* 1. Titres de cartes */
[data-theme="wood-legendary"] .db-chart-title,
[data-theme="wood-legendary"] .db-card .db-panel-title {
  color: #FFF0C0 !important;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.8), 0px 1px 0px rgba(0,0,0,0.6) !important;
  font-weight: 700 !important;
}

/* 2. Labels majuscules (badges) */
[data-theme="wood-legendary"] .db-chart-badge {
  color: #FFD980 !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.85) !important;
  letter-spacing: 0.06em !important;
}

/* 3. Noms des tâches dans activité récente */
[data-theme="wood-legendary"] .db-act-text {
  color: #FFECC0 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.75) !important;
  font-weight: 600 !important;
}

/* 4. Sous-textes (catégories, statuts) */
[data-theme="wood-legendary"] .db-act-meta,
[data-theme="wood-legendary"] .db-act-time {
  color: rgba(255, 220, 150, 0.8) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}

/* 5. Légende Répartition donut */
[data-theme="wood-legendary"] .db-donut-legend,
[data-theme="wood-legendary"] .db-donut-legend span,
[data-theme="wood-legendary"] .db-chart-card .legend,
[data-theme="wood-legendary"] .db-chart-card .legend span {
  color: #FFE8A0 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* 6. Labels graphiques SVG (dates, jours) */
[data-theme="wood-legendary"] .db-chart-card text,
[data-theme="wood-legendary"] .db-chart-card tspan {
  fill: rgba(255, 215, 130, 0.85) !important;
}

/* Centre donut */
[data-theme="wood-legendary"] .db-chart-card text[text-anchor="middle"] {
  fill: #FFF0C0 !important;
  font-weight: 700;
}

/* Progression textes */
[data-theme="wood-legendary"] .db-prog-rate,
[data-theme="wood-legendary"] .db-prog-wrap {
  color: #FFF0C0 !important;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.8), 0px 1px 0px rgba(0,0,0,0.6) !important;
}

/* ============================================
   BRIEF DU JOUR — Fix texture visible + texte gravé sombre
   Override final absolu
   ============================================ */

/* 1. Carte principale — texture bois visible, PAS d'overlay */
[data-theme="wood-legendary"] .db-brief-panel {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: transparent !important;
  border-radius: 20px !important;
}
[data-theme="wood-legendary"] .db-brief-panel::before {
  background: transparent !important;
}
[data-theme="wood-legendary"] .mb-container {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: transparent !important;
  border-radius: 20px !important;
}

/* 2. Textes */
/* Titre "Ton Brief du Jour" */
[data-theme="wood-legendary"] .mb-header-left,
[data-theme="wood-legendary"] .mb-slide-title {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
  font-weight: 800 !important;
}

/* Sous-titre date */
[data-theme="wood-legendary"] .mb-slide-subtitle {
  color: rgba(50, 22, 0, 0.65) !important;
  text-shadow: none !important;
}

/* Corps du texte */
[data-theme="wood-legendary"] .mb-slide-body,
[data-theme="wood-legendary"] .mb-slide-content,
[data-theme="wood-legendary"] .mb-context-list,
[data-theme="wood-legendary"] .mb-conseil-text,
[data-theme="wood-legendary"] .mb-event-title,
[data-theme="wood-legendary"] .mb-event-time,
[data-theme="wood-legendary"] .mb-no-events,
[data-theme="wood-legendary"] .mb-streak-count,
[data-theme="wood-legendary"] .mb-revenue-val {
  color: #2A1200 !important;
  text-shadow: 0px 1px 2px rgba(255,180,70,0.3) !important;
}

/* Titres de sections (État des lieux, Priorités du jour) */
[data-theme="wood-legendary"] .mb-section-title {
  color: #3B1A00 !important;
  font-weight: 700 !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.35) !important;
}

/* Stat values */
[data-theme="wood-legendary"] .mb-stat-val {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}

/* Stat labels */
[data-theme="wood-legendary"] .mb-stat-label {
  color: #3B1A00 !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.35) !important;
}

/* 3. Sous-cartes internes */
[data-theme="wood-legendary"] .mb-stat-card {
  background: rgba(20, 8, 0, 0.25) !important;
  border-radius: 12px !important;
}

/* Badges */
[data-theme="wood-legendary"] .mb-conseil-badge {
  color: #3B1A00 !important;
}

/* Nav buttons sur bois moyen */
[data-theme="wood-legendary"] .mb-nav-btn,
[data-theme="wood-legendary"] .mb-skip-btn,
[data-theme="wood-legendary"] .mb-start-btn,
[data-theme="wood-legendary"] .mb-tts-btn {
  background: rgba(20, 8, 0, 0.15) !important;
  color: #3B1A00 !important;
  border: 1px solid rgba(59, 26, 0, 0.2) !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.3) !important;
}

/* Dots sur bois moyen */
[data-theme="wood-legendary"] .mb-dot {
  background: rgba(59, 26, 0, 0.25) !important;
}
[data-theme="wood-legendary"] .mb-dot.active {
  background: #3B1A00 !important;
}

/* Labels graphiques — gravé sombre sur bois */
[data-theme=wood-legendary] .db-chart-card text,
[data-theme=wood-legendary] .db-chart-card tspan {
  fill: #1A0800 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .db-chart-card text[text-anchor="middle"] {
  fill: #1A0800 !important;
  font-weight: 700 !important;
}

/* Force TOUT texte gris/muted en brun foncé sur bois */
[data-theme=wood-legendary] .db-chart-card *,
[data-theme=wood-legendary] .db-card *,
[data-theme=wood-legendary] .db-kpi-big *,
[data-theme=wood-legendary] .db-kpi-small *,
[data-theme=wood-legendary] .db-actions-panel *,
[data-theme=wood-legendary] .db-brief-panel *,
[data-theme=wood-legendary] .mb-container * {
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .db-chart-card svg text,
[data-theme=wood-legendary] .db-chart-card svg tspan {
  fill: #2A1200 !important;
}
