/* PAGE BOURSE — DASHBOARD MAISON */

.bourse-page {
  display: none;
  opacity: 0;
  height: 100vh;
  padding: 22px 28px;
  color: #edf3ff;
  background: radial-gradient(ellipse at 15% 0%, #173557, transparent 48%), #080e18;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.bourse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: none;
}

.bourse-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #65b6ff;
  font-weight: 700;
}

.bourse-header h1 {
  font-size: 32px;
  margin: 7px 0 4px;
}

.bourse-header p,
.bourse-chart-card p {
  color: #92a2b8;
  font-size: 13px;
  margin: 0;
}

#bourseClock {
  font-size: 30px;
  font-weight: 300;
}

.bourse-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  flex: none;
}

.bourse-metric,
.bourse-chart-card,
.bourse-holdings {
  background: #121d2c;
  border: 1px solid #ffffff16;
  border-radius: 16px;
  box-shadow: 0 10px 30px #00000025;
}

.bourse-metric {
  padding: 18px 20px;
}

.bourse-metric span {
  display: block;
  color: #91a2ba;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.bourse-metric strong {
  font-size: clamp(19px, 2.3vw, 31px);
  font-weight: 650;
}

.bourse-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
  gap: 14px;
}

.bourse-chart-card {
  min-width: 0;
  min-height: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.bourse-chart-card h2,
.bourse-holdings h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.bourse-chart {
  flex: 1;
  min-height: 0;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #91a2ba;
}

.bourse-chart svg {
  width: 100%;
  height: 100%;
}

.bourse-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 12px;
  margin-top: 12px;
}

.bourse-legend .world { color: #39d8a6; }
.bourse-legend .tsmc { color: #ffb454; }
.bourse-legend .nasdaq { color: #9590ff; }

.bourse-holdings {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.bourse-holding {
  padding: 19px 0;
  border-bottom: 1px solid #ffffff15;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bourse-holding:last-child {
  border-bottom: none;
}

.bourse-holding span {
  color: #a3b3c8;
  font-size: 12px;
  letter-spacing: .7px;
}

.bourse-holding strong {
  font-size: 25px;
}

.bourse-holding small {
  font-size: 15px;
  font-weight: 650;
}

.bourse-page .positive { color: #3adba2; }
.bourse-page .negative { color: #ff7181; }

.bourse-footer {
  flex: none;
  display: flex;
  justify-content: space-between;
  color: #8293ab;
  font-size: 11px;
}

@media (max-width: 850px) {
  .bourse-page { padding: 12px; gap: 10px; }
  .bourse-header h1 { font-size: 24px; }
  .bourse-metric { padding: 12px; }
  .bourse-main { grid-template-columns: minmax(0, 1.6fr) minmax(190px, 1fr); }
  .bourse-chart-card, .bourse-holdings { padding: 12px; }
  .bourse-holding { padding: 12px 0; }
  .bourse-holding strong { font-size: 19px; }
}
