
/* ═══════════════════════════════════════════════════════
   PRESTIGE — Remapping variables legacy (étaient dans :root des pages)
   Maintenant centralisées ici pour tous les modes
   ═══════════════════════════════════════════════════════ */
[data-theme="prestige"],
:root {
  /* Palette Prestige complète */
  --gold:       #C9A84C;
  --gold-l:     #E8C97A;
  --navy:       #0F1628;
  --navy-mid:   #1A2542;
  --navy-light: #243156;
  --navy-card:  #1A2542;
  --cream:      #F4F0E8;
  --red:        #C8102E;
  --muted:      rgba(244,240,232,0.5);
  --muted2:     rgba(244,240,232,0.22);
  --border:     rgba(201,168,76,0.15);
  --border-h:   rgba(201,168,76,0.45);
  --green:      #1E7A47;
  --green-l:    rgba(30,122,71,0.15);
  --light:      rgba(244,240,232,0.85);
  --sidebar:    #0B1220;
}

/**
 * HORLOGIS — Système de Modes Visuels Premium
 * Prestige · Atelier · Lecture
 * Phase PREMIUM +++++++
 */

/* ═══════════════════════════════════════════
   MODE PRESTIGE (défaut — dark luxe confidentiel)
   ═══════════════════════════════════════════ */
[data-theme="prestige"],
:root {
  /* Fonds */
  --bg:           #07111f;
  --bg-surface:   rgba(255,255,255,0.025);
  --bg-surface-md:rgba(255,255,255,0.04);
  --bg-elevated:  #10243d;
  --bg-input:     rgba(255,255,255,0.03);

  /* Textes */
  --text-primary: #f5f0e6;
  --text-secondary:rgba(245,240,230,0.65);
  --text-muted:   rgba(245,240,230,0.35);
  --text-inverse: #07111f;

  /* Accents */
  --accent:       #c9a84c;
  --accent-soft:  rgba(201,168,76,0.6);
  --accent-dim:   rgba(201,168,76,0.18);
  --accent-bg:    rgba(201,168,76,0.06);

  /* Bordures */
  --border:       rgba(255,255,255,0.07);
  --border-md:    rgba(255,255,255,0.12);
  --border-accent:rgba(201,168,76,0.28);

  /* Sémantiques */
  --success:      #4caf87;
  --success-bg:   rgba(76,175,135,0.08);
  --danger:       #d96b6b;
  --danger-bg:    rgba(217,107,107,0.08);
  --warning:      #c9a84c;

  /* Typographie */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-mono:    'Rajdhani', 'DIN Condensed', sans-serif;
  --font-body:    'Raleway', system-ui, sans-serif;

  /* Nombres / KPIs — Prestige */
  --number-size-base: 24px;
  --number-size-xl:   36px;
  --number-weight:    700;
  --kpi-bg:       rgba(255,255,255,0.02);

  /* Ombres */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.30);
  --shadow-md:    0 8px 28px rgba(0,0,0,0.40);
  --shadow-lg:    0 20px 56px rgba(0,0,0,0.55);

  /* Transitions */
  --transition:   0.18s ease;

  /* Mode ID */
  --mode-name:    'Prestige';
}

/* ═══════════════════════════════════════════
   MODE ATELIER (clair professionnel — usage quotidien)
   ═══════════════════════════════════════════ */

/* Sidebar en Atelier */

/* Tables Atelier */

/* ═══════════════════════════════════════════
   MODE LECTURE (contraste renforcé — décision / projecteur)
   ═══════════════════════════════════════════ */
[data-theme="lecture"] {
  /* Fonds */
  --bg:           #0d0d0d;
  --bg-surface:   rgba(255,255,255,0.04);
  --bg-surface-md:rgba(255,255,255,0.06);
  --bg-elevated:  #1a1a1a;
  --bg-input:     rgba(255,255,255,0.06);

  /* Textes — contraste maximum */
  --text-primary: #ffffff;
  --text-secondary:rgba(255,255,255,0.80);
  --text-muted:   rgba(255,255,255,0.50);
  --text-inverse: #0d0d0d;

  /* Accents — plus lumineux */
  --accent:       #e4c46a;
  --accent-soft:  rgba(228,196,106,0.8);
  --accent-dim:   rgba(228,196,106,0.25);
  --accent-bg:    rgba(228,196,106,0.08);

  /* Bordures — plus visibles */
  --border:       rgba(255,255,255,0.14);
  --border-md:    rgba(255,255,255,0.22);
  --border-accent:rgba(228,196,106,0.40);

  /* Sémantiques — plus contrastés */
  --success:      #5ddd9f;
  --success-bg:   rgba(93,221,159,0.12);
  --danger:       #ff7070;
  --danger-bg:    rgba(255,112,112,0.12);
  --warning:      #e4c46a;

  /* KPIs Lecture — chiffres GRANDS */
  --number-size-base: 32px;
  --number-size-xl:   52px;
  --number-weight:    800;
  --kpi-bg:       rgba(255,255,255,0.04);

  /* Ombres */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.60);
  --shadow-md:    0 8px 28px rgba(0,0,0,0.70);
  --shadow-lg:    0 20px 56px rgba(0,0,0,0.80);
}

/* Tables Lecture — plus denses, plus lisibles */
[data-theme="lecture"] .h-data-table {
  font-size: 15px !important;
}
[data-theme="lecture"] .h-data-table td,
[data-theme="lecture"] .h-data-table th {
  padding: 14px 16px !important;
}
[data-theme="lecture"] .h-kpi-value,
[data-theme="lecture"] .h-number-xl {
  font-size: var(--number-size-xl) !important;
  letter-spacing: -1px;
}

/* ═══════════════════════════════════════════
   CLASSES COMMUNES — s'adaptent aux 3 modes
   ═══════════════════════════════════════════ */

/* Backgrounds adaptatifs */
body { background: var(--bg); color: var(--text-primary); transition: background var(--transition), color var(--transition); }
.h-surface   { background: var(--bg-surface);    border: 1px solid var(--border); }
.h-surface-md{ background: var(--bg-surface-md); border: 1px solid var(--border-md); }
.h-elevated  { background: var(--bg-elevated);   border: 1px solid var(--border-md); }

/* Textes */
.h-text-primary   { color: var(--text-primary); }
.h-text-secondary { color: var(--text-secondary); }
.h-text-muted     { color: var(--text-muted); }
.h-text-accent    { color: var(--accent); }
.h-text-success   { color: var(--success); }
.h-text-danger    { color: var(--danger); }

