/* ===== Bourse de Lakeview ===== */
[hidden] { display: none !important; }
:root {
    --night: #020B0D; --deep: #04161A; --tide: #071D22; --surface: #0A2429; --surface-2: #0E2E34;
    --line: #16404A; --foam: #EAF7F5; --mist: #A9C6C2; --mist-2: #8FB0AC;
    --up: #2EE6B6; --down: #FF8A9B; --warn: #FFB65C;
    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--deep); color: var(--foam); font-family: var(--body); line-height: 1.5; }
a { color: var(--foam); }
a:hover { color: var(--up); }
:focus-visible { outline: 3px solid var(--up); outline-offset: 3px; border-radius: 3px; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin: 0; line-height: 1.05; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--mist); }
.small { font-size: 14px; }
.num, .big, .kpi dd, .quotes td { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }

/* ----- Bandeau défilant des cotations ----- */
.ticker { background: var(--night); border-bottom: 1px solid #12343A; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 36px; padding: 9px 0; animation: scroll 60s linear infinite; padding-left: 100%; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker { overflow-x: auto; }
    .ticker-track { animation: none; padding-left: 24px; }
}
.ticker-item { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.03em; display: inline-flex; gap: 8px; align-items: baseline; }
.ticker-item b { font-weight: 800; text-transform: uppercase; }

/* ----- En-tête ----- */
.head { background: var(--night); }
.head-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: 0.02em; }
.brand em { font-style: normal; color: var(--up); }
.brand small { color: var(--mist); font-size: 13px; }
.head-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--mist); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(46,230,182,0.6); animation: pulse 2s infinite; }
.dot.off { background: var(--down); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46,230,182,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,182,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.back { font-family: var(--display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; border: 2px solid var(--line); padding: 8px 16px; border-radius: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.back:hover { border-color: var(--up); }

/* ----- Contenu ----- */
.main { padding-top: 36px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: stretch; }
.hero-main { background: var(--tide); border: 1px solid var(--line); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.kicker { font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--up); }
.big { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 76px); line-height: 1; }
.change { font-weight: 700; font-size: 17px; }
.bar { width: 96px; height: 6px; border: 0; margin: 8px 0 4px; background: var(--up); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.kpi dt { color: var(--mist); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.kpi dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; }
.kpi-accent { border-color: var(--up); background: linear-gradient(180deg, rgba(46,230,182,0.08), transparent 70%), var(--surface); }
.kpi-accent dd { color: var(--up); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h2 { font-size: 28px; }
.chips, .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tabs { margin-top: 0; background: var(--night); border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.chip, .tabs button { font: inherit; font-weight: 700; font-size: 14px; color: var(--mist); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 36px; }
.tabs button { border: 0; border-radius: 4px; padding: 6px 12px; }
.chip[aria-pressed="true"] { background: var(--up); border-color: var(--up); color: #03241D; }
.tabs button[aria-pressed="true"] { background: var(--surface-2); color: var(--foam); }
.chip:hover, .tabs button:hover { color: var(--foam); }
.chart-box { position: relative; height: 360px; }
.chart-small { height: 240px; }
.empty-note { text-align: center; }

.grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.table-wrap { overflow-x: auto; }
.quotes { width: 100%; border-collapse: collapse; font-size: 15px; }
.quotes th { text-align: left; color: var(--mist-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.quotes td { padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.quotes tbody tr { cursor: pointer; }
.quotes tbody tr:hover, .quotes tbody tr[aria-selected="true"] { background: var(--surface-2); }
.quotes .num { text-align: right; }
.quotes .rank { color: var(--mist-2); font-weight: 700; width: 32px; }
.quotes .name { font-family: var(--display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: 0.02em; }
.quotes button.name { background: none; border: 0; color: inherit; padding: 0; cursor: pointer; text-align: left; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pill.up { background: rgba(46,230,182,0.14); }
.pill.down { background: rgba(255,138,155,0.14); }
.pill.flat { background: rgba(169,198,194,0.12); color: var(--mist); }
.spark { display: block; }
.stat-line { color: var(--mist); }
.stat-line strong { color: var(--foam); font-family: var(--display); font-size: 22px; }
.public-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.public-item { background: var(--night); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.public-item b { display: block; font-family: var(--display); font-size: 18px; text-transform: uppercase; }
.public-item span { font-family: var(--display); font-size: 26px; font-weight: 800; }

.foot { background: var(--night); border-top: 1px solid #12343A; }
.foot-inner { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }

@media (max-width: 960px) {
    .hero, .grid { grid-template-columns: 1fr; }
    .chart-box { height: 280px; }
}
@media (max-width: 560px) {
    .hide-sm { display: none; }
    .card, .hero-main { padding: 18px; }
}
