/* =========================================================
   ELITE TRADING DASHBOARD – VERSION PRO FINAL (NETTOYÉ)
   ========================================================= */

/* ================= PADDING & BASE ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 12px;
  font-family: system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

/* ================= HEADER ================= */
.header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.title { font-size: 18px; }

.subtitle {
  font-size: 14px;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ================= Marchés horaires ================= */
.market.open {
  background: rgba(34,197,94,0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ================= PANEL INFO ================= */
.panel-info {
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 13px;
}

/* ================= DASHBOARD ================= */
.dashboard {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  width: 100%;
}

.charts-column {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.panel {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  flex: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.panel h3 {
  font-size: 13px;
  color: #64748b;
}

.table-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.signal-live,
.elite-table,
#bougie-count {
  width: 100%;
  overflow-x: auto;
}

/* ================= TABLE ================= */
.elite-table {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.elite-table h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.elite-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.elite-table th {
  background: #f1f5f9;
  padding: 8px;
  text-align: left;
}

.elite-table td {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* Status dots */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-buy { background:#16a34a; }
.dot-sell { background:#dc2626; }
.dot-neutral { background:#f59e0b; }
/* Dot pour bougie en formation / provisoire */
.dot-provisional {
  background-color: #999999; /* gris clair pour indiquer que la bougie n'est pas close */
}

/* ================= SIGNAL LIVE ================= */
.signal-live {
  margin-top: 10px;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
}

.signal-main { font-size: 22px; }
.signal-sub {
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.signal-live.buy { background:#052e16; color:#22c55e; }
.signal-live.sell { background:#3f0d0d; color:#ef4444; }
.signal-live.neutral { background:#1e293b; color:#94a3b8; }

/* Couleur du box signal selon la tendance HTF */
.signal-live.trend-up {
  background-color: #d4fbe2; /* vert très clair */
  color: #166534;             /* texte vert foncé */
}

.signal-live.trend-down {
  background-color: #ffe0e0; /* rouge très clair */
  color: #991b1b;            /* texte rouge foncé */
}

.signal-live.trend-neutral {
  background-color: #fff4db; /* orange très clair */
  color: #92400e;            /* texte orange foncé */
}

/* ================= MOBILE ================= */
@media (max-width: 768px){
  .dashboard { flex-direction: column; }

  .table-column { order: 1; }
  .charts-column { order: 2; }

  .signal-live,
  .elite-table,
  #bougie-count { width: 92%; max-width: 420px; }
}

@media (max-width: 480px){
  .dashboard { flex-direction: column; }
}