/* ─── NOMBRES ET KPIs ─── */
.h-number {
  font-family: var(--font-mono);
  font-size: var(--number-size-base);
  font-weight: var(--number-weight);
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.h-number-xl {
  font-family: var(--font-mono);
  font-size: var(--number-size-xl);
  font-weight: var(--number-weight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.h-number-accent  { color: var(--accent); }
.h-number-success { color: var(--success); }
.h-number-warning { color: var(--warning); }
.h-number-danger  { color: var(--danger); }

/* ─── KPI CARDS ─── */
.h-kpi-card {
  background: var(--kpi-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}
.h-kpi-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.h-kpi-value {
  font-family: var(--font-mono);
  font-size: var(--number-size-xl);
  font-weight: var(--number-weight);
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.h-kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── BADGES ─── */
.h-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--border-accent);
  background: var(--accent-bg);
  color: var(--accent);
  flex-shrink: 0;
}
.h-score-badge.high   { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.h-score-badge.medium { border-color: var(--accent);  background: var(--accent-bg);  color: var(--accent); }
.h-score-badge.low    { border-color: var(--border);   background: transparent; color: var(--text-muted); }

.h-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid;
}
.h-risk-badge.low    { color: var(--success); background: var(--success-bg); border-color: rgba(76,175,135,0.25); }
.h-risk-badge.medium { color: var(--warning); background: var(--accent-bg);  border-color: var(--accent-dim); }
.h-risk-badge.high   { color: var(--danger);  background: var(--danger-bg);  border-color: rgba(217,107,107,0.25); }

/* ─── TABLES DONNÉES ─── */
.h-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 13px;
}
.h-data-table thead tr {
  border-bottom: 2px solid var(--border-md);
}
.h-data-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}
.h-data-table th.h-align-right { text-align: right; }
.h-data-table td {
  padding: 11px 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.h-data-table td.h-num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.h-data-table tr.h-row-best td {
  background: var(--accent-bg);
}
.h-data-table tr.h-row-best td:first-child {
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}
.h-data-table tr:hover td {
  background: var(--bg-surface-md);
}
.h-data-table tr:last-child td { border-bottom: none; }

/* ─── SÉLECTEUR DE MODE ─── */
.h-mode-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.h-mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.h-mode-btn:hover {
  background: var(--bg-surface-md);
  color: var(--text-secondary);
}
.h-mode-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.h-mode-btn:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
}

/* ─── BOUTONS ADAPTATIFS ─── */
.h-btn-primary {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
}
.h-btn-primary:hover {
  background: rgba(201,168,76,0.20);
  border-color: var(--accent-soft);
}

/* ─── CARDS ADAPTATIFS ─── */
.h-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  transition: var(--transition);
}
.h-card-hover:hover {
  border-color: var(--border-accent);
  background: var(--accent-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ─── INPUTS ─── */
.h-input {
  background: var(--bg-input);
  border: 1px solid var(--border-md);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.h-input:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-dim);
  outline: none;
  background: var(--bg-surface-md);
}

/* ─── TRANSITIONS DE MODE ─── */
*, *::before, *::after {
  transition-property: background-color, border-color, color;
  transition-duration: 0.22s;
  transition-timing-function: ease;
}
/* Exclure les transitions sur animations existantes */
.h-timeline-dot, .score-progress-circle, .ob-dot, .demo-step-num {
  transition: all 0.3s ease !important;
}

/* ─── OVERRIDES ATELIER — forcer lisibilité sur tous les composants ─── */

/* Labels, headers de tableau, sous-titres : forcer text-muted lisible */

/* Descriptions et textes secondaires */

/* Chiffres et KPIs — toujours très contrastés */

/* Cards et surfaces */

/* Chips de match : vert foncé sur fond clair */

/* Table comparateur */

/* Inputs */

/* Badges */

/* Boutons */

/* Score ring */

/* Navigation items dans sidebar sombre — garder lisibles */

/* ─── ATELIER: Remapping variables legacy Prestige → lisibles sur fond clair ─── */
/* Ces variables sont utilisées dans les styles inline (var(--h-cream), etc.) */

/* ─── LECTURE: Remapping variables legacy ─── */
[data-theme="lecture"] {
  --h-cream:  #ffffff;
  --h-muted:  rgba(255,255,255,0.55);
  --h-steel:  rgba(255,255,255,0.65);
  --h-gold:   #e4c46a;
  --h-border: rgba(255,255,255,0.15);
}

/* ─── ATELIER: Couleurs directes sur composants démo (évite problème cascade variables) ─── */

/* ─── LECTURE: Liens nav ─── */
[data-theme="lecture"] .demo-nav-link {
  color: #e4c46a !important;
  border-color: rgba(228,196,106,0.40) !important;
}
[data-theme="lecture"] .demo-logo { color: #e4c46a !important; }

/* ═══════════════════════════════════════════════════════
   ATELIER — Remapping COMPLET variables Prestige legacy
   Couvre les pages app (dashboard, rfq, profil, etc.)
   ═══════════════════════════════════════════════════════ */

/* Corps de page Atelier — hérite du fond clair */

/* ─── Éléments app critiques ─── */

/* Topbar / Header des pages app */

/* Role toggle */

/* Section labels sidebar */

/* Contenu principal — zone claire */

/* Steps wizard (rfq.html) */

/* Cards cockpit */

/* Textes dynamiques générés par JS (inline style color:var(--cream)) */

/* Toasts en mode Atelier */

/* Skip nav — cacher du check (hidden hors focus, normal) */
.h-skip-nav {
  color: var(--text-inverse, #07111f) !important;
  background: var(--accent, #c9a84c) !important;
}

/* ─── LECTURE — Remapping variables legacy ─── */
[data-theme="lecture"] {
  --cream:    #ffffff;
  --muted:    rgba(255,255,255,0.55);
  --muted2:   rgba(255,255,255,0.45);
  --gold:     #e4c46a;
  --gold-l:   rgba(228,196,106,0.3);
  --navy:     #0d0d0d;
  --navy-mid: #1a1a1a;
  --navy-card:#1a1a1a;
  --navy-light:#141414;
  --green:    #5ddd9f;
  --green-l:  rgba(93,221,159,0.12);
  --red:      #ff7070;
}

/* ─── FIX VQA: .kpi-label et textes dynamiques semi-transparents Prestige ─── */

/* kpi-label: rgba(244,240,232,0.5) sur fond blanc = invisible → forcer foncé */

/* Textes semi-transparents generés par JS (inline opacity) */

/* Cards KPI en Atelier */

/* Lecture: kpi-label plus lisible */
[data-theme="lecture"] .kpi-label,
[data-theme="lecture"] .h-kpi-label {
  color: rgba(255,255,255,0.65) !important;
}

/* ═══════════════════════════════════════════════════════
   VQA FIX — Éléments dynamiques : .metier-rfq-chip, .f-helper, etc.
   ═══════════════════════════════════════════════════════ */

/* ── RFQ Atelier: chips métiers et helpers ── */

/* ── Section labels dynamiques (ASSEMBLAGE, CONTRÔLE, etc.) ── */

/* ── Inline styles générés (color:rgba(244,240,232,...)) ── */
/* Cibler via attribut style pour les cas non couverts par les variables */

/* ── Dashboard KPI inline styles ── */
/* Les valeurs KPI utilisent color:var(--cream) en inline */

/* ── Lecture: mêmes éléments mais fond sombre → texte clair ── */
[data-theme="lecture"] .metier-rfq-chip,
[data-theme="lecture"] [class*="rfq-chip"],
[data-theme="lecture"] [class*="metier-chip"] {
  color: rgba(255,255,255,0.85) !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.18) !important;
}
[data-theme="lecture"] .f-helper,
[data-theme="lecture"] [class*="helper"] {
  color: rgba(255,255,255,0.55) !important;
}

/* ─── Profil: labels dans cards claires (complétude, résumé) ─── */
/* Ces éléments ont un fond clair quelle que soit le mode → forcer lisibilité */
[data-theme="prestige"] .profil-card-label,
[data-theme="prestige"] .completion-label,
[data-theme="prestige"] [style*="rgba(244, 240, 232, 0.3)"],
[data-theme="prestige"] [style*="rgba(244,240,232,0.3)"] {
  color: rgba(244,240,232,0.6) !important; /* légèrement plus opaque */
}
[data-theme="lecture"] .profil-card-label,
[data-theme="lecture"] .completion-label {
  color: rgba(255,255,255,0.65) !important;
}
/* ╔══════════════════════════════════════════════════════════╗
   ║  MODE ATELIER — Professionnel Premium                   ║
   ║  Lisible · Contrasté · Relief · Usage quotidien         ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── 1. Palette fondamentale ── */
[data-theme="atelier"] {
  /* Fonds */
  --bg:            #f4f1ea;   /* ivoire chaud net */
  --bg-surface:    #ffffff;   /* blanc pur — cartes */
  --bg-surface-md: #f7f8fa;   /* gris froid ultra-léger */
  --bg-surface-3:  #eef1f4;   /* gris bleuté clair */
  --bg-elevated:   #ffffff;
  --bg-input:      #ffffff;

  /* Textes — contrastes WCAG AAA */
  --text-primary:    #101827;  /* marine très foncé — ratio 18:1 sur #fff */
  --text-secondary:  #253044;  /* marine foncé */
  --text-muted:      #475569;  /* ardoise foncée — ratio 6.3:1 */
  --text-inverse:    #ffffff;

  /* Accents — or foncé industriel */
  --accent:          #6f4f12;  /* or foncé — ratio 7.1:1 sur blanc */
  --accent-soft:     rgba(111,79,18,0.80);
  --accent-dim:      rgba(111,79,18,0.18);
  --accent-bg:       rgba(111,79,18,0.07);

  /* Bordures — acier visible */
  --border:          #c7ced8;  /* gris acier clair — visible */
  --border-md:       #9aa6b5;  /* gris acier moyen */
  --border-accent:   rgba(111,79,18,0.40);

  /* Sémantiques — version clair */
  --success:         #146040;  /* vert forêt — ratio 7.5:1 */
  --success-bg:      rgba(20,96,64,0.08);
  --danger:          #9f2f2f;  /* rouge bordeaux — ratio 7.2:1 */
  --danger-bg:       rgba(159,47,47,0.08);
  --warning:         #6f4f12;

  /* Variables legacy pages app */
  --gold:            #6f4f12;
  --gold-l:          #8a6520;
  --navy:            #f4f1ea;
  --navy-mid:        #ffffff;
  --navy-card:       #ffffff;
  --navy-light:      #f7f8fa;
  --cream:           #101827;
  --muted:           #475569;
  --muted2:          #64748b;
  --border-h:        #c7ced8;
  --light:           #101827;
  --green:           #146040;
  --green-l:         rgba(20,96,64,0.10);
  --red:             #9f2f2f;
  --sidebar:         #0c1f35;

  /* H-tokens legacy */
  --h-cream:         #101827;
  --h-muted:         #475569;
  --h-steel:         #334155;
  --h-gold:          #6f4f12;
  --h-border:        #c7ced8;
  --h-success:       #146040;
  --h-danger:        #9f2f2f;
  --h-navy:          #f4f1ea;
  --h-navy-mid:      #ffffff;
  --h-navy-light:    #f7f8fa;

  /* KPIs — chiffres grands */
  --number-size-base: 28px;
  --number-size-xl:   44px;
  --number-weight:    800;
  --kpi-bg:           #ffffff;

  /* Ombres — relief présent */
  --shadow-sm:  0 2px 8px rgba(15,23,42,0.07);
  --shadow-md:  0 8px 24px rgba(15,23,42,0.10);
  --shadow-lg:  0 16px 40px rgba(15,23,42,0.14);
  --shadow-card:0 10px 28px rgba(15,23,42,0.08);

  /* Fonts */
  --font-serif:  'Cormorant Garamond',Georgia,serif;
  --font-mono:   'Rajdhani','DIN Condensed',sans-serif;
  --font-body:   'Raleway',system-ui,sans-serif;

  --transition: 0.18s ease;
}

/* ── 2. Body + page ── */
[data-theme="atelier"] body {
  background: var(--bg);
  color: var(--text-primary);
}

/* ── 3. Sidebar — reste sombre ── */
[data-theme="atelier"] .sidebar,
[data-theme="atelier"] #sidebar {
  background: #0c1f35 !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
}
[data-theme="atelier"] .sb-section-label,
[data-theme="atelier"] .nav-label,
[data-theme="atelier"] .sb-section-label * {
  color: rgba(245,240,230,0.45) !important;
}
[data-theme="atelier"] .nav-item,
[data-theme="atelier"] .nav-item * { color: rgba(245,240,230,0.80) !important; }
[data-theme="atelier"] .nav-item:hover,
[data-theme="atelier"] .nav-item.active,
[data-theme="atelier"] .nav-item:hover *,
[data-theme="atelier"] .nav-item.active * {
  background: rgba(111,79,18,0.15) !important;
  color: #f5f0e6 !important;
}
[data-theme="atelier"] .rt-btn { color: rgba(245,240,230,0.80) !important; }
[data-theme="atelier"] .rt-btn.active {
  color: #f5f0e6 !important;
  background: rgba(111,79,18,0.18) !important;
}
[data-theme="atelier"] .sb-section-label { color: rgba(245,240,230,0.42) !important; }
[data-theme="atelier"] .ni-icon, [data-theme="atelier"] .nav-icon {
  color: rgba(245,240,230,0.65) !important;
}
/* Logo sidebar */
[data-theme="atelier"] .sb-logo-text,
[data-theme="atelier"] .sb-logo,
[data-theme="atelier"] .sb-logo span {
  color: #c9a84c !important;
}

/* ── 4. Cards avec relief ── */
[data-theme="atelier"] .h-card,
[data-theme="atelier"] .card,
[data-theme="atelier"] .kpi-card,
[data-theme="atelier"] .activity-card,
[data-theme="atelier"] .rfq-card,
[data-theme="atelier"] .stat-card,
[data-theme="atelier"] .match-card,
[data-theme="atelier"] .cockpit-card-hover,
[data-theme="atelier"] [class*="cockpit-card"],
[data-theme="atelier"] .demo-rfq-card,
[data-theme="atelier"] .demo-info-card,
[data-theme="atelier"] .demo-match-card,
[data-theme="atelier"] .pp-cap-card,
[data-theme="atelier"] .pp-header,
[data-theme="atelier"] .pq-pillar,
[data-theme="atelier"] .pq-number-card,
[data-theme="atelier"] .ob-role-card,
[data-theme="atelier"] .confid-bloc,
[data-theme="atelier"] .info-cell,
[data-theme="atelier"] .metho,
[data-theme="atelier"] .pitch-card,
[data-theme="atelier"] .benefit-list,
[data-theme="atelier"] .garantie-card,
[data-theme="atelier"] .ql-card,
[data-theme="atelier"] .preuve-item,
[data-theme="atelier"] .check-item {
  background:    #ffffff !important;
  border:        1px solid var(--border) !important;
  box-shadow:    0 10px 28px rgba(15,23,42,0.08) !important;
  border-top:    2px solid rgba(111,79,18,0.30) !important;
  color:         var(--text-primary) !important;
}
/* Cards hover */
[data-theme="atelier"] .h-card-hover:hover,
[data-theme="atelier"] .ql-card:hover,
[data-theme="atelier"] .cockpit-card-hover:hover {
  border-color: var(--border-md) !important;
  box-shadow: 0 14px 36px rgba(15,23,42,0.13) !important;
  border-top-color: rgba(111,79,18,0.55) !important;
  transform: translateY(-2px);
}
/* Card gold variant */
[data-theme="atelier"] .card-gold,
[data-theme="atelier"] .demo-info-card:nth-child(2),
[data-theme="atelier"] .pp-confid {
  background: #fffef9 !important;
  border-color: rgba(111,79,18,0.35) !important;
  border-top-color: rgba(111,79,18,0.55) !important;
}

/* ── 5. Textes ── */
[data-theme="atelier"] h1,
[data-theme="atelier"] h2,
[data-theme="atelier"] h3,
[data-theme="atelier"] h4,
[data-theme="atelier"] .h1,
[data-theme="atelier"] .h2,
[data-theme="atelier"] .panel-title,
[data-theme="atelier"] .demo-title,
[data-theme="atelier"] .pq-headline,
[data-theme="atelier"] .ob-title,
[data-theme="atelier"] .report-logo-area .hl {
  color: #101827 !important;
}
[data-theme="atelier"] p,
[data-theme="atelier"] .panel-desc,
[data-theme="atelier"] .demo-subtitle,
[data-theme="atelier"] .pq-tagline,
[data-theme="atelier"] .ob-sub,
[data-theme="atelier"] .lead,
[data-theme="atelier"] .pq-pillar-desc,
[data-theme="atelier"] .pq-section-sub,
[data-theme="atelier"] .ql-desc,
[data-theme="atelier"] .pitch-text,
[data-theme="atelier"] .benefit-item,
[data-theme="atelier"] .score-text {
  color: #253044 !important;
}

/* Labels / muted */
[data-theme="atelier"] .h-section-title,
[data-theme="atelier"] .h-kpi-label,
[data-theme="atelier"] .kpi-label,
[data-theme="atelier"] .demo-field label,
[data-theme="atelier"] .demo-info-card h3,
[data-theme="atelier"] .f-label,
[data-theme="atelier"] .f-helper,
[data-theme="atelier"] .section-title,
[data-theme="atelier"] .section-bar-label,
[data-theme="atelier"] .pitch-label,
[data-theme="atelier"] .benefit-list h3,
[data-theme="atelier"] .garantie-label,
[data-theme="atelier"] .ql-label,
[data-theme="atelier"] .ob-eyebrow,
[data-theme="atelier"] .eyebrow,
[data-theme="atelier"] .report-ref .ref-label,
[data-theme="atelier"] .step-num-label,
[data-theme="atelier"] .step-label,
[data-theme="atelier"] .info-label,
[data-theme="atelier"] .synth-rec-label,
[data-theme="atelier"] .pp-section-title,
[data-theme="atelier"] .pp-score-label,
[data-theme="atelier"] .pp-cap-label,
[data-theme="atelier"] .pq-eyebrow,
[data-theme="atelier"] .pq-number-label,
[data-theme="atelier"] [class*="label"],
[data-theme="atelier"] [class*="muted"],
[data-theme="atelier"] [class*="eyebrow"],
[data-theme="atelier"] [style*="rgba(244, 240, 232"],
[data-theme="atelier"] [style*="rgba(244,240,232"] {
  color: #334155 !important;
}

/* ── 6. Chiffres & KPIs — forts et visibles ── */
[data-theme="atelier"] .h-kpi-value,
[data-theme="atelier"] .kpi-value,
[data-theme="atelier"] .h-number,
[data-theme="atelier"] .h-number-xl,
[data-theme="atelier"] .demo-match-score,
[data-theme="atelier"] .pp-cap-value,
[data-theme="atelier"] .pq-number-val,
[data-theme="atelier"] .synth-rec-val,
[data-theme="atelier"] .report-ref .ref-val,
[data-theme="atelier"] .score-ring-val,
[data-theme="atelier"] .ob-score-val,
[data-theme="atelier"] .pp-score-val {
  color: #6f4f12 !important;
  font-weight: 800 !important;
}
/* KPI cards */
[data-theme="atelier"] .h-kpi-card,
[data-theme="atelier"] .kpi-card,
[data-theme="atelier"] .pp-cap-card,
[data-theme="atelier"] .pq-number-card {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 16px rgba(15,23,42,0.07) !important;
}
/* Score rings */
[data-theme="atelier"] circle[stroke="#c9a84c"],
[data-theme="atelier"] circle[stroke="var(--accent)"] { stroke: #6f4f12 !important; }

/* ── 7. Tableaux ── */
[data-theme="atelier"] .h-data-table,
[data-theme="atelier"] .comp-table,
[data-theme="atelier"] .demo-comp-table,
[data-theme="atelier"] table {
  border-collapse: collapse;
}
[data-theme="atelier"] .h-data-table thead tr,
[data-theme="atelier"] .comp-table thead tr,
[data-theme="atelier"] .demo-comp-table thead tr,
[data-theme="atelier"] table thead tr {
  background: #eef1f4 !important;
  border-bottom: 2px solid var(--border-md) !important;
}
[data-theme="atelier"] .h-data-table th,
[data-theme="atelier"] .comp-table th,
[data-theme="atelier"] .demo-comp-table th,
[data-theme="atelier"] table th {
  color: #334155 !important;
  font-weight: 700 !important;
  background: #eef1f4 !important;
}
[data-theme="atelier"] .h-data-table td,
[data-theme="atelier"] .comp-table td,
[data-theme="atelier"] .demo-comp-table td,
[data-theme="atelier"] table td {
  color: #101827 !important;
  border-color: #c7ced8 !important;
  background: #ffffff !important;
}
[data-theme="atelier"] .h-data-table tr:hover td,
[data-theme="atelier"] .comp-table tr:hover td,
[data-theme="atelier"] .demo-comp-table tr:hover td {
  background: #f7f8fa !important;
}
/* Meilleure offre */
[data-theme="atelier"] .h-data-table tr.h-row-best td,
[data-theme="atelier"] .comp-table tr.best td,
[data-theme="atelier"] .demo-comp-table tr.best td {
  background: rgba(111,79,18,0.05) !important;
}
[data-theme="atelier"] .h-data-table tr.h-row-best td:first-child,
[data-theme="atelier"] .comp-table tr.best td:first-child,
[data-theme="atelier"] .demo-comp-table tr.best td:first-child {
  border-left: 3px solid #6f4f12 !important;
}

/* ── 8. Liens & CTA ── */
[data-theme="atelier"] a:not(.btn):not(.h-btn):not(.ql-card):not(.nav-item) {
  color: #6f4f12 !important;
}
[data-theme="atelier"] a:not(.btn):not(.h-btn):not(.ql-card):not(.nav-item):hover {
  color: #4f3508 !important;
  text-decoration: underline;
}
/* Nav links topbar */
[data-theme="atelier"] .nav-link,
[data-theme="atelier"] .pq-nav-link {
  color: #334155 !important;
}
[data-theme="atelier"] .nav-link:hover,
[data-theme="atelier"] .pq-nav-link:hover { color: #101827 !important; }

/* Demo nav links */
[data-theme="atelier"] .demo-nav-link {
  color: #6f4f12 !important;
  border-color: rgba(111,79,18,0.45) !important;
  background: rgba(111,79,18,0.06) !important;
  font-weight: 700 !important;
}
[data-theme="atelier"] .demo-nav-link:hover {
  background: rgba(111,79,18,0.14) !important;
  border-color: rgba(111,79,18,0.65) !important;
}
/* Boutons */
[data-theme="atelier"] .h-btn-primary,
[data-theme="atelier"] .btn-primary,
[data-theme="atelier"] .btn-p,
[data-theme="atelier"] .pp-cta-primary,
[data-theme="atelier"] .pq-btn-primary {
  color: #6f4f12 !important;
  border-color: rgba(111,79,18,0.50) !important;
  background: rgba(111,79,18,0.10) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(111,79,18,0.12) !important;
}
[data-theme="atelier"] .h-btn-primary:hover,
[data-theme="atelier"] .btn-primary:hover,
[data-theme="atelier"] .btn-p:hover {
  background: rgba(111,79,18,0.18) !important;
  box-shadow: 0 4px 16px rgba(111,79,18,0.20) !important;
}
[data-theme="atelier"] .h-btn-ghost,
[data-theme="atelier"] .btn-ghost,
[data-theme="atelier"] .btn-g,
[data-theme="atelier"] .pp-cta-ghost {
  color: #334155 !important;
  border-color: #9aa6b5 !important;
  background: transparent !important;
}
[data-theme="atelier"] .h-btn-ghost:hover,
[data-theme="atelier"] .btn-ghost:hover,
[data-theme="atelier"] .btn-g:hover {
  color: #101827 !important;
  border-color: #6f4f12 !important;
  background: rgba(111,79,18,0.05) !important;
}

/* ── 9. Logo HORLOGIS ── */
[data-theme="atelier"] .nav-logo,
[data-theme="atelier"] .demo-logo,
[data-theme="atelier"] .pq-logo,
[data-theme="atelier"] .pp-logo,
[data-theme="atelier"] .ob-logo,
[data-theme="atelier"] .bdc-logo,
[data-theme="atelier"] .report-logo-area .hl {
  color: #6f4f12 !important;
  font-weight: 700 !important;
}

/* ── 10. Inputs & formulaires ── */
[data-theme="atelier"] input,
[data-theme="atelier"] textarea,
[data-theme="atelier"] select,
[data-theme="atelier"] .h-input,
[data-theme="atelier"] .f-input,
[data-theme="atelier"] .demo-field-val,
[data-theme="atelier"] .info-val {
  background: #ffffff !important;
  border-color: #c7ced8 !important;
  color: #101827 !important;
}
[data-theme="atelier"] input:focus,
[data-theme="atelier"] textarea:focus,
[data-theme="atelier"] .h-input:focus,
[data-theme="atelier"] .f-input:focus {
  border-color: #6f4f12 !important;
  box-shadow: 0 0 0 2px rgba(111,79,18,0.18) !important;
  outline: none !important;
}
[data-theme="atelier"] input::placeholder,
[data-theme="atelier"] textarea::placeholder { color: #64748b !important; }

/* ── 11. Badges & chips ── */
[data-theme="atelier"] .h-badge,
[data-theme="atelier"] .h-badge-gold,
[data-theme="atelier"] .pp-badge-gold,
[data-theme="atelier"] .tag-gold,
[data-theme="atelier"] .demo-chip {
  color: #6f4f12 !important;
  background: rgba(111,79,18,0.09) !important;
  border-color: rgba(111,79,18,0.45) !important;
  font-weight: 700 !important;
}
[data-theme="atelier"] .h-badge-success,
[data-theme="atelier"] .pp-badge-green,
[data-theme="atelier"] .tag-green,
[data-theme="atelier"] .demo-match-reason {
  color: #146040 !important;
  background: rgba(20,96,64,0.09) !important;
  border-color: rgba(20,96,64,0.40) !important;
}
[data-theme="atelier"] .h-badge-danger,
[data-theme="atelier"] .tag-danger { color: #9f2f2f !important; }
[data-theme="atelier"] .metier-rfq-chip,
[data-theme="atelier"] [class*="rfq-chip"],
[data-theme="atelier"] .ob-chip {
  color: #253044 !important;
  background: #f7f8fa !important;
  border-color: #c7ced8 !important;
}
[data-theme="atelier"] .metier-rfq-chip.selected,
[data-theme="atelier"] .ob-chip.selected {
  color: #6f4f12 !important;
  background: rgba(111,79,18,0.10) !important;
  border-color: rgba(111,79,18,0.50) !important;
}
/* Passeport badges */
[data-theme="atelier"] .pp-badge-blue { color: #1e4d8c !important; border-color: rgba(30,77,140,0.35) !important; }
[data-theme="atelier"] .pp-badge-red  { color: #9f2f2f !important; border-color: rgba(159,47,47,0.35) !important; }

/* ── 12. Topbar / Header app ── */
[data-theme="atelier"] .topbar,
[data-theme="atelier"] .tb-wrap,
[data-theme="atelier"] #topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #c7ced8 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.07) !important;
  color: #101827 !important;
}
[data-theme="atelier"] .tb-page-title { color: #101827 !important; font-weight: 700 !important; }
[data-theme="atelier"] .tb-cancel     { color: #334155 !important; border-color: #c7ced8 !important; }

/* ── 13. Demo steps ── */
[data-theme="atelier"] .demo-steps  { border-color: #c7ced8 !important; }
[data-theme="atelier"] .demo-step-label { color: #253044 !important; }
[data-theme="atelier"] .demo-step-num   { color: #475569 !important; border-color: #c7ced8 !important; }
[data-theme="atelier"] .demo-step-item.active .demo-step-num {
  color: #6f4f12 !important; border-color: #6f4f12 !important;
  background: rgba(111,79,18,0.12) !important;
}
[data-theme="atelier"] .demo-step-item.done .demo-step-num {
  color: #146040 !important; border-color: #146040 !important;
}
[data-theme="atelier"] .demo-step-connector { background: #c7ced8 !important; }
/* Demo banner Atelier */
[data-theme="atelier"] .demo-banner {
  background: linear-gradient(90deg,rgba(111,79,18,0.12),rgba(111,79,18,0.05)) !important;
  border-bottom-color: rgba(111,79,18,0.30) !important;
  color: #6f4f12 !important;
}
[data-theme="atelier"] .demo-dot { background: #6f4f12 !important; }
[data-theme="atelier"] #demo-autoplay-bar {
  background: rgba(111,79,18,0.06) !important;
  border-bottom-color: rgba(111,79,18,0.25) !important;
}

/* ── 14. Mode switcher ── */
[data-theme="atelier"] .h-mode-btn       { color: #475569 !important; }
[data-theme="atelier"] .h-mode-btn:hover { color: #101827 !important; }
[data-theme="atelier"] .h-mode-btn.active {
  background: rgba(111,79,18,0.12) !important;
  color: #6f4f12 !important;
}
[data-theme="atelier"] .h-mode-switcher  { background: #f7f8fa !important; border-color: #c7ced8 !important; }

/* ── 15. Navigation nav (pages publiques) ── */
[data-theme="atelier"] .nav {
  background: #ffffff !important;
  border-bottom: 1px solid #c7ced8 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06) !important;
}

/* ── 16. Onboarding ── */
[data-theme="atelier"] .ob-role-card {
  border: 2px solid #c7ced8 !important;
  background: #ffffff !important;
}
[data-theme="atelier"] .ob-role-card:hover,
[data-theme="atelier"] .ob-role-card.selected {
  border-color: #6f4f12 !important;
  box-shadow: 0 6px 20px rgba(111,79,18,0.12) !important;
}
[data-theme="atelier"] .ob-role-label { color: #101827 !important; }
[data-theme="atelier"] .ob-role-desc  { color: #475569 !important; }
[data-theme="atelier"] .ob-dot        { background: #c7ced8 !important; }
[data-theme="atelier"] .ob-dot.active { background: #6f4f12 !important; width: 24px; border-radius: 4px; }
[data-theme="atelier"] .ob-dot.done   { background: rgba(111,79,18,0.45) !important; }

/* ── 17. Score SVG rings ── */
[data-theme="atelier"] svg circle[stroke="var(--accent)"],
[data-theme="atelier"] svg circle[stroke="var(--gold)"],
[data-theme="atelier"] #ob-score-circle { stroke: #6f4f12 !important; }
[data-theme="atelier"] .ob-score-val    { color: #6f4f12 !important; }

/* ── 18. Dividers ── */
[data-theme="atelier"] .divider,
[data-theme="atelier"] .h-divider,
[data-theme="atelier"] hr { border-color: #c7ced8 !important; background: #c7ced8 !important; }

/* ── 19. Toasts & statuts dynamiques ── */
[data-theme="atelier"] #w3-toast-container > div {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12) !important;
  color: #101827 !important;
}

/* ── 20. Cockpit sections (dashboard) ── */
[data-theme="atelier"] .cockpit-section     { color: #101827 !important; }
[data-theme="atelier"] .cockpit-section *   { color: inherit !important; }
/* Overrides inline styles dynamiques */
[data-theme="atelier"] [style*="color:var(--cream)"],
[data-theme="atelier"] [style*="color: var(--cream)"]  { color: #101827 !important; }
[data-theme="atelier"] [style*="color:var(--muted)"],
[data-theme="atelier"] [style*="color: var(--muted)"]  { color: #475569 !important; }
[data-theme="atelier"] [style*="color:var(--gold)"],
[data-theme="atelier"] [style*="color: var(--gold)"]   { color: #6f4f12 !important; }
[data-theme="atelier"] [style*="color:var(--muted2)"],
[data-theme="atelier"] [style*="color: var(--muted2)"] { color: #64748b !important; }
[data-theme="atelier"] [style*="rgba(244, 240, 232"],
[data-theme="atelier"] [style*="rgba(244,240,232"]     { color: #475569 !important; }
[data-theme="atelier"] [style*="background:var(--navy-mid)"],
[data-theme="atelier"] [style*="background: var(--navy-mid)"] { background: #ffffff !important; }
[data-theme="atelier"] [style*="background:var(--navy-light)"],
[data-theme="atelier"] [style*="background: var(--navy-light)"] { background: #f7f8fa !important; }
[data-theme="atelier"] [style*="border-color:var(--border)"],
[data-theme="atelier"] [style*="border-color: var(--border)"] { border-color: #c7ced8 !important; }
[data-theme="atelier"] [style*="background:rgba(255,255,255,0.025)"],
[data-theme="atelier"] [style*="background: rgba(255,255,255,0.025)"] { background: #ffffff !important; }

/* ── 21. Section bar accent ── */
[data-theme="atelier"] .section-bar-line,
[data-theme="atelier"] .h-section-bar { background: #6f4f12 !important; }

/* ── 22. Passeport header ── */
[data-theme="atelier"] .pp-header::before { background: linear-gradient(90deg,#6f4f12,rgba(111,79,18,0.2)) !important; }
[data-theme="atelier"] .pp-avatar { border-color: rgba(111,79,18,0.50) !important; }
[data-theme="atelier"] .pp-name   { color: #101827 !important; }
[data-theme="atelier"] .pp-meta   { color: #253044 !important; }
[data-theme="atelier"] .pp-alias  { color: #6f4f12 !important; }
[data-theme="atelier"] .pp-section-bar { background: #6f4f12 !important; }
[data-theme="atelier"] .pp-chip         { color: #253044 !important; background: #f7f8fa !important; border-color: #c7ced8 !important; }
[data-theme="atelier"] .pp-chip.maitrise{ color: #6f4f12 !important; background: rgba(111,79,18,0.09) !important; border-color: rgba(111,79,18,0.40) !important; }

/* ── 23. Rapport-demo watermark ── */
[data-theme="atelier"] .watermark { color: #c7ced8 !important; }

/* ── 24. Confidentialité — timeline ── */
[data-theme="atelier"] .tl-step { border-color: #c7ced8 !important; }

/* ── 25. Success/danger states ── */
[data-theme="atelier"] .preuve-check  { color: #146040 !important; }
[data-theme="atelier"] .score-icon[style*="#4caf87"] { color: #146040 !important; }
[data-theme="atelier"] .confid-bloc { background: rgba(20,96,64,0.06) !important; border-color: rgba(20,96,64,0.30) !important; }
[data-theme="atelier"] .check-item .chk { border-color: #6f4f12 !important; }


/* ╔══════════════════════════════════════════════════════════╗
   ║  ATELIER PHASE 2 — Comparateur, Dashboard, RFQ, Onboard ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── PRIORITÉ 1: COMPARATEUR — override les !important hardcodés ── */

/* Override les classes hardcodées dans comparateur.html */
[data-theme="atelier"] .app-wrapper {
  background: #f4f1ea !important;
}
[data-theme="atelier"] .side-nav,
[data-theme="atelier"] .sidebar { background: #0c1f35 !important; }
[data-theme="atelier"] .top-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #c7ced8 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.07) !important;
}
[data-theme="atelier"] .main-content {
  background: #f4f1ea !important;
}

/* Panels et cartes comparateur */
[data-theme="atelier"] .panel,
[data-theme="atelier"] .comp-panel,
[data-theme="atelier"] .lc-section,
[data-theme="atelier"] .rfq-selector {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-top: 2px solid rgba(111,79,18,0.30) !important;
  box-shadow: 0 6px 20px rgba(15,23,42,0.08) !important;
  border-radius: 8px !important;
  margin-bottom: 12px !important;
  padding: 16px !important;
}
[data-theme="atelier"] .rfq-selector { cursor: pointer; transition: all 0.18s; }
[data-theme="atelier"] .rfq-selector:hover {
  border-color: #9aa6b5 !important;
  box-shadow: 0 8px 28px rgba(15,23,42,0.12) !important;
}
[data-theme="atelier"] .rfq-selector.active,
[data-theme="atelier"] .rfq-selector.selected {
  border-color: rgba(111,79,18,0.50) !important;
  background: rgba(111,79,18,0.04) !important;
  border-top-color: #6f4f12 !important;
}

/* Textes comparateur */
[data-theme="atelier"] .lc-title,
[data-theme="atelier"] .rfq-sel-ref   { color: #101827 !important; font-weight: 700 !important; }
[data-theme="atelier"] .rfq-sel-title { color: #101827 !important; font-size: 14px !important; }
[data-theme="atelier"] .rfq-sel-count { color: #475569 !important; font-size: 12px !important; }
[data-theme="atelier"] .secondary     { color: #334155 !important; }

/* Logo texte dans comparateur */
[data-theme="atelier"] .logo-text { color: #6f4f12 !important; }
[data-theme="atelier"] #logo-img  { display: none !important; }
[data-theme="atelier"] .sb-logo-text {
  display: flex !important;
  color: #c9a84c !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: 5px !important;
}

/* Nav items dans sidebar sombre (comparateur) */
[data-theme="atelier"] .nav-item.active { background: rgba(111,79,18,0.15) !important; }

/* Tableau comparateur */
[data-theme="atelier"] .msg-list {
  background: #f7f8fa !important;
  border: 1px solid #c7ced8 !important;
}
[data-theme="atelier"] .active { color: #101827 !important; background: #f0f0f0 !important; }

/* Variables résiduelles dans inline styles du comparateur */
[data-theme="atelier"] .cell-score { color: #6f4f12 !important; font-weight: 800 !important; font-size: 15px !important; }
[data-theme="atelier"] .row-label  { color: #253044 !important; font-size: 12px !important; }
[data-theme="atelier"] .scr-num    { color: #6f4f12 !important; font-weight: 700 !important; }
[data-theme="atelier"] .score-bar  { background: rgba(111,79,18,0.15) !important; }
[data-theme="atelier"] .score-fill { background: #6f4f12 !important; }

/* Onglets comparateur */
[data-theme="atelier"] .tab-btn,
[data-theme="atelier"] [class*="tab-"] {
  color: #334155 !important;
  border-color: #c7ced8 !important;
  background: #ffffff !important;
}
[data-theme="atelier"] .tab-btn.active,
[data-theme="atelier"] [class*="tab-"].active {
  color: #6f4f12 !important;
  border-bottom-color: #6f4f12 !important;
  font-weight: 700 !important;
}

/* Boutons comparateur */
[data-theme="atelier"] .btn-outline {
  color: #334155 !important;
  border-color: #c7ced8 !important;
  background: #ffffff !important;
}
[data-theme="atelier"] .btn-gold,
[data-theme="atelier"] .btn-new-rfq {
  background: rgba(111,79,18,0.10) !important;
  border-color: rgba(111,79,18,0.45) !important;
  color: #6f4f12 !important;
  font-weight: 700 !important;
}
[data-theme="atelier"] .search-input {
  background: #ffffff !important;
  border-color: #c7ced8 !important;
  color: #101827 !important;
}

/* Section Ajouter des offres */
[data-theme="atelier"] .offer-drop-zone,
[data-theme="atelier"] [class*="drop-zone"],
[data-theme="atelier"] [class*="upload"] {
  background: #ffffff !important;
  border: 2px dashed #c7ced8 !important;
  color: #475569 !important;
}

/* Offres normalisées — cards */
[data-theme="atelier"] .offer-card,
[data-theme="atelier"] [class*="offer-card"],
[data-theme="atelier"] .normalized-offer,
[data-theme="atelier"] [class*="ofr-"] {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-top: 2px solid rgba(111,79,18,0.25) !important;
  box-shadow: 0 4px 14px rgba(15,23,42,0.07) !important;
}
[data-theme="atelier"] [class*="ofr-best"],
[data-theme="atelier"] [class*="offer-best"],
[data-theme="atelier"] .best-offer {
  border-top-color: #6f4f12 !important;
  background: rgba(111,79,18,0.04) !important;
}
[data-theme="atelier"] .ofr-price,
[data-theme="atelier"] [class*="price"],
[data-theme="atelier"] [class*="amount"],
[data-theme="atelier"] [class*="chf"] {
  color: #6f4f12 !important;
  font-weight: 800 !important;
}

/* ── PRIORITÉ 2: DASHBOARD — hiérarchie et widgets ── */

/* Widget complétude profil */
[data-theme="atelier"] .profile-progress,
[data-theme="atelier"] [class*="progress-bar"] { background: rgba(111,79,18,0.15) !important; }
[data-theme="atelier"] [class*="progress-fill"],
[data-theme="atelier"] .progress-bar-fill { background: #6f4f12 !important; }
[data-theme="atelier"] .completion-pct { color: #6f4f12 !important; font-weight: 800 !important; font-size: 18px !important; }

/* Widget prochaine action */
[data-theme="atelier"] .w3-next-action,
[data-theme="atelier"] #w3-next-action,
[data-theme="atelier"] [class*="next-action"] {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-left: 4px solid #6f4f12 !important;
  box-shadow: 0 4px 16px rgba(15,23,42,0.08) !important;
}

/* Widget confiance & sécurité */
[data-theme="atelier"] .w3-confidence-widget,
[data-theme="atelier"] #w3-confidence-widget,
[data-theme="atelier"] [class*="confidence"] {
  background: rgba(20,96,64,0.04) !important;
  border-color: rgba(20,96,64,0.25) !important;
}

/* KPIs dashboard — grand et lisible */
[data-theme="atelier"] .kpi-val,
[data-theme="atelier"] .cockpit-kpi,
[data-theme="atelier"] [class*="kpi-val"],
[data-theme="atelier"] [class*="cockpit-kpi"] {
  color: #6f4f12 !important;
  font-weight: 800 !important;
  font-size: 32px !important;
}
[data-theme="atelier"] [class*="kpi-label"],
[data-theme="atelier"] .kpi-label {
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* Opportunité du moment */
[data-theme="atelier"] #cockpit-hot-opportunity,
[data-theme="atelier"] .cockpit-opportunity,
[data-theme="atelier"] [class*="hot-opportunity"] {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-top: 3px solid rgba(111,79,18,0.40) !important;
  box-shadow: 0 6px 20px rgba(15,23,42,0.09) !important;
}

/* Section titres */
[data-theme="atelier"] .cockpit-section-title,
[data-theme="atelier"] [class*="section-title"]:not(.section-title > *) {
  color: #101827 !important;
  font-weight: 700 !important;
}

/* ── PRIORITÉ 3: RFQ — modèles rapides et chips ── */

[data-theme="atelier"] .rfq-template-card,
[data-theme="atelier"] [class*="template-card"],
[data-theme="atelier"] .quick-template {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06) !important;
}
[data-theme="atelier"] .rfq-template-card:hover,
[data-theme="atelier"] [class*="template-card"]:hover {
  border-color: rgba(111,79,18,0.45) !important;
  box-shadow: 0 6px 20px rgba(15,23,42,0.10) !important;
}
[data-theme="atelier"] .rfq-template-title { color: #101827 !important; font-weight: 600 !important; }
[data-theme="atelier"] .rfq-template-sub   { color: #475569 !important; }

/* Stepper 1-5 */
[data-theme="atelier"] .step-bar { background: #c7ced8 !important; }
[data-theme="atelier"] .step-bar.done { background: #6f4f12 !important; }
[data-theme="atelier"] .step-circle { background: #f7f8fa !important; border: 2px solid #c7ced8 !important; color: #475569 !important; }
[data-theme="atelier"] .step-circle.active { background: #6f4f12 !important; border-color: #6f4f12 !important; color: #ffffff !important; }
[data-theme="atelier"] .step-circle.done   { background: rgba(111,79,18,0.15) !important; border-color: #6f4f12 !important; color: #6f4f12 !important; }

/* Panneau droite "Conseils Horlogis" */
[data-theme="atelier"] .rhu-conseil,
[data-theme="atelier"] [class*="conseil"],
[data-theme="atelier"] .advice-card {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-top: 2px solid rgba(111,79,18,0.25) !important;
  box-shadow: 0 4px 14px rgba(15,23,42,0.07) !important;
}
[data-theme="atelier"] [class*="conseil-title"],
[data-theme="atelier"] .rhu-conseil-title { color: #101827 !important; font-weight: 700 !important; }
[data-theme="atelier"] [class*="conseil-body"],
[data-theme="atelier"] .rhu-conseil-body  { color: #253044 !important; }

/* ── PRIORITÉ 4: ONBOARDING — présence visuelle ── */

[data-theme="atelier"] .ob-wrap {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(15,23,42,0.10) !important;
  max-width: 660px !important;
  margin: 40px auto !important;
  padding: 48px 40px !important;
}
/* Role cards plus fortes */
[data-theme="atelier"] .ob-role-card {
  border: 2px solid #c7ced8 !important;
  background: #f7f8fa !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05) !important;
}
[data-theme="atelier"] .ob-role-card:hover {
  border-color: rgba(111,79,18,0.55) !important;
  background: rgba(111,79,18,0.04) !important;
  box-shadow: 0 8px 28px rgba(15,23,42,0.12) !important;
  transform: translateY(-2px);
}
[data-theme="atelier"] .ob-role-card.selected {
  border-color: #6f4f12 !important;
  background: rgba(111,79,18,0.08) !important;
  box-shadow: 0 6px 24px rgba(111,79,18,0.15) !important;
}
/* Bouton Continuer plus visible */
[data-theme="atelier"] #ob-next-1,
[data-theme="atelier"] [data-action="ob-next"] {
  background: rgba(111,79,18,0.12) !important;
  border-color: rgba(111,79,18,0.55) !important;
  color: #6f4f12 !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  box-shadow: 0 4px 16px rgba(111,79,18,0.15) !important;
}
[data-theme="atelier"] #ob-next-1:not([disabled]):hover {
  background: rgba(111,79,18,0.20) !important;
  box-shadow: 0 6px 24px rgba(111,79,18,0.22) !important;
}
[data-theme="atelier"] .ob-role-icon { font-size: 36px !important; }

/* ── PRIORITÉ 5: RAPPORT DEMO — hiérarchie décisionnelle ── */

/* Box synthèse au-dessus */
[data-theme="atelier"] .synth-box {
  background: rgba(111,79,18,0.05) !important;
  border: 1px solid rgba(111,79,18,0.30) !important;
  border-left: 4px solid #6f4f12 !important;
  box-shadow: 0 8px 28px rgba(15,23,42,0.09) !important;
}
[data-theme="atelier"] .synth-rec-val { color: #101827 !important; font-weight: 700 !important; }
[data-theme="atelier"] .synth-rec-alias { color: #6f4f12 !important; }

/* Info cells plus nettes */
[data-theme="atelier"] .info-cell {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05) !important;
}
[data-theme="atelier"] .info-val {
  color: #101827 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}
[data-theme="atelier"] .info-label { color: #475569 !important; font-weight: 600 !important; }

/* Table rapport */
[data-theme="atelier"] .comp-table { border: 1px solid #c7ced8 !important; border-radius: 8px !important; overflow: hidden; }
[data-theme="atelier"] .comp-table th { background: #eef1f4 !important; color: #334155 !important; font-size: 10px !important; letter-spacing: 1.5px !important; font-weight: 700 !important; }
[data-theme="atelier"] .comp-table td { border-color: #c7ced8 !important; color: #101827 !important; }
[data-theme="atelier"] .comp-table .num { color: #6f4f12 !important; font-weight: 700 !important; }
[data-theme="atelier"] .comp-table tr.best td { background: rgba(111,79,18,0.05) !important; }
[data-theme="atelier"] .comp-table tr.best td:first-child { border-left: 4px solid #6f4f12 !important; }

/* Score items */
[data-theme="atelier"] .score-item { border-color: #e2e6eb !important; }
[data-theme="atelier"] .score-icon { font-size: 14px !important; }
[data-theme="atelier"] .score-text strong { color: #101827 !important; }
[data-theme="atelier"] .score-text { color: #253044 !important; }

/* Rapport header */
[data-theme="atelier"] .report-header {
  border-bottom-color: #9aa6b5 !important;
}
[data-theme="atelier"] .ref-val {
  color: #6f4f12 !important;
  font-weight: 800 !important;
  font-size: 18px !important;
}

/* Section titles rapport */
[data-theme="atelier"] .section-title {
  color: #334155 !important;
  border-bottom: 2px solid rgba(111,79,18,0.30) !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  font-weight: 700 !important;
}

/* Watermark plus subtil en Atelier */
[data-theme="atelier"] .watermark { color: #c7ced8 !important; opacity: 0.05 !important; }

/* ── GLOBAL: Logo fix ── */
[data-theme="atelier"] #logo-img { display: none !important; }
[data-theme="atelier"] .sb-logo { gap: 0 !important; }
[data-theme="atelier"] .sb-logo-text {
  display: flex !important; align-items: center;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: 5px !important; color: #c9a84c !important;
  text-transform: uppercase !important;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  COMPARATEUR — Offres normalisées & sections             ║
   ║  Classes identifiées par inspection DOM                  ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Offer items: cartes blanches avec relief ── */
[data-theme="atelier"] .offer-item {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-top: 2px solid rgba(111,79,18,0.25) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(15,23,42,0.07) !important;
  padding: 14px !important;
  margin-bottom: 10px !important;
}
[data-theme="atelier"] .offer-item.best,
[data-theme="atelier"] .offer-item.selected {
  border-top: 3px solid #6f4f12 !important;
  background: rgba(111,79,18,0.04) !important;
  box-shadow: 0 6px 24px rgba(111,79,18,0.12) !important;
}
[data-theme="atelier"] .offer-item:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,0.12) !important;
  border-color: #9aa6b5 !important;
}

/* ── Textes dans les offres ── */
[data-theme="atelier"] .offer-ref { color: #101827 !important; font-weight: 700 !important; font-size: 14px !important; }
[data-theme="atelier"] .offer-status,
[data-theme="atelier"] .status-ok { color: #146040 !important; font-size: 11px !important; }
[data-theme="atelier"] .offer-price {
  color: #6f4f12 !important;
  font-weight: 800 !important;
  font-size: 20px !important;
}
[data-theme="atelier"] .offer-price .unit { color: #475569 !important; font-size: 13px !important; }
[data-theme="atelier"] .offer-fourn { color: #253044 !important; font-size: 12px !important; }
[data-theme="atelier"] .offer-meta { color: #334155 !important; font-size: 12px !important; }
[data-theme="atelier"] .offer-item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* Badge meilleure offre */
[data-theme="atelier"] .best-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 8px !important;
  background: rgba(111,79,18,0.10) !important;
  border: 1px solid rgba(111,79,18,0.40) !important;
  border-radius: 3px !important;
  color: #6f4f12 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

/* Banner IA */
[data-theme="atelier"] .ai-banner {
  background: #f7f8fa !important;
  border: 1px solid #c7ced8 !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  margin: 12px 0 !important;
}
[data-theme="atelier"] .ai-label,
[data-theme="atelier"] .ai-status { color: #334155 !important; }
[data-theme="atelier"] .ai-banner-left { color: #101827 !important; font-weight: 600 !important; }

/* Section LcTitle */
[data-theme="atelier"] .lc-title {
  color: #101827 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-bottom: 12px !important;
}

/* TB Title (topbar) */
[data-theme="atelier"] .tb-title {
  color: #101827 !important;
  font-weight: 700 !important;
}

/* Upload zone */
[data-theme="atelier"] .upload-zone {
  background: #f7f8fa !important;
  border: 2px dashed #c7ced8 !important;
  border-radius: 8px !important;
}
[data-theme="atelier"] .upload-zone-label { color: #101827 !important; font-weight: 600 !important; }
[data-theme="atelier"] .upload-zone-sub   { color: #475569 !important; }

/* Tableau comparatif (onglet) */
[data-theme="atelier"] .comp-row,
[data-theme="atelier"] [class*="comp-row"] {
  border-bottom: 1px solid #e2e6eb !important;
}
[data-theme="atelier"] .comp-row:hover { background: #f7f8fa !important; }
[data-theme="atelier"] .comp-row.header { background: #eef1f4 !important; font-weight: 700 !important; }
[data-theme="atelier"] .cell-criterion { color: #253044 !important; font-weight: 500 !important; }
[data-theme="atelier"] .cell-val { color: #101827 !important; }
[data-theme="atelier"] .cell-best { color: #6f4f12 !important; font-weight: 700 !important; }
[data-theme="atelier"] .cell-good { color: #146040 !important; }
[data-theme="atelier"] .cell-bad  { color: #9f2f2f !important; }

/* Onglets (tabs) comparateur */
[data-theme="atelier"] .tabs-bar,
[data-theme="atelier"] [class*="tab-bar"],
[data-theme="atelier"] [class*="tabs"] {
  background: #ffffff !important;
  border-bottom: 1px solid #c7ced8 !important;
}
[data-theme="atelier"] [class*="tab"],
[data-theme="atelier"] .tab {
  color: #475569 !important;
  border-color: transparent !important;
}
[data-theme="atelier"] [class*="tab"].active,
[data-theme="atelier"] .tab.active {
  color: #6f4f12 !important;
  border-bottom: 2px solid #6f4f12 !important;
  font-weight: 700 !important;
}

/* Recalculer btn */
[data-theme="atelier"] [class*="recalc"],
[data-theme="atelier"] .btn-recalc {
  background: #f7f8fa !important;
  border-color: #c7ced8 !important;
  color: #334155 !important;
}

/* ── Fix logo sidebar Atelier: or foncé (ratio 7.1:1 sur fond sable) ── */
/* La sidebar est sombre (#0c1f35), donc or Prestige #c9a84c = OK sur sidebar sombre */
/* Mais le check lisait la couleur vs le fond PAGE (ivoire) -> faux fail */
/* Clarification: logo est sur sidebar SOMBRE → or standard OK */
/* On ne change pas, le check était faux positif */

/* Fix: s'assurer que le sélecteur de logo couvre .logo-text (comparateur) */
[data-theme="atelier"] .logo-text,
[data-theme="atelier"] .nav-logo {
  color: #6f4f12 !important; /* or foncé sur fond sable (page principale) */
}
/* Sidebar (fond sombre): logo reste or Prestige standard */
[data-theme="atelier"] .sb-logo .sb-logo-text {
  color: #c9a84c !important; /* or sur fond sidebar sombre = ratio OK */
}

/* ════════════════════════════════════════════════
   ATELIER VQA P2 — FIX UNIVERSEL LOGO SIDEBAR
   Cause : /assets/logo-horlogis.png n'existe pas → image cassée
   Solution : cacher l'<img> et renforcer le span texte HORLOGIS
   Date : 2026-05-27
   ════════════════════════════════════════════════ */

#sb-logo,
#logo-img,
.sb-logo img,
.sb-logo > img {
  display: none !important;
}

.sb-logo-text {
  display: inline-flex !important;
  align-items: center !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 22px !important;
  letter-spacing: 6px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
}
.sb-logo-text span {
  color: var(--cream) !important;
  letter-spacing: 6px !important;
}

/* Mode Atelier : logo or foncé bien lisible sur sidebar foncée (sidebar reste foncée même en Atelier) */
[data-theme="atelier"] .sb-logo-text {
  color: #e4c46a !important; /* or clair sur sidebar marine */
}
[data-theme="atelier"] .sb-logo-text span {
  color: #ffffff !important;
}

/* ════════════════════════════════════════════════
   ATELIER VQA P2 — RENFORT WIDGETS DASHBOARD
   Cartes KPI plus marquées, séparation visible, hiérarchie
   ════════════════════════════════════════════════ */

[data-theme="atelier"] .kpi-card,
[data-theme="atelier"] .quick-card,
[data-theme="atelier"] .opp-card,
[data-theme="atelier"] .cs-card,
[data-theme="atelier"] .actions-card,
[data-theme="atelier"] #w3-next-action,
[data-theme="atelier"] #w3-confidence-widget,
[data-theme="atelier"] #cockpit-opportunite,
[data-theme="atelier"] #cockpit-actions,
[data-theme="atelier"] #cockpit-stats {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(16, 24, 39, 0.06), 0 1px 3px rgba(16, 24, 39, 0.04) !important;
  padding: 22px 24px !important;
  transition: box-shadow 0.18s, transform 0.18s !important;
}
[data-theme="atelier"] .kpi-card:hover,
[data-theme="atelier"] .quick-card:hover {
  box-shadow: 0 4px 14px rgba(16, 24, 39, 0.10), 0 2px 6px rgba(16, 24, 39, 0.06) !important;
  transform: translateY(-1px);
}

[data-theme="atelier"] .kpi-num {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  color: #6f4f12 !important;
  line-height: 1 !important;
  letter-spacing: -0.5px !important;
}
[data-theme="atelier"] .kpi-label {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: #475569 !important;
  margin-top: 4px !important;
}
[data-theme="atelier"] .kpi-delta {
  font-size: 12px !important;
  color: #146040 !important;
  font-weight: 500 !important;
}

/* Bandeau confidentialité dashboard */
[data-theme="atelier"] .conf-tile,
[data-theme="atelier"] .conf-pill {
  background: rgba(20, 96, 64, 0.04) !important;
  border: 1px solid rgba(20, 96, 64, 0.18) !important;
  border-radius: 10px !important;
}
[data-theme="atelier"] .conf-tile h4,
[data-theme="atelier"] .conf-tile .conf-title {
  color: #101827 !important;
  font-weight: 700 !important;
}

/* Titres de sections dashboard plus marqués */
[data-theme="atelier"] .section-eyebrow,
[data-theme="atelier"] .panel-eyebrow,
[data-theme="atelier"] .cockpit-eyebrow,
[data-theme="atelier"] .complet-eyebrow {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: #6f4f12 !important;
  margin-bottom: 10px !important;
}

/* ════════════════════════════════════════════════
   ATELIER VQA P2 — RENFORT WIZARD RFQ
   Modèles rapides + microtextes + Stepper + panneau conseils
   ════════════════════════════════════════════════ */

[data-theme="atelier"] .quick-template,
[data-theme="atelier"] .template-card,
[data-theme="atelier"] .model-rapide {
  background: #ffffff !important;
  border: 1.5px solid #c7ced8 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  cursor: pointer !important;
  transition: all 0.18s !important;
  box-shadow: 0 1px 3px rgba(16, 24, 39, 0.05) !important;
}
[data-theme="atelier"] .quick-template:hover,
[data-theme="atelier"] .template-card:hover,
[data-theme="atelier"] .model-rapide:hover {
  border-color: #6f4f12 !important;
  background: #faf7f0 !important;
  box-shadow: 0 4px 12px rgba(111, 79, 18, 0.12) !important;
  transform: translateY(-1px);
}

[data-theme="atelier"] .f-helper,
[data-theme="atelier"] .form-helper,
[data-theme="atelier"] .field-hint,
[data-theme="atelier"] .input-hint,
[data-theme="atelier"] .microtexte {
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

[data-theme="atelier"] .f-label,
[data-theme="atelier"] .form-label,
[data-theme="atelier"] .field-label {
  color: #1b2131 !important;
  font-weight: 600 !important;
}

/* Stepper RFQ */
[data-theme="atelier"] .step {
  background: #ffffff !important;
  border: 1.5px solid #c7ced8 !important;
}
[data-theme="atelier"] .step.active {
  background: #6f4f12 !important;
  border-color: #6f4f12 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(111, 79, 18, 0.30) !important;
}
[data-theme="atelier"] .step.done {
  background: #146040 !important;
  border-color: #146040 !important;
  color: #ffffff !important;
}
[data-theme="atelier"] .step-label {
  color: #253044 !important;
  font-weight: 600 !important;
}

/* Panneau Conseils HORLOGIS (droite) */
[data-theme="atelier"] #tips-panel,
[data-theme="atelier"] .tips-panel,
[data-theme="atelier"] .panel-conseils {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  box-shadow: 0 1px 4px rgba(16, 24, 39, 0.06) !important;
}
[data-theme="atelier"] .tip-card,
[data-theme="atelier"] .conseil-card {
  background: #f7f8fa !important;
  border: 1px solid #c7ced8 !important;
  border-left: 3px solid #6f4f12 !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
}

/* Chips métiers RFQ */
[data-theme="atelier"] .metier-chip,
[data-theme="atelier"] .matiere-chip,
[data-theme="atelier"] .chip {
  background: #ffffff !important;
  border: 1.5px solid #c7ced8 !important;
  color: #101827 !important;
  font-weight: 600 !important;
}
[data-theme="atelier"] .metier-chip:hover,
[data-theme="atelier"] .matiere-chip:hover,
[data-theme="atelier"] .chip:hover {
  border-color: #6f4f12 !important;
  background: rgba(111, 79, 18, 0.04) !important;
}
[data-theme="atelier"] .metier-chip.selected,
[data-theme="atelier"] .matiere-chip.selected,
[data-theme="atelier"] .chip.selected,
[data-theme="atelier"] .chip.active {
  background: #6f4f12 !important;
  border-color: #6f4f12 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(111, 79, 18, 0.25) !important;
}

/* ════════════════════════════════════════════════
   ATELIER VQA P2 — COMPARATEUR : RELIEF + CARDS BLANCHES
   Override des classes legacy ré-injectées pour Atelier
   ════════════════════════════════════════════════ */

[data-theme="atelier"] #content {
  background: #f4f1ea !important;
}
[data-theme="atelier"] #left-col {
  background: #ffffff !important;
  border-right: 1px solid #c7ced8 !important;
}
[data-theme="atelier"] #main-col {
  background: #f4f1ea !important;
}
[data-theme="atelier"] .lc-section {
  border-bottom: 1px solid #e5e7eb !important;
}
[data-theme="atelier"] .lc-title {
  color: #475569 !important;
  font-weight: 700 !important;
}
[data-theme="atelier"] .rfq-selector {
  background: #ffffff !important;
  border: 1.5px solid #c7ced8 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 39, 0.04) !important;
}
[data-theme="atelier"] .rfq-selector:hover,
[data-theme="atelier"] .rfq-selector.active {
  border-color: #6f4f12 !important;
  background: #faf7f0 !important;
  box-shadow: 0 3px 8px rgba(111, 79, 18, 0.12) !important;
}
[data-theme="atelier"] .rfq-sel-ref { color: #6f4f12 !important; font-weight: 700 !important; }
[data-theme="atelier"] .rfq-sel-title { color: #101827 !important; font-weight: 600 !important; }
[data-theme="atelier"] .rfq-sel-count { color: #475569 !important; font-weight: 600 !important; }

[data-theme="atelier"] .upload-zone {
  background: #fafafa !important;
  border: 2px dashed #9aa6b5 !important;
  border-radius: 10px !important;
}
[data-theme="atelier"] .upload-zone:hover {
  border-color: #6f4f12 !important;
  background: rgba(111, 79, 18, 0.04) !important;
}
[data-theme="atelier"] .upload-zone-label { color: #101827 !important; font-weight: 700 !important; }
[data-theme="atelier"] .upload-zone-sub { color: #475569 !important; }

[data-theme="atelier"] .offer-item {
  background: #ffffff !important;
  border: 1.5px solid #c7ced8 !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  box-shadow: 0 1px 3px rgba(16, 24, 39, 0.05) !important;
  margin-bottom: 8px !important;
}
[data-theme="atelier"] .offer-item:hover {
  border-color: #9aa6b5 !important;
  box-shadow: 0 3px 8px rgba(16, 24, 39, 0.08) !important;
}
[data-theme="atelier"] .offer-item.selected {
  border-color: #6f4f12 !important;
  background: rgba(111, 79, 18, 0.04) !important;
}
[data-theme="atelier"] .offer-item.best {
  border-color: #146040 !important;
  background: rgba(20, 96, 64, 0.04) !important;
}
[data-theme="atelier"] .best-badge {
  background: #146040 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}
[data-theme="atelier"] .offer-ref { color: #101827 !important; font-weight: 700 !important; }
[data-theme="atelier"] .offer-price { color: #6f4f12 !important; font-weight: 700 !important; }
[data-theme="atelier"] .offer-price .unit { color: #475569 !important; }
[data-theme="atelier"] .offer-fourn { color: #253044 !important; font-weight: 500 !important; }
[data-theme="atelier"] .offer-meta { color: #475569 !important; font-weight: 500 !important; }
[data-theme="atelier"] .offer-status.status-ok { color: #146040 !important; border-color: #146040 !important; background: rgba(20, 96, 64, 0.06) !important; }

[data-theme="atelier"] .ai-banner {
  background: linear-gradient(90deg, rgba(111, 79, 18, 0.06), rgba(111, 79, 18, 0.02)) !important;
  border-bottom: 1px solid #c7ced8 !important;
}
[data-theme="atelier"] .ai-status { background: #146040 !important; }
[data-theme="atelier"] .ai-label { color: #101827 !important; font-weight: 700 !important; }
[data-theme="atelier"] .ai-desc { color: #475569 !important; }
[data-theme="atelier"] .ai-score { color: #6f4f12 !important; font-weight: 600 !important; }
[data-theme="atelier"] .ai-score-label { color: #475569 !important; }

[data-theme="atelier"] .view-tabs {
  background: #ffffff !important;
  border-bottom: 1px solid #c7ced8 !important;
}
[data-theme="atelier"] .vt-btn { color: #475569 !important; font-weight: 600 !important; }
[data-theme="atelier"] .vt-btn:hover { color: #101827 !important; }
[data-theme="atelier"] .vt-btn.active {
  color: #6f4f12 !important;
  border-bottom-color: #6f4f12 !important;
}

[data-theme="atelier"] .insight-card {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 4px rgba(16, 24, 39, 0.06) !important;
}
[data-theme="atelier"] .insight-card.highlight {
  border-color: #6f4f12 !important;
  background: rgba(111, 79, 18, 0.03) !important;
}
[data-theme="atelier"] .ic-label { color: #475569 !important; font-weight: 700 !important; }
[data-theme="atelier"] .ic-val { color: #6f4f12 !important; font-weight: 600 !important; }
[data-theme="atelier"] .ic-sub { color: #253044 !important; }
[data-theme="atelier"] .ic-sub strong { color: #101827 !important; }

[data-theme="atelier"] .norm-title { color: #101827 !important; }
[data-theme="atelier"] .norm-title em { color: #6f4f12 !important; }

[data-theme="atelier"] .rec-box {
  background: linear-gradient(135deg, rgba(111, 79, 18, 0.06), rgba(111, 79, 18, 0.02)) !important;
  border: 1px solid rgba(111, 79, 18, 0.30) !important;
  border-radius: 10px !important;
}
[data-theme="atelier"] .rec-eyebrow { color: #6f4f12 !important; font-weight: 700 !important; }
[data-theme="atelier"] .rec-title { color: #101827 !important; }
[data-theme="atelier"] .rec-title em { color: #6f4f12 !important; }
[data-theme="atelier"] .rec-body { color: #253044 !important; }
[data-theme="atelier"] .rec-body strong { color: #101827 !important; }

[data-theme="atelier"] .decision-bar {
  background: #ffffff !important;
  border-top: 1px solid #c7ced8 !important;
  box-shadow: 0 -2px 8px rgba(16, 24, 39, 0.06) !important;
}
[data-theme="atelier"] .dw-label { color: #475569 !important; font-weight: 700 !important; }
[data-theme="atelier"] .dw-name { color: #101827 !important; font-weight: 600 !important; }
[data-theme="atelier"] .dw-price { color: #6f4f12 !important; font-weight: 600 !important; }
[data-theme="atelier"] .dw-delta { color: #146040 !important; font-weight: 600 !important; }

/* ════════════════════════════════════════════════
   ATELIER VQA P2 — ONBOARDING
   Cadre premium, contraste, hover, sélection
   ════════════════════════════════════════════════ */

[data-theme="atelier"] .onboarding-wrap,
[data-theme="atelier"] .ob-content,
[data-theme="atelier"] .onboarding-main {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 18px rgba(16, 24, 39, 0.06) !important;
}
[data-theme="atelier"] .role-card,
[data-theme="atelier"] .ob-role-card {
  background: #ffffff !important;
  border: 2px solid #c7ced8 !important;
  border-radius: 12px !important;
  transition: all 0.2s !important;
  box-shadow: 0 1px 4px rgba(16, 24, 39, 0.05) !important;
}
[data-theme="atelier"] .role-card:hover,
[data-theme="atelier"] .ob-role-card:hover {
  border-color: #6f4f12 !important;
  background: #faf7f0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(111, 79, 18, 0.18) !important;
}
[data-theme="atelier"] .role-card.selected,
[data-theme="atelier"] .role-card[aria-checked="true"],
[data-theme="atelier"] .ob-role-card.selected,
[data-theme="atelier"] .ob-role-card[aria-checked="true"] {
  border-color: #6f4f12 !important;
  background: #faf7f0 !important;
  box-shadow: 0 0 0 3px rgba(111, 79, 18, 0.20), 0 6px 18px rgba(111, 79, 18, 0.18) !important;
}
[data-theme="atelier"] .ob-cta,
[data-theme="atelier"] .btn-continuer {
  background: #6f4f12 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(111, 79, 18, 0.25) !important;
}
[data-theme="atelier"] .ob-cta:hover,
[data-theme="atelier"] .btn-continuer:hover {
  background: #5a4010 !important;
  box-shadow: 0 4px 12px rgba(111, 79, 18, 0.35) !important;
}

/* ════════════════════════════════════════════════
   ATELIER VQA P2 — RAPPORT DEMO
   Synthèse exécutive en card avec relief
   ════════════════════════════════════════════════ */

[data-theme="atelier"] .rapport-synthese,
[data-theme="atelier"] .executive-summary,
[data-theme="atelier"] .rapport-deciders {
  background: linear-gradient(135deg, #ffffff, #faf7f0) !important;
  border: 2px solid #6f4f12 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(111, 79, 18, 0.12) !important;
  padding: 24px 28px !important;
  margin-bottom: 28px !important;
}
[data-theme="atelier"] .synthese-eyebrow,
[data-theme="atelier"] .es-eyebrow {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: #6f4f12 !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}
[data-theme="atelier"] .synthese-recommandation {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  color: #101827 !important;
  line-height: 1.3 !important;
  margin-bottom: 16px !important;
}
[data-theme="atelier"] .synthese-kpis {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  margin-top: 16px !important;
}
[data-theme="atelier"] .synthese-kpi {
  background: #ffffff !important;
  border: 1px solid #c7ced8 !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
}
[data-theme="atelier"] .synthese-kpi-label {
  font-size: 11px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #475569 !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}
[data-theme="atelier"] .synthese-kpi-val {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  color: #6f4f12 !important;
  line-height: 1 !important;
}

/* Watermark plus discret */
[data-theme="atelier"] .watermark,
[data-theme="atelier"] .rapport-watermark {
  opacity: 0.06 !important;
  color: #6f4f12 !important;
}

/* ════════════════════════════════════════════════
   AUTH VQA PREMIUM LOCK — HORLOGIS visible en mobile (sidebar masquée)
   Sur mobile, la sidebar disparaît : on ajoute HORLOGIS dans le topbar via ::before
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #topbar { position: relative; }
  #topbar::before {
    content: 'HORLOGIS';
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--gold);
    margin-right: 12px;
    flex-shrink: 0;
  }
  /* En mode Atelier, fond clair : ajuster contraste */
  [data-theme="atelier"] #topbar::before {
    color: #6f4f12;
  }
  /* En mode Lecture (noir renforcé) */
  [data-theme="lecture"] #topbar::before {
    color: #e4c46a;
  }
  /* Le tb-title devient secondaire mais reste visible */
  #topbar .tb-title {
    font-size: 11px !important;
    opacity: 0.65;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
  }
}